Re: [PATCH v3 0/2] hugetlbfs: use i_mmap_rwsem for better synchronization

2018-12-24 Thread Kirill A. Shutemov
On Sat, Dec 22, 2018 at 02:30:11PM -0800, Mike Kravetz wrote: > There are two primary issues addressed here: > 1) For shared pmds, huge PTE pointers returned by huge_pte_alloc can become >invalid via a call to huge_pmd_unshare by another thread. > 2) hugetlbfs page faults can race with

[PATCH v3 0/2] hugetlbfs: use i_mmap_rwsem for better synchronization

2018-12-22 Thread Mike Kravetz
There are two primary issues addressed here: 1) For shared pmds, huge PTE pointers returned by huge_pte_alloc can become invalid via a call to huge_pmd_unshare by another thread. 2) hugetlbfs page faults can race with truncation causing invalid global reserve counts and state. Both issues