[Devel] [PATCH hci-8.1 4/8] oracle/mm: write protect preserved PTEs but keep them exclusive
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Wed Oct 14 20:18:49 MSK 2026
> Commit 37d9f55655ea ("oracle/mm: do not write protect COW mappings when
> preserving across exec") leaves the PTE of a preserved anonymous page
> writable in both the outgoing and the new mm. With
> CONFIG_PAGE_TABLE_CHECK, which refuses to install a writable PTE for an
> anonymous page that is mapped already, the first preserving exec panics:
>
> kernel BUG at mm/page_table_check.c:118!
> RIP: 0010:page_table_check_set+0x484/0x520
> __page_table_check_ptes_set
> copy_present_ptes
> copy_pte_range
> ...
> copy_page_range_mt
> vma_dup
> exec_mmap
> [ ... ]
> https://virtuozzo.atlassian.net/browse/VSTOR-150231
>
> Feature: oracle/mm: MADV_DOEXEC madvise() flag
> Assisted-by: LLM
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
Sashiko has reviewed this patch and found no issues. It looks great!
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261014-b4-prep-khorenko-vstor-149847-2-doexec-pinned-memory-v1-0-36f1120f9b57@virtuozzo.com?part=4
More information about the Devel
mailing list