[Devel] [PATCH hci-8.2 2/2] dm-ploop: don't put a NULL bat page in ploop_free_piwb()

Konstantin Khorenko khorenko at virtuozzo.com
Mon Nov 30 14:58:11 MSK 2026


Applying with these fixes on my side:

- "If one of the allocations fails" -> "If the bat page allocation
  fails".

On Fri, 27 Nov 2026 12:31:05 +0000, Vasileios Almpanis wrote:
> 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.

A failed pio allocation alone does not oops: ploop_free_pio() ends in
mempool_free(), which ignores NULL. Only a NULL bat page does.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list