Message ID | 20250207005832.work.324-kees@kernel.org |
---|---|
Headers | show |
Series | Annotate arguments of memtostr/strtomem with __nonstring | expand |
On Fri, Feb 7, 2025 at 4:37 AM Kees Cook <kees@kernel.org> wrote: > On Thu, Feb 06, 2025 at 05:12:11PM -0800, Dave Hansen wrote: > > On 2/6/25 17:00, Kees Cook wrote: ... > > So, the patch itself makes sense. But it does end up looking kinda > > funky. We call it a "str"ing and then annotate it as not a string. > > Yeah, this is true all over the place. It's a string, just not a > NUL-terminated string: *sob* Maybe call it respectively, e.g., __nontermstr ?
On Fri, Feb 07, 2025 at 02:09:12PM +0200, Andy Shevchenko wrote: > On Fri, Feb 7, 2025 at 4:37 AM Kees Cook <kees@kernel.org> wrote: > > On Thu, Feb 06, 2025 at 05:12:11PM -0800, Dave Hansen wrote: > > > On 2/6/25 17:00, Kees Cook wrote: > > ... > > > > So, the patch itself makes sense. But it does end up looking kinda > > > funky. We call it a "str"ing and then annotate it as not a string. > > > > Yeah, this is true all over the place. It's a string, just not a > > NUL-terminated string: *sob* > > Maybe call it respectively, e.g., __nontermstr ? I don't want to change its name from the GCC attribute. I think that's just asking more more confusion.