Commit d036a4e7 authored by Hugh Dickins's avatar Hugh Dickins Committed by Paul Mackerras

[PATCH] Oracle startup split_vma fix

Alessandro Suardi and Zlatko Calusic independently reported that
Oracle cannot start on recent 2.5: excellent research by Zlatko
quickly pointed to vm_pgoff buglet in the new split_vma.
parent 7570df54
...@@ -1058,7 +1058,7 @@ int split_vma(struct mm_struct * mm, struct vm_area_struct * vma, ...@@ -1058,7 +1058,7 @@ int split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
if (new_below) { if (new_below) {
new->vm_end = addr; new->vm_end = addr;
vma->vm_start = addr; vma->vm_start = addr;
vma->vm_pgoff += ((addr - vma->vm_start) >> PAGE_SHIFT); vma->vm_pgoff += ((addr - new->vm_start) >> PAGE_SHIFT);
} else { } else {
vma->vm_end = addr; vma->vm_end = addr;
new->vm_start = addr; new->vm_start = addr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment