Re: [PATCH v3 0/2] scsi: bsg: io_uring passthrough TOCTOU and mapping

Yang Xiuwei <[email protected]>
Newsgroups gmane.linux.scsi,gmane.linux.kernel.io-uring
Message-ID <[email protected]>
Hi,

sashiko noted a sense buffer overflow on the io_uring path:
Link: https://lore.kernel.org/linux-scsi/[email protected]/

Agreed. Completion copies scmd->sense_len without capping to
max_response_len. Setting sense_len at submit does not help; the
midlayer overwrites it with the real sense length.

I will add a fix as 3/3 in v4 (store max_response_len in the PDU and
cap the copy like the ioctl path).

Thanks,
Yang Xiuwei
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.