]> www.infradead.org Git - users/dwmw2/linux.git/commit
um: Do not flush MM in flush_thread
authorBenjamin Berg <benjamin.berg@intel.com>
Wed, 3 Jul 2024 13:45:33 +0000 (15:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 15:09:49 +0000 (17:09 +0200)
commit5168f6b4a4d8fb5f731f2107924f72dffeae84fc
tree5b3f6caa14658ba1956d57eae0a92b4606a3950f
parent3c83170d7cdf3df12e430c429462776dcb52ff87
um: Do not flush MM in flush_thread

There should be no need to flush the memory in flush_thread. Doing this
likely worked around some issue where memory was still incorrectly
mapped when creating or cloning an MM.

With the removal of the special clone path, that isn't relevant anymore.
However, add the flush into MM initialization so that any new userspace
MM is guaranteed to be clean.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20240703134536.1161108-10-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/kernel/exec.c
arch/um/kernel/skas/mmu.c