[Devel] [PATCH hci-8.2 v9 1/9] 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
Thu Nov 19 14:39:01 MSK 2026
> 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
> Fixes: 90bb85536272 ("dm-ploop: Add ploop target driver")
> Feature: dm-ploop: ploop target driver
>
> Signed-off-by: Alexander Ivanov <alexander.ivanov at 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 at sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119113446.3579457-1-alexander.ivanov@virtuozzo.com?part=1
More information about the Devel
mailing list