Re: [PATCH v2] EISA: Increase length of device names
From: Kees Cook
Date: Wed Apr 09 2025 - 12:28:49 EST
On Mon, 07 Apr 2025 10:29:35 -0700, Kees Cook wrote:
> GCC 15's -Wunterminated-string-initialization warned about truncated
> name strings. Instead of marking them with the "nonstring" attribute[1],
> increase their length to correctly include enough space for the
> terminating NUL character, as they are used with %s format specifiers
> when showing resource allocations in /proc/ioports:
>
> seq_printf(m, "%*s%0*llx-%0*llx : %s\n", ..., r->name);
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] EISA: Increase length of device names
https://git.kernel.org/kees/c/f891ec0e639a
Take care,
--
Kees Cook