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

Reply via email to