[PATCH] aarch64: MTE compatible strchrnul

Florian Weimer fweimer@redhat.com
Wed Jun 3 15:24:21 GMT 2020


* Szabolcs Nagy:

> The 06/03/2020 17:04, Florian Weimer via Libc-alpha wrote:
>> * Adhemerval Zanella via Libc-alpha:
>> 
>> > Afaiu there is no need to add any marking for MTE, the main difference
>> > it enforce 16-byte granularity read. I think you are confusing with
>> > BTI, which does require the GNU note.
>> 
>> If there is no compatibility issue, then why are these changes to the
>> glibc string functions needed?
>> 
>> Clearly I'm confused.
>
> string functions have problem (2): they assume that
> if an address is accessible then everything on that
> page is accessible via the same pointer (which
> is no longer true with mte).

Ahh.

> i think we can add the mte-safe string functions and
> tackle the abi compatibility issues separately:

I agree that markup is a separate issue.

Thanks,
Florian



More information about the Libc-alpha mailing list