Re: [PATCH] wifi: carl9170: Remove -Warray-bounds exception

From: Kalle Valo
Date: Wed Oct 12 2022 - 02:37:16 EST


Kees Cook <keescook@xxxxxxxxxxxx> wrote:

> GCC-12 emits false positive -Warray-bounds warnings with
> CONFIG_UBSAN_SHIFT (-fsanitize=shift). This is fixed in GCC 13[1],
> and there is top-level Makefile logic to remove -Warray-bounds for
> known-bad GCC versions staring with commit f0be87c42cbd ("gcc-12: disable
> '-Warray-bounds' universally for now").
>
> Remove the local work-around.
>
> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105679
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
> Acked-by: Christian Lamparter <chunkeey@xxxxxxxxx>
> Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx>

Patch applied to ath-next branch of ath.git, thanks.

2577a58df244 wifi: carl9170: Remove -Warray-bounds exception

--
https://patchwork.kernel.org/project/linux-wireless/patch/20221006192051.1742930-1-keescook@xxxxxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches