login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
22
Re: [PATCH] rcu fix rcu head init on stack in rcutree_plugin.h
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Paul E. McKenney
Subject:
Re: [PATCH] rcu fix rcu head init on stack in rcutree_plugin.h
Date: Thursday, April 22, 2010 - 3:52 pm
On Wed, Apr 21, 2010 at 09:23:09PM -0400, Mathieu Desnoyers wrote:
quoted text
> [Paul] > [...] > And testing got me the following debugobjects splat > [...] > ODEBUG: object is on stack, but not annotated > ------------[ cut here ]------------ > Badness at lib/debugobjects.c:294 > NIP: c0000000002c76f0 LR: c0000000002c76ec CTR: c00000000041ecd8 > REGS: c0000001de71b280 TRAP: 0700 Tainted: G W (2.6.34-rc3-autokern1) > MSR: 8000000000029032 <EE,ME,CE,IR,DR> CR: 24000424 XER: 0000000f > TASK = c0000001de7dca00[3695] 'arping' THREAD: c0000001de718000 CPU: 1 > GPR00: c0000000002c76ec c0000001de71b500 c00000000096c048 0000000000000034 > GPR04: 0000000000000001 c000000000063918 0000000000000000 0000000000000002 > GPR08: 0000000000000003 0000000000000000 c000000000086f68 c0000001de7dca00 > GPR12: 000000000000256d c0000000074e4200 0000000000000000 0000000000000000 > GPR16: 0000000000000000 0000000000000000 0000000000000000 00000000201b8f60 > GPR20: 00000000201b8f70 00000000201b8f48 0000000000000000 c0000000008766b8 > GPR24: c0000001de71b800 0000000000000001 c0000000008ad400 c000000001247478 > GPR28: c0000000e6abb8c0 c0000000e6abb8c0 c000000000904570 c000000001247470 > NIP [c0000000002c76f0] .__debug_object_init+0x314/0x40c > LR [c0000000002c76ec] .__debug_object_init+0x310/0x40c > Call Trace: > [c0000001de71b500] [c0000000002c76ec] .__debug_object_init+0x310/0x40c (unreliable) > [c0000001de71b5d0] [c00000000007d990] .rcuhead_fixup_activate+0x40/0xdc > [c0000001de71b660] [c0000000002c6a7c] .debug_object_fixup+0x4c/0x74 > [c0000001de71b6f0] [c0000000000c5e54] .__call_rcu+0x3c/0x1d4 > [c0000001de71b790] [c0000000000c6050] .synchronize_rcu+0x4c/0x6c > [c0000001de71b870] [c0000000004be218] .synchronize_net+0x10/0x24 > [c0000001de71b8e0] [c0000000005498c8] .packet_release+0x1d4/0x274 > [c0000001de71b990] [c0000000004ac1f0] .sock_release+0x54/0x124 > [c0000001de71ba20] [c0000000004ac9e4] .sock_close+0x34/0x4c > [c0000001de71baa0] [c00000000012469c] .__fput+0x174/0x264 > [c0000001de71bb40] [c000000000120c54] .filp_close+0xb0/0xd8 > [c0000001de71bbd0] [c000000000065e70] .put_files_struct+0x1a8/0x314 > [c0000001de71bc70] [c000000000067e04] .do_exit+0x234/0x6f0 > [c0000001de71bd30] [c000000000068354] .do_group_exit+0x94/0xc8 > [c0000001de71bdc0] [c00000000006839c] .SyS_exit_group+0x14/0x28 > [c0000001de71be30] [c000000000008554] syscall_exit+0x0/0x40 > Instruction dump: > 7f80b000 419e0030 2fa00000 e93e8140 380b0001 90090000 419e000c e87e8148 > 48000008 e87e8150 4bd9cb89 60000000 <0fe00000> 801c0010 2f800003 419e0024 > > [Mathieu] > > Here is the fix.
Thank you very much, Mathieu!!! Queued for 2.6.35.
quoted text
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> > CC: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> > --- > kernel/rcutree_plugin.h | 2 ++ > 1 file changed, 2 insertions(+) > > Index: linux.trees.git/kernel/rcutree_plugin.h > =================================================================== > --- linux.trees.git.orig/kernel/rcutree_plugin.h 2010-04-21 21:15:45.000000000 -0400 > +++ linux.trees.git/kernel/rcutree_plugin.h 2010-04-21 21:16:57.000000000 -0400 > @@ -515,11 +515,13 @@ void synchronize_rcu(void) > if (!rcu_scheduler_active) > return; > > + init_rcu_head_on_stack(&rcu.head); > init_completion(&rcu.completion); > /* Will wake me after RCU finished. */ > call_rcu(&rcu.head, wakeme_after_rcu); > /* Wait for it. */ > wait_for_completion(&rcu.completion); > + destroy_rcu_head_on_stack(&rcu.head); > } > EXPORT_SYMBOL_GPL(synchronize_rcu); > > -- > Mathieu Desnoyers > Operating System Efficiency R&D Consultant > EfficiOS Inc. >
http://www.efficios.com
> -- > 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/
--
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 0/5] rcu head debugobjects
, Mathieu Desnoyers
, (Sat Apr 17, 5:48 am)
[patch 3/5] remove all rcu head initializations, except on ...
, Mathieu Desnoyers
, (Sat Apr 17, 5:48 am)
[patch 5/5] tree/tiny rcu: Add debug RCU head objects (v5)
, Mathieu Desnoyers
, (Sat Apr 17, 5:48 am)
Re: [patch 0/5] rcu head debugobjects
, Paul E. McKenney
, (Sat Apr 17, 5:48 pm)
Re: [patch 5/5] tree/tiny rcu: Add debug RCU head objects (v5)
, Lai Jiangshan
, (Sun Apr 18, 6:17 pm)
Re: [patch 5/5] tree/tiny rcu: Add debug RCU head objects (v5)
, Paul E. McKenney
, (Mon Apr 19, 6:34 am)
Re: [patch 0/5] rcu head debugobjects
, Paul E. McKenney
, (Wed Apr 21, 10:31 am)
Re: [patch 0/5] rcu head debugobjects
, Mathieu Desnoyers
, (Wed Apr 21, 6:20 pm)
[PATCH] rcu fix rcu head init on stack in rcutree_plugin.h
, Mathieu Desnoyers
, (Wed Apr 21, 6:23 pm)
Re: [PATCH] rcu fix rcu head init on stack in rcutree_plugin.h
, Paul E. McKenney
, (Thu Apr 22, 3:52 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Matthew Garrett
Re: [PATCH] Enable speedstep for sonoma processors.
Mauro Carvalho Chehab
Re: [PATCH 1/2] media: Add timberdale video-in driver
Peter Zijlstra
[PATCH 23/30] netvm: skb processing
Greg Kroah-Hartman
[PATCH 21/28] cgroupfs: create /sys/fs/cgroup to mount cgroupfs on
git
:
Jan Hudec
Re: GIT push to sftp (feature request)
Steffen Prohaska
[PATCH 0/4] core.ignorecase
Johannes Schindelin
Re: Git checkout preserve timestamp?
Linus Torvalds
[PATCH 1/7] Make unpack_trees_options bit flags actual bitfields
Johan Herland
Re: What's cooking in git.git (Oct 2010, #01; Wed, 13)
linux-netdev
:
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Jan Engelhardt
Re: [PATCH] Fix netfilter xt_time's time_mt()'s use of do_div()
Herbert Xu
Re: [RFC PATCH 00/17] virtual-bus
Jeff Kirsher
Re: [net-next-2.6 PATCH] e1000e: don't inadvertently re-set INTX_DISABLE
git-commits-head
:
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
Linux Kernel Mailing List
Use path_put() in a few places instead of {mnt,d}put()
Linux Kernel Mailing List
mv643xx_eth: use sw csum for big packets
Linux Kernel Mailing List
arm: fix HAVE_CLK merge goof
Linux Kernel Mailing List
arm: convert pcm037 platform to use smsc911x
freebsd-current
:
David Wolfskill
"interrupt storm..."; seems associated with an0 NIC
Andriy Gapon
Re: letting glabel recognise a media change
Garrett Cooper
Re: Only display ACPI bootmenu key if ACPI is present
Pyun YongHyeon
CFT: msk(4) Rx checksum offloading support
FreeBSD Tinderbox
[head tinderbox] failure on sparc64/sparc64
Colocation donated by:
Syndicate