mm/mempolicy.c: remove BUG_ON() checks for VMA inside mpol_misplaced()
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Fri, 8 Sep 2017 23:13:32 +0000 (16:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 9 Sep 2017 01:26:47 +0000 (18:26 -0700)
commit149728e91349f269d6fc82b4ca2552645dfa7d2c
treee180a774ca09f470d2931c622f1927501874990a
parentb6b1fd2a6bedd533aeed83924d7be0e944fded9f
mm/mempolicy.c: remove BUG_ON() checks for VMA inside mpol_misplaced()

VMA and its address bounds checks are too late in this function.  They
must have been verified earlier in the page fault sequence.  Hence just
remove them.

Link: http://lkml.kernel.org/r/20170901130137.7617-1-khandual@linux.vnet.ibm.com
Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Suggested-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mempolicy.c