[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <172833739297.2581613.4397682908224722962.b4-ty@quicinc.com>
Date: Mon, 7 Oct 2024 14:43:12 -0700
From: Jeff Johnson <quic_jjohnson@...cinc.com>
To: Kalle Valo <kvalo@...nel.org>, Jeff Johnson <jjohnson@...nel.org>,
"Jakub
Kicinski" <kuba@...nel.org>, Kees Cook <kees@...nel.org>,
Paolo Abeni
<pabeni@...hat.com>,
Baochen Qiang <quic_bqiang@...cinc.com>,
Arnd Bergmann
<arnd@...nel.org>
CC: Arnd Bergmann <arnd@...db.de>,
Rameshkumar Sundaram
<quic_ramess@...cinc.com>,
<linux-wireless@...r.kernel.org>, <ath12k@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] wifi: ath12k: fix one more memcpy size error
On Fri, 04 Oct 2024 09:54:13 +0000, Arnd Bergmann wrote:
> A previous patch addressed a fortified-memcpy warning on older compilers,
> but there is still a warning on gcc-14 in some configurations:
>
> In file included from include/linux/string.h:390,
> from drivers/net/wireless/ath/ath12k/wow.c:7:
> drivers/net/wireless/ath/ath12k/wow.c: In function 'ath12k_wow_convert_8023_to_80211.isra':
> include/linux/fortify-string.h:114:33: error: '__builtin_memcpy' accessing 18446744073709551610 or more bytes at offsets 0 and 0 overlaps 9223372036854775797 bytes at offset -9223372036854775803 [-Werror=restrict]
> include/linux/fortify-string.h:679:26: note: in expansion of macro '__fortify_memcpy_chk'
> 679 | #define memcpy(p, q, s) __fortify_memcpy_chk(p, q, s, \
> | ^~~~~~~~~~~~~~~~~~~~
> drivers/net/wireless/ath/ath12k/wow.c:199:25: note: in expansion of macro 'memcpy'
> 199 | memcpy(pat + a3_ofs - pkt_ofs,
> | ^~~~~~
>
> [...]
Applied, thanks!
[1/1] wifi: ath12k: fix one more memcpy size error
commit: 19c23eb61fa4c802e6e0aaf74d6f7dcbe99f0ba3
Best regards,
--
Jeff Johnson <quic_jjohnson@...cinc.com>
Powered by blists - more mailing lists