[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <162752979292.3014.6905350922705081988.b4-ty@oracle.com>
Date: Wed, 28 Jul 2021 23:37:02 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Harshvardhan Jha <harshvardhan.jha@...cle.com>,
kashyap.desai@...adcom.com
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-kernel@...r.kernel.org, jejb@...ux.ibm.com,
linux-scsi@...r.kernel.org, dan.carpenter@...cle.com,
megaraidlinux.pdl@...adcom.com,
shivasharan.srikanteshwara@...adcom.com, sumit.saxena@...adcom.com
Subject: Re: [PATCH] scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry
On Thu, 8 Jul 2021 13:16:42 +0530, Harshvardhan Jha wrote:
> The list_for_each_entry() iterator, "adapter" in this code, can never be
> NULL. If we exit the loop without finding the correct adapter then
> "adapter" points invalid memory that is an offset from the list head.
> This will eventually lead to memory corruption and presumably a kernel
> crash.
Applied to 5.14/scsi-fixes, thanks!
[1/1] scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry
https://git.kernel.org/mkp/scsi/c/77541f78eadf
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists