Thread (3 messages) 3 messages, 3 authors, 2021-09-29

Re: [PATCH v4] arm64: kasan: mte: move GCR_EL1 switch to task switch when KASAN disabled

flat view

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2021-09-24 11:36:58

On Thu, Sep 23, 2021 at 06:06:55PM -0700, Peter Collingbourne wrote:
It is not necessary to write to GCR_EL1 on every kernel entry and
exit when HW tag-based KASAN is disabled because the kernel will not
execute any IRG instructions in that mode. Since accessing GCR_EL1
can be expensive on some microarchitectures, avoid doing so by moving
the access to task switch when HW tag-based KASAN is disabled.

Signed-off-by: Peter Collingbourne <redacted>
Acked-by: Andrey Konovalov <andreyknvl@gmail.com>
Link: https://linux-review.googlesource.com/id/I78e90d60612a94c24344526f476ac4ff216e10d2
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>

_______________________________________________
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