lkml.org 
[lkml]   [2021]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry
Date
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

\
 
 \ /
  Last update: 2021-07-29 05:38    [W:0.204 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site