diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2022-11-27 13:49:40 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-12-02 07:54:09 +0100 |
commit | 90f1b43196c5e79f6c986a359011a19857984c27 (patch) | |
tree | af5ff5534895e1da6b5672b58a7292726e5ba8d0 /arch/powerpc/kernel/stacktrace.c | |
parent | powerpc: split validate_sp into two functions (diff) | |
download | linux-90f1b43196c5e79f6c986a359011a19857984c27.tar.xz linux-90f1b43196c5e79f6c986a359011a19857984c27.zip |
powerpc: allow minimum sized kernel stack frames
This affects only 64-bit ELFv2 kernels, and reduces the minimum
asm-created stack frame size from 112 to 32 byte on those kernels.
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-16-npiggin@gmail.com
Diffstat (limited to '')
-rw-r--r-- | arch/powerpc/kernel/stacktrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/stacktrace.c b/arch/powerpc/kernel/stacktrace.c index 1dbbf30f265e..5de8597eaab8 100644 --- a/arch/powerpc/kernel/stacktrace.c +++ b/arch/powerpc/kernel/stacktrace.c @@ -94,7 +94,7 @@ int __no_sanitize_address arch_stack_walk_reliable(stack_trace_consume_fn consum * idle tasks have a custom stack layout, * c.f. cpu_idle_thread_init(). */ - stack_end -= STACK_FRAME_OVERHEAD; + stack_end -= STACK_FRAME_MIN_SIZE; } if (task == current) |