Skip to content

Commit 88959a3

Browse files
mrutland-armkees
authored andcommitted
arm64: entry: use stackleak_erase_on_task_stack()
On arm64 we always call stackleak_erase() on a task stack, and never call it on another stack. We can avoid some redundant work by using stackleak_erase_on_task_stack(), telling the stackleak code that it's being called on a task stack. Signed-off-by: Mark Rutland <[email protected]> Cc: Alexander Popov <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Kees Cook <[email protected]> Cc: Will Deacon <[email protected]> Acked-by: Catalin Marinas <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8111e67 commit 88959a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kernel/entry.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ SYM_CODE_START_LOCAL(ret_to_user)
596596
ldr x19, [tsk, #TSK_TI_FLAGS] // re-check for single-step
597597
enable_step_tsk x19, x2
598598
#ifdef CONFIG_GCC_PLUGIN_STACKLEAK
599-
bl stackleak_erase
599+
bl stackleak_erase_on_task_stack
600600
#endif
601601
kernel_exit 0
602602
SYM_CODE_END(ret_to_user)

0 commit comments

Comments
 (0)