diff options
author | Laura Abbott <labbott@redhat.com> | 2018-07-21 00:41:53 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-07-26 13:36:07 +0300 |
commit | 8a1ccfbc9e0256baafbbce85ccdb72ec89af2aab (patch) | |
tree | f1da058d47dd6f0952f4aa8143a5d2eb05f3f8ea /arch/arm64/kernel/ptrace.c | |
parent | 2c870e61132c082a03769d2ac0a2849ba33c10e3 (diff) | |
download | linux-8a1ccfbc9e0256baafbbce85ccdb72ec89af2aab.tar.xz |
arm64: Add stack information to on_accessible_stack
In preparation for enabling the stackleak plugin on arm64,
we need a way to get the bounds of the current stack. Extend
on_accessible_stack to get this information.
Acked-by: Alexander Popov <alex.popov@linux.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Laura Abbott <labbott@redhat.com>
[will: folded in fix for allmodconfig build breakage w/ sdei]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/ptrace.c')
-rw-r--r-- | arch/arm64/kernel/ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c index 299758f9b9c4..6219486fa25f 100644 --- a/arch/arm64/kernel/ptrace.c +++ b/arch/arm64/kernel/ptrace.c @@ -132,7 +132,7 @@ static bool regs_within_kernel_stack(struct pt_regs *regs, unsigned long addr) { return ((addr & ~(THREAD_SIZE - 1)) == (kernel_stack_pointer(regs) & ~(THREAD_SIZE - 1))) || - on_irq_stack(addr); + on_irq_stack(addr, NULL); } /** |