Re: bug report: hugetlbfs: use i_mmap_rwsem for more pmd sharing, synchronization

2018-12-27 Thread Mike Kravetz
On 12/27/18 6:45 PM, Andrew Morton wrote: > On Thu, 27 Dec 2018 11:24:31 -0800 Mike Kravetz > wrote: >> It would be better to make an explicit check for mapping != null before >> calling i_mmap_lock_write/try_to_unmap. In this way, unrelated changes to >> code above will not potentially lead to

Re: bug report: hugetlbfs: use i_mmap_rwsem for more pmd sharing, synchronization

2018-12-27 Thread Andrew Morton
On Thu, 27 Dec 2018 11:24:31 -0800 Mike Kravetz wrote: > On 12/27/18 3:44 AM, Colin Ian King wrote: > > Hi, > > > > Static analysis with CoverityScan on linux-next detected a potential > > null pointer dereference with the following commit: > > > > From d8a1051ed4ba55679ef24e838a1942c9c40f0a14

Re: bug report: hugetlbfs: use i_mmap_rwsem for more pmd sharing, synchronization

2018-12-27 Thread Mike Kravetz
On 12/27/18 3:44 AM, Colin Ian King wrote: > Hi, > > Static analysis with CoverityScan on linux-next detected a potential > null pointer dereference with the following commit: > > From d8a1051ed4ba55679ef24e838a1942c9c40f0a14 Mon Sep 17 00:00:00 2001 > From: Mike Kravetz > Date: Sat, 22 Dec

bug report: hugetlbfs: use i_mmap_rwsem for more pmd sharing, synchronization

2018-12-27 Thread Colin Ian King
Hi, Static analysis with CoverityScan on linux-next detected a potential null pointer dereference with the following commit: >From d8a1051ed4ba55679ef24e838a1942c9c40f0a14 Mon Sep 17 00:00:00 2001 From: Mike Kravetz Date: Sat, 22 Dec 2018 10:55:57 +1100 Subject: [PATCH] hugetlbfs: use