diff options
author | Michal Hocko <mhocko@suse.cz> | 2014-01-23 15:53:15 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 16:36:52 -0800 |
commit | cc81717ed3bc6d4f3738d13a1e097437caada0e9 (patch) | |
tree | 8e103fa5bfea059f1ace38d205a09e42e19dd6db /arch/hexagon/mm/init.c | |
parent | 54b9dd14d09f24927285359a227aa363ce46089e (diff) | |
download | op-kernel-dev-cc81717ed3bc6d4f3738d13a1e097437caada0e9.zip op-kernel-dev-cc81717ed3bc6d4f3738d13a1e097437caada0e9.tar.gz |
mm: new_vma_page() cannot see NULL vma for hugetlb pages
Commit 11c731e81bb0 ("mm/mempolicy: fix !vma in new_vma_page()") has
removed BUG_ON(!vma) from new_vma_page which is partially correct
because page_address_in_vma will return EFAULT for non-linear mappings
and at least shared shmem might be mapped this way.
The patch also tried to prevent NULL ptr for hugetlb pages which is not
correct AFAICS because hugetlb pages cannot be mapped as VM_NONLINEAR
and other conditions in page_address_in_vma seem to be legit and catch
real bugs.
This patch restores BUG_ON for PageHuge to catch potential issues when
the to-be-migrated page is not setup properly.
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: Bob Liu <bob.liu@oracle.com>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/hexagon/mm/init.c')
0 files changed, 0 insertions, 0 deletions