From: no-reply@sashiko.virtuozzo.com
To: Eva Kurchatova <eva.kurchatova@virtuozzo.com>,
khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 3/3] ms/mm/damon/core: handle region split failure in apply_min_nr_regions()
Date: Mon, 23 Nov 2026 04:35:58 +0000 [thread overview]
Message-ID: <010701a206b079ed-43edb26c-0692-4965-94dd-5f620f73c30c-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261123042846.1684796-4-eva.kurchatova@virtuozzo.com>
> From: SJ Park <sj@kernel.org>
>
> damon_apply_min_nr_regions() repeatedly split each region until its size
> becomes small enough to meet the user-defined low limit of the number of
> regions. The loop assumes the split operation (damon_split_region_at())
> will always succeed and create the new region. But the operation could
> silently fail for memory allocation failures, for example.
>
> If such failure happens and the region was the last region, the linked
> list-based next region fetching returns invalid pointer. As a result,
> invalid memory dereference and corruption could happen. Even if the
> corner case is handled, it imposes stress to the allocator by trying split
> regions for other targets. Fix the issue by breaking all the loops for
> any region split failure.
>
> [ ... ]
>
> https://virtuozzo.atlassian.net/browse/VSTOR-156361
> Feature: fix ms/mm
>
> Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
Sashiko has reviewed this patch and found no issues.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261123042846.1684796-1-eva.kurchatova@virtuozzo.com?part=3
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-23 4:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 4:26 [Devel] [PATCH hci-8.2 0/3] ms/damon: fix DAMON region split handling Eva Kurchatova
2026-11-23 4:26 ` [Devel] [PATCH hci-8.2 1/3] ms/mm/damon/core: split regions for min_nr_regions Eva Kurchatova
2026-11-23 4:32 ` no-reply
2026-11-23 4:26 ` [Devel] [PATCH hci-8.2 2/3] ms/mm/damon/vaddr: do not " Eva Kurchatova
2026-11-23 4:32 ` no-reply
2026-11-23 4:26 ` [Devel] [PATCH hci-8.2 3/3] ms/mm/damon/core: handle region split failure in apply_min_nr_regions() Eva Kurchatova
2026-11-23 4:35 ` no-reply [this message]
2026-11-30 15:47 ` [Devel] [PATCH hci-8.2 0/3] ms/damon: fix DAMON region split handling Konstantin Khorenko
2026-11-30 15:48 ` Konstantin Khorenko
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=010701a206b079ed-43edb26c-0692-4965-94dd-5f620f73c30c-000000@eu-central-1.amazonses.com \
--to=no-reply@sashiko.virtuozzo.com \
--cc=devel@openvz.org \
--cc=eva.kurchatova@virtuozzo.com \
--cc=khorenko@virtuozzo.com \
--cc=vladimir.riabchun@virtuozzo.com \
/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