All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
* [Devel] [PATCH hci-8.1 0/7] selftests/mm: broader MADV_DOEXEC coverage
@ 2026-10-14 17:14 Konstantin Khorenko
  2026-10-14 17:14 ` [Devel] [PATCH hci-8.1 1/7] selftests/mm: cover the MADV_DOEXEC interface and VMA attributes Konstantin Khorenko
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Konstantin Khorenko @ 2026-10-14 17:14 UTC (permalink / raw)
  To: Pavel Tikhomirov, Andrey Drobyshev, Vasileios Almpanis; +Cc: devel

Selftests for MADV_DOEXEC beyond the cases the fixes need: the sysctl
and the refused mappings, partial and attribute-carrying ranges (mlock,
DONTFORK, WIPEONFORK, userfaultfd, memory policy), the opt-in note
(missing, malformed, not in the last PT_NOTE), a preserved range under
the new stack, large, swapped and partly marked THP ranges, an exec from
a vfork() child, VM_MAYEXEC read from smaps and given back to the
copies, and a /proc/pid/mem write and a vhost kthread that keep the old
mm across the exec. Failing cases say why. Applies on top of "mm: allow
MADV_DOEXEC on VFIO BAR mappings".

All cases pass on release and debug kernels with the whole stack.

https://virtuozzo.atlassian.net/browse/VSTOR-150234

---
Konstantin Khorenko (7):
      selftests/mm: cover the MADV_DOEXEC interface and VMA attributes
      selftests/mm: cover the MADV_DOEXEC opt-in note and the new stack
      selftests/mm: cover large, swapped and partly marked THP ranges
      selftests/mm: check that MADV_DOEXEC refuses an exec from a vfork() child
      selftests/mm: check VM_MAYEXEC of MADV_DOEXEC ranges in smaps
      selftests/mm: check who can still reach the old mm of a preserving exec
      selftests/mm: say why a doexec case fails

 tools/testing/selftests/mm/doexec.c | 1456 ++++++++++++++++++++++++++++++-----
 1 file changed, 1283 insertions(+), 173 deletions(-)
---
base-commit: 569abd49ca6b0b102f2e5b995a15459b53a8a19f
change-id: 20261014-b4-prep-khorenko-vstor-149847-5-doexec-selftests-496ac17b9688

Best regards,
--  
Konstantin Khorenko <khorenko@virtuozzo.com>

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-10-14 17:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 17:14 [Devel] [PATCH hci-8.1 0/7] selftests/mm: broader MADV_DOEXEC coverage Konstantin Khorenko
2026-10-14 17:14 ` [Devel] [PATCH hci-8.1 1/7] selftests/mm: cover the MADV_DOEXEC interface and VMA attributes Konstantin Khorenko
2026-10-14 17:15 ` [Devel] [PATCH hci-8.1 2/7] selftests/mm: cover the MADV_DOEXEC opt-in note and the new stack Konstantin Khorenko
2026-10-14 17:15 ` [Devel] [PATCH hci-8.1 3/7] selftests/mm: cover large, swapped and partly marked THP ranges Konstantin Khorenko
2026-10-14 17:15 ` [Devel] [PATCH hci-8.1 4/7] selftests/mm: check that MADV_DOEXEC refuses an exec from a vfork() child Konstantin Khorenko
2026-10-14 17:15 ` [Devel] [PATCH hci-8.1 5/7] selftests/mm: check VM_MAYEXEC of MADV_DOEXEC ranges in smaps Konstantin Khorenko
2026-10-14 17:15 ` [Devel] [PATCH hci-8.1 6/7] selftests/mm: check who can still reach the old mm of a preserving exec Konstantin Khorenko
2026-10-14 17:15 ` [Devel] [PATCH hci-8.1 7/7] selftests/mm: say why a doexec case fails Konstantin Khorenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.