Skip to content

Commit

Permalink
With the latest PPC64 NMI IPI changes, crash_ipi_callback is found
Browse files Browse the repository at this point in the history
multiple times on the stack of active non-panic tasks.  Ensure that
the symbol reference relates to an actual backtrace stack frame.
([email protected])
  • Loading branch information
Dave Anderson committed Dec 13, 2017
1 parent 264f22d commit ed2abb4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ppc64.c
Original file line number Diff line number Diff line change
Expand Up @@ -2337,6 +2337,14 @@ ppc64_get_dumpfile_stack_frame(struct bt_info *bt_in, ulong *nip, ulong *ksp)
*nip = *up;
*ksp = bt->stackbase +
((char *)(up) - 16 - bt->stackbuf);
/*
* Check whether this symbol relates to a
* backtrace or not
*/
ur_ksp = *(ulong *)&bt->stackbuf[(*ksp) - bt->stackbase];
if (!INSTACK(ur_ksp, bt))
continue;

return TRUE;
}
}
Expand Down

0 comments on commit ed2abb4

Please sign in to comment.