hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/parisc/kernel/traps.c
....@@ -268,7 +268,7 @@
268268 panic("Fatal exception");
269269
270270 oops_exit();
271
- do_exit(SIGSEGV);
271
+ make_task_dead(SIGSEGV);
272272 }
273273
274274 /* gdb uses break 4,8 */
....@@ -305,8 +305,8 @@
305305 #endif
306306
307307 #ifdef CONFIG_KGDB
308
- if (unlikely(iir == PARISC_KGDB_COMPILED_BREAK_INSN ||
309
- iir == PARISC_KGDB_BREAK_INSN)) {
308
+ if (unlikely((iir == PARISC_KGDB_COMPILED_BREAK_INSN ||
309
+ iir == PARISC_KGDB_BREAK_INSN)) && !user_mode(regs)) {
310310 kgdb_handle_exception(9, SIGTRAP, 0, regs);
311311 return;
312312 }