Re: [PATCH] scsi: libfc: Fix potential buffer overflow in fc_ct_ms_fill()
From: Martin K. Petersen
Date: Wed Sep 24 2025 - 21:58:19 EST
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