login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
March
»
30
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup access
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup access
Date: Tuesday, March 30, 2010 - 1:50 am
On Mon, 2010-03-29 at 15:43 -0700, Paul Menage wrote:
quoted text
> On Mon, Mar 29, 2010 at 2:15 PM, Paul E. McKenney > <paulmck@linux.vnet.ibm.com> wrote: > > Add an rcu_read_lock() / rcu_read_unlock() pair to protect a fork-time > > cgroup access. This seems likely to be a false positive. > > > > Located by: Alessio Igor Bogani <abogani@texware.it> > > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> > > --- > > > > sched.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/kernel/sched.c b/kernel/sched.c > > index 9ab3cd7..d4bb5e0 100644 > > --- a/kernel/sched.c > > +++ b/kernel/sched.c > > @@ -2621,7 +2621,9 @@ void sched_fork(struct task_struct *p, int clone_flags) > > if (p->sched_class->task_fork) > > p->sched_class->task_fork(p); > > > > + rcu_read_lock(); > > set_task_cpu(p, cpu); > > + rcu_read_unlock(); > > I think you're right that this is a false positive - it would only be > a problem if it were possible for the task to be moved to a different > cgroup, and I think that shouldn't be the case at this point in the > fork path since the new process isn't visible on the tasklist yet, > right?
Well the thing is, this fork time invocation of set_task_cpu()->set_task_rq() is in no way special, there's multiple places like that. --
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 tip/core/urgent] rcu: protect fork-time cgroup access
, Paul E. McKenney
, (Mon Mar 29, 2:15 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Peter Zijlstra
, (Mon Mar 29, 2:19 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Peter Zijlstra
, (Mon Mar 29, 2:26 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Mon Mar 29, 2:29 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Mon Mar 29, 2:34 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Peter Zijlstra
, (Mon Mar 29, 2:42 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Mon Mar 29, 2:51 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Mon Mar 29, 3:24 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul Menage
, (Mon Mar 29, 3:43 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Mon Mar 29, 4:05 pm)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Peter Zijlstra
, (Tue Mar 30, 1:50 am)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul E. McKenney
, (Tue Mar 30, 10:28 am)
Re: [PATCH tip/core/urgent] rcu: protect fork-time cgroup ...
, Paul Menage
, (Tue Mar 30, 11:57 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Gautham R Shenoy
[PATCH 1/8] Enhance process freezer interface for usage beyond software suspend
Jeffrey V. Merkey
Re: Versioning file system
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Srivatsa Vaddagiri
Re: [PATCH 7/8] Clean up workqueue.c with respect to the freezer based cpu-hotplug
git
:
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Shawn O. Pearce
Re: Bugs in Gitosis
Miles Bader
Re: way to automatically add untracked files?
Harvey Harrison
Re: [SoC RFC] libsvn-fs-git: A git backend for the subversion filesystem
linux-netdev
:
Timo Teräs
ip xfrm policy semantics
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
ipc/sem.c: move wake_up_process out of the spinlock section
Linux Kernel Mailing List
netfilter: nf_conntrack_sip: add T.38 FAX support
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Tony Abernethy
Re: The Atheros story in much fewer words
Damien Miller
Re: Patching a SSH 'Weakness'
Colocation donated by:
Syndicate