Re: [PATCH v6 3/7] um: use execveat to create userspace MMs

2024-07-01 Thread Johannes Berg
On Wed, 2024-06-26 at 15:53 +0200, Benjamin Berg wrote: > > +static int __init init_stub_exec_fd(void) > +{ > + size_t len = 0; > + int res; > + char tmpfile[] = "/tmp/uml-userspace-XX"; That seems awkward, perhaps it should use make_tempfile() from mem.c? > + stub_e

[PATCH v6 3/7] um: use execveat to create userspace MMs

2024-06-26 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