Re: [PATCH 25/35] kasan: introduce CONFIG_KASAN_HW_TAGS

From
Vincenzo Frascino <vincenzo.frascino@arm.com>
Date
2020-08-27 11:42:30
Also in
linux-mm, lkml
Reply to
Andrey Konovalov, 2020-08-14
Hi Andrey,

On 8/14/20 6:27 PM, Andrey Konovalov wrote:
quoted hunk ↗ jump to hunk
+config·KASAN_HW_TAGS
+» bool·"Hardware·tag-based·mode"
+» depends·on·HAVE_ARCH_KASAN_HW_TAGS
+» depends·on·SLUB
+» help
+» ··Enables·hardware·tag-based·KASAN·mode.
+
+» ··This·mode·requires·both·Memory·Tagging·Extension·and·Top·Byte·Ignore
+» ··support·by·the·CPU·and·therefore·is·only·supported·for·modern·arm64
+» ··CPUs·(MTE·added·in·ARMv8.5·ISA).
+
I do not thing we should make KASAN_HW_TAGS MTE specific especially because it
is in the common code (e.g. SPARC ADI might want to implement it in future).

Probably would be better to provide some indirection in the generic code an
implement the MTE backend entirely in arch code.

Thoughts?

-- 
Regards,
Vincenzo

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (101 messages) 101 messages, 6 authors, last reply 2020-09-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help