[Devel] [PATCH hci-8.2 1/2] block/blk-cbt: don't WARN on an ABI version mismatch

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:47:14 MSK 2026


> blk_cbt_ioctl() checks the ABI version that userspace passes before it
> checks CAP_SYS_ADMIN, and BLKCBTGET does not need CAP_SYS_ADMIN at all.
> So anyone who can open a block device can trigger the WARN_ONCE with a
> wrong version. Inside a container, root can open its own disk and do
> this. On a node with panic_on_warn=1 this panics the host.
> 
> A wrong ABI version is a userspace error, so print a warning instead.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-157563
> 
> Fixes: 421362cbc789 ("block/blk-cbt: introduce ABI versioning")
> Feature: cbt: changed block tracking (for backup)
> 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=1




More information about the Devel mailing list