[Devel] [PATCH hci-8.1 v4 05/11] dm-ploop: set delta is_raw before applying its mappings

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Mon Oct 12 16:34:30 MSK 2026


> ploop_apply_delta_mappings() takes is_raw from deltas[level], but
> ploop_add_delta() sets deltas[level].is_raw only after the mappings
> are applied. So a raw delta is handled as a non-raw one: its md_root
> is empty, ploop_md_first_entry() returns NULL and d_md->kmpage
> dereferences it.
> 
> This has been the case since the driver was added in commit
> 6ddad5a4d226 ("dm-ploop: Add ploop target driver"), i.e. raw deltas
> have never worked here; this is not a regression.
> 
> Set is_raw before applying the mappings.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-148171
> 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. It looks great!

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




More information about the Devel mailing list