Re: [PATCH v3] nvmet: pci-epf: fix use-after-free in nvmet_pci_epf_exec_iod_work()

Keith Busch <[email protected]>
Newsgroups org.infradead.lists.linux-nvme
Message-ID <anpWThk0l_i0CpK4@kbusch-mbp>
On Thu, Jul 30, 2026 at 03:18:39PM +0900, Shin'ichiro Kawasaki wrote:
> nvmet_pci_epf_exec_iod_work() submits an I/O command with req->execute()
> and then waits for the command to complete and transfers the data back
> to the host. This wait is not needed for commands that do not transfer
> data from the device to the host. To decide whether that wait is needed,
> it reads iod->data_len and iod->dma_dir after calling req->execute().

Thanks, applied to nvme-7.3.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.