git: DragonFly_RELEASE_6_4 mincore(2): Add 'vm.mincore_mapped' sysctl to control reporting

Aaron LI aly at crater.dragonflybsd.org
Tue Sep 1 22:49:07 PDT 2026


commit bb51ebe099d2c1d752aeef88a1e6cb965d18f324
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Aug 3 10:13:33 2026 +0800

    mincore(2): Add 'vm.mincore_mapped' sysctl to control reporting
    
    Add the 'vm.mincore_mapped' (default ON!) to control whether to report
    only the mapping status (if set to a non-zero value) or the physical
    residency (if set to a zero value; the old behavior).
    
    The idea of implementing this and enabling it by default is to help
    mitigate page cache attacks [1].
    
    [1] Page Cache Attacks: https://arxiv.org/abs/1901.01161
    
    Obtain-from: FreeBSD (https://reviews.freebsd.org/D18764)

Summary of changes:
 lib/libc/sys/mincore.2 | 19 ++++++++++++++++---
 sys/vm/vm_mmap.c       | 10 +++++++---
 2 files changed, 23 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bb51ebe099d2c1d752aeef88a1e6cb965d18f324


-- 
DragonFly BSD source repository


More information about the Commits mailing list