Skip to content

powerpc: Modernize unhandled signals message

Murilo Opsfelder Araujo linuxppc-dev lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 9 repliesIn review
  2. v39 patches 8 repliesSuperseded
  3. v210 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v17 patches12 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6powerpc/traps: Print unhandled signals in a separate functionarch/powerpc/kernel/traps.c+16 -101 reply
2/6powerpc/traps: Use an explicit ratelimit state for show_signal_msg()arch/powerpc/kernel/traps.c+16 -50 replies
3/6powerpc/traps: Use %lx format in show_signal_msg()arch/powerpc/kernel/traps.c+3 -80 replies
4/6powerpc/traps: Print VMA for unhandled signalsarch/powerpc/kernel/traps.c+19 -20 replies
5/6powerpc: Add show_user_instructions()arch/powerpc/include/asm/stacktrace.h arch/powerpc/kernel/process.c+53 -08 replies
6/6powerpc/traps: Show instructions on exceptionsarch/powerpc/kernel/traps.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/6] powerpc: Modernize unhandled signals message

Hi, everyone.

This series was inspired by the need to modernize and display more informative messages about unhandled signals.

The "unhandled signal NN" is not very informative. We thought it would be helpful adding a human-readable message describing what the signal number means, printing the VMA address, and dumping the instructions.

Before this series:

pandafault32[4724]: unhandled signal 11 at 100005e4 nip 10000444 lr 0fe31ef4 code 2

pandafault64[4725]: unhandled signal 11 at 0000000010000718 nip 0000000010000574 lr 00007fff7faa7a6c code 2

After this series:

pandafault32[4753]: segfault (11) at 100005e4 nip 10000444 lr fe31ef4 code 2 in pandafault32[10000000+10000] pandafault32[4753]: code: 4bffff3c 60000000 60420000 4bffff30 9421ffd0 93e1002c 7c3f0b78 3d201000 pandafault32[4753]: code: 392905e4 913f0008 813f0008 39400048 <99490000> 39200000 7d234b78 397f0030

pandafault64[4754]: segfault (11) at 10000718 nip 10000574 lr 7fffb0007a6c code 2 in pandafault64[10000000+10000] pandafault64[4754]: code: e8010010 7c0803a6 4bfffef4 4bfffef0 fbe1fff8 f821ffb1 7c3f0b78 3d22fffe pandafault64[4754]: code: 39298818 f93f0030 e93f0030 39400048 <99490000> 39200000 7d234b78 383f0050

Link to v3:

https://lore.kernel.org/lkml/[email protected]/

v3..v4:

- Added new show_user_instructions() based on the existing show_instructions()
- Updated commit messages
- Replaced signals names table with a tiny function that returns a literal string for each signal number

Cheers!

Murilo Opsfelder Araujo (6):
powerpc/traps: Print unhandled signals in a separate function powerpc/traps: Use an explicit ratelimit state for show_signal_msg() powerpc/traps: Use %lx format in show_signal_msg() powerpc/traps: Print VMA for unhandled signals
powerpc: Add show_user_instructions()
powerpc/traps: Show instructions on exceptions

 arch/powerpc/include/asm/stacktrace.h | 13 +++++++
 arch/powerpc/kernel/process.c         | 40 +++++++++++++++++++++
 arch/powerpc/kernel/traps.c           | 52 +++++++++++++++++++++------
 3 files changed, 95 insertions(+), 10 deletions(-)
 create mode 100644 arch/powerpc/include/asm/stacktrace.h
Signature · 1 line
2.17.1