Thread (101 messages) 101 messages, 6 authors, 2020-09-18

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

From: Andrey Konovalov <hidden>
Date: 2020-09-14 22:52:21

On Tue, Sep 15, 2020 at 12:41 AM Derrick McKee [off-list ref] wrote:
On 9/14/20 5:36 PM, Derrick McKee wrote:
quoted
On 9/14/20 4:04 PM, Andrey Konovalov wrote:
quoted
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?

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help