mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
powerpc: split validate_sp into two functions
Most callers just want to validate an arbitrary kernel stack pointer, some need a particular size. Make the size case the exceptional one with an extra function. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20221127124942.1665522-15-npiggin@gmail.com
This commit is contained in:
committed by
Michael Ellerman
parent
edbd0387f3
commit
4cefb0f6c5
@@ -43,7 +43,7 @@ void __no_sanitize_address arch_stack_walk(stack_trace_consume_fn consume_entry,
|
||||
unsigned long *stack = (unsigned long *) sp;
|
||||
unsigned long newsp, ip;
|
||||
|
||||
if (!validate_sp(sp, task, STACK_FRAME_OVERHEAD))
|
||||
if (!validate_sp(sp, task))
|
||||
return;
|
||||
|
||||
newsp = stack[0];
|
||||
|
||||
Reference in New Issue
Block a user