linux/arch
Mark Rutland 870d16757b arm64: make _TIF_WORK_MASK bits contiguous
We need the bits of _TIF_WORK_MASK to be contiguous in order to to use
this as an immediate argument to an AND instruction in entry.S.

We happened to change these bits in commits:

  b5a5a01d8e ("arm64: uaccess: remove addr_limit_user_check()")
  192caabd4d ("arm64: add support for TIF_NOTIFY_SIGNAL")

which each worked in isolation, but the merge resolution in commit:

  005b2a9dc8 ("Merge tag 'tif-task_work.arch-2020-12-14' of git://git.kernel.dk/linux-block")

happened to make the bits non-contiguous.

Fix this by moving TIF_NOTIFY_SIGNAL to be bit 6, which is contiguous
with the rest of _TIF_WORK_MASK.

Otherwise, we'll get a build-time failure as below:

   arch/arm64/kernel/entry.S: Assembler messages:
   arch/arm64/kernel/entry.S:733: Error: immediate out of range at operand 3 -- `and x2,x19,#((1<<1)|(1<<0)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<7))'
   scripts/Makefile.build:360: recipe for target 'arch/arm64/kernel/entry.o' failed

Fixes: 005b2a9dc8 ("Merge tag 'tif-task_work.arch-2020-12-14' of git://git.kernel.dk/linux-block")
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-12-16 14:08:47 -08:00
..
alpha tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
arc tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
arm tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
arm64 arm64: make _TIF_WORK_MASK bits contiguous 2020-12-16 14:08:47 -08:00
c6x tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
csky tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
h8300 tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
hexagon tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
ia64 tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
m68k tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
microblaze Microblaze patches for 5.11-rc1 2020-12-16 12:04:39 -08:00
mips tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
nds32 tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
nios2 tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
openrisc tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
parisc tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
powerpc tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
riscv tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
s390 for-5.11/drivers-2020-12-14 2020-12-16 13:09:32 -08:00
sh tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
sparc tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
um tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
x86 Merge branch 'stable/for-linus-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb 2020-12-16 13:51:34 -08:00
xtensa tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
.gitignore
Kconfig seccomp updates for v5.11-rc1 2020-12-16 11:30:10 -08:00