Re: [REGRESSION] secretmem: SIGBUS on memfd_secret() pages while perf record runs
From: Lorenzo Stoakes (ARM)
Date: Fri Oct 09 2026 - 08:12:13 EST
On Sun, Oct 04, 2026 at 12:29:39PM -0400, Sasha Levin wrote:
> > Since commit 97d34aa65c29 ("mm/secretmem: properly account locked
> > pages"), in v7.3-rc2 and the 6.18.52 and 7.2.5 backports, touching a
> > memfd_secret() page for the first time fails with SIGBUS while the
> > same user is running perf record, and read() into such a page fails
> > with EFAULT.
>
> Re-queued the secretmem accounting fix for 6.12, 6.6 and 6.1, per Lorenzo.
> The perf fix will be needed on these trees once it lands.
Thanks!
Perf fix sent at [0], LPC will be slowing everybody down though I expect!
--
Cheers, Lorenzo
[0]:https://lore.kernel.org/all/20261003-perf-locked-vm-fix-v1-1-d214dcaf0d76@xxxxxxxxxx/