UML - Fix a stack corruption crash
PATCH 9/10 UML - Fix a stack corruption crash
Fix a race where signals could be handled to the parent of a new process on the kernel stack of the child, corrupting that stack, and crashing UML when the next first runs.
Signed-off-by Jeff Dike <[email protected]>
arch/um/kernel/skas/process.c +2 -1
@@ -224,9 +224,10 @@block_signals ();if (sigsetjmp (fork_buf,1 ) ==0 )new_thread_proc (stack, handler); -set_signals (flags);remove_sigstack (); + +set_signals (flags); }void thread_wait (void *sw,void *fb)