[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <165153836363.24053.2716522783006312499.b4-ty@oracle.com>
Date: Mon, 2 May 2022 20:51:45 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: jejb@...ux.ibm.com, Xiaomeng Tong <xiam0nd.tong@...il.com>,
dc395x@...bble.org, aliakc@....de, lenehan@...bble.org,
oliver@...kum.org
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
stable@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-scsi@...r.kernel.org
Subject: Re: [RESEND][PATCH] scsi: dc395x: fix a missing check on list iterator
On Thu, 14 Apr 2022 12:02:31 +0800, Xiaomeng Tong wrote:
> The bug is here:
> p->target_id, p->target_lun);
>
> The list iterator 'p' will point to a bogus position containing
> HEAD if the list is empty or no element is found. This case must
> be checked before any use of the iterator, otherwise it will
> lead to a invalid memory access.
>
> [...]
Applied to 5.19/scsi-queue, thanks!
[1/1] scsi: dc395x: fix a missing check on list iterator
https://git.kernel.org/mkp/scsi/c/036a45aa587a
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists