Linus Torvalds writes: (Summary) On Fri, Mar 9, 2018 at 10:48 AM, Andy Lutomirski <luto@amacapital.net> wrote:
[...]
ei already has this working for umh.[...]
kernel-internal tmpfs file, execveat it, then unlink it. Just wait synchronously (until the exit), and just use deny_write_access(). The "synchronous wait" means that you don't have the semantic change (and really., it's *required* anyway for the whole mutual exclusion against another thread racing to load the same module), and the deny_write_access() means that we don't neeed to make another copy. deny_write_access() means that we don't neeed to make another copy.