[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1a86msrwz.fsf@oracle.com>
Date: Mon, 08 May 2017 22:08:44 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Kees Cook <keescook@...omium.org>
Cc: linux-scsi@...r.kernel.org, QLogic-Storage-Upstream@...ium.com,
"James E.J. Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-kernel@...r.kernel.org, Daniel Micay <danielmicay@...il.com>
Subject: Re: [PATCH] scsi: qedf: Avoid reading past end of buffer
Kees,
> Using memcpy() from a string that is shorter than the length copied
> means the destination buffer is being filled with arbitrary data from
> the kernel rodata segment. Instead, use strncpy() which will fill the
> trailing bytes with zeros.
Applied to 4.12/scsi-fixes, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists