Re: [PATCH] general split_vma hugetlb fix

2005-02-11 Thread William Lee Irwin III
On Fri, Feb 11, 2005 at 08:06:08PM +, Hugh Dickins wrote: > My recent do_munmap hugetlb fix has proved inadequate. There are > other places (madvise, mbind, mlock, mprotect) where split_vma is > called. Only mprotect excludes a hugetlb vma: the others are in > danger of splitting at a misalig

[PATCH] general split_vma hugetlb fix

2005-02-11 Thread Hugh Dickins
My recent do_munmap hugetlb fix has proved inadequate. There are other places (madvise, mbind, mlock, mprotect) where split_vma is called. Only mprotect excludes a hugetlb vma: the others are in danger of splitting at a misaligned address, causing later BUGs. So move the ~HPAGE_MASK check from d