[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1a5aiog3o.fsf@ca-mkp.ca.oracle.com>
Date: Tue, 18 Feb 2025 20:53:41 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Thorsten Blum <thorsten.blum@...ux.dev>
Cc: Don Brace <don.brace@...rochip.com>,
"James E.J. Bottomley"
<James.Bottomley@...senPartnership.com>,
"Martin K. Petersen"
<martin.petersen@...cle.com>,
linux-hardening@...r.kernel.org, Kees Cook
<kees@...nel.org>,
David Laight <david.laight.linux@...il.com>,
Bart Van
Assche <bvanassche@....org>, storagedev@...rochip.com,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] scsi: hpsa: Remove deprecated and unnecessary strncpy()
Thorsten,
> While replacing strncpy() with strscpy(), Bart Van Assche pointed out
> that the code occurs inside sysfs write callbacks, which already uses
> NUL-terminated strings. This allows the string to be passed directly to
> sscanf() without requiring a temporary copy.
Applied to 6.15/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists