Re: [PATCH 10/12] arm64: kasan: simplify and inline MTE functions

2021-02-04 Thread Vincenzo Frascino
Hi Andrew, On 2/1/21 10:44 PM, Andrew Morton wrote: > On Mon, 1 Feb 2021 20:43:34 +0100 Andrey Konovalov > wrote: > >> This change provides a simpler implementation of mte_get_mem_tag(), >> mte_get_random_tag(), and mte_set_mem_tag_range(). >> >> Simplifications include removing system_support

Re: [PATCH 10/12] arm64: kasan: simplify and inline MTE functions

2021-02-04 Thread Vincenzo Frascino
On 2/1/21 7:43 PM, Andrey Konovalov wrote: > This change provides a simpler implementation of mte_get_mem_tag(), > mte_get_random_tag(), and mte_set_mem_tag_range(). > > Simplifications include removing system_supports_mte() checks as these > functions are onlye called from KASAN runtime that had

Re: [PATCH 10/12] arm64: kasan: simplify and inline MTE functions

2021-02-02 Thread Andrey Konovalov
On Tue, Feb 2, 2021 at 4:42 PM Catalin Marinas wrote: > > On Mon, Feb 01, 2021 at 08:43:34PM +0100, Andrey Konovalov wrote: > > +/* > > + * Assign allocation tags for a region of memory based on the pointer tag. > > + * Note: The address must be non-NULL and MTE_GRANULE_SIZE aligned and > > + * si

Re: [PATCH 10/12] arm64: kasan: simplify and inline MTE functions

2021-02-02 Thread Catalin Marinas
On Mon, Feb 01, 2021 at 08:43:34PM +0100, Andrey Konovalov wrote: > +/* > + * Assign allocation tags for a region of memory based on the pointer tag. > + * Note: The address must be non-NULL and MTE_GRANULE_SIZE aligned and > + * size must be non-zero and MTE_GRANULE_SIZE aligned. > + */ OK, so we

Re: [PATCH 10/12] arm64: kasan: simplify and inline MTE functions

2021-02-01 Thread Andrew Morton
On Mon, 1 Feb 2021 20:43:34 +0100 Andrey Konovalov wrote: > This change provides a simpler implementation of mte_get_mem_tag(), > mte_get_random_tag(), and mte_set_mem_tag_range(). > > Simplifications include removing system_supports_mte() checks as these > functions are onlye called from KASA

[PATCH 10/12] arm64: kasan: simplify and inline MTE functions

2021-02-01 Thread Andrey Konovalov
This change provides a simpler implementation of mte_get_mem_tag(), mte_get_random_tag(), and mte_set_mem_tag_range(). Simplifications include removing system_supports_mte() checks as these functions are onlye called from KASAN runtime that had already checked system_supports_mte(). Besides that,