Re: [PATCH] ASoC: apple: mca: Annotate struct mca_data with __counted_by

2023-10-11 Thread Mark Brown
On Fri, 22 Sep 2023 10:50:50 -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 checking via CONFIG_UBSAN_BOUNDS > (for array indexi

Re: [PATCH] ASoC: apple: mca: Annotate struct mca_data with __counted_by

2023-10-09 Thread Kees Cook
On Mon, Oct 09, 2023 at 08:43:44PM +0100, Mark Brown wrote: > Off the top of my head I'd say wait at least three weeks for this sort > of patch before doing anything and then prefer to do a resend, that's > should avoid most issues. If you're going to just apply things yourself > I'd suggest waiti

Re: [PATCH] ASoC: apple: mca: Annotate struct mca_data with __counted_by

2023-10-09 Thread Mark Brown
On Mon, Oct 09, 2023 at 10:17:33AM -0700, Kees Cook wrote: > On Fri, Oct 06, 2023 at 09:53:49PM +0100, Mark Brown wrote: > > Please don't send content free pings and please allow a reasonable time > > for review. People get busy, go on holiday, attend conferences and so > > on so unless there is

Re: [PATCH] ASoC: apple: mca: Annotate struct mca_data with __counted_by

2023-10-09 Thread Kees Cook
On Fri, Oct 06, 2023 at 09:53:49PM +0100, Mark Brown wrote: > On Fri, Oct 06, 2023 at 01:22:55PM -0700, Kees Cook wrote: > > On Fri, Sep 22, 2023 at 10:50:50AM -0700, Kees Cook wrote: > > > > Prepare for the coming implementation by GCC and Clang of the __counted_by > > > attribute. Flexible array

Re: [PATCH] ASoC: apple: mca: Annotate struct mca_data with __counted_by

2023-10-06 Thread Mark Brown
On Fri, Oct 06, 2023 at 01:22:55PM -0700, Kees Cook wrote: > On Fri, Sep 22, 2023 at 10:50:50AM -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 bound

Re: [PATCH] ASoC: apple: mca: Annotate struct mca_data with __counted_by

2023-10-06 Thread Kees Cook
On Fri, Sep 22, 2023 at 10:50:50AM -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 checking via CONFIG_UBSAN_BOUNDS > (for array

Re: [PATCH] ASoC: apple: mca: Annotate struct mca_data with __counted_by

2023-09-23 Thread Gustavo A. R. Silva
On 9/22/23 11:50, 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 CONFIG_FORTIF