[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=whF-ur-8B5_8xgm0h9_=yX_Rz0Owjo4ghRwYVnKr-3z5Q@mail.gmail.com>
Date: Mon, 8 Jan 2024 16:30:36 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Kees Cook <keescook@...omium.org>
Cc: linux-kernel@...r.kernel.org, Alexey Dobriyan <adobriyan@...il.com>,
Josh Triplett <josh@...htriplett.org>
Subject: Re: [GIT PULL] execve updates for v6.8-rc1
On Mon, 8 Jan 2024 at 16:19, Linus Torvalds
<torvalds@...ux-foundation.org> wrote:
>
> Anyway, I want to repeat: this patch is UNTESTED. It compiles for me.
Actually, I take that back. I did a clang build, and clang noted that
my "remove the retval initialization as unnecessary" was wrong,
because the
if (!bprm->fdpath)
goto out_free;
code path in alloc_bprm() still wanted that initial -ENOMEM initialization.
So you need to fix the
int retval;
in alloc_bprm() to be back to the original
int retval = -ENOMEM;
but then it might all work.
Again - note the "might". Somebody needs to actually test it. I may
try to do that in between pulls.
Linus
Powered by blists - more mailing lists