Re: [PATCH v2 0/2] mm/kasan: dump alloc/free stack for page allocator

From: Walter Wu
Date: Tue Sep 10 2019 - 08:45:58 EST


On Tue, 2019-09-10 at 13:53 +0200, Vlastimil Babka wrote:
> On 9/10/19 12:50 PM, Andrey Ryabinin wrote:
> >
> >
> > For slab objects we memorize both alloc and free stacks. You'll never know in advance what information will be usefull
> > to fix an issue, so it usually better to provide more information. I don't think we should do anything different for pages.
>
> Exactly, thanks.
>
> > Given that we already have the page_owner responsible for providing alloc/free stacks for pages, all that we should in KASAN do is to
> > enable the feature by default. Free stack saving should be decoupled from debug_pagealloc into separate option so that it can be enabled
> > by KASAN and/or debug_pagealloc.
>
> Right. Walter, can you do it that way, or should I?
>
> Thanks,
> Vlastimil

I will send new patch v3.