aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorBenjamin Berg <[email protected]>2025-01-13 09:41:07 +0000
committerRichard Weinberger <[email protected]>2025-02-12 22:40:45 +0000
commitf82a9e7b9fa922bb9cccb00aae684a27b79e6df7 (patch)
tree333f0d07cf0ee807ebd924ddedd87e7ab6b114a3 /net/unix/garbage.c
parentum: properly align signal stack on x86_64 (diff)
downloadkernel-f82a9e7b9fa922bb9cccb00aae684a27b79e6df7.tar.gz
kernel-f82a9e7b9fa922bb9cccb00aae684a27b79e6df7.zip
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: 32e8eaf263d9 ("um: use execveat to create userspace MMs") Reported-by: Glenn Washburn <[email protected]> Closes: https://lore.kernel.org/20250108022404.05e0de1e@crass-HP-ZBook-15-G2 Signed-off-by: Benjamin Berg <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions