Re: [PATCH v2 stable/linux-6.12.y 0/2] Backport Fix incorrect overlayfs mmap() and mprotect() LSM access controls

Sasha Levin <[email protected]> Sat, 27 Jun 2026 12:35:32 -0400
Newsgroups org.kernel.vger.linux-unionfs,org.kernel.vger.bpf,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-security-module,org.kernel.vger.selinux,org.kernel.vger.stable
Message-ID <[email protected]>
> [PATCH v2 stable/linux-6.12.y 0/2] Backport Fix incorrect overlayfs
> mmap() and mprotect() LSM access controls
>
> [PATCH 2/2] selinux: fix overlayfs mmap() and mprotect() access checks

Thanks for the backport. I think there's a small issue: the selinux patch calls
backing_file_user_path() with a 'const struct file *', but in 6.12 that
accessor still takes a non-const file pointer, so the build produces
const-discard warnings.

The cleanest fix is to also include the upstream prerequisite:

  4e301d858af17a ("fs: constify file ptr in backing_file accessor helpers")

--
Thanks,
Sasha