linux-stable/drivers/net/wireless/ath/wcn36xx
Kees Cook f8cbbb224b wifi: wcn36xx: Annotate struct wcn36xx_hal_ind_msg 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 wcn36xx_hal_ind_msg.

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

Cc: Loic Poulain <loic.poulain@linaro.org>
Cc: Kalle Valo <kvalo@kernel.org>
Cc: wcn36xx@lists.infradead.org
Cc: linux-wireless@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230915200622.never.820-kees@kernel.org
2023-09-21 11:09:31 +03:00
..
debug.c wifi: wcn36xx: Add debugfs entry to read firmware feature strings 2022-07-29 16:24:38 +03:00
debug.h wifi: wcn36xx: Add debugfs entry to read firmware feature strings 2022-07-29 16:24:38 +03:00
dxe.c wifi: wcn36xx: remove unnecessary (void*) conversions 2023-09-21 11:08:22 +03:00
dxe.h wifi: wcn36xx: add support for pronto-v3 2023-03-15 12:15:50 +02:00
firmware.c wifi: wcn36xx: Move capability bitmap to string translation function to firmware.c 2022-07-29 16:24:38 +03:00
firmware.h wifi: wcn36xx: Move capability bitmap to string translation function to firmware.c 2022-07-29 16:24:38 +03:00
hal.h wifi: wcn36xx: fix repeated words in comments 2022-09-19 15:43:02 +03:00
Kconfig
main.c wifi: drivers: Explicitly include correct DT includes 2023-08-01 17:48:38 +03:00
Makefile wifi: wcn36xx: Move firmware feature bit storage to dedicated firmware.c file 2022-07-29 16:24:38 +03:00
pmc.c Revert "wcn36xx: Disable bmps when encryption is disabled" 2021-10-27 10:43:31 +03:00
pmc.h
smd.c wifi: wcn36xx: remove unnecessary (void*) conversions 2023-09-21 11:08:22 +03:00
smd.h wifi: wcn36xx: Annotate struct wcn36xx_hal_ind_msg with __counted_by 2023-09-21 11:09:31 +03:00
testmode.c wifi: wcn36xx: remove unnecessary (void*) conversions 2023-09-21 11:08:22 +03:00
testmode.h
testmode_i.h
txrx.c wifi: wcn36xx: Add RX frame SNR as a source of system entropy 2022-09-19 15:42:37 +03:00
txrx.h wcn36xx: Implement tx_rate reporting 2022-03-30 11:04:25 +03:00
wcn36xx.h wifi: wcn36xx: add support for pronto-v3 2023-03-15 12:15:50 +02:00