[PATCH v8 29/43] arm64: mte: Add in-kernel tag fault handler
Catalin Marinas
catalin.marinas at arm.com
Thu Nov 5 11:57:25 EST 2020
On Thu, Nov 05, 2020 at 12:18:44AM +0100, Andrey Konovalov wrote:
> From: Vincenzo Frascino <vincenzo.frascino at arm.com>
>
> Add the implementation of the in-kernel fault handler.
>
> When a tag fault happens on a kernel address:
> * MTE is disabled on the current CPU,
> * the execution continues.
>
> When a tag fault happens on a user address:
> * the kernel executes do_bad_area() and panics.
>
> The tag fault handler for kernel addresses is currently empty and will be
> filled in by a future commit.
>
> Signed-off-by: Vincenzo Frascino <vincenzo.frascino at arm.com>
> Co-developed-by: Andrey Konovalov <andreyknvl at google.com>
> Signed-off-by: Andrey Konovalov <andreyknvl at google.com>
Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>
More information about the linux-arm-kernel
mailing list