[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <169099536007.463701.11948665209748140465.kvalo@kernel.org>
Date: Wed, 2 Aug 2023 16:56:01 +0000 (UTC)
From: Kalle Valo <kvalo@...nel.org>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Jeff Johnson <quic_jjohnson@...cinc.com>,
Balamurugan Selvarajan <quic_bselvara@...cinc.com>,
P Praneesh <quic_ppranees@...cinc.com>,
Baochen Qiang <quic_bqiang@...cinc.com>,
Karthikeyan Periyasamy <quic_periyasa@...cinc.com>,
Arnd Bergmann <arnd@...db.de>,
Ramya Gnanasekar <quic_rgnanase@...cinc.com>,
Wen Gong <quic_wgong@...cinc.com>,
Karthik M <quic_karm@...cinc.com>,
Aditya Kumar Singh <quic_adisi@...cinc.com>,
Aishwarya R <quic_aisr@...cinc.com>,
Carl Huang <quic_cjhuang@...cinc.com>,
ath12k@...ts.infradead.org, linux-wireless@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ath12k: fix memcpy array overflow in
ath12k_peer_assoc_h_he
Arnd Bergmann <arnd@...nel.org> wrote:
> Two memory copies in this function copy from a short array into a longer one,
> using the wrong size, which leads to an out-of-bounds access:
>
> include/linux/fortify-string.h:592:4: error: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Werror,-Wattribute-warning]
> __read_overflow2_field(q_size_field, size);
> ^
> include/linux/fortify-string.h:592:4: error: call to '__read_overflow2_field' declared with 'warning' attribute: detected read beyond size of field (2nd parameter); maybe use struct_group()? [-Werror,-Wattribute-warning]
> 2 errors generated.
>
> Fixes: d889913205cf7 ("wifi: ath12k: driver for Qualcomm Wi-Fi 7 devices")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> Signed-off-by: Kalle Valo <quic_kvalo@...cinc.com>
Patch applied to ath-next branch of ath.git, thanks.
603cf6c2fcdc wifi: ath12k: fix memcpy array overflow in ath12k_peer_assoc_h_he()
--
https://patchwork.kernel.org/project/linux-wireless/patch/20230703123737.3420464-1-arnd@kernel.org/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists