Re: [PATCH v2 3/4] arm64: mte: Enable async tag check fault

2021-01-14 Thread Vincenzo Frascino
On 1/14/21 2:25 PM, Catalin Marinas wrote: > On Thu, Jan 14, 2021 at 10:24:25AM +, Vincenzo Frascino wrote: >> On 1/13/21 6:11 PM, Catalin Marinas wrote: >>> On Thu, Jan 07, 2021 at 05:29:07PM +, Vincenzo Frascino wrote: static inline void mte_sync_tags(pte_t *ptep, pte_t pte)

Re: [PATCH v2 3/4] arm64: mte: Enable async tag check fault

2021-01-14 Thread Catalin Marinas
On Thu, Jan 14, 2021 at 10:24:25AM +, Vincenzo Frascino wrote: > On 1/13/21 6:11 PM, Catalin Marinas wrote: > > On Thu, Jan 07, 2021 at 05:29:07PM +, Vincenzo Frascino wrote: > >> static inline void mte_sync_tags(pte_t *ptep, pte_t pte) > >> { > >> } > >> diff --git

Re: [PATCH v2 3/4] arm64: mte: Enable async tag check fault

2021-01-14 Thread Vincenzo Frascino
On 1/13/21 6:11 PM, Catalin Marinas wrote: > On Thu, Jan 07, 2021 at 05:29:07PM +, Vincenzo Frascino wrote: >> diff --git a/arch/arm64/include/asm/mte.h b/arch/arm64/include/asm/mte.h >> index d02aff9f493d..a60d3718baae 100644 >> --- a/arch/arm64/include/asm/mte.h >> +++

Re: [PATCH v2 3/4] arm64: mte: Enable async tag check fault

2021-01-13 Thread Catalin Marinas
On Thu, Jan 07, 2021 at 05:29:07PM +, Vincenzo Frascino wrote: > diff --git a/arch/arm64/include/asm/mte.h b/arch/arm64/include/asm/mte.h > index d02aff9f493d..a60d3718baae 100644 > --- a/arch/arm64/include/asm/mte.h > +++ b/arch/arm64/include/asm/mte.h > @@ -39,6 +39,7 @@ void

[PATCH v2 3/4] arm64: mte: Enable async tag check fault

2021-01-07 Thread Vincenzo Frascino
MTE provides a mode that asynchronously updates the TFSR_EL1 register when a tag check exception is detected. To take advantage of this mode the kernel has to verify the status of the register at: 1. Context switching 2. Return to user/EL0 (Not required in entry from EL0 since the kernel