diff options
| author | Sven Schnelle <svens@stackframe.org> | 2021-09-30 19:36:17 +0200 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2021-09-30 20:21:28 +0200 |
| commit | d5fd1c46a3cebbef254611682b95c315163e4620 (patch) | |
| tree | 3973635e2023a164354808f9cf0c2d782ee69a9a | |
| parent | 144857444edbc57a80533bf5c67a2f539b0d820c (diff) | |
| download | linux-staging-d5fd1c46a3cebbef254611682b95c315163e4620.tar.gz | |
parisc/unwind: call callback with toplevel address
Some of the KFENCE unit-tests fail because the stacktrace doesn't
contain the topmost function. Change the code to also call the
callback for iaoq[0].
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
| -rw-r--r-- | arch/parisc/kernel/stacktrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/parisc/kernel/stacktrace.c b/arch/parisc/kernel/stacktrace.c index 34bf6d6bf6e8f..ad04f7a88bc92 100644 --- a/arch/parisc/kernel/stacktrace.c +++ b/arch/parisc/kernel/stacktrace.c @@ -17,6 +17,10 @@ static void dump_trace(struct task_struct *task, struct stack_trace *trace) { struct unwind_frame_info info; + if (regs) + if (!fn(cookie, regs->iaoq[0])) + return; + unwind_frame_init_task(&info, task, NULL); /* unwind stack and save entries in stack_trace struct */ |
