Re: [PATCH][next] xen/xenbus: Add __counted_by for struct read_buffer and use struct_size()

2023-10-11 Thread Jason Andryuk
ember. > > This code was found with the help of Coccinelle, and audited and > fixed manually. > > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Jason Andryuk

Re: [PATCH v2] wifi: p54: Annotate struct p54_cal_database with __counted_by

2023-10-09 Thread Jason Andryuk
y indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family > functions). > > Add __counted_by for struct p54_cal_database. > > Cc: Christian Lamparter > Cc: Kalle Valo > Cc: "Gustavo A. R. Silva" > Cc: linux-wirel...@vger.kernel.org > Cc: linux-har

Re: [PATCH] wifi: p54: Annotate struct p54_cal_database with __counted_by

2023-10-09 Thread Jason Andryuk
Hi, I randomly peeked at this patch. Unfortunately, I am not familiar with the actual p54 code. On Fri, Oct 6, 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