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

Sasha Levin sashal at kernel.org
Sat Jun 27 16:35:32 UTC 2026


> [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



More information about the Linux-security-module-archive mailing list