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

Will Deacon will at kernel.org
Wed Sep 29 10:48:26 PDT 2021


On Thu, 23 Sep 2021 18:06:55 -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.
> 
> 
> [...]

Applied to arm64 (for-next/mte), thanks!

[1/1] arm64: kasan: mte: move GCR_EL1 switch to task switch when KASAN disabled
      https://git.kernel.org/arm64/c/e5af50a5df57

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list