[Devel] [PATCH hci-8.2 2/2] dm-ploop: don't put a NULL bat page in ploop_free_piwb()
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:48:05 MSK 2026
> ploop_prepare_bat_update() allocates the bat page and the pio with
> GFP_ATOMIC. If one of the allocations fails, it calls ploop_free_piwb(),
> which calls put_page() on the bat page even if it is NULL. Under memory
> pressure this oopses with bat_lock held.
>
> Put the bat page only if it was allocated.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-157566
>
> Fixes: 90bb85536272 ("dm-ploop: Add ploop target driver")
> Feature: dm-ploop: ploop target driver
> Reported-by: Artem Bulgakov <artem.bulgakov at virtuozzo.com>
> Signed-off-by: Vasileios Almpanis <vasileios.almpanis 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/20261127-cbt-ploop-fixes-v1-0-d6559232b819@virtuozzo.com?part=2
More information about the Devel
mailing list