[Devel] [PATCH hci-8.1 0/7] mm, exec: fix the MADV_DOEXEC code we carry from Oracle

Konstantin Khorenko khorenko at virtuozzo.com
Wed Nov 4 22:21:36 MSK 2026


On Wed, 14 Oct 2026 19:12:19 +0200, Konstantin Khorenko wrote:
> mm, exec: fix the MADV_DOEXEC code we carry from Oracle
> 
> Fixes in the existing Oracle MADV_DOEXEC code, found while working on
> VSTOR-149847, and a refusal of preserved memory across setuid exec.
> Applies on top of "mm: keep DMA-pinned MADV_DOEXEC memory working across
> exec".
> 
> [...]

Applied to branch-rh10-6.12.0-211.52.1.22.x.vz10-ovz, will be released in rh10-6.12.0-211.52.1.22.18.vz10, thanks!

[1/7] oracle/mm: take a file reference when preserving a file-backed VMA
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/f4e104c2c212
[2/7] oracle/mm: refuse MADV_DOEXEC on special mappings
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/63f64110d674
[3/7] oracle/mm: keep a MADV_DOEXEC range from becoming executable
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/9c46b9df2c32
[4/7] oracle/exec, elf: look for the opt-in note in every PT_NOTE segment
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/eb564719f827
[5/7] exec: refuse to preserve memory across a privilege-changing exec
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/3bcf0711f01b
[6/7] selftests/mm: check that a setuid exec refuses preserved memory
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/8fbaf630e8a5
[7/7] selftests/mm: check MADV_DOEXEC on /dev/zero and exec permission
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/604ec9e520c8

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team




More information about the Devel mailing list