Re: [PATCH v9 10/44] kasan: define KASAN_GRANULE_PAGE

2020-11-11 Thread Andrey Konovalov
On Wed, Nov 11, 2020 at 8:05 PM Marco Elver wrote: > > On Wed, 11 Nov 2020 at 19:48, Andrey Konovalov wrote: > > > > On Wed, Nov 11, 2020 at 3:13 PM Alexander Potapenko > > wrote: > > > > > > On Tue, Nov 10, 2020 at 11:11 PM Andrey Konovalov > > > wrote: > > > > > > > > Define

Re: [PATCH v9 10/44] kasan: define KASAN_GRANULE_PAGE

2020-11-11 Thread Marco Elver
On Wed, 11 Nov 2020 at 19:48, Andrey Konovalov wrote: > > On Wed, Nov 11, 2020 at 3:13 PM Alexander Potapenko wrote: > > > > On Tue, Nov 10, 2020 at 11:11 PM Andrey Konovalov > > wrote: > > > > > > Define KASAN_GRANULE_PAGE as (KASAN_GRANULE_SIZE << PAGE_SHIFT), which is > > > the same as

Re: [PATCH v9 10/44] kasan: define KASAN_GRANULE_PAGE

2020-11-11 Thread Andrey Konovalov
On Wed, Nov 11, 2020 at 3:13 PM Alexander Potapenko wrote: > > On Tue, Nov 10, 2020 at 11:11 PM Andrey Konovalov > wrote: > > > > Define KASAN_GRANULE_PAGE as (KASAN_GRANULE_SIZE << PAGE_SHIFT), which is > > the same as (KASAN_GRANULE_SIZE * PAGE_SIZE), and use it across KASAN code > > to

Re: [PATCH v9 10/44] kasan: define KASAN_GRANULE_PAGE

2020-11-11 Thread Alexander Potapenko
On Tue, Nov 10, 2020 at 11:11 PM Andrey Konovalov wrote: > > Define KASAN_GRANULE_PAGE as (KASAN_GRANULE_SIZE << PAGE_SHIFT), which is > the same as (KASAN_GRANULE_SIZE * PAGE_SIZE), and use it across KASAN code > to simplify it. What's the physical sense behind KASAN_GRANULE_PAGE? Is it

[PATCH v9 10/44] kasan: define KASAN_GRANULE_PAGE

2020-11-10 Thread Andrey Konovalov
Define KASAN_GRANULE_PAGE as (KASAN_GRANULE_SIZE << PAGE_SHIFT), which is the same as (KASAN_GRANULE_SIZE * PAGE_SIZE), and use it across KASAN code to simplify it. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver --- Change-Id: