[Devel] [PATCH hci-8.1 v7 01/10] dm-ploop: reject a delta header whose BAT does not cover the target

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Nov 17 20:22:34 MSK 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dm-ploop: bug-fix commit lacks a Fixes: trailer for 90bb85536272
--

commit b75fdbdd4dc39c16fe43f32d1af50211611de34d
Author: Alexander Ivanov <alexander.ivanov at virtuozzo.com>

> dm-ploop: reject a delta header whose BAT does not cover the target
>
> ploop_setup_metadata() takes the number of BAT entries from m_Size of
> the top delta header, but checks only m_SizeInSectors_v2 against the
> target length. A header with a small m_Size (including zero) and a large
> enough m_SizeInSectors_v2 passes all checks. Requests past the last BAT
> entry then hit WARN_ONCE() in ploop_rq_valid(), which panics the host
> with panic_on_warn.
>
> Reject the header if the BAT does not cover the target, taking the
> skip_off shift of request positions into account.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-148171
> Feature: dm-ploop: ploop target driver
>
> Signed-off-by: Alexander Ivanov <alexander.ivanov at virtuozzo.com>

[Severity: Low]
This fixes a validation gap in ploop_setup_metadata() that came in with the
driver itself. Should this include:

  Fixes: 90bb85536272 ("dm-ploop: Add ploop target driver")

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261117171743.3216794-1-alexander.ivanov@virtuozzo.com?part=1



More information about the Devel mailing list