]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
um: Prohibit the VM_CLONE flag in run_helper_thread()
authorTiwei Bie <tiwei.btw@antgroup.com>
Wed, 19 Mar 2025 13:55:23 +0000 (21:55 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 20 Mar 2025 08:26:38 +0000 (09:26 +0100)
commit69f52573c24de9d2919f83e3b3b396a09118b7c4
treecda5cd3e4ba7728c9d95e48c8f615640100e7e96
parentd295beeed2552a987796d627ba7d0985b1e2d72f
um: Prohibit the VM_CLONE flag in run_helper_thread()

Directly creating helper threads with VM_CLONE using clone can
compromise the thread safety of errno. Since all these helper
threads have been converted to use os_run_helper_thread(), let's
prevent using this flag in run_helper_thread().

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250319135523.97050-5-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/os-Linux/helper.c