[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <170595678126.1295697.13621931577825110324.b4-ty@chromium.org>
Date: Mon, 22 Jan 2024 12:53:03 -0800
From: Kees Cook <keescook@...omium.org>
To: Bernd Edlinger <bernd.edlinger@...mail.de>
Cc: Kees Cook <keescook@...omium.org>,
Alexander Viro <viro@...iv.linux.org.uk>,
Christian Brauner <brauner@...nel.org>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
linux-fsdevel@...r.kernel.org,
linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH v3] Fix error handling in begin_new_exec
On Mon, 22 Jan 2024 19:34:21 +0100, Bernd Edlinger wrote:
> If get_unused_fd_flags() fails, the error handling is incomplete
> because bprm->cred is already set to NULL, and therefore
> free_bprm will not unlock the cred_guard_mutex.
> Note there are two error conditions which end up here,
> one before and one after bprm->cred is cleared.
>
>
> [...]
Applied to for-next/execve, thanks!
[1/1] Fix error handling in begin_new_exec
https://git.kernel.org/kees/c/84c39ec57d40
Take care,
--
Kees Cook
Powered by blists - more mailing lists