Re: [PATCH] x86/mm: Fix fault error path using unsafe vma pointer

2017-09-12 Thread Laurent Dufour
On 04/09/2017 10:32, Laurent Dufour wrote: > The commit 7b2d0dbac489 ("x86/mm/pkeys: Pass VMA down in to fault signal > generation code") pass down a vma pointer to the error path, but that is > done once the mmap_sem is released when calling mm_fault_error() from > __do_page_fault(). > > This is

[PATCH] x86/mm: Fix fault error path using unsafe vma pointer

2017-09-04 Thread Laurent Dufour
The commit 7b2d0dbac489 ("x86/mm/pkeys: Pass VMA down in to fault signal generation code") pass down a vma pointer to the error path, but that is done once the mmap_sem is released when calling mm_fault_error() from __do_page_fault(). This is dangerous as the pointed vma structure is no more safe