Re: [PATCH v5 4/6] qcow2: introduce inflight-write-counters

2021-03-30 Thread Vladimir Sementsov-Ogievskiy
26.03.2021 23:00, Vladimir Sementsov-Ogievskiy wrote: We have a bug in qcow2: assume we've started data write into host cluster A. s->lock is unlocked. During the write the refcount of cluster A may become zero, cluster may be reallocated for other needs, and our in-flight write become a

[PATCH v5 4/6] qcow2: introduce inflight-write-counters

2021-03-26 Thread Vladimir Sementsov-Ogievskiy
We have a bug in qcow2: assume we've started data write into host cluster A. s->lock is unlocked. During the write the refcount of cluster A may become zero, cluster may be reallocated for other needs, and our in-flight write become a use-after-free. More details will be in the further commit