Re: [PATCH 2/2] wifi: ath9k: work around memset overflow warning

2024-03-28 Thread Kees Cook
On Thu, Mar 28, 2024 at 02:55:05PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > gcc-9 and some other older versions produce a false-positive warning > for zeroing two fields > > In file included from include/linux/string.h:369, > from drivers/net/wireless/ath/ath9k/main

Re: [PATCH 2/2] wifi: ath9k: work around memset overflow warning

2024-03-28 Thread Toke Høiland-Jørgensen
Arnd Bergmann writes: > From: Arnd Bergmann > > gcc-9 and some other older versions produce a false-positive warning > for zeroing two fields > > In file included from include/linux/string.h:369, > from drivers/net/wireless/ath/ath9k/main.c:18: > In function 'fortify_memset_chk'

[PATCH 2/2] wifi: ath9k: work around memset overflow warning

2024-03-28 Thread Arnd Bergmann
From: Arnd Bergmann gcc-9 and some other older versions produce a false-positive warning for zeroing two fields In file included from include/linux/string.h:369, from drivers/net/wireless/ath/ath9k/main.c:18: In function 'fortify_memset_chk', inlined from 'ath9k_ps_wakeup' a