[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CABp92JB9GGbxWO0Q0QhkiQyZoYoAGmz7agaEp8VyH4ciXoELDw@mail.gmail.com>
Date: Sun, 3 Nov 2024 15:52:59 -0700
From: Tycho Andersen <tandersen@...flix.com>
To: Dan Carpenter <dan.carpenter@...aro.org>
Cc: Kees Cook <kees@...nel.org>, Eric Biederman <ebiederm@...ssion.com>,
Alexander Viro <viro@...iv.linux.org.uk>, Christian Brauner <brauner@...nel.org>, Jan Kara <jack@...e.cz>,
linux-mm@...ck.org, linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH next] exec: Fix a NULL vs IS_ERR() test in bprm_add_fixup_comm()
On Sat, Nov 2, 2024 at 3:31 AM Dan Carpenter <dan.carpenter@...aro.org> wrote:
>
> The strndup_user() function doesn't return NULL, it returns error
> pointers. Fix the check to match.
>
> Fixes: 7bdc6fc85c9a ("exec: fix up /proc/pid/comm in the execveat(AT_EMPTY_PATH) case")
> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
Oof, thanks.
Reviewed-by: Tycho Andersen <tandersen@...flix.com>
Powered by blists - more mailing lists