call_usermodehelper: no need to unblock the signals
PATCH 1/3 call_usermodehelper: no need to unblock the signals
____call_usermodehelper() correctly calls flush_signal_handlers() to set SIG_DFL, but sigemptyset(->blocked) and recalc_sigpending() are not needed.
This kthread was forked by workqueue thread, all signals must be unblocked and ignored, no pending signal is possible.
Signed-off-by Oleg Nesterov <[email protected]>
---
kernel/kmod.c | 3 --- 1 file changed, 3 deletions(-)
kernel/kmod.c renamed from kernel/kmod.c~1_SIGNALS +0 -3
@@ -153,11 +153,8 @@ static int ____call_usermodehelper(voidstruct subprocess_info *sub_info = data;int retval; -/* Unblock all signals */ spin_lock_irq (¤t->sighand->siglock);flush_signal_handlers (current,1 ); -sigemptyset (¤t->blocked); -recalc_sigpending ();spin_unlock_irq (¤t->sighand->siglock);/* We can run anywhere, unlike our parent keventd(). */