From: no-reply@sashiko.virtuozzo.com
To: "Denis V. Lunev" <den@openvz.org>,
alexander.ivanov@virtuozzo.com, vasileios.almpanis@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2] dm-ploop: fix an ENOSPC endio arming the timer on a freed ploop
Date: Wed, 18 Nov 2026 19:05:48 +0000 [thread overview]
Message-ID: <010701a1f00d07b2-41dbb262-b9a1-4149-9b80-51a131a25ef8-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261118190006.3573492-1-den@openvz.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dm-ploop: commit message overstates that ploop is not touched
after unlock
--
commit c20cb19ac7026c7127a0f474371e642c3aa24b0b
Author: Denis V. Lunev <den@openvz.org>
dm-ploop: fix an ENOSPC endio arming the timer on a freed ploop
The commit takes deferred_lock before the wants_suspend test in ploop_try_delay_enospc() and holds it through mod_timer() and schedule_work(). The aim is to stop the endio from touching a freed struct ploop after the pio is queued on enospc_pios.
> Hold deferred_lock from the wants_suspend test through schedule_work().
> ploop_presuspend() sets wants_suspend under the same lock, so either it
> finds the pio on enospc_pios with the timer and the work already armed,
> or the endio sees wants_suspend and leaves the request to its caller to
> complete. The endio does not touch the struct ploop after the unlock.
[Severity: Low]
Is the last sentence accurate? On the wants_suspend path, the patch drops the lock and then calls PL_WARN("dropping pio enospc\n"). PL_WARN() reads ploop->ti->table through ploop_device_name(), so struct ploop is still touched after the unlock.
This looks harmless, because no pio was queued on that path and the caller still holds the uncompleted request. The claim holds only on the path that returns true. Either move the PL_WARN() before the unlock, or limit the sentence to the case where the pio was queued.
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/20261118190006.3573492-1-den@openvz.org?part=1
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-18 19:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 19:00 Denis V. Lunev
2026-11-18 19:05 ` no-reply [this message]
2026-11-19 8:00 ` Alexander Ivanov
2026-11-19 16:19 ` Konstantin Khorenko
2026-11-19 16:20 ` 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=010701a1f00d07b2-41dbb262-b9a1-4149-9b80-51a131a25ef8-000000@eu-central-1.amazonses.com \
--to=no-reply@sashiko.virtuozzo.com \
--cc=alexander.ivanov@virtuozzo.com \
--cc=den@openvz.org \
--cc=devel@openvz.org \
--cc=vasileios.almpanis@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.