Re: [PATCH 00/10] Annotate arguments of memtostr/strtomem with __nonstring

Martin K. Petersen
2025-02-13T03:04:57Z

Kees,

> The memtostr*() and strtomem*() helpers are designed to move between C
> strings (NUL-terminated) and byte arrays (that may just be zero padded
> and may not be NUL-terminated). The "nonstring" attribute is used to
> annotated these kinds of byte arrays, and we can validate the
> annotation on the arguments of the helpers. Add the the infrastructure
> to do this, and then update all the places where these annotations are
> currently missing.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> # SCSI

--
Martin K. Petersen Oracle Linux Engineering