Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 308606 Details for
Bug 450094
Patch for bug 360281 "Odd behaviour in mmap" introduces regression
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
arch_get_unmapped_area_topdown.patch (text/plain), 2.14 KB, created by
Vitaly Mayatskikh
on 2008-06-07 11:47:15 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Vitaly Mayatskikh
Created:
2008-06-07 11:47:15 UTC
Size:
2.14 KB
patch
obsolete
>diff --git a/arch/i386/mm/hugetlbpage.c b/arch/i386/mm/hugetlbpage.c >index c3eb5b2..44086e6 100644 >--- a/arch/i386/mm/hugetlbpage.c >+++ b/arch/i386/mm/hugetlbpage.c >@@ -348,7 +348,7 @@ try_again: > * new region fits between prev_vma->vm_end and > * vma->vm_start, use it: > */ >- if (addr + len <= vma->vm_start && >+ if (addr & addr + len <= vma->vm_start && > (!prev_vma || (addr >= prev_vma->vm_end))) > /* remember the address as a hint for next time */ > return (mm->free_area_cache = addr); >@@ -359,7 +359,7 @@ try_again: > > /* try just below the current vma->vm_start */ > addr = (vma->vm_start - len) & HPAGE_MASK; >- } while (len <= vma->vm_start); >+ } while (len < vma->vm_start); > > fail: > /* >diff --git a/arch/ppc64/mm/hugetlbpage.c b/arch/ppc64/mm/hugetlbpage.c >index b33340b..05a56b5 100644 >--- a/arch/ppc64/mm/hugetlbpage.c >+++ b/arch/ppc64/mm/hugetlbpage.c >@@ -618,7 +618,7 @@ hugepage_recheck: > > /* try just below the current vma->vm_start */ > addr = vma->vm_start-len; >- } while (len <= vma->vm_start); >+ } while (len < vma->vm_start); > > fail: > /* >diff --git a/arch/x86_64/kernel/sys_x86_64.c b/arch/x86_64/kernel/sys_x86_64.c >index be775a0..9f5aa44 100644 >--- a/arch/x86_64/kernel/sys_x86_64.c >+++ b/arch/x86_64/kernel/sys_x86_64.c >@@ -211,7 +211,7 @@ try_again: > > /* try just below the current vma->vm_start */ > addr = vma->vm_start-len; >- } while (len <= vma->vm_start); >+ } while (len < vma->vm_start); > > fail: > /* >diff --git a/arch/x86_64/mm/hugetlbpage.c b/arch/x86_64/mm/hugetlbpage.c >index da5e59c..c9fc198 100644 >--- a/arch/x86_64/mm/hugetlbpage.c >+++ b/arch/x86_64/mm/hugetlbpage.c >@@ -366,7 +366,7 @@ try_again: > * new region fits between prev_vma->vm_end and > * vma->vm_start, use it: > */ >- if (addr + len <= vma->vm_start && >+ if (addr && addr + len <= vma->vm_start && > (!prev_vma || (addr >= prev_vma->vm_end))) > /* remember the address as a hint for next time */ > return (mm->free_area_cache = addr); >@@ -377,7 +377,7 @@ try_again: > > /* try just below the current vma->vm_start */ > addr = (vma->vm_start - len) & HPAGE_MASK; >- } while (len <= vma->vm_start); >+ } while (len < vma->vm_start); > > fail: > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 450094
: 308606