summaryrefslogtreecommitdiff
path: root/mm/page_idle.c
diff options
context:
space:
mode:
authorVincent Minet <v.minet@criteo.com>2020-05-08 00:14:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-20 08:20:13 +0200
commit2fffdf4dded1032d8ab974567dfc59d754b94c94 (patch)
treeb0970c57afd8967e34bb437614bc993bbd873b1d /mm/page_idle.c
parent44ee727013d55c964616d5b8d26cc6a20d699f67 (diff)
umh: fix memory leak on execve failure
[ Upstream commit db803036ada7d61d096783726f9771b3fc540370 ] If a UMH process created by fork_usermode_blob() fails to execute, a pair of struct file allocated by umh_pipe_setup() will leak. Under normal conditions, the caller (like bpfilter) needs to manage the lifetime of the UMH and its two pipes. But when fork_usermode_blob() fails, the caller doesn't really have a way to know what needs to be done. It seems better to do the cleanup ourselves in this case. Fixes: 449325b52b7a ("umh: introduce fork_usermode_blob() helper") Signed-off-by: Vincent Minet <v.minet@criteo.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/page_idle.c')
0 files changed, 0 insertions, 0 deletions