Re: [PATCH 2/2] fs: remove ksys_dup()
From: Linus Torvalds
Date: Thu Dec 12 2019 - 13:48:44 EST
On Thu, Dec 12, 2019 at 10:38 AM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> Let's not expose the kernel guts to init/*.c more than absolutely unavoidable.
Well, in this case I think it's more than justified: it removes one of
the nasty "pass user pointers from kernel space" cases.
I'd like to get to the point where "init" doesn't need set_fs() at
all. We're not there now - do_execve() is going to be painful. So
maybe we'll never be. But this gets us one step closer, at least.
Linus