git: mincore(2): Add 'vm.mincore_mapped' sysctl to control reporting
Aaron LI
aly at crater.dragonflybsd.org
Sun Aug 2 19:31:13 PDT 2026
commit 9c2637ad9b4c450e844a1db8d7d07772bc6b83c6
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/9c2637ad9b4c450e844a1db8d7d07772bc6b83c6
--
DragonFly BSD source repository
More information about the Commits
mailing list