login
Login
/
Register
Search
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
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Alexey Dobriyan <adobriyan@...>
To: Christoph Lameter <clameter@...>
Cc: Andrew Morton <akpm@...>, <gregkh@...>, <linux-kernel@...>
Subject:
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritten (sysfs?)
Date: Friday, September 21, 2007 - 3: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, 8:39 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Alexey Dobriyan
, (Wed Sep 19, 8:59 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Andrew Morton
, (Wed Sep 19, 3:39 pm)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Christoph Lameter
, (Wed Sep 19, 4:59 pm)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Christoph Lameter
, (Wed Sep 19, 5:36 pm)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Alexey Dobriyan
, (Thu Sep 20, 3:53 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Christoph Lameter
, (Thu Sep 20, 1:25 pm)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Christoph Lameter
, (Thu Sep 20, 1:37 pm)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Eric W. Biederman
, (Thu Sep 20, 2:54 pm)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Alexey Dobriyan
, (Thu Sep 20, 6:32 am)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Christoph Lameter
, (Thu Sep 20, 1:36 pm)
Re: 2.6.23-rc6-mm1: BUG kmalloc-16: Object padding overwritt...
, Alexey Dobriyan
, (Fri Sep 21, 3:16 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Max Krasnyansky
Re: Inquiry: Should we remove "isolcpus= kernel boot option? (may have realtime us...
Jeremy Allison
Re: [RFC] Heads up on sys_fallocate()
Randy Dunlap
Re: -mm merge plans for 2.6.23 (pcmcia)
Damien Wyart
ACPI power off regression in 2.6.23-rc8 (NOT in rc7)
git
:
linux-netdev
:
Josip Rodin
Re: bnx2_poll panicking kernel
Linus Torvalds
Re: [GIT]: Networking
Denys Fedoryshchenko
thousands of classes, e1000 TX unit hang
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
918 guests
online.
Online users
strcmp
backlinkservchp
comprarusty
Syndicate