diff options
author | Nicholas Piggin <[email protected]> | 2023-01-20 11:18:20 +1000 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2023-01-21 00:06:10 +0100 |
commit | 001c28e57187570e4b5aa4492c7a957fb6d65d7b (patch) | |
tree | 5c3529c190649f91ed01c32728e2a1ffe237ef11 /scripts/gdb/linux/proc.py | |
parent | 19235e47279894b033a3ec5cf2732de634862b3a (diff) |
exit: Detect and fix irq disabled state in oops
If a task oopses with irqs disabled, this can cause various cascading
problems in the oops path such as sleep-from-invalid warnings, and
potentially worse.
Since commit 0258b5fd7c712 ("coredump: Limit coredumps to a single
thread group"), the unconditional irq enable in coredump_task_exit()
will "fix" the irq state to be enabled early in do_exit(), so currently
this may not be triggerable, but that is coincidental and fragile.
Detect and fix the irqs_disabled() condition in the oops path before
calling do_exit(), similarly to the way in_atomic() is handled.
Reported-by: Michael Ellerman <[email protected]>
Signed-off-by: Nicholas Piggin <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions