diff options
author | Kees Cook <keescook@chromium.org> | 2017-07-05 06:41:31 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-07-05 06:41:31 +0200 |
commit | d1185a8c5dd21182012e6dd531b00fd72f4d30cb (patch) | |
tree | 1c394d6e27bad00e0f3aba4e59ca19823d0486d5 /arch/arm/kernel | |
parent | Linux 4.12 (diff) | |
parent | Merge branch 'for-next/gcc-plugin-infrastructure' into merge/randstruct (diff) | |
download | linux-d1185a8c5dd21182012e6dd531b00fd72f4d30cb.tar.xz linux-d1185a8c5dd21182012e6dd531b00fd72f4d30cb.zip |
Merge branch 'merge/randstruct' into for-next/gcc-plugins
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/entry-armv.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S index 9f157e7c51e7..c731f0d2b2af 100644 --- a/arch/arm/kernel/entry-armv.S +++ b/arch/arm/kernel/entry-armv.S @@ -797,7 +797,10 @@ ENTRY(__switch_to) #if defined(CONFIG_CC_STACKPROTECTOR) && !defined(CONFIG_SMP) ldr r7, [r2, #TI_TASK] ldr r8, =__stack_chk_guard - ldr r7, [r7, #TSK_STACK_CANARY] + .if (TSK_STACK_CANARY > IMM12_MASK) + add r7, r7, #TSK_STACK_CANARY & ~IMM12_MASK + .endif + ldr r7, [r7, #TSK_STACK_CANARY & IMM12_MASK] #endif #ifdef CONFIG_CPU_USE_DOMAINS mcr p15, 0, r6, c3, c0, 0 @ Set domain register |