Skip to contentSkip to conversation

: Bug in MM_RB debugging?

PATCH New David Miller 1 participant 1 message Feb 27, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Bug in MM_RB debugging?

The code is seemingly trying to make sure that rb_next() brings us to successive increasing vma entries.

But the two variables, prev and pend, used to perform these checks, are never advanced.

mm/mmap.c +2 -0
index eb509ae..84f997d 100644
@@ -299,6 +299,8 @@ static int browse_rb(struct rb_root *root)
 			printk("vm_end %lx < vm_start %lx\n", vma->vm_end, vma->vm_start);
 		i++;
 		pn = nd;
+		prev = vma->vm_start;
+		pend = vma->vm_end;
 	}
 	j = 0;
 	for (nd = pn; nd; nd = rb_prev(nd)) {