diff options
author | Sudip Mukherjee <[email protected]> | 2020-04-20 18:14:20 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-04-21 11:11:56 -0700 |
commit | db973a7289dad24e6c017dcedc6aee886579dc3a (patch) | |
tree | abfece7553c0628651f012cf1ea46889c272c900 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 94b7cc01da5a3cc4f3da5e0ff492ef008bb555d6 (diff) |
coredump: fix null pointer dereference on coredump
If the core_pattern is set to "|" and any process segfaults then we get
a null pointer derefernce while trying to coredump. The call stack shows:
RIP: do_coredump+0x628/0x11c0
When the core_pattern has only "|" there is no use of trying the
coredump and we can check that while formating the corename and exit
with an error.
After this change I get:
format_corename failed
Aborting core
Fixes: 315c69261dd3 ("coredump: split pipe command whitespace before expanding template")
Reported-by: Matthew Ruffell <[email protected]>
Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Cc: Paul Wise <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Neil Horman <[email protected]>
Cc: <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions