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 1/2] selftests/damon/wss_estimation: handle early access_memory exit
Date: Sun, 06 Dec 2026 10:05:04 +0000 [thread overview]
Message-ID: <sashiko-outbox-252330@kernel.org> (raw)
In-Reply-To: <20261206095226.310682-2-lienze@kylinos.cn>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] selftests/damon: missing Fixes trailer for wss_estimation
IndexError fix
--
commit d0d0ca2f5a38e98b65191a5b74fe1f5bad4f5ff2
Author: Enze Li <lienze@kylinos.cn>
> selftests/damon/wss_estimation: handle early access_memory exit
>
> If access_memory exits immediately, wss_collected is empty and the
> percentile check at the end crashes with:
>
> IndexError: list index out of range
>
> Check proc.poll() after the loop and fail with the child's return code
> instead.
>
> Signed-off-by: Enze Li <lienze@kylinos.cn>
[Severity: Low]
This fixes an IndexError when access_memory exits before any samples are
collected. Should this include a Fixes tag for the commit that added
the test?
Fixes: b5906f5f7359 ("selftests/damon: add a test for update_schemes_tried_regions sysfs command")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261206095226.310682-1-lienze@kylinos.cn?part=1
next prev parent reply other threads:[~2026-12-06 10:05 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 [this message]
2026-12-06 9:52 ` [PATCH 2/2] selftests/damon/damos_apply_interval: " Enze Li
2026-12-06 10:03 ` sashiko-bot
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-252330@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