Thread (107 messages) 107 messages, 6 authors, 2020-11-13

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

From: Marco Elver <elver@google.com>
Date: 2020-11-11 19:05:13
Also in: linux-mm, lkml

On Wed, 11 Nov 2020 at 19:48, Andrey Konovalov [off-list ref] wrote:
On Wed, Nov 11, 2020 at 3:13 PM Alexander Potapenko [off-list ref] wrote:
quoted
On Tue, Nov 10, 2020 at 11:11 PM Andrey Konovalov [off-list ref] wrote:
quoted
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 something
more than just a product of two constants?
No, just a product.
quoted
The name suggests it might be something page-sized, but in reality it is not.
What name would you prefer?
Is it actually KASAN_GRANULES_PER_SHADOW_PAGE ?   AFAIK we're trying
to calculate the granules that we can fit into a page of shadow
memory.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help