Re: [PATCH v4 2/3] hwspinlock: add list of mailboxes to debugfs

Wolfram Sang <[email protected]> Sun, 26 Jul 2026 23:20:54 +0200
Newsgroups org.kernel.vger.linux-remoteproc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-renesas-soc
Message-ID <amZ6NlhFxn7Uaaww@ninjato>
> [Severity: High]
> This isn't a bug introduced by this patch, but this debugfs addition exposes
> a pre-existing lifetime issue with hwspinlock devices.
> 
> Can a concurrent device unbind cause a use-after-free here?

My next hwspinlock series will tackle the plenty of UAF issues.