[Devel] [PATCH hci-8.2 0/2] blk-cbt and dm-ploop: fix a host WARN and a NULL put_page
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Nov 30 14:58:11 MSK 2026
Applying with these fixes on my side:
- 2/2: "If one of the allocations fails" -> "If the bat page
allocation fails" in the commit message.
On Fri, 27 Nov 2026 12:31:03 +0000, Vasileios Almpanis wrote:
> blk-cbt and dm-ploop: fix a host WARN and a NULL put_page
Both fixes are correct. Only a failed alloc_page() oopses: a NULL pio
was already fine, mempool_free() ignores NULL. Hence the change in the
message of 2/2.
> With both patches applied,
> the first one only prints a warning and the second one fails the write
> with an I/O error instead of an oops.
Not quite an I/O error: the request ends with BLK_STS_RESOURCE, so the
upper layer gets -ENOMEM. That is item 2 below.
Separate patches, not needed for this series. I created a task for
each:
1. BLKCBTGET with CI_FLAG_ONCE clears the bits it reports, and it runs
before the CAP_SYS_ADMIN check with no open mode check either. So
container root that opens its own disk read-only can wipe the CBT
map, and the next incremental backup silently misses those blocks.
https://virtuozzo.atlassian.net/browse/VSTOR-157680
2. A failed GFP_ATOMIC allocation in ploop_prepare_bat_update() under
bat_lock is a transient condition, but the callers end the guest
write with BLK_STS_RESOURCE. For ext4 in a container that is a
journal abort and a read-only remount. It should be retried instead.
https://virtuozzo.atlassian.net/browse/VSTOR-157681
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list