Re: [PATCH v4 29/39] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-10-09 Thread Vincenzo Frascino
On 10/9/20 11:16 AM, Catalin Marinas wrote: > On Fri, Oct 09, 2020 at 10:56:02AM +0100, Vincenzo Frascino wrote: >> On 10/9/20 9:11 AM, Catalin Marinas wrote: >>> On Thu, Oct 08, 2020 at 07:24:12PM +0100, Vincenzo Frascino wrote: On 10/2/20 3:06 PM, Catalin Marinas wrote: > On Fri, Oct

Re: [PATCH v4 29/39] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-10-09 Thread Catalin Marinas
On Fri, Oct 09, 2020 at 10:56:02AM +0100, Vincenzo Frascino wrote: > On 10/9/20 9:11 AM, Catalin Marinas wrote: > > On Thu, Oct 08, 2020 at 07:24:12PM +0100, Vincenzo Frascino wrote: > >> On 10/2/20 3:06 PM, Catalin Marinas wrote: > >>> On Fri, Oct 02, 2020 at 01:10:30AM +0200, Andrey Konovalov

Re: [PATCH v4 29/39] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-10-09 Thread Vincenzo Frascino
On 10/9/20 9:11 AM, Catalin Marinas wrote: > On Thu, Oct 08, 2020 at 07:24:12PM +0100, Vincenzo Frascino wrote: >> On 10/2/20 3:06 PM, Catalin Marinas wrote: >>> On Fri, Oct 02, 2020 at 01:10:30AM +0200, Andrey Konovalov wrote: diff --git a/arch/arm64/kernel/mte.c b/arch/arm64/kernel/mte.c

Re: [PATCH v4 29/39] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-10-09 Thread Catalin Marinas
On Thu, Oct 08, 2020 at 07:24:12PM +0100, Vincenzo Frascino wrote: > On 10/2/20 3:06 PM, Catalin Marinas wrote: > > On Fri, Oct 02, 2020 at 01:10:30AM +0200, Andrey Konovalov wrote: > >> diff --git a/arch/arm64/kernel/mte.c b/arch/arm64/kernel/mte.c > >> index 7c67ac6f08df..d1847f29f59b 100644 >

Re: [PATCH v4 29/39] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-10-08 Thread Vincenzo Frascino
Hi Catalin, On 10/2/20 3:06 PM, Catalin Marinas wrote: > On Fri, Oct 02, 2020 at 01:10:30AM +0200, Andrey Konovalov wrote: >> diff --git a/arch/arm64/kernel/mte.c b/arch/arm64/kernel/mte.c >> index 7c67ac6f08df..d1847f29f59b 100644 >> --- a/arch/arm64/kernel/mte.c >> +++ b/arch/arm64/kernel/mte.c

Re: [PATCH v4 29/39] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-10-02 Thread Catalin Marinas
On Fri, Oct 02, 2020 at 01:10:30AM +0200, Andrey Konovalov wrote: > diff --git a/arch/arm64/kernel/mte.c b/arch/arm64/kernel/mte.c > index 7c67ac6f08df..d1847f29f59b 100644 > --- a/arch/arm64/kernel/mte.c > +++ b/arch/arm64/kernel/mte.c > @@ -23,6 +23,8 @@ > #include > #include > > +u64

[PATCH v4 29/39] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-10-01 Thread Andrey Konovalov
From: Vincenzo Frascino When MTE is present, the GCR_EL1 register contains the tags mask that allows to exclude tags from the random generation via the IRG instruction. With the introduction of the new Tag-Based KASAN API that provides a mechanism to reserve tags for special reasons, the MTE