From: Tiwei Bie Date: Thu, 24 Oct 2024 14:28:26 +0000 (+0800) Subject: um: Set parent-death signal for ubd io thread/process X-Git-Tag: v6.13-rc1~18^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b5e6c0f5a9199c69af81ac5bedc512ee7dc20b3;p=thirdparty%2Fkernel%2Flinux.git um: Set parent-death signal for ubd io thread/process The ubd io thread is not really a traditional thread. Set the parent-death signal for it to ensure that it will be killed if the UML kernel dies unexpectedly without proper cleanup. Signed-off-by: Tiwei Bie Link: https://patch.msgid.link/20241024142828.2612828-3-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg --- diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 7f28ec1929dc0..2b8d04e67600a 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -1499,6 +1499,7 @@ int io_thread(void *arg) { int n, count, written, res; + os_set_pdeathsig(); os_fix_helper_signals(); while(1){