Re: [PATCH v5 4/6] arm64: mte: Enable async tag check fault

2021-01-22 Thread Catalin Marinas
On Thu, Jan 21, 2021 at 04:39:41PM +, Vincenzo Frascino wrote: > 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

Re: [PATCH v5 4/6] arm64: mte: Enable async tag check fault

2021-01-22 Thread Vincenzo Frascino
On 1/21/21 5:38 PM, Andrey Konovalov wrote: >> + if (unlikely(tfsr_el1 & SYS_TFSR_EL1_TF1)) { >> + /* >> +* Note: isb() is not required after this direct write >> +* because there is no indirect read subsequent to it >> +* (per

Re: [PATCH v5 4/6] arm64: mte: Enable async tag check fault

2021-01-21 Thread Andrey Konovalov
On Thu, Jan 21, 2021 at 5:40 PM Vincenzo Frascino wrote: > > 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.

[PATCH v5 4/6] arm64: mte: Enable async tag check fault

2021-01-21 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