1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/arch/um/os-Linux
Benjamin Berg f82a9e7b9f um: fix execve stub execution on old host OSs
The stub execution uses the somewhat new close_range and execveat
syscalls. Of these two, the execveat call is essential, but the
close_range call is more about stub process hygiene rather than safety
(and its result is ignored).

Replace both calls with a raw syscall as older machines might not have a
recent enough kernel for close_range (with CLOSE_RANGE_CLOEXEC) or a
libc that does not yet expose both of the syscalls.

Fixes: 32e8eaf263 ("um: use execveat to create userspace MMs")
Reported-by: Glenn Washburn <development@efficientek.com>
Closes: https://lore.kernel.org/20250108022404.05e0de1e@crass-HP-ZBook-15-G2
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20250113094107.674738-1-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
2025-02-12 23:40:45 +01:00
..
drivers um: Make local functions and variables static 2024-04-22 21:43:03 +02:00
skas um: fix execve stub execution on old host OSs 2025-02-12 23:40:45 +01: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 file sync for stub data 2024-11-07 17:36:30 +01: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: Remove unused THREAD_NAME_LEN macro 2025-01-10 13:49:57 +01:00
Makefile um: restore process name 2024-10-23 09:25:55 +02:00
mem.c um: set DONTDUMP and DONTFORK flags on KASAN shadow memory 2024-11-07 17:36:30 +01:00
process.c um: Add os_set_pdeathsig helper function 2024-10-25 11:34:54 +02:00
registers.c um: switch to regset API and depend on XSTATE 2024-10-23 12:13:16 +02:00
sigio.c um: Set parent-death signal for write_sigio thread/process 2024-10-25 11:34:55 +02:00
signal.c um: move thread info into task 2024-11-12 14:50:31 +01: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: Do not propagate uml_dir parameter to kernel 2024-10-23 09:52:48 +02:00
user_syms.c Revert "[PATCH] uml: export symbols added by GCC hardened" 2023-06-15 04:47:04 +09:00
util.c um: always include kconfig.h and compiler-version.h 2024-11-07 17:36:30 +01:00