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: <161853823944.16006.18266702142826369298.b4-ty@oracle.com>
Date:   Thu, 15 Apr 2021 22:51:06 -0400
From:   "Martin K. Petersen" <martin.petersen@...cle.com>
To:     Jack Wang <jinpu.wang@...ud.ionos.com>, linux-scsi@...r.kernel.org,
        "James E . J . Bottomley" <jejb@...ux.ibm.com>,
        Colin King <colin.king@...onical.com>,
        Viswas G <Viswas.G@...rochip.com>
Cc:     "Martin K . Petersen" <martin.petersen@...cle.com>,
        linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH][next] scsi: pm80xx: Fix potential infinite loop

On Wed, 7 Apr 2021 14:58:40 +0100, Colin King wrote:

> The for-loop iterates with a u8 loop counter i and compares this
> with the loop upper limit of pm8001_ha->max_q_num which is a u32
> type.  There is a potential infinite loop if pm8001_ha->max_q_num
> is larger than the u8 loop counter. Fix this by making the loop
> counter the same type as pm8001_ha->max_q_num.

Applied to 5.13/scsi-queue, thanks!

[1/1] scsi: pm80xx: Fix potential infinite loop
      https://git.kernel.org/mkp/scsi/c/40fa7394a1ad

-- 
Martin K. Petersen	Oracle Linux Engineering

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ