OpenCloudOS-Kernel/drivers/staging/rtl8192e
Kees Cook aee17df05e staging: rtl8192e: Annotate struct rtllib_txb 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 rtllib_txb.

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

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Cc: linux-staging@lists.linux.dev
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20230817204523.never.034-kees@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-22 15:48:05 +02:00
..
rtl8192e staging: rtl8192e: Remove unsupported mode IW_MODE_MASTER 2023-08-22 15:44:31 +02:00
Kconfig staging: rtl8192e: Describe each kernel config option 2022-08-30 17:17:03 +02:00
Makefile
TODO staging: rtl8192e: Update the TODO file for this driver 2022-10-22 09:58:50 +02:00
dot11d.c
dot11d.h
rtl819x_BA.h
rtl819x_BAProc.c Staging: rtl8192e: Rename function RxBaInactTimeout 2023-08-09 14:25:17 +02:00
rtl819x_HT.h staging: rtl8192e: Remove whitespace and blank lines 2023-06-23 10:18:27 +02:00
rtl819x_HTProc.c staging: rtl8192e: Remove unsupported mode IW_MODE_MASTER 2023-08-22 15:44:31 +02:00
rtl819x_Qos.h staging: rtl8192e: remove blank lines 2023-06-15 12:46:35 +02:00
rtl819x_TS.h staging: rtl8192e: Remove unused timer InactTimer 2023-07-27 09:57:38 +02:00
rtl819x_TSProc.c staging: rtl8192e: Remove unsupported mode IW_MODE_MASTER 2023-08-22 15:44:31 +02:00
rtllib.h staging: rtl8192e: Annotate struct rtllib_txb with __counted_by 2023-08-22 15:48:05 +02:00
rtllib_crypt_ccmp.c staging: rtl8192e: avoid CamelCase <dot11RSNAStatsCCMPDecryptErrors> 2023-04-05 16:39:08 +02:00
rtllib_crypt_tkip.c staging: rtl8192e: rtllib_crypt_tkip: rewritten comparison to NULL 2022-10-31 09:07:20 +01:00
rtllib_crypt_wep.c staging: rtl8192e: rtllib_crypt_wep: multiple blank lines removal 2022-10-25 19:25:36 +02:00
rtllib_debug.h staging: rtl8192e: Remove ftrace-like logging in rtl819x_BAProc.c, ... 2022-09-24 12:59:53 +02:00
rtllib_module.c staging: rtl8192e: Remove variable host_decrypt as it is constant 2023-07-27 09:57:38 +02:00
rtllib_rx.c staging: rtl8192e: Remove unsupported mode IW_MODE_MESH 2023-08-22 15:44:31 +02:00
rtllib_softmac.c staging: rtl8192e: Remove unused function rtllib_start_master_bss() 2023-08-22 15:44:31 +02:00
rtllib_softmac_wx.c staging: rtl8192e: Remove unsupported mode IW_MODE_MASTER 2023-08-22 15:44:31 +02:00
rtllib_tx.c staging: rtl8192e: Remove unsupported mode IW_MODE_MASTER 2023-08-22 15:44:31 +02:00
rtllib_wx.c staging: rtl8192e: remove 5G related code 2023-06-20 16:14:47 +02:00