[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <64e1bbd6b7e94aa0b5bc4556d5d335a6@baidu.com>
Date: Thu, 22 May 2025 01:53:48 +0000
From: "Li,Rongqing" <lirongqing@...du.com>
To: Alex Williamson <alex.williamson@...hat.com>
CC: "kwankhede@...dia.com" <kwankhede@...dia.com>, "yan.y.zhao@...el.com"
<yan.y.zhao@...el.com>, "cjia@...dia.com" <cjia@...dia.com>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>
Subject: 答复: [????] Re: [PATCH] vfio/type1: fixed rollback in vfio_dma_bitmap_alloc_all()
> vfio/type1: Fix error unwind in migration dirty bitmap allocation
>
> When setting up dirty page tracking at the vfio IOMMU backend for
> device migration, if an error is encountered allocating a tracking
> bitmap, the unwind loop fails to free previously allocated tracking
> bitmaps. This occurs because the wrong loop index is used to
> generate the tracking object. This results in unintended memory
> usage for the life of the current DMA mappings where bitmaps were
> successfully allocated.
>
> Use the correct loop index to derive the tracking object for
> freeing during unwind.
>
Your changelog is extremely detailed and highly accurate.
Please directly incorporate this patch with your changelog
Thanks
-Li
Powered by blists - more mailing lists