Commit f885cde7 authored by Andrey Konovalov's avatar Andrey Konovalov Committed by Vincenzo Frascino
Browse files

kasan: remove __kasan_unpoison_stack

There's no need for __kasan_unpoison_stack() helper, as it's only
currently used in a single place. Removing it also removes unneeded

No functional changes.

Signed-off-by: default avatarAndrey Konovalov <>
Reviewed-by: default avatarDmitry Vyukov <>
parent 871ee6cb
......@@ -59,18 +59,12 @@ void kasan_disable_current(void)
static void __kasan_unpoison_stack(struct task_struct *task, const void *sp)
void *base = task_stack_page(task);
size_t size = sp - base;
kasan_unpoison_memory(base, size);
/* Unpoison the entire stack for a task. */
void kasan_unpoison_task_stack(struct task_struct *task)
__kasan_unpoison_stack(task, task_stack_page(task) + THREAD_SIZE);
void *base = task_stack_page(task);
kasan_unpoison_memory(base, THREAD_SIZE);
/* Unpoison the stack for the current task beyond a watermark sp value. */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment