On Wed, 19 Oct 2005, Andrew Morton wrote: > Hugh Dickins <[email protected]> wrote: > > > > I was forgetting that extending ftruncate wasn't supported in 2.6.14 and > > earlier, yes. But I'm afraid the above scenario can still happen there: > > extending is done, not by ftruncate, but by (somewhere else) mmapping the > > larger size. So your fix may still cause a tight infinite fault loop. > > Will it? Whenever we mmap a hugetlbfs file we prepopulate the entire vma > with hugepages. So I don't think there's ever any part of an address space > which ia a) inside a hugepage vma and b) doesn't have a hugepage backing > it. The new vma, sure, will be fully populated. But the old vma, in this or some other process, which was created before the hugetlbfs file was truncated down, will be left with a hole at the end. Hugh - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- From: "Seth, Rohit" <[email protected]>
- Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- From: Andrew Morton <[email protected]>
- Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- From: Rohit Seth <[email protected]>
- Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- From: Andrew Morton <[email protected]>
- Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- From: Rohit Seth <[email protected]>
- Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- From: Andrew Morton <[email protected]>
- Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- From: Hugh Dickins <[email protected]>
- Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- From: Rohit Seth <[email protected]>
- Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- From: Hugh Dickins <[email protected]>
- Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- From: Andrew Morton <[email protected]>
- [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- Prev by Date: Re: kernel allows loadkeys to be used by any user, allowing for local root compromise
- Next by Date: Re: [discuss] Re: x86_64: 2.6.14-rc4 swiotlb broken
- Previous by thread: Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- Next by thread: Re: [PATCH]: Handling spurious page fault for hugetlb region for 2.6.14-rc4-git5
- Index(es):