linux/arch/um/os-Linux
Benjamin Berg 5b37d2370d 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>
History 2025-04-10 14:39:25 +02:00
..
drivers um: Make local functions and variables static 2024-04-22 21:43:03 +02:00
skas um: Remove unused mm_fd field from mm_id 2024-09-12 20:36:22 +02:00
elf_aux.c um: Add an internal header shared among the user code 2024-04-30 14:16:44 +02:00
execvp.c um: Allow builds with Clang 2022-03-21 08:13:03 -07:00
file.c um: remove variable stack array in os_rcv_fd_msg() 2024-09-12 19:51:26 +02:00
helper.c um: Fix naming clash between UML and scheduler 2024-01-04 21:22:27 +01:00
internal.h um: Add an internal header shared among the user code 2024-04-30 14:16:44 +02:00
irq.c um: Remove the unneeded result variable 2023-02-01 22:11:24 +01:00
main.c um: Add an internal header shared among the user code 2024-04-30 14:16:44 +02:00
Makefile kbuild: remove --include-dir MAKEFLAG from top Makefile 2023-02-05 18:51:22 +09:00
mem.c um: Add an internal header shared among the user code 2024-04-30 14:16:44 +02:00
process.c um: remove copy_from_kernel_nofault_allowed 2025-04-10 14:39:25 +02:00
registers.c um: Remove unused register save/restore functions 2024-01-05 16:28:57 +01:00
sigio.c Revert "um: Use swap() to make code cleaner" 2023-07-27 13:07:03 -07:00
signal.c um: time-travel: fix signal blocking race/hang 2024-07-03 17:09:20 +02:00
start_up.c um: remove LDT support 2024-07-03 17:09:49 +02: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: Convert strscpy() usage to 2-argument style 2024-02-20 20:47:32 -08:00
user_syms.c Revert "[PATCH] uml: export symbols added by GCC hardened" 2023-06-15 04:47:04 +09:00
util.c um: Don't use vfprintf() for os_info() 2024-01-04 23:45:17 +01:00