Re: [PATCH v3 4/6] mm/hugetlb: add migration entry check in hugetlb_change_protection

2014-09-04 Thread Naoya Horiguchi
On Wed, Sep 03, 2014 at 06:06:34PM -0700, Hugh Dickins wrote: > On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > > > There is a race condition between hugepage migration and > > change_protection(), > > where hugetlb_change_protection() doesn't care about migration entries and > > wrongly overwrites

Re: [PATCH v3 4/6] mm/hugetlb: add migration entry check in hugetlb_change_protection

2014-09-03 Thread Hugh Dickins
On Thu, 28 Aug 2014, Naoya Horiguchi wrote: > There is a race condition between hugepage migration and change_protection(), > where hugetlb_change_protection() doesn't care about migration entries and > wrongly overwrites them. That causes unexpected results like kernel crash. > > This patch adds

[PATCH v3 4/6] mm/hugetlb: add migration entry check in hugetlb_change_protection

2014-08-28 Thread Naoya Horiguchi
There is a race condition between hugepage migration and change_protection(), where hugetlb_change_protection() doesn't care about migration entries and wrongly overwrites them. That causes unexpected results like kernel crash. This patch adds is_hugetlb_entry_(migration|hwpoisoned) check in this