From: sashiko-bot@kernel.org
To: "Kyuwon Cho" <kyuwon.cho@skku.edu>
Cc: damon@lists.linux.dev
Subject: Re: [PATCH] mm/damon/paddr: prevent address wrap in action walks
Date: Thu, 03 Dec 2026 17:17:46 +0000 [thread overview]
Message-ID: <sashiko-outbox-248248@kernel.org> (raw)
In-Reply-To: <179614474316.1073623.13833808548597202010@skku.edu>
> The physical-address DAMOS action loops advance their cursor by PAGE_SIZE
> or folio_size(). A region whose converted end is near the maximum
> physical address can make that addition wrap to zero. The loop condition
> remains true and the DAMON worker scans almost the entire physical address
> domain. Control operations such as damon_stop() then cannot complete:
>
> INFO: task test:117 blocked for more than 10 seconds.
> Call Trace:
> __schedule (kernel/sched/core.c:7437)
> schedule (kernel/sched/core.c:7529)
> schedule_timeout (kernel/time/sleep_timeout.c:75)
> wait_for_completion (kernel/sched/completion.c:153)
> kthread_stop (kernel/kthread.c:760)
> kthread_stop_put (kernel/kthread.c:781)
> damon_stop (mm/damon/core.c:2207)
> kernfs_fop_write_iter (fs/kernfs/file.c:345)
>
> Calculate each converted end once and saturate every page or folio advance
> at that end. Apply the same cursor handling to pageout, LRU deactivation,
> migration, and stat actions because all four use the same open-ended
> addition.
>
> Fixes: 85246435b249 ("mm/damon/paddr: support addr_unit for DAMOS_PAGEOUT")
> Signed-off-by: Kyuwon Cho <kyuwon.cho@skku.edu>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/179614474316.1073623.13833808548597202010@skku.edu?part=1
next prev parent reply other threads:[~2026-12-03 17:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 16:43 [PATCH] mm/damon/paddr: prevent address wrap in action walks Kyuwon Cho
2026-12-03 17:17 ` sashiko-bot [this message]
2026-12-03 17:38 ` Aveline Noir
2026-12-04 1:55 ` SJ Park
2026-12-04 1:53 ` SJ Park
2026-12-04 2:26 ` SJ Park
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-248248@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=damon@lists.linux.dev \
--cc=kyuwon.cho@skku.edu \
--cc=sashiko-reviews@lists.linux.dev \
/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