Skip to content

Commit 62788b0

Browse files
committed
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rmk/linux
Pull ARM fix from Russell King: - clear stale KASan stack poison when a CPU resumes * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rmk/linux: ARM: 9381/1: kasan: clear stale stack poison
2 parents 1bbc991 + c423868 commit 62788b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/arm/kernel/sleep.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ cpu_resume_after_mmu:
127127
instr_sync
128128
#endif
129129
bl cpu_init @ restore the und/abt/irq banked regs
130+
#if defined(CONFIG_KASAN) && defined(CONFIG_KASAN_STACK)
131+
mov r0, sp
132+
bl kasan_unpoison_task_stack_below
133+
#endif
130134
mov r0, #0 @ return zero on success
131135
ldmfd sp!, {r4 - r11, pc}
132136
ENDPROC(cpu_resume_after_mmu)

0 commit comments

Comments
 (0)