[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wiu-dX+CGUnhsk3KfPbP1h-1kCmVoTV6FEETQmafGWdLQ@mail.gmail.com>
Date: Tue, 25 Jul 2023 10:30:34 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Martin K Petersen <martin.petersen@...cle.com>,
James Bottomley <jejb@...ux.ibm.com>,
Tony Battersby <tonyb@...ernetics.com>,
Willy Tarreau <w@....eu>
Cc: linux-scsi <linux-scsi@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: SCSI: fix parsing of /proc/scsci/scsi file
This is the simplified version of the fix proposed by Tony Battersby
for the horrid scsi /proc parsing code.
It doesn't make it prettier, it just makes it less buggy. That parsing
code hasn't been changed in git or BK times, so it's at least two
decades since anybody touched it, and judging by how nasty it is, it's
probably more than that.
This is v2 with the additional bug noted by Tony hopefully fixed.
Linus
View attachment "0001-scsi-fix-legacy-proc-parsing-buffer-overflow.patch" of type "text/x-patch" (3552 bytes)
Powered by blists - more mailing lists