linux-yocto/arch/um/os-Linux
Benjamin Berg b0686d0d76 um: remove copy_from_kernel_nofault_allowed
[ Upstream commit 84a6fc3784 ]

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: f75b1b1bed ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:33:36 +02:00
..
drivers um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
skas um: Replace to_phys() and to_virt() with less generic function names 2022-07-17 23:44:40 +02:00
elf_aux.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
execvp.c um: Allow builds with Clang 2022-03-21 08:13:03 -07:00
file.c um: Fix WRITE_ZEROES in the UBD Driver 2022-03-11 10:46:34 +01:00
helper.c um: Fix naming clash between UML and scheduler 2024-02-05 20:12:57 +00:00
irq.c um: Monitor error events in IRQ controller 2020-12-13 22:38:28 +01:00
main.c um: Don't trace irqflags during shutdown 2019-11-25 22:42:57 +01:00
Makefile um: Increase stack frame size threshold for signal.c 2020-12-13 22:22:00 +01:00
mem.c um: Fix the declaration of kasan_map_memory 2024-06-12 11:03:48 +02:00
process.c um: remove copy_from_kernel_nofault_allowed 2025-04-10 14:33:36 +02:00
registers.c um: registers: Rename function names to avoid conflicts and build problems 2021-12-21 21:22:19 +01:00
sigio.c Revert "um: Use swap() to make code cleaner" 2023-08-03 10:24:15 +02:00
signal.c um: time-travel: fix signal blocking race/hang 2024-08-03 08:49:47 +02:00
start_up.c um: registers: Rename function names to avoid conflicts and build problems 2021-12-21 21:22:19 +01:00
time.c um: Remove unused timeval_to_ns() function 2022-03-11 10:49:50 +01:00
tty.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
umid.c um: remove unused variable 2022-07-17 23:26:27 +02:00
user_syms.c um: Enable FORTIFY_SOURCE 2022-09-07 16:37:27 -07:00
util.c um: Don't use vfprintf() for os_info() 2024-02-05 20:12:57 +00:00