]> www.infradead.org Git - users/dwmw2/linux.git/commit
um: Set parent death signal for winch thread/process
authorBenjamin Berg <benjamin.berg@intel.com>
Thu, 19 Sep 2024 12:45:05 +0000 (14:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 10 Oct 2024 11:37:21 +0000 (13:37 +0200)
commitfdb2ecd35d327a1fc6bba69b97f85b494e1f4b6b
tree72863b08a547fd22394d0b4fa7876aaef71bb13e
parent801e00d3a1b78b7f71675fae79946ff4aa3ee070
um: Set parent death signal for winch thread/process

The winch "thread" is really a separate process. Using prctl to set
PR_SET_PDEATHSIG ensures that this separate thread will be killed if the
UML kernel itself dies unexpectedly and does not perform proper cleanup.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20240919124511.282088-5-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/chan_user.c