[PATCH 2/4] arm64: mte: Add asynchronous mode support
Vincenzo Frascino
vincenzo.frascino at arm.com
Fri Jan 8 12:26:10 EST 2021
Hi Andrey,
On 1/8/21 1:36 PM, Andrey Konovalov wrote:
> Perhaps we could add a generic arch-agnostic enum to
> include/linux/kasan.h and use it in both arm64 and KASAN code?
>
> enum kasan_hw_tags_mode {
> KASAN_HW_TAGS_SYNC,
> KASAN_HW_TAGS_ASYNC
> }
>
> Assuming other architectures that support memory tagging will end up
> with sync/async mode separation as well, this should work. But even if
> that doesn't happen, this interface can be adjusted later.
I am fine with this solution, I will add it in my v3.
As part of the enumeration I will add READ_SYNC mode as well, so we have all the
possible combinations.
--
Regards,
Vincenzo
More information about the linux-arm-kernel
mailing list