Re: [RFC PATCH] mm: only set fault addrsss' access bit in do_anonymous_page
From: David Hildenbrand (Arm)
Date: Fri Feb 13 2026 - 10:09:29 EST
On 2/13/26 15:52, Wenchao Hao wrote:
On Fri, Feb 13, 2026 at 5:08 PM David Hildenbrand (Arm)
<david@xxxxxxxxxx> wrote:
Kernel command line parameters can meet our requirements.
On 2/13/26 10:02, Wenchao Hao wrote:
On Thu, Feb 12, 2026 at 4:54 PM David Hildenbrand (Arm)
<david@xxxxxxxxxx> wrote:
Apologies for the delayed reply – I was just writing a demo to verify the
approach you mentioned.
Using the CONFIG_DEBUG_KERNEL compile-time macro to isolate this feature
is indeed an excellent idea.
However, in engineering practice, it requires recompiling and
replacing the kernel,
which can be cumbersome. Could we instead use a dynamic switch to control
whether scan for zero-filled pages when reading /proc/[pid]/smaps?
Maybe a kernel cmdline option could do?
Selectively enabling it for some PIDs only is not really possible, but also, maybe it's not really needed.Yes, it is unnecessary to do that.
By the way, will you send a new patch for this, or shall I take care of it?
You :)
--
Cheers,
David