lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <37e1da82-736f-44a4-af51-036f9e3182f4@leemhuis.info>
Date: Mon, 31 Mar 2025 16:51:08 +0200
From: Thorsten Leemhuis <linux@...mhuis.info>
To: Kees Cook <kees@...nel.org>, Zhenyu Wang <zhenyuw@...ux.intel.com>
Cc: Zhi Wang <zhi.wang.linux@...il.com>,
 Jani Nikula <jani.nikula@...ux.intel.com>,
 Joonas Lahtinen <joonas.lahtinen@...ux.intel.com>,
 Rodrigo Vivi <rodrigo.vivi@...el.com>, Tvrtko Ursulin
 <tursulin@...ulin.net>, David Airlie <airlied@...il.com>,
 Simona Vetter <simona@...ll.ch>, intel-gvt-dev@...ts.freedesktop.org,
 intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
 linux-kernel@...r.kernel.org, linux-hardening@...r.kernel.org,
 Justin Forbes <jforbes@...hat.com>, Nicolas Chauvet <kwizart@...il.com>
Subject: Re: [PATCH] drm/i915/gvt: Add __nonstring annotations for
 unterminated strings

On 10.03.25 23:23, Kees Cook wrote:
> 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.
> 
> Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178 [1]
> [...]
> Signed-off-by: Kees Cook <kees@...nel.org>

To provide another small data point:

Tested-by: Thorsten Leemhuis <linux@...mhuis.info>

A "Compile-Tested-by", to be precise: after a handful similar patches
reached mainline recently this is the only one I still need to compile
the pretty broad Fedora rawhide config on rawhide using the GCC 15
pre-release it currently includes. The latter or the final will
hopefully soon also reach Fedora 42 beta as well and bring the "[1]"
mentioned in the patch description above to F42 -- which will be
released in a few weeks, so I guess it would be nice to have this patch
mainlined rather sooner that later to avoid more people running into this.

HTH, ciao, Thorsten

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ