Re: [PATCH] net/mlx5: Annotate struct mlx5_flow_handle with __counted_by

2023-10-12 Thread Saeed Mahameed
On 03 Oct 16:17, 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 via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for

Re: [PATCH] net/mlx5: Annotate struct mlx5_flow_handle with __counted_by

2023-10-04 Thread Leon Romanovsky
On Tue, Oct 03, 2023 at 04:17:30PM -0700, 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 via CONFIG_UBSAN_BOUNDS (for > array indexing)

Re: [PATCH] net/mlx5: Annotate struct mlx5_flow_handle with __counted_by

2023-10-03 Thread Gustavo A. R. Silva
On 10/4/23 01:17, 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 via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE

Re: [PATCH] net/mlx5: Annotate struct mlx5_flow_handle with __counted_by

2023-10-03 Thread Justin Stitt
On Tue, Oct 3, 2023 at 4:17 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 via CONFIG_UBSAN_BOUNDS (for > array indexing) and CON

[PATCH] net/mlx5: Annotate struct mlx5_flow_handle with __counted_by

2023-10-03 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 via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family functions). A