Re: [PATCH 00/35] kasan: add hardware tag-based mode for arm64
From: Derrick McKee <hidden>
Date: 2020-09-14 22:43:24
On 9/14/20 5:36 PM, Derrick McKee wrote:
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? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel