mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] um: Set parent-death signal for sub-processes
@ 2024-10-24 14:28 Tiwei Bie
  2024-10-24 14:28 ` [PATCH 1/4] um: Add os_set_pdeathsig helper function Tiwei Bie
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Tiwei Bie @ 2024-10-24 14:28 UTC (permalink / raw)
  To: richard, anton.ivanov, johannes; +Cc: linux-um, linux-kernel, Tiwei Bie

The ubd io and write_sigio threads/processes may leak e.g. when
the main process is killed by "kill -9". Fix it by setting the
parent-death signal for them.

Tiwei Bie (4):
  um: Add os_set_pdeathsig helper function
  um: Set parent-death signal for ubd io thread/process
  um: Set parent-death signal for write_sigio thread/process
  um: Use os_set_pdeathsig helper in winch thread/process

 arch/um/drivers/chan_user.c | 3 +--
 arch/um/drivers/ubd_kern.c  | 1 +
 arch/um/include/shared/os.h | 2 ++
 arch/um/os-Linux/process.c  | 6 ++++++
 arch/um/os-Linux/sigio.c    | 1 +
 5 files changed, 11 insertions(+), 2 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-25  9:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-24 14:28 [PATCH 0/4] um: Set parent-death signal for sub-processes Tiwei Bie
2024-10-24 14:28 ` [PATCH 1/4] um: Add os_set_pdeathsig helper function Tiwei Bie
2024-10-24 14:28 ` [PATCH 2/4] um: Set parent-death signal for ubd io thread/process Tiwei Bie
2024-10-24 14:28 ` [PATCH 3/4] um: Set parent-death signal for write_sigio thread/process Tiwei Bie
2024-10-24 14:28 ` [PATCH 4/4] um: Use os_set_pdeathsig helper in winch thread/process Tiwei Bie
2024-10-25  9:37 ` [PATCH 0/4] um: Set parent-death signal for sub-processes Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®