Re: [PATCH v1] [mm] Set page->slab_cache for every page allocated for a kmem_cache.

2016-05-27 Thread Alexander Potapenko
On Fri, May 27, 2016 at 7:30 PM, Christoph Lameter wrote: > On Fri, 27 May 2016, Alexander Potapenko wrote: > >> It's reasonable to rely on the fact that for every page allocated for a >> kmem_cache the |slab_cache| field points to that cache. Without that it's >> hard to figure

Re: [PATCH v1] [mm] Set page->slab_cache for every page allocated for a kmem_cache.

2016-05-27 Thread Alexander Potapenko
On Fri, May 27, 2016 at 7:30 PM, Christoph Lameter wrote: > On Fri, 27 May 2016, Alexander Potapenko wrote: > >> It's reasonable to rely on the fact that for every page allocated for a >> kmem_cache the |slab_cache| field points to that cache. Without that it's >> hard to figure out which cache

Re: [PATCH v1] [mm] Set page->slab_cache for every page allocated for a kmem_cache.

2016-05-27 Thread Christoph Lameter
On Fri, 27 May 2016, Alexander Potapenko wrote: > It's reasonable to rely on the fact that for every page allocated for a > kmem_cache the |slab_cache| field points to that cache. Without that it's > hard to figure out which cache does an allocated object belong to. The flags are set only in the

Re: [PATCH v1] [mm] Set page->slab_cache for every page allocated for a kmem_cache.

2016-05-27 Thread Christoph Lameter
On Fri, 27 May 2016, Alexander Potapenko wrote: > It's reasonable to rely on the fact that for every page allocated for a > kmem_cache the |slab_cache| field points to that cache. Without that it's > hard to figure out which cache does an allocated object belong to. The flags are set only in the

[PATCH v1] [mm] Set page->slab_cache for every page allocated for a kmem_cache.

2016-05-27 Thread Alexander Potapenko
It's reasonable to rely on the fact that for every page allocated for a kmem_cache the |slab_cache| field points to that cache. Without that it's hard to figure out which cache does an allocated object belong to. Fixes: 55834c59098d0c5a97b0f324 ("mm: kasan: initial memory quarantine

[PATCH v1] [mm] Set page->slab_cache for every page allocated for a kmem_cache.

2016-05-27 Thread Alexander Potapenko
It's reasonable to rely on the fact that for every page allocated for a kmem_cache the |slab_cache| field points to that cache. Without that it's hard to figure out which cache does an allocated object belong to. Fixes: 55834c59098d0c5a97b0f324 ("mm: kasan: initial memory quarantine