Re: [PATCH 00/10] Annotate arguments of memtostr/strtomem with __nonstring
From: Martin K. Petersen
Date: Wed Feb 12 2025 - 22:05:11 EST
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@xxxxxxxxxx> # SCSI
--
Martin K. Petersen Oracle Linux Engineering