Re: [PATCH V2 1/4] arm64/mm: Drop mmap_sem before calling __do_kernel_fault()

2019-06-04 Thread Catalin Marinas
On Mon, Jun 03, 2019 at 12:11:22PM +0530, Anshuman Khandual wrote: > There is an inconsistency between down_read_trylock() success and failure > paths while dealing with kernel access for non exception table areas where > it calls __do_kernel_fault(). In case of failure it just bails out without >

[PATCH V2 1/4] arm64/mm: Drop mmap_sem before calling __do_kernel_fault()

2019-06-03 Thread Anshuman Khandual
There is an inconsistency between down_read_trylock() success and failure paths while dealing with kernel access for non exception table areas where it calls __do_kernel_fault(). In case of failure it just bails out without holding mmap_sem but when it succeeds it does so while holding mmap_sem.