Re: [PATCH][next] init: Kconfig: Disable -Wstringop-overflow for GCC-11

From: Gustavo A. R. Silva
Date: Thu Nov 30 2023 - 16:58:02 EST




On 11/30/23 15:07, Kees Cook wrote:
On Thu, Nov 30, 2023 at 02:52:10PM -0600, Gustavo A. R. Silva wrote:
-Wstringop-overflow is buggy in GCC-11. Therefore, we should disable

Can you add some links for this? For example, maybe this?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97490

Or discussions from -next builds?

Done. :)


this option specifically for that compiler version. To achieve this,
we introduce a new configuration option: GCC11_NO_STRINGOP_OVERFLOW.

The compiler option related to string operation overflow is now managed
under configuration CC_STRINGOP_OVERFLOW. This option is enabled by
default for all other versions of GCC that support it.

Signed-off-by: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx>

But yeah, let's get this landed to keep new warnings from appearing...


I just applied this to my -next tree.

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

Thanks!
--
Gustavo