From: SeongJae Park <sj@kernel.org>
To: Liew Rui Yan <aethernet65535@gmail.com>
Cc: SeongJae Park <sj@kernel.org>, damon@lists.linux.dev, linux-mm@kvack.org
Subject: Re: [PATCH v3 1/2] mm/damon/lru_sort: validate min_region_size to be power of 2
Date: Mon, 6 Apr 2026 08:50:50 -0700 [thread overview]
Message-ID: <20260406155050.47762-1-sj@kernel.org> (raw)
In-Reply-To: <20260406094116.13164-1-aethernet65535@gmail.com>
On Mon, 6 Apr 2026 17:41:16 +0800 Liew Rui Yan <aethernet65535@gmail.com> wrote:
> On Sat, 4 Apr 2026 13:30:43 -0700 SeongJae Park <sj@kernel.org> wrote:
>
> > On Sat, 4 Apr 2026 17:11:22 +0800 Liew Rui Yan <aethernet65535@gmail.com> wrote:
> >
> > > [...]
> > > I think this deserves Cc stable@ because:
> > > - The issue can be triggered by accidental user misconfiguration
> > > - It causes kdamond termination and hard to recover/restart. Once
> > > triggered, kdamond remains in an unusable state, and I have not found
> > > a way to recover/restart it through the sysfs interface without a
> > > system reboot.
> > > - The fix is small and low-risk
> > > - It improves user experience on stable kernels
> >
> > Thank you for elaborating this. I now think this deserves Cc-ing stable@.
>
> Thank you for agreeing to Cc stable@.
>
> > Let's make sure the user impact is clearly documented on the commit message.
> > Also, the code change itself and the current commit message is not clearly
> > explaining how the real problem (DAMON cannot be restarted) can happen. Please
> > add the description in the next revision.
>
> I will add an explanation of why DAMON cannot be restarted in the next
> revision.
>
> > [...]
> >
> > >
> > > > For stable@ Cc-ing patches, more clearly describing the user impact would be
> > > > nice, and helpful for judging if it deserves that. Could you please elaborate?
> > >
> > > I will add a "User Impact" section in v4's commit message:
> >
> > Yes, please add this kind of message that make clear what is the user impact.
> >
> > >
> > > User Impact
> > > ===========
> > > Currently, if a user commit an invalid 'addr_unit', kdamond may
> > > terminate abruptly. Once terminated, it cannot be easily restarted
> > > via sysfs, pontentially requiring a system reboot to restore DAMON
> > > functionality. This patch prevent such termination by validating
> > > parameters (addr_unit and min_region_sz) early.
> >
> > You mentioned it cannot be restarted above. The above message sounds like
> > there is a way to restart it via sysfs, though it is not easy. Please make it
> > clear and consistent. As I also requested above, please add the internal
> > mechanism of how that makes restart unable. This itself doesn't explain it.
>
> Thank you for your correction. I will make the description clear and
> consistent, and also explain the internal mechanism
> (the 'maybe_corrupted' flag and why writing to 'enabled' cannot recover
> it).
Sounds all good :)
>
> Note:
> Please excuse my slower responses in the coming weeks, as I have
> upcoming exams. I will be most active and able to follow up during
> weekend (Friday/Saturday).
No worries, take your time :)
Thanks,
SJ
[...]
next prev parent reply other threads:[~2026-04-06 15:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-03 5:23 [PATCH v3 0/2] mm/damon: validate min_region_size to be power of 2 Liew Rui Yan
2026-04-03 5:23 ` [PATCH v3 1/2] mm/damon/lru_sort: " Liew Rui Yan
2026-04-03 8:31 ` (sashiko review) " Liew Rui Yan
2026-04-03 15:55 ` SeongJae Park
2026-04-04 9:09 ` Liew Rui Yan
2026-04-04 20:18 ` SeongJae Park
2026-04-03 8:59 ` Quanmin Yan
2026-04-03 9:50 ` Liew Rui Yan
2026-04-03 16:19 ` SeongJae Park
2026-04-04 9:11 ` Liew Rui Yan
2026-04-04 20:30 ` SeongJae Park
2026-04-06 9:41 ` Liew Rui Yan
2026-04-06 15:50 ` SeongJae Park [this message]
2026-04-03 5:23 ` [PATCH v3 2/2] mm/damon/reclaim: " Liew Rui Yan
2026-04-03 8:33 ` (sashiko review) " Liew Rui Yan
2026-04-03 16:07 ` SeongJae Park
2026-04-03 16:20 ` SeongJae 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=20260406155050.47762-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=aethernet65535@gmail.com \
--cc=damon@lists.linux.dev \
--cc=linux-mm@kvack.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