mirror-linux/drivers/net/wireless
Kees Cook cf74cdc6e5 wifi: brcmfmac: Annotate struct brcmf_gscan_config 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 checking via CONFIG_UBSAN_BOUNDS
(for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family
functions).

As found with Coccinelle[1], add __counted_by for struct brcmf_gscan_config.

[1] https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci

Cc: Arend van Spriel <aspriel@gmail.com>
Cc: Franky Lin <franky.lin@broadcom.com>
Cc: Hante Meuleman <hante.meuleman@broadcom.com>
Cc: Kalle Valo <kvalo@kernel.org>
Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: Hector Martin <marcan@marcan.st>
Cc: Ryohei Kondo <ryohei.kondo@cypress.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: linux-wireless@vger.kernel.org
Cc: brcm80211-dev-list.pdl@broadcom.com
Cc: SHA-cyfmac-dev-list@infineon.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230915200542.never.417-kees@kernel.org
2023-09-20 14:14:15 +03:00
..
admtek wifi: mac80211: add wake_tx_queue callback to drivers 2022-10-10 11:00:03 +02:00
ath wifi: cfg80211: modify prototype for change_beacon 2023-09-13 12:34:01 +02:00
atmel Fix nomenclature for USB and PCI wireless devices 2023-08-25 12:56:49 +03:00
broadcom wifi: brcmfmac: Annotate struct brcmf_gscan_config with __counted_by 2023-09-20 14:14:15 +03:00
cisco wifi: airo: avoid uninitialized warning in airo_get_rate() 2023-07-11 19:22:54 -07:00
intel wifi: iwlwifi: mvm: add a debug print when we get a BAR 2023-09-13 16:11:41 +02:00
intersil Fix nomenclature for USB and PCI wireless devices 2023-08-25 12:56:49 +03:00
legacy Fix nomenclature for USB and PCI wireless devices 2023-08-25 12:56:49 +03:00
marvell wifi: cfg80211: modify prototype for change_beacon 2023-09-13 12:34:01 +02:00
mediatek wifi: cfg80211: annotate iftype_data pointer with sparse 2023-09-11 11:27:23 +02:00
microchip wifi: cfg80211: modify prototype for change_beacon 2023-09-13 12:34:01 +02:00
purelifi wifi: plfxlc: fix clang-specific fortify warning 2023-09-04 20:33:34 +03:00
quantenna wifi: cfg80211: modify prototype for change_beacon 2023-09-13 12:34:01 +02:00
ralink Fix nomenclature for USB and PCI wireless devices 2023-08-25 12:56:49 +03:00
realtek wifi: rtl8xxxu: Add a description about the device ID 0x7392:0xb722 2023-09-18 17:31:11 +03:00
rsi wifi: rsi: rsi_91x_usb_ops: Remove unnecessary (void*) conversions 2023-08-23 14:07:16 +03:00
silabs wifi: wfx: Use devm_kmemdup to replace devm_kmalloc + memcpy 2023-08-23 14:09:23 +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: clean up kernel-doc 2023-09-11 12:32:39 +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