mirror_ubuntu-kernels/drivers/net/wireless
Kees Cook d9756ce618 wifi: p54: Annotate struct p54_cal_database with __counted_by
Prepare for the coming implementation by GCC and Clang of the __counted_by
attribute. Flexible array members annotated with __counted_by can have
their accesses bounds-checked at run-time via CONFIG_UBSAN_BOUNDS (for
array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family
functions).

Add __counted_by for struct p54_cal_database.

Cc: Christian Lamparter <chunkeey@googlemail.com>
Cc: Kalle Valo <kvalo@kernel.org>
Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: linux-wireless@vger.kernel.org
Cc: linux-hardening@vger.kernel.org
Suggested-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231009161028.it.544-kees@kernel.org
2023-10-12 15:12:11 +03:00
..
admtek
ath Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2023-10-09 09:45:08 +03:00
atmel Fix nomenclature for USB and PCI wireless devices 2023-08-25 12:56:49 +03:00
broadcom wifi: brcmfmac: fweh: Add __counted_by for struct brcmf_fweh_queue_item and use struct_size() 2023-10-11 12:20:58 +03:00
cisco wifi: airo: avoid uninitialized warning in airo_get_rate() 2023-07-11 19:22:54 -07:00
intel Merge wireless into wireless-next 2023-10-06 17:08:47 +03:00
intersil wifi: p54: Annotate struct p54_cal_database with __counted_by 2023-10-12 15:12:11 +03:00
legacy Fix nomenclature for USB and PCI wireless devices 2023-08-25 12:56:49 +03:00
marvell Merge wireless into wireless-next 2023-10-06 17:08:47 +03:00
mediatek mt76 patches for 6.7 2023-10-09 09:35:41 +03:00
microchip wifi: cfg80211: split struct cfg80211_ap_settings 2023-09-25 09:00:39 +02:00
purelifi wifi: plfxlc: fix clang-specific fortify warning 2023-09-04 20:33:34 +03:00
quantenna wifi: cfg80211: split struct cfg80211_ap_settings 2023-09-25 09:00:39 +02:00
ralink wifi: rt2x00: fix MT7620 low RSSI issue 2023-10-03 14:42:18 +03:00
realtek wifi: rtw88: Remove duplicate NULL check before calling usb_kill/free_urb() 2023-10-11 12:17:46 +03:00
rsi wifi: rsi: rsi_91x_usb_ops: Remove unnecessary (void*) conversions 2023-08-23 14:07:16 +03:00
silabs wifi: wfx: fix case where rates are out of order 2023-10-09 09:54:14 +03:00
st wifi: cw1200: Avoid processing an invalid TIM IE 2023-09-18 17:28:12 +03:00
ti wifi: wlcore: Convert to platform remove callback returning void 2023-09-18 17:31:37 +03:00
virtual wifi: mac80211_hwsim: Handle BSS_CHANGED_VALID_LINKS 2023-09-25 09:12:33 +02:00
zydas Fix nomenclature for USB and PCI wireless devices 2023-08-25 12:56:49 +03:00
Kconfig wifi: move raycs, wl3501 and rndis_wlan to legacy directory 2023-03-13 15:42:14 +02:00
Makefile wifi: move raycs, wl3501 and rndis_wlan to legacy directory 2023-03-13 15:42:14 +02:00