lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <165889169551.689.5999254456807328126.b4-ty@oracle.com>
Date:   Tue, 26 Jul 2022 23:15:13 -0400
From:   "Martin K. Petersen" <martin.petersen@...cle.com>
To:     jejb@...ux.vnet.ibm.com, Jason Yan <yanaijie@...wei.com>
Cc:     "Martin K . Petersen" <martin.petersen@...cle.com>,
        linux-scsi@...r.kernel.org,
        syzbot+d44b35ecfb807e5af0b5@...kaller.appspotmail.com,
        linux-kernel@...r.kernel.org, bvanassche@....org, hch@....de,
        hare@...e.com
Subject: Re: [PATCH v2] scsi: fix WARNING in scsi_alloc_sgtables

On Wed, 20 Jul 2022 10:51:20 +0800, Jason Yan wrote:

> As explained in SG_IO howto[1]:
> 
> "If iovec_count is non-zero then 'dxfer_len' should be equal to the sum
> of iov_len lengths. If not, the minimum of the two is the transfer
> length."
> 
> When iovec_count is non-zero and dxfer_len is zero, the sg_io() just
> genarated a null bio, and finally caused a warning below. To fix it,
> skip generating a bio for this request if dxfer_len is zero.
> 
> [...]

Applied to 5.19/scsi-fixes, thanks!

[1/1] scsi: fix WARNING in scsi_alloc_sgtables
      https://git.kernel.org/mkp/scsi/c/d9a434fa0c12

-- 
Martin K. Petersen	Oracle Linux Engineering

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ