login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
19
Re: [PATCH] hugetlb: ensure we do not reference a surplus page after handing it to buddy
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Adam Litke <agl@...>
To: Andy Whitcroft <apw@...>
Cc: Andrew Morton <akpm@...>, Nishanth Aravamudan <nacc@...>, William Irwin <wli@...>, <linux-mm@...>, <linux-kernel@...>
Subject:
Re: [PATCH] hugetlb: ensure we do not reference a surplus page after handing it to buddy
Date: Tuesday, February 19, 2008 - 2:41 pm
Indeed. I'll take credit for this thinko... On Tue, 2008-02-19 at 18:28 +0000, Andy Whitcroft wrote:
quoted text
> When we free a page via free_huge_page and we detect that we are in > surplus the page will be returned to the buddy. After this we no longer > own the page. However at the end free_huge_page we clear out our mapping > pointer from page private. Even where the page is not a surplus we > free the page to the hugepage pool, drop the pool locks and then clear > page private. In either case the page may have been reallocated. BAD. > > Make sure we clear out page private before we free the page. > > Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Acked-by: Adam Litke <agl@us.ibm.com> -- Adam Litke - (agl at us.ibm.com) IBM Linux Technology Center --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] hugetlb: ensure we do not reference a surplus page a...
, Andy Whitcroft
, (Tue Feb 19, 2:28 pm)
Re: [PATCH] hugetlb: ensure we do not reference a surplus pa...
, Adam Litke
, (Tue Feb 19, 2:41 pm)
Re: [PATCH] hugetlb: ensure we do not reference a surplus pa...
, Andrew Morton
, (Tue Feb 19, 7:30 pm)
Re: [PATCH] hugetlb: ensure we do not reference a surplus pa...
, Adam Litke
, (Wed Feb 20, 10:59 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Davide Libenzi
Re: [patch 7/8] fdmap v2 - implement sys_socket2
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Greg Kroah-Hartman
[PATCH 005/196] Chinese: add translation of SubmittingDrivers
Mariusz Kozlowski
[KJ PATCHES] mostly kmalloc + memset conversion to k[cz]alloc
git
:
linux-netdev
:
KOSAKI Motohiro
[bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
Stefan Richter
Re: [GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
git-commits-head
:
Colocation donated by:
Who's online
There are currently
2 users
and
774 guests
online.
Online users
strcmp
zerhai30
Syndicate