Re: [PATCH] proc: Fix broken error paths for namespace links
From: Jann Horn
Date: Mon Jul 06 2026 - 17:00:18 EST
On Mon, Jul 6, 2026 at 10:56 PM Mateusz Guzik <mjguzik@xxxxxxxxx> wrote:
> On Mon, Jul 06, 2026 at 08:22:42PM +0200, Jann Horn wrote:
> > Don't return the return value of down_read_killable() (0) when a ptrace
> > access check fails, return -EACCES as intended.
> >
>
> This is the kind of a bug LLMs can find very reliably.
>
> In fact Sashiko did report it, along with something extra to take a look
> at:
>
> https://sashiko.dev/#/patchset/20260518-procfs-lockfix-part1-v1-0-5c3d20e0ac33%40google.com
(that is an older version of the series, there was already a fixup
https://lore.kernel.org/all/20260604155806.1402880-1-jannh@xxxxxxxxxx/)