[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1tt0rqooy.fsf@ca-mkp.ca.oracle.com>
Date: Wed, 24 Sep 2025 21:57:39 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Alok Tiwari <alok.a.tiwari@...cle.com>
Cc: martin.petersen@...cle.com, hare@...e.de,
James.Bottomley@...senPartnership.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: libfc: Fix potential buffer overflow in
fc_ct_ms_fill()
Alok,
> The fc_ct_ms_fill() helper currently formats the OS name and version
> into entry->value using "%s v%s". Since init_utsname()->sysname and
> ->release are unbounded strings, snprintf() may attempt to write more
> than FC_FDMI_HBA_ATTR_OSNAMEVERSION_LEN bytes, triggering a
> -Wformat-truncation warning with W=1.
Applied to 6.18/scsi-staging, thanks!
--
Martin K. Petersen
Powered by blists - more mailing lists