kernel/arch/parisc/kernel/traps.c
.. .. @@ -268,7 +268,7 @@ 268 268 panic("Fatal exception"); 269 269 270 270 oops_exit(); 271 - do_exit(SIGSEGV);271 + make_task_dead(SIGSEGV);272 272 } 273 273 274 274 /* gdb uses break 4,8 */ .. .. @@ -305,8 +305,8 @@ 305 305 #endif 306 306 307 307 #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)) {310 310 kgdb_handle_exception(9, SIGTRAP, 0, regs); 311 311 return; 312 312 }