Page 1 of 1

Keyboard interrupt handler panic

PostPosted: Thu Jul 18, 2002 8:30 am
by goodbyte
After upgrading to grsec-1.9.5 my kernel panics when pressing ctrl+alt+delete or ctrl+alt+end (my own keyboard interrupt for halting the system).
Anybody having the same problem?

PostPosted: Fri Jul 19, 2002 2:17 pm
by spender
i haven't seen this on any of my systems..

-Brad

Done some tracing...

PostPosted: Sun Jul 21, 2002 2:57 pm
by goodbyte
I wrote down my kernel panic message and traced the call stack, what I came up with is that when I press ctrl+alt+del, the function ctrl_alt_del will send a sig_kill to initd. This results in gr_check_protected_task beeing called from an interrupt handler, and that in combination with my kill protection of initd will cause a kernel panic. I solved this issue by making the check for (current->pid > 1) before the call to gr_check_protected_task at signal.c:683 (the check was already there, I just moved it).