[Devel] [PATCH hci-8.2 v9 5/9] dm-ploop: take bat_lock around md page lookup in ploop_llseek_hole()
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Thu Nov 19 14:42:44 MSK 2026
> ploop_llseek_hole() walks the md pages tree without any lock, while
> resize inserts new md pages into it in ploop_add_md_pages(). A lookup
> racing with rb-tree rebalancing may follow a stale pointer or miss the
> page and return -EINVAL.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-148171
> Fixes: 03d5aeeaa9ea ("dm/dm-ploop: add llseek_hole")
> 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=5
More information about the Devel
mailing list