From: sashiko-bot@kernel.org
To: "Shubhang Kaushik (Ampere)" <sh@gentwo.org>
Cc: damon@lists.linux.dev
Subject: Re: [PATCH] mm/damon: align MMU notifier range when clearing PTE young bit
Date: Thu, 22 Oct 2026 06:40:11 +0000 [thread overview]
Message-ID: <sashiko-outbox-181099@kernel.org> (raw)
In-Reply-To: <20261021-damon-align-pte-young-notifier-v1-1-d0365ac45b66@gentwo.org>
> DAMON selects a byte-granular sampling address. damon_ptep_mkold()
> clears the young bit of the PTE covering that address, but passes the
> unaligned range [addr, addr + PAGE_SIZE) to MMU notifiers.
>
> For an unaligned address, that range extends into the following page.
> KVM ages every guest page intersecting the notifier range, so it can age
> a secondary mapping for the following page although DAMON cleared only
> the sampled page's primary PTE.
>
> Align the address before both the primary PTE operation and the
> MMU notifier call so that they cover the same page.
>
> Fixes: 3f49584b262c ("mm/damon: implement primitives for the virtual memory address spaces")
> Signed-off-by: Shubhang Kaushik (Ampere) <sh@gentwo.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261021-damon-align-pte-young-notifier-v1-1-d0365ac45b66@gentwo.org?part=1
next prev parent reply other threads:[~2026-10-22 6:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 6:36 [PATCH] mm/damon: align MMU notifier range when clearing PTE young bit Shubhang Kaushik (Ampere)
2026-10-22 6:40 ` sashiko-bot [this message]
2026-10-22 14:02 ` SJ Park
2026-10-22 14:41 ` Aveline Noir
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-181099@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=damon@lists.linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sh@gentwo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox