[Devel] [PATCH hci-8.2 v8 3/9] dm-ploop: set delta is_raw before applying its mappings

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Wed Nov 18 16:16:07 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, 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
> 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.

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




More information about the Devel mailing list