Re: [PATCH] fhandle: fix UAF due to unlocked ->mnt_ns read in may_decode_fh()

From: Jann Horn

Date: Wed Jun 03 2026 - 15:15:21 EST


On Wed, Jun 3, 2026 at 9:08 PM Jann Horn <jannh@xxxxxxxxxx> wrote:
> (And there's also that weird detail of how, for anonymous namespaces,
> the active refcount isn't used and AFAICS never actually drops to
> zero...)

(Er, nevermind, I missed that anonymous namespaces just have their
active refcount set to 0 from the start already.)