From: sashiko-bot@kernel.org
To: "Enze Li" <lienze@kylinos.cn>, sj@kernel.org, shuah@kernel.org
Cc: damon@lists.linux.dev, linux-mm@kvack.org
Subject: Re: [PATCH 2/2] selftests/damon/damos_apply_interval: handle early access_memory exit
Date: Sun, 06 Dec 2026 10:03:37 +0000 [thread overview]
Message-ID: <sashiko-outbox-252328@kernel.org> (raw)
In-Reply-To: <20261206095226.310682-3-lienze@kylinos.cn>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] selftests/damon: missing Fixes trailer for
damos_apply_interval.py bug fix
--
commit ba843c5ead980821fa4662a5fea5fce0c04f903e
Author: Enze Li <lienze@kylinos.cn>
> selftests/damon/damos_apply_interval: handle early access_memory exit
>
> If access_memory exits before the first update_schemes_stats(), the
> schemes' stats stay None and reading nr_tried at the end crashes with:
>
> AttributeError: 'NoneType' object has no attribute 'nr_tried'
>
> Check for that and fail with the child's return code instead.
>
> Signed-off-by: Enze Li <lienze@kylinos.cn>
[Severity: Low]
This fixes a crash in damos_apply_interval.py when access_memory exits
before the first stats update. Should this include:
Fixes: ce7a2834659f ("selftests/damon: add a test for DAMOS apply intervals")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261206095226.310682-1-lienze@kylinos.cn?part=2
prev parent reply other threads:[~2026-12-06 10:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-06 9:52 [PATCH 0/2] selftests/damon: handle early access_memory exit Enze Li
2026-12-06 9:52 ` [PATCH 1/2] selftests/damon/wss_estimation: " Enze Li
2026-12-06 10:05 ` sashiko-bot
2026-12-06 9:52 ` [PATCH 2/2] selftests/damon/damos_apply_interval: " Enze Li
2026-12-06 10:03 ` sashiko-bot [this message]
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-252328@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=damon@lists.linux.dev \
--cc=lienze@kylinos.cn \
--cc=linux-mm@kvack.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=shuah@kernel.org \
--cc=sj@kernel.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