Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virtme: always print kernel panic / oops in interactive mode
As mentioned in #217 it would be nice to always print the output of critical kernel errors (oops / panic), instead of suppressing all the kernel logs completely by default. Therefore, keep suppressing the boot kernel log, but always dump panic/oops to stderr by default when running in interactive mode. Example with this change applied: arighi@virtme-ng~/s/linux (master)> vng _ _ __ _(_)_ __| |_ _ __ ___ ___ _ __ __ _ \ \ / / | __| __| _ _ \ / _ \_____| _ \ / _ | \ V /| | | | |_| | | | | | __/_____| | | | (_| | \_/ |_|_| \__|_| |_| |_|\___| |_| |_|\__ | |___/ kernel version: 6.13.0-virtme x86_64 (CTRL+d to exit) arighi@virtme-ng~/s/linux (master)> echo c | sudo tee /proc/sysrq-trigger [ 8.923672] sysrq: Trigger a crash [ 8.923980] Kernel panic - not syncing: sysrq triggered crash [ 8.924183] CPU: 0 UID: 0 PID: 198 Comm: tee Not tainted 6.13.0-virtme #2 [ 8.924632] Call Trace: [ 8.924704] <TASK> [ 8.924783] panic+0x349/0x3b0 [ 8.925055] sysrq_handle_crash+0x36/0x80 [ 8.925181] __handle_sysrq+0xed/0x270 [ 8.925274] write_sysrq_trigger+0x6a/0x90 [ 8.925380] proc_reg_write+0x56/0xa0 [ 8.925489] vfs_write+0x105/0x590 [ 8.925600] ksys_write+0x74/0xf0 [ 8.925682] do_syscall_64+0xbb/0x1d0 [ 8.925767] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 8.925891] RIP: 0033:0x7fdfed54ba84 Signed-off-by: Andrea Righi <[email protected]>
- Loading branch information