linux-bl808/arch
Mark Rutland 985faa7868 powerpc: Snapshot thread flags
Some thread flags can be set remotely, and so even when IRQs are disabled,
the flags can change under our feet. Generally this is unlikely to cause a
problem in practice, but it is somewhat unsound, and KCSAN will
legitimately warn that there is a data race.

To avoid such issues, a snapshot of the flags has to be taken prior to
using them. Some places already use READ_ONCE() for that, others do not.

Convert them all to the new flag accessor helpers.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Mackerras <paulus@samba.org>
Link: https://lore.kernel.org/r/20211129130653.2037928-11-mark.rutland@arm.com
2021-12-01 00:06:44 +01:00
..
alpha alpha: Snapshot thread flags 2021-12-01 00:06:43 +01:00
arc
arm ARM: Snapshot thread flags 2021-12-01 00:06:43 +01:00
arm64 arm64: Snapshot thread flags 2021-12-01 00:06:44 +01:00
csky
h8300
hexagon
ia64 futex: Wireup futex_waitv syscall 2021-11-25 14:26:12 +01:00
m68k asm-generic: syscall table updates 2021-11-25 10:41:28 -08:00
microblaze microblaze: Snapshot thread flags 2021-12-01 00:06:44 +01:00
mips - build fix for ZSTD enabled configs 2021-11-27 09:50:31 -08:00
nds32
nios2
openrisc openrisc: Snapshot thread flags 2021-12-01 00:06:44 +01:00
parisc Fixes for 5.16 folios: 2021-11-25 10:13:56 -08:00
powerpc powerpc: Snapshot thread flags 2021-12-01 00:06:44 +01:00
riscv
s390
sh asm-generic: syscall table updates 2021-11-25 10:41:28 -08:00
sparc asm-generic: syscall table updates 2021-11-25 10:41:28 -08:00
um
x86 x86: Snapshot thread flags 2021-12-01 00:06:43 +01:00
xtensa asm-generic: syscall table updates 2021-11-25 10:41:28 -08:00
.gitignore
Kconfig arch: Add generic Kconfig option indicating page size smaller than 64k 2021-11-27 14:34:41 -08:00