login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
14
Re: [PATCH] Fix the race between walk_tg_tree and sched_create_group
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: [PATCH] Fix the race between walk_tg_tree and sched_create_group
Date: Thursday, August 14, 2008 - 1:36 am
On Wed, 2030-08-14 at 15:56 +0800, Zhang, Yanmin wrote:
quoted text
> With 2.6.27-rc3, I hit a kernel panic when running volanoMark on my > new x86_64 machine. I also hit it with other 2.6.27-rc kernels. > See below log. > > Basically, function walk_tg_tree and sched_create_group have a race between > accessing and initiating tg->children. Below patch fixes it by moving > tg->children initiation to the front of linking tg->siblings to parent->children. > > Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com>
Nice catch Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
quoted text
> ----------------panic log------------ > > BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 > IP: [<ffffffff802292ab>] walk_tg_tree+0x45/0x7f > PGD 1be1c4067 PUD 1bdd8d067 PMD 0 > Oops: 0000 [1] SMP > CPU 11 > Modules linked in: igb > Pid: 22979, comm: java Not tainted 2.6.27-rc3 #1 > RIP: 0010:[<ffffffff802292ab>] [<ffffffff802292ab>] walk_tg_tree+0x45/0x7f > RSP: 0018:ffff8801bfbbbd18 EFLAGS: 00010083 > RAX: 0000000000000000 RBX: ffff8800be0dce40 RCX: ffffffffffffffc0 > RDX: ffff880102c43740 RSI: 0000000000000000 RDI: ffff8800be0dce40 > RBP: ffff8801bfbbbd48 R08: ffff8800ba437bc8 R09: 0000000000001f40 > R10: ffff8801be812100 R11: ffffffff805fdf44 R12: ffff880102c43740 > R13: 0000000000000000 R14: ffffffff8022cf0f R15: ffffffff8022749f > FS: 00000000568ac950(0063) GS:ffff8801bfa26d00(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > CR2: 0000000000000000 CR3: 00000001bd848000 CR4: 00000000000006e0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > Process java (pid: 22979, threadinfo ffff8801b145a000, task ffff8801bf18e450) > Stack: 0000000000000001 ffff8800ba5c8d60 0000000000000001 0000000000000001 > ffff8800bad1ccb8 0000000000000000 ffff8801bfbbbd98 ffffffff8022ed37 > 0000000000000001 0000000000000286 ffff8801bd5ee180 ffff8800ba437bc8 > Call Trace: > <IRQ> [<ffffffff8022ed37>] try_to_wake_up+0x71/0x24c > [<ffffffff80247177>] autoremove_wake_function+0x9/0x2e > [<ffffffff80228039>] ? __wake_up_common+0x46/0x76 > [<ffffffff802296d5>] __wake_up+0x38/0x4f > [<ffffffff806169cc>] tcp_v4_rcv+0x380/0x62e > > > --- > > --- linux-2.6.27-rc3/kernel/sched.c 2008-08-14 06:23:49.000000000 +0800 > +++ linux-2.6.27-rc3_race/kernel/sched.c 2008-08-14 07:19:07.000000000 +0800 > @@ -8462,8 +8462,8 @@ struct task_group *sched_create_group(st > WARN_ON(!parent); /* root should already exist */ > > tg->parent = parent; > - list_add_rcu(&tg->siblings, &parent->children); > INIT_LIST_HEAD(&tg->children); > + list_add_rcu(&tg->siblings, &parent->children); > spin_unlock_irqrestore(&task_group_lock, flags); > > return tg; > >
--
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] cpuset: make ntasks to be a monotonic increasing value
, Lai Jiangshan
, (Wed Jul 30, 8:22 pm)
Re: [PATCH] cpuset: make ntasks to be a monotonic increasi ...
, Li Zefan
, (Thu Jul 31, 12:10 am)
Re: [PATCH] cpuset: make ntasks to be a monotonic increasi ...
, Lai Jiangshan
, (Thu Jul 31, 12:45 am)
Re: [PATCH] cpuset: make ntasks to be a monotonic increasi ...
, Paul Jackson
, (Thu Jul 31, 5:23 am)
Re: [PATCH] cpuset: make ntasks to be a monotonic increasi ...
, Lai Jiangshan
, (Thu Jul 31, 6:10 am)
Re: [PATCH] cpuset: make ntasks to be a monotonic increasi ...
, Paul Jackson
, (Thu Jul 31, 6:37 am)
Re: [PATCH] cpuset: make ntasks to be a monotonic increasi ...
, Paul Menage
, (Thu Jul 31, 10:06 am)
Re: [PATCH] cpuset: make ntasks to be a monotonic increasi ...
, Paul Jackson
, (Thu Jul 31, 12:38 pm)
Re: [PATCH] cpuset: make ntasks to be a monotonic increasi ...
, Paul Menage
, (Thu Jul 31, 1:02 pm)
Re: [PATCH] cpuset: make ntasks to be a monotonic increasi ...
, Lai Jiangshan
, (Thu Jul 31, 6:35 pm)
Re: [PATCH] Fix the race between walk_tg_tree and sched_cr ...
, Peter Zijlstra
, (Thu Aug 14, 1:36 am)
Re: [PATCH] Fix the race between walk_tg_tree and sched_cr ...
, Ingo Molnar
, (Thu Aug 14, 1:46 am)
[PATCH] Fix the race between walk_tg_tree and sched_create ...
, Zhang, Yanmin
, (Wed Aug 14, 12:56 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate