Re: [PATCH v8 2/7] um: use execveat to create userspace MMs

2024-09-19 Thread Tiwei Bie
On 2024/7/5 03:05, Benjamin Berg wrote: [...] > static int userspace_tramp(void *stack) > { > - struct sigaction sa; > - void *addr; > - int fd; > + char *const argv[] = { "uml-userspace", NULL }; > + int pipe_fds[2]; > unsigned long long offset; > - unsigned long se

[PATCH v8 2/7] um: use execveat to create userspace MMs

2024-07-04 Thread Benjamin Berg
From: Benjamin Berg Using clone will not undo features that have been enabled by libc. An example of this already happening is rseq, which could cause the kernel to read/write memory of the userspace process. In the future the standard library might also use mseal by default to protect itself, wh