]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Prepare for randomized task_struct
authorArnd Bergmann <arnd@arndb.de>
Fri, 30 Jun 2017 16:03:59 +0000 (18:03 +0200)
committerKees Cook <keescook@chromium.org>
Fri, 30 Jun 2017 19:00:50 +0000 (12:00 -0700)
commit741ffd4b972e3905ce2c6100ead32f29dcd7ad93
tree0719bef951a1e28762868066d3bd73ac29f80c8b
parent8b1a2e241c4d19a2a29f91ed8b8f302e756d33d2
ARM: Prepare for randomized task_struct

With the new task struct randomization, we can run into a build
failure for certain random seeds, which will place fields beyond
the allow immediate size in the assembly:

arch/arm/kernel/entry-armv.S: Assembler messages:
arch/arm/kernel/entry-armv.S:803: Error: bad immediate value for offset (4096)

Only two constants in asm-offset.h are affected, and I'm changing
both of them here to work correctly in all configurations.

One more macro has the problem, but is currently unused, so this
removes it instead of adding complexity.

Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[kees: Adjust commit log slightly]
Signed-off-by: Kees Cook <keescook@chromium.org>
arch/arm/include/asm/assembler.h
arch/arm/kernel/entry-armv.S
arch/arm/mm/proc-macros.S