Re: [PATCH 2/2] kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage

2018-01-12 Thread Andrey Konovalov
On Thu, Jan 11, 2018 at 10:59 PM, Andrey Ryabinin wrote: > > > On 01/11/2018 06:29 PM, Andrey Konovalov wrote: > >> diff --git a/arch/arm64/include/asm/kasan.h b/arch/arm64/include/asm/kasan.h >> index e266f80e45b7..811643fe7640 100644 >> --- a/arch/arm64/include/asm/kasan.h >> +++ b/arch/arm64/in

Re: [PATCH 2/2] kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage

2018-01-11 Thread Andrey Ryabinin
On 01/11/2018 06:29 PM, Andrey Konovalov wrote: > diff --git a/arch/arm64/include/asm/kasan.h b/arch/arm64/include/asm/kasan.h > index e266f80e45b7..811643fe7640 100644 > --- a/arch/arm64/include/asm/kasan.h > +++ b/arch/arm64/include/asm/kasan.h > @@ -27,7 +27,8 @@ > * should satisfy the foll

Re: [PATCH 2/2] kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage

2018-01-11 Thread Will Deacon
On Thu, Jan 11, 2018 at 04:29:09PM +0100, Andrey Konovalov wrote: > Right now the fact that KASAN uses a single shadow byte for 8 bytes of > memory is scattered all over the code. > > This change defines KASAN_SHADOW_SCALE_SHIFT early in asm include files > and makes use of this constant where nec

[PATCH 2/2] kasan: clean up KASAN_SHADOW_SCALE_SHIFT usage

2018-01-11 Thread Andrey Konovalov
Right now the fact that KASAN uses a single shadow byte for 8 bytes of memory is scattered all over the code. This change defines KASAN_SHADOW_SCALE_SHIFT early in asm include files and makes use of this constant where necessary. Signed-off-by: Andrey Konovalov --- arch/arm64/include/asm/kasan.