login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
21
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritten (sysfs?)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Alexey Dobriyan
Subject:
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritten (sysfs?)
Date: Friday, September 21, 2007 - 12:16 am
On Thu, Sep 20, 2007 at 10:36:13AM -0700, Christoph Lameter wrote:
quoted text
> On Thu, 20 Sep 2007, Alexey Dobriyan wrote: > > The winner is slub-avoid-touching-page-struct-when-freeing-to-per-cpu-slab.patch > > Blind bisecting pointed to it and reverting the patch from full -mm makes > > the problem go away > > Hmmm.. This means likely that the c->node is used somewhere for > indexing.... Ahhh... If we count objects for sysfs output then c->node may > be used to index into the statistics array. The offset from the poison > also makes sense now since we increment values there. > > Does this patch fix the issue?
Yes, it does.
quoted text
> SLUB: Fix slab object counting. > > We can only use the node value of the per cpu structure for counting if it > is positive. A negative value indicates that the slab is not valid. > > Signed-off-by: Christoph Lameter <clameter@sgi.com> > > --- > mm/slub.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > Index: linux-2.6.23-rc6-mm1/mm/slub.c > =================================================================== > --- linux-2.6.23-rc6-mm1.orig/mm/slub.c 2007-09-20 10:31:04.000000000 -0700 > +++ linux-2.6.23-rc6-mm1/mm/slub.c 2007-09-20 10:32:19.000000000 -0700 > @@ -3412,12 +3412,16 @@ static unsigned long slab_objects(struct > > for_each_possible_cpu(cpu) { > struct page *page; > + int node; > struct kmem_cache_cpu *c = get_cpu_slab(s, cpu); > > if (!c) > continue; > > page = c->page; > + node = c->node; > + if (node < 0) > + continue; > if (page) { > if (flags & SO_CPU) { > int x = 0; > @@ -3427,9 +3431,9 @@ static unsigned long slab_objects(struct > else > x = 1; > total += x; > - nodes[c->node] += x; > + nodes[node] += x; > } > - per_cpu[c->node]++; > + per_cpu[node]++; > } > } >
-
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:
2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritten ...
, Alexey Dobriyan
, (Wed Sep 19, 5:39 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Alexey Dobriyan
, (Wed Sep 19, 5:59 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Andrew Morton
, (Wed Sep 19, 12:39 pm)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Christoph Lameter
, (Wed Sep 19, 1:59 pm)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Christoph Lameter
, (Wed Sep 19, 2:36 pm)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Alexey Dobriyan
, (Thu Sep 20, 12:53 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Alexey Dobriyan
, (Thu Sep 20, 3:32 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Christoph Lameter
, (Thu Sep 20, 10:25 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Christoph Lameter
, (Thu Sep 20, 10:36 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Christoph Lameter
, (Thu Sep 20, 10:37 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Eric W. Biederman
, (Thu Sep 20, 11:54 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwri ...
, Alexey Dobriyan
, (Fri Sep 21, 12:16 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Uwe Kleine-König
Re: [PATCH v2] ARM: allow, but warn, when issuing ioremap() on RAM
Josef Bacik
[PATCH] fallocate.2: add FALLOC_FL_PUNCH_HOLE flag definition
Andrew Morton
Re: [PATCH v3 0/4] Introduce hardware spinlock framework
git
:
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Bert Wesarg
[TopGit PATCH v3 06/12] list_deps: accept -i/-w
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Petr Baudis
Re: PPC SHA-1 Updates in "pu"
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
misc: replace remaining __FUNCTION__ with __func__
Linux Kernel Mailing List
Disallow gcc versions 4.1.{0,1}
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
David Miller
Re: [PATCH 2/5] dccp: Auto-load (when supported) CCID plugins for negotiation
openbsd-misc
:
Boris Goldberg
Re: HP ProLiant DL320 v. Sun Fire V125
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Darrin Chandler
Re: strange output on openbsd C code
Karel Kulhavy
Re: No Blob without Puffy
Nick Holland
Re: Install OpenBSD from USB ?
Colocation donated by:
Syndicate