Re: KASAN: use-after-free Read in __do_page_fault

From: Vlastimil Babka
Date: Wed Nov 01 2017 - 03:43:07 EST


On 10/31/2017 08:15 PM, Andrea Arcangeli wrote:
> On Tue, Oct 31, 2017 at 03:28:26PM +0100, Vlastimil Babka wrote:
>> Hmm that could indeed work, Dmitry can you try the patch below?
>> But it still seems rather fragile so I'd hope Andrea can do it more
>> robust, or at least make sure that we don't reintroduce this kind of
>> problem in the future (explicitly set vma to NULL with a comment?).
>
> Reviewed-by: Andrea Arcangeli <aarcange@xxxxxxxxxx>

Thanks. OK so here's the full patch for the immediate issue, unless we
decide to do something more general.

----8<----