Re: [PATCH] wifi: ath10k: Annotate struct ath10k_ce_ring with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
On 9/15/23 14:06, Kees Cook wrote: 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

Re: [PATCH] wifi: ath10k: Annotate struct ath10k_ce_ring with __counted_by

2023-09-15 Thread Jeff Johnson
On 9/15/2023 1:06 PM, Kees Cook wrote: 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

[PATCH] wifi: ath10k: Annotate struct ath10k_ce_ring with __counted_by

2023-09-15 Thread Kees Cook
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

Re: [PATCH wireless-next 6/9] wifi: ath10k: Remove unnecessary (void*) conversions

2023-09-15 Thread yunchuan
On 2023/9/14 22:48, Jeff Johnson wrote: On 9/13/2023 9:05 PM, Wu Yunchuan wrote: No need cast (void*) to (struct htt_rx_ring_setup_ring32 *), (struct htt_rx_ring_setup_ring64 *), (struct ath_softc *) or (struct ath_hw *). Signed-off-by: Wu Yunchuan ---