login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
9
Re: linux-next: Tree for March 7: slab corruptions
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Greg KH
Subject:
Re: linux-next: Tree for March 7: slab corruptions
Date: Saturday, March 8, 2008 - 8:05 pm
On Sun, Mar 09, 2008 at 12:29:48AM +0530, Balaji Rao wrote:
quoted text
> On Saturday 08 March 2008 04:15:22 pm Laurent Riffard wrote: > > Le 07.03.2008 04:18, Stephen Rothwell a ??crit : > > > Hi all, > > > > > > I have created today's linux-next tree at > > > git://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux-next.git > > > > I've got a lot of "Slab corruption" with next-20060307 (actually a > > continuous flow of warnings) whereas next-20060306 is fine. > > > > [ 3.045882] Redzone: 0xd84156c5635688c0/0xd84156c5635688c0. > > [ 3.045885] Last user: [<c022460e>](vc_allocate+0x5a/0x136) > > [ 3.045890] 000: 03 00 00 00 a0 00 00 00 40 00 00 00 40 01 00 00 > > [ 3.045902] 010: 00 00 00 00 00 00 85 de 00 50 85 de 00 00 85 de > > [ 3.055247] Slab corruption: size-512 start=defb5060, len=512 > > [ 3.056465] Redzone: 0x9f911029d74e35b/0x9f911029d74e35b. > > [ 3.057363] Last user: [<c022789b>](device_release+0x36/0x58) > > [ 3.058594] 0f0: 6b 6b 6b 6b 6b 6b 6b 6b 6a 6b 6b 6b 6b 6b 6b 6b > > [ 3.060109] Single bit error detected. Probably bad RAM. > > [ 3.061353] Run memtest86+ or a similar memory test tool. > > [ 3.062501] Next obj: start=defb5278, len=512 > > [ 3.063596] Redzone: 0xd84156c5635688c0/0xd84156c5635688c0. > > [ 3.064751] Last user: [<c022460e>](vc_allocate+0x5a/0x136) > > [ 3.065447] 000: 04 00 00 00 a0 00 00 00 40 00 00 00 40 01 00 00 > > [ 3.066965] 010: 00 00 00 00 00 80 85 de 00 d0 85 de 00 80 85 de > > [ 3.074109] Slab corruption: size-512 start=defb56a8, len=512 > > [ 3.075336] Redzone: 0x9f911029d74e35b/0x9f911029d74e35b. > > [ 3.076510] Last user: [<c022789b>](device_release+0x36/0x58) > > [ 3.077360] 0f0: 6b 6b 6b 6b 6b 6b 6b 6b 6a 6b 6b 6b 6b 6b 6b 6b > > [ 3.078885] Single bit error detected. Probably bad RAM. > > [ 3.080015] Run memtest86+ or a similar memory test tool. > > > > I did a bisection: > > > > 5a428808720b31026890d3ff71fbd891d9a94fd6 is first bad commit > > commit 5a428808720b31026890d3ff71fbd891d9a94fd6 > > Author: Balaji Rao <balajirrao@gmail.com> > > Date: Thu Mar 6 22:23:18 2008 +0530 > > > > kobjects: mark cleaned up kobjects as unitialized > > > > When I remove only the kvm-intel module without removing the kvm module > > itself, I get an error saying that a kobject is trying to be > > reinitialized. Its because of the fact that kvm reuses a kobject in > > kvm_init when calling sysdev_register. > > > > This patch fixes kobject_cleanup by marking the kobject as > > uninitialized when we cleanup to allow kobjects to be reused. > > > > Signed-off-by: Balaji Rao <balajirrao@gmail.com> > > Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> > > > > :040000 040000 c15d08d966391dec783d137558fad66d9c2da57b > > : eddea2ec69c014370cf98cc2fc7e24a8dc301e70 M lib > > > > .config attached > > ~~ > > laurent > Hi greg, > > Apparently, its the wrong place to mark the kobject as uninitialized as the > kobject could be freed by then. I've now moved it to the top of > kobject_cleanup(). This fixes the problem for me. > > laurent, can you please revert the above commit , and apply this patch ? Does > it help ? > > Signed-off-by: Balaji Rao <balajirrao@gmail.com> > > diff --git a/lib/kobject.c b/lib/kobject.c > index d784dae..a1f87bd 100644 > --- a/lib/kobject.c > +++ b/lib/kobject.c > @@ -548,6 +548,9 @@ static void kobject_cleanup(struct kobject *kobj) > pr_debug("kobject: '%s' (%p): %s\n", > kobject_name(kobj), kobj, __FUNCTION__); > > + /* Set the state to uninitialized */ > + kobj->state_initialized = 0; > + > if (t && !t->release) > pr_debug("kobject: '%s' (%p): does not have a release() " > "function, it is broken and must be fixed.\n", > >
Doh, this is correct, sorry about that, I'll fix this up properly... thanks, greg k-h --
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:
linux-next: Tree for March 7
, Stephen Rothwell
, (Thu Mar 6, 8:18 pm)
Re: linux-next: Tree for March 7
, Greg KH
, (Thu Mar 6, 9:39 pm)
Re: linux-next: Tree for March 7: slab corruptions
, Laurent Riffard
, (Sat Mar 8, 3:45 am)
Re: linux-next: Tree for March 7: slab corruptions
, Balaji Rao
, (Sat Mar 8, 11:59 am)
Re: linux-next: Tree for March 7: slab corruptions
, Greg KH
, (Sat Mar 8, 8:05 pm)
Re: linux-next: Tree for March 7: slab corruptions
, Laurent Riffard
, (Sun Mar 9, 1:13 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate