> On May 26, 2023, at 12:12 PM, Kees Cook <keesc...@chromium.org> wrote: > > On Thu, May 25, 2023 at 04:14:47PM +0000, Qing Zhao wrote: >> This patch set introduces a new attribute "element_count" to annotate bounds >> for C99 flexible array member. > > Thank you for this work! I'm really excited to start using it in the > Linux kernel. I'll give this a spin, but I know you've already been > testing this series against the test cases I created earlier, so I don't > expect any problems. :) > > One bike-shedding note: with the recent "-fbounds-safety" RFC posted for > LLVM, we may want to consider renaming "element_count" to "counted_by": > https://discourse.llvm.org/t/rfc-enforcing-bounds-safety-in-c-fbounds-safety/ Yeah, we can do that. thanks. Qing > > Thanks again! > > -Kees > > -- > Kees Cook
- [V1][PATCH 1/3] Provide element_count attrib... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 1/3] Provide element_cou... Joseph Myers
- Re: [V1][PATCH 1/3] Provide element... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 1/3] Provide ele... Joseph Myers
- Re: [V1][PATCH 1/3] Provide... Qing Zhao via Gcc-patches
- [V1][PATCH 2/3] Use the element_count atribu... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 2/3] Use the element_cou... Martin Uecker via Gcc-patches
- Re: [V1][PATCH 2/3] Use the element... Qing Zhao via Gcc-patches
- [V1][PATCH 3/3] Use the element_count attrib... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 0/3] New attribute "elem... Kees Cook via Gcc-patches
- Re: [V1][PATCH 0/3] New attribute "... Qing Zhao via Gcc-patches
- Re: [V1][PATCH 0/3] New attribute "elem... Kees Cook via Gcc-patches
- Re: [V1][PATCH 0/3] New attribute "... Qing Zhao via Gcc-patches