VM_BUG_ON(gap_end < gap_start);
if (gap != gap_end) {
+ struct vm_area_struct *rb_find_vma(struct mm_struct *mm, unsigned long addr);
pr_err("%s: %px Gap was found: mt %lu gap_end %lu\n", __func__,
mm, gap, gap_end);
pr_err("window was %lu - %lu size %lu\n", info->high_limit,
mas.last);
pr_err("mas.index %lu align %lu offset %lu\n", mas.index,
info->align_offset, info->align_mask);
+ pr_err("rb_find_vma find on %lu => %px (%px)\n", mas.index,
+ rb_find_vma(mm, mas.index), vma);
mt_dump(&mm->mm_mt);
+ {
+ struct vm_area_struct *dv = mm->mmap;
+ while (dv) {
+ printk("vma %px %llu-%llu\n", dv, dv->vm_start, dv->vm_end);
+ dv = dv->vm_next;
+ }
+ }
}
VM_BUG_ON(gap != gap_end);