[Devel] [PATCH hci-8.1 v7 05/10] 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
Tue Nov 17 20:27:42 MSK 2026


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

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

> dm-ploop: take bat_lock around md page lookup in ploop_llseek_hole()
>
> 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
> Feature: dm-ploop: ploop target driver
>
> Signed-off-by: Alexander Ivanov <alexander.ivanov at virtuozzo.com>

[Severity: Low]
This fixes an unlocked rb-tree lookup that has been in ploop_llseek_hole()
since it was introduced. Should this include:

  Fixes: 03d5aeeaa9ea ("dm/dm-ploop: add llseek_hole")

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



More information about the Devel mailing list