Fix get_gate_vma usage in 32bit NX emulation.

This commit is contained in:
Dave Jones 2011-08-27 13:24:53 -04:00
parent bd7673d363
commit 333fe2ae43
2 changed files with 4 additions and 1 deletions

View File

@ -1851,6 +1851,9 @@ fi
# and build.
%changelog
* Sat Aug 27 2011 Dave Jones <davej@redhat.com>
- Fix get_gate_vma usage in 32bit NX emulation.
* Fri Aug 26 2011 Chuck Ebbert <cebbert@redhat.com>
- Add fixes for cifs mount oopses (rhbz#727927 rhbz#731278 rhbz#732934)

View File

@ -249,7 +249,7 @@
+ for (vma = current->mm->mmap; vma; vma = vma->vm_next)
+ if ((vma->vm_flags & VM_EXEC) && (vma->vm_end > limit))
+ limit = vma->vm_end;
+ vma = get_gate_vma(current);
+ vma = get_gate_vma(current->mm);
+ if (vma && (vma->vm_flags & VM_EXEC) && (vma->vm_end > limit))
+ limit = vma->vm_end;
+ spin_unlock(&current->mm->page_table_lock);