On Fri, Nov 27, 2026 at 09:58:00AM +0000, Shuai Liu wrote: > alloc_area() vfrees ps->zero_area and ps->area on allocation failure > but leaves the dangling pointers. When the snapshot constructor then > calls free_area() as part of teardown, it vfrees the same buffers > again, triggering a WARNING in vfree(). > > Set those pointers to NULL after vfree(). vfree(NULL) is a no-op, > so free_area() is safe to call multiple times.
I reproduced this issue locally using the syzbot reproducer in QEMU and verified that this patch resolves the double vfree() warning on -ENOMEM. Tested-by: Deepak Pandey <[email protected]>
