Re: [PATCH] nvmet-fc: fix invalid free in LS IOD error path
Keith Busch <[email protected]>
| Newsgroups | org.kernel.vger.linux-kernel,org.infradead.lists.linux-nvme |
|---|---|
| Message-ID | <anoh0AcoZR8TAWpT@kbusch-mbp> |
On Wed, Jul 29, 2026 at 07:02:06PM +0800, Jiang HongHui wrote: > nvmet_fc_alloc_ls_iodlist() advances iod while initializing the LS IOD > array. If an rqstbuf allocation or response buffer DMA mapping fails, > the unwind loop decrements iod past the start of the array. The final > kfree(iod) therefore frees an address before the allocated object. Thanks, applied to nvme-7.3.