Files
linux/arch/powerpc/kernel
Shivang Upadhyay 6ed8332639 ppc/fadump: invoke kmsg_dump in fadump panic path
fadump is registered in panic_notifier_list and gets triggered before
kmsg_dump_desc() in the panic path. As a result, kmsg_dumpers such as
pstore are not executed during fadump crashes.

This is problematic because pstore provides a critical fallback mechanism
for crash analysis. When fadump fails to successfully reboot the system
or capture a dump, pstore logs may be the only available information from
the crashed kernel. Without invoking kmsg_dump_desc() in the fadump path,
we lose this valuable diagnostic data.

Invoke kmsg_dump_desc() from the fadump panic handler, but only when
fadump is actually registered (checked via should_fadump_crash()). This
ensures kmsg_dumpers are called without duplicating the call that occurs
later in panic() when fadump is not active.

The call is placed before crash_fadump() to ensure logs are captured
before the system attempts to trigger the firmware-assisted dump.

Reported-by: Shirisha G <shirisha@linux.ibm.com>
Suggested-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Shivang Upadhyay <shivangu@linux.ibm.com>
Tested-by: Shirisha G <shirisha@linux.ibm.com>
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
Reviewed-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260412113057.46090-1-shivangu@linux.ibm.com
2026-06-02 11:24:32 +05:30
..
2026-05-20 06:57:14 +05:30
2025-07-26 13:07:52 +05:30
2024-06-28 22:28:47 +10:00
2026-06-02 11:24:31 +05:30
2026-04-01 09:21:06 +05:30
2024-10-29 23:01:52 +11:00
2023-10-10 13:35:55 -06:00
2026-03-27 10:19:08 -05:00
2026-05-20 06:57:14 +05:30
2026-05-20 06:57:13 +05:30
2024-10-29 23:01:52 +11:00
2025-02-26 21:15:09 +05:30