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 299786 Details for
Bug 439914
OOPS IN __ALLOC_PAGES+0X24/0X2A9 ON MAINLINE 2.6.22-RC7
[?]
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]
patch to fix race in alloc_fresh_huge_page
linux-2.6.18-hugetlb-fix-race-in-alloc_fresh_huge_page.patch (text/plain), 1.09 KB, created by
Greg Marsden
on 2008-03-31 23:07:47 UTC
(
hide
)
Description:
patch to fix race in alloc_fresh_huge_page
Filename:
MIME Type:
Creator:
Greg Marsden
Created:
2008-03-31 23:07:47 UTC
Size:
1.09 KB
patch
obsolete
>Subject: hugetlb: fix race in alloc_fresh_huge_page() >From: Joe Jin <joe.jin@oracle.com> > >That static `nid' index needs locking. Without it we can end up calling >alloc_pages_node() with an illegal node ID and the kernel crashes. > >Acked-by: gurudas pai <gurudas.pai@oracle.com> >Signed-off-by: Andrew Morton <akpm@linux-foundation.org> >--- >--- linux-2.6.18.x86_64/mm/hugetlb.c.orig 2007-08-20 16:48:35.000000000 -0700 >+++ linux-2.6.18.x86_64/mm/hugetlb.c 2007-08-20 16:56:35.000000000 -0700 >@@ -101,13 +101,17 @@ > > static int alloc_fresh_huge_page(void) > { >- static int nid = 0; >+ static int prev_nid = 0; > struct page *page; >- page = alloc_pages_node(nid, GFP_HIGHUSER|__GFP_COMP|__GFP_NOWARN, >- HUGETLB_PAGE_ORDER); >- nid = next_node(nid, node_online_map); >+ int nid; >+ >+ nid = next_node(prev_nid, node_online_map); > if (nid == MAX_NUMNODES) > nid = first_node(node_online_map); >+ prev_nid = nid; >+ >+ page = alloc_pages_node(nid, GFP_HIGHUSER|__GFP_COMP|__GFP_NOWARN, >+ HUGETLB_PAGE_ORDER); > if (page) { > page[1].lru.next = (void *)free_huge_page; /* dtor */ > spin_lock(&hugetlb_lock);
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 439914
: 299786