[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200917170601.GO10662@gaia>
Date: Thu, 17 Sep 2020 18:06:01 +0100
From: Catalin Marinas <catalin.marinas@....com>
To: Andrey Konovalov <andreyknvl@...gle.com>
Cc: Dmitry Vyukov <dvyukov@...gle.com>,
Vincenzo Frascino <vincenzo.frascino@....com>,
kasan-dev@...glegroups.com,
Andrey Ryabinin <aryabinin@...tuozzo.com>,
Alexander Potapenko <glider@...gle.com>,
Marco Elver <elver@...gle.com>,
Evgenii Stepanov <eugenis@...gle.com>,
Elena Petrova <lenaptr@...gle.com>,
Branislav Rankov <Branislav.Rankov@....com>,
Kevin Brodsky <kevin.brodsky@....com>,
Will Deacon <will.deacon@....com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-arm-kernel@...ts.infradead.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 26/37] arm64: mte: Convert gcr_user into an exclude
mask
On Tue, Sep 15, 2020 at 11:16:08PM +0200, Andrey Konovalov wrote:
> From: Vincenzo Frascino <vincenzo.frascino@....com>
>
> The gcr_user mask is a per thread mask that represents the tags that are
> excluded from random generation when the Memory Tagging Extension is
> present and an 'irg' instruction is invoked.
>
> gcr_user affects the behavior on EL0 only.
>
> Currently that mask is an include mask and it is controlled by the user
> via prctl() while GCR_EL1 accepts an exclude mask.
>
> Convert the include mask into an exclude one to make it easier the
> register setting.
>
> Note: This change will affect gcr_kernel (for EL1) introduced with a
> future patch.
>
> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@....com>
> Signed-off-by: Andrey Konovalov <andreyknvl@...gle.com>
Reviewed-by: Catalin Marinas <catalin.marinas@....com>
Powered by blists - more mailing lists