Re: [PATCH] arm64: mm: reset address tag set by kasan sw tagging

2020-06-15 Thread Will Deacon
On Wed, 10 Jun 2020 16:39:44 +0530, Shyam Thombre wrote: > KASAN sw tagging sets a random tag of 8 bits in the top byte of the pointer > returned by the memory allocating functions. So for the functions unaware > of this change, the top 8 bits of the address must be reset which is done > by the

Re: [PATCH] arm64: mm: reset address tag set by kasan sw tagging

2020-06-12 Thread Shyam Thombre
Hi Catalin, On 6/10/2020 5:06 PM, Catalin Marinas wrote: On Wed, Jun 10, 2020 at 04:39:44PM +0530, Shyam Thombre wrote: KASAN sw tagging sets a random tag of 8 bits in the top byte of the pointer returned by the memory allocating functions. So for the functions unaware of this change, the top

Re: [PATCH] arm64: mm: reset address tag set by kasan sw tagging

2020-06-10 Thread Catalin Marinas
On Wed, Jun 10, 2020 at 04:39:44PM +0530, Shyam Thombre wrote: > KASAN sw tagging sets a random tag of 8 bits in the top byte of the pointer > returned by the memory allocating functions. So for the functions unaware > of this change, the top 8 bits of the address must be reset which is done > by

[PATCH] arm64: mm: reset address tag set by kasan sw tagging

2020-06-10 Thread Shyam Thombre
KASAN sw tagging sets a random tag of 8 bits in the top byte of the pointer returned by the memory allocating functions. So for the functions unaware of this change, the top 8 bits of the address must be reset which is done by the function arch_kasan_reset_tag(). Signed-off-by: Shyam Thombre ---