thehajime / linux

Linux kernel source tree
https://lkl.github.io/
Other
3 stars 1 forks source link

null poniter access crashes host kernel (not process on UM) #10

Closed thehajime closed 1 week ago

thehajime commented 1 month ago

=> try testing w/ other nommu arch (arm?)

thehajime commented 3 weeks ago

seems that SIGIO/(SIGWINCH, etc) is blocked during hard_handler and do_exit/userspace doesn't return the handler as it's noreturn, so, SIGIO remains blocked after SIGSEGV.

change_sig(SIGIO) or restoring masks after the exit should fix the issue.

thehajime commented 3 weeks ago

it is not a crash actually, but no console response after sigsegv.

thehajime commented 2 weeks ago

tentatively, I unblock signals (IO/ALRM/WINCH), when SIGSEGV is delivered && is_user==1, at the end of sig handler (hard_handler).

thehajime commented 1 week ago

not sure if this is a right fix but close it for the moment.