]> git.baikalelectronics.ru Git - kernel.git/commit
freezer,umh: Fix call_usermode_helper_exec() vs SIGKILL
authorPeter Zijlstra <peterz@infradead.org>
Fri, 3 Feb 2023 14:31:11 +0000 (15:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:59:50 +0000 (12:59 +0100)
commit2a5a5b81ed5ee1d5bbc273d31c49c62c169965b0
tree7d65ac0cffe057b39fa9ed60a6a065a337ebf8ac
parentda478447e9e767efb73c4f04645557107d147b92
freezer,umh: Fix call_usermode_helper_exec() vs SIGKILL

commit 3aa2cdf64405a8a6f632e7120b7cf0ec2fb3bc1a upstream.

Tetsuo-San noted that commit c1c703291ea4 ("freezer,sched: Rewrite
core freezer logic") broke call_usermodehelper_exec() for the KILLABLE
case.

Specifically it was missed that the second, unconditional,
wait_for_completion() was not optional and ensures the on-stack
completion is unused before going out-of-scope.

Fixes: c1c703291ea4 ("freezer,sched: Rewrite core freezer logic")
Reported-by: syzbot+6cd18e123583550cf469@syzkaller.appspotmail.com
Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Debugged-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/Y90ar35uKQoUrLEK@hirez.programming.kicks-ass.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/umh.c