]> www.infradead.org Git - users/jedix/linux-maple.git/commit
um: remove copy_from_kernel_nofault_allowed
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 10 Feb 2025 16:09:26 +0000 (17:09 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 18 Mar 2025 10:03:29 +0000 (11:03 +0100)
commit84a6fc378471fbeaf48f8604566a5a33a3d63c18
tree8e4ca7568c50419eb636260168dd5890f1d6fb25
parentd1d7f01f7cd35e16c6bcef5a0e31988b5c9980f9
um: remove copy_from_kernel_nofault_allowed

There is no need to override the default version of this function
anymore as UML now has proper _nofault memory access functions.

Doing this also fixes the fact that the implementation was incorrect as
using mincore() will incorrectly flag pages as inaccessible if they were
swapped out by the host.

Fixes: f75b1b1bedfb ("um: Implement probe_kernel_read()")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20250210160926.420133-3-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/shared/os.h
arch/um/kernel/Makefile
arch/um/kernel/maccess.c [deleted file]
arch/um/os-Linux/process.c