Skip to contentSkip to conversation

mm-mempolicy-remove-bug_on-checks-for-vma-inside-mpol_misplaced.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 11, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/mempolicy.c: remove BUG_ON() checks for VMA inside mpol_misplaced()
has been removed from the -mm tree. Its filename was
mm-mempolicy-remove-bug_on-checks-for-vma-inside-mpol_misplaced.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Anshuman Khandual <[email protected]>
Subject: 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.

---

 mm/mempolicy.c |    5 -----
 1 file changed, 5 deletions(-)
mm/mempolicy.c renamed from mm/mempolicy.c~mm-mempolicy-remove-bug_on-checks-for-vma-inside-mpol_misplaced +0 -4
diff -puN mm/mempolicy.c~mm-mempolicy-remove-bug_on-checks-for-vma-inside-mpol_misplaced mm/mempolicy.c
@@ -2233,17 +2233,12 @@ int mpol_misplaced(struct page *page, st
 	int polnid = -1;
 	int ret = -1;
 
-	BUG_ON(!vma);
-
 	pol = get_vma_policy(vma, addr);
 	if (!(pol->flags & MPOL_F_MOF))
 		goto out;
 
 	switch (pol->mode) {
 	case MPOL_INTERLEAVE:
-		BUG_ON(addr >= vma->vm_end);
-		BUG_ON(addr < vma->vm_start);