[PATCH v3 3/8] malloc: Basic support for memory tagging in the malloc() family

Florian Weimer fweimer@redhat.com
Wed Nov 25 14:58:27 GMT 2020


* Richard Earnshaw via Libc-alpha:

> +/* Set the tags for a region of memory, which must have size and alignment
> +   that are multiples of __MTAG_GRANULE_SIZE.  Size cannot be zero.
> +   void *__libc_mtag_tag_region (const void *, size_t)  */
> +#define __libc_mtag_tag_region(p, s) (p)

I think we need a description of how the tagging operation is supposed
to work.  For example, it's surprising that the requested tag is not
specified in an argument.

Thanks,
Florian
-- 
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill



More information about the Libc-alpha mailing list