Re: [RFC v5 02/11] mm: Prepare for FAULT_FLAG_SPECULATIVE

2017-08-08 Thread Peter Zijlstra
On Tue, Aug 08, 2017 at 03:54:01PM +0530, Anshuman Khandual wrote: > On 06/16/2017 11:22 PM, Laurent Dufour wrote: > > From: Peter Zijlstra > > > > When speculating faults (without holding mmap_sem) we need to validate > > that the vma against which we loaded pages is still

Re: [RFC v5 02/11] mm: Prepare for FAULT_FLAG_SPECULATIVE

2017-08-08 Thread Peter Zijlstra
On Tue, Aug 08, 2017 at 03:54:01PM +0530, Anshuman Khandual wrote: > On 06/16/2017 11:22 PM, Laurent Dufour wrote: > > From: Peter Zijlstra > > > > When speculating faults (without holding mmap_sem) we need to validate > > that the vma against which we loaded pages is still valid when we're > >

Re: [RFC v5 02/11] mm: Prepare for FAULT_FLAG_SPECULATIVE

2017-08-08 Thread Anshuman Khandual
On 06/16/2017 11:22 PM, Laurent Dufour wrote: > From: Peter Zijlstra > > When speculating faults (without holding mmap_sem) we need to validate > that the vma against which we loaded pages is still valid when we're > ready to install the new PTE. > > Therefore, replace the

Re: [RFC v5 02/11] mm: Prepare for FAULT_FLAG_SPECULATIVE

2017-08-08 Thread Anshuman Khandual
On 06/16/2017 11:22 PM, Laurent Dufour wrote: > From: Peter Zijlstra > > When speculating faults (without holding mmap_sem) we need to validate > that the vma against which we loaded pages is still valid when we're > ready to install the new PTE. > > Therefore, replace the pte_offset_map_lock()