[PATCH 00/35] kasan: add hardware tag-based mode for arm64

Andrey Konovalov andreyknvl at google.com
Mon Sep 14 18:50:20 EDT 2020


On Tue, Sep 15, 2020 at 12:41 AM Derrick McKee <derrick.mckee at gmail.com> wrote:
>
> On 9/14/20 5:36 PM, Derrick McKee wrote:
> > On 9/14/20 4:04 PM, Andrey Konovalov wrote:
> >> One needs to use the latest QEMU master and provide "-machine
> >> virt,mte=on -cpu max" arguments to it. I'll add this information into
> >> the cover letter for v2.
> >
> > I am using the latest QEMU as of Sep. 8, and starting the system with
> > virt,mte=on, and I have also checked that the appropriate bits are set
> > in sctlr_el1 and ID_AA64PFR1_EL1. Finally, when I print out the tag
> > immediately before and after mte_assign_mem_tag_range I get the same
> > result.
>
> I should also mention that CONFIG_KASAN_HW_TAGS=n in my configuration,
> but I have added my own macro to enable my code and added it to the
> conditional macro in memory.h:224.  I have also ensured that
> mte_init_tags is called from setup_arch.  But still the result of the
> ldg instruction to get the address tag is always 0, despite the desired
> tag of 2.  Perhaps I am missing some other needed setup or configuration?

Hm, this should work I guess.

Could you try CONFIG_KASAN_HW_TAGS=y and check if that works?



More information about the linux-arm-kernel mailing list