[Devel] [PATCH hci-8.1 v3 1/9] drivers/md/dm-qcow2: cancel the event work and ENOSPC timer in the destructor

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Nov 17 13:52:32 MSK 2026


> qcow2_try_delay_enospc() schedules tgt->event_work on the system
> workqueue and arms tgt->enospc_timer, but qcow2_tgt_destroy() frees
> the target without waiting for either. A work item queued just
> before the device is suspended and removed runs on freed memory.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-152175
> 
> Fixes: 6e2ec304689f ("dm-qcow2: Pause IO and notify about ENOSPC events")
> Feature: dm-qcow2: block device over QCOW2 files driver
> Signed-off-by: Alexander Ivanov <alexander.ivanov at virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

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




More information about the Devel mailing list