[PATCH v3 0/4] sys_info: prevent duplicate backtraces
From: Bradley Morgan <hidden>
Date: 2026-06-25 15:26:17
Also in:
lkml, stable
From: Bradley Morgan <hidden>
Date: 2026-06-25 15:26:17
Also in:
lkml, stable
Some callers handle SYS_INFO_ALL_BT themselves before calling sys_info().
When they strip that bit, an all_bt-only mask becomes zero and sys_info(0)
falls back to kernel_si_mask, potentially duplicating output.
This series adds sys_info_with_filter() to filter specific bits without
triggering the kernel_si_mask fallback.
Changes since v2:
- Use sys_info_with_filter() instead of sys_info_without_all_bt() per
Petr's suggestion
- Filter applied at __sys_info() level to handle kernel_si_mask correctly
- Added panic.c conversion
Bradley Morgan (4):
sys_info: add helper for callers that print some sys_info on their own
watchdog: use sys_info_with_filter() to avoid duplicate backtraces
powerpc/watchdog: use sys_info_with_filter() to avoid duplicate
backtraces
panic: use sys_info_with_filter() to avoid duplicate backtraces
arch/powerpc/kernel/watchdog.c | 12 ++++++++----
include/linux/sys_info.h | 1 +
kernel/panic.c | 2 +-
kernel/watchdog.c | 12 ++++++++----
lib/sys_info.c | 20 ++++++++++++++++++--
5 files changed, 36 insertions(+), 11 deletions(-)
--
2.53.0