[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wg15ph=mEo2SqcN+6V1GYPq9U+_nCaNaDPbiPisKOj=ug@mail.gmail.com>
Date: Thu, 11 Jan 2024 09:37:41 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: Josh Triplett <josh@...htriplett.org>, Kees Cook <kees@...nel.org>,
Kees Cook <keescook@...omium.org>, linux-kernel@...r.kernel.org,
Alexey Dobriyan <adobriyan@...il.com>
Subject: Re: [GIT PULL] execve updates for v6.8-rc1
On Thu, 11 Jan 2024 at 01:47, Al Viro <viro@...iv.linux.org.uk> wrote:
>
> Two things, both related to ->atomic_open():
Yeah, I was staring at the atomic_open() cases, and just thought that
we could allocate the filp early for that.
It wouldn't matter for normal filesystems, so from a performance
standpoint it would be ok.
My handwavy thinking was that we'd remove 'filp' from the arguments we
pass around, and instead make it be a member of 'struct nameidata',
and then the different codepaths could decide that "now I need the
filp, so I'll instantiate it".
But then I looked more at the code, and it seemed to get quite messy,
quite fast.
Linus
Powered by blists - more mailing lists