[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1lds6i1ol.fsf@ca-mkp.ca.oracle.com>
Date: Fri, 11 Apr 2025 21:55:24 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Kees Cook <kees@...nel.org>
Cc: James Bottomley <James.Bottomley@...senpartnership.com>,
Jack Wang
<jinpu.wang@...ud.ionos.com>,
"Martin K. Petersen"
<martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH] scsi: pm80xx: Add __nonstring annotations for
unterminated strings
Kees,
>> > When a character array without a terminating NUL character has a
>> > static initializer, GCC 15's -Wunterminated-string-initialization
>> > will only warn if the array lacks the "nonstring" attribute[1].
>> > Mark the arrays with __nonstring to and correctly identify the char
>> > array as "not a C string" and thereby eliminate the warning.
Applied to 6.16/scsi-staging, thanks!
--
Martin K. Petersen
Powered by blists - more mailing lists