mirror of https://github.com/torvalds/linux.git
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:
|
||
|---|---|---|
| .. | ||
| drivers | ||
| skas | ||
| Makefile | ||
| elf_aux.c | ||
| execvp.c | ||
| file.c | ||
| helper.c | ||
| internal.h | ||
| irq.c | ||
| main.c | ||
| mem.c | ||
| process.c | ||
| registers.c | ||
| sigio.c | ||
| signal.c | ||
| start_up.c | ||
| time.c | ||
| tty.c | ||
| umid.c | ||
| user_syms.c | ||
| util.c | ||