login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
21
Re: INFO: suspicious rcu_dereference_check() usage - include/linux/cgroup.h:492 invoked rcu_dereference_check() without protection!
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Paul E. McKenney
Subject:
Re: INFO: suspicious rcu_dereference_check() usage - include/linux/cgroup.h:492 invoked rcu_dereference_check() without protection!
Date: Tuesday, April 20, 2010 - 8:14 pm
On Wed, Apr 21, 2010 at 09:05:50AM +0800, Li Zefan wrote:
quoted text
> > commit 2836f18139267ea918ed2cf39023fb0eb38c4361 > > Author: Paul E. McKenney <paulmck@linux.vnet.ibm.com> > > Date: Mon Apr 19 15:59:50 2010 -0700 > > > > rcu: fix RCU lockdep splat on freezer_fork path > > > > Add an RCU read-side critical section to suppress this false positive. > > > > Located-by: Eric Paris <eparis@parisplace.org> > > Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> > > > > diff --git a/kernel/cgroup_freezer.c b/kernel/cgroup_freezer.c > > index da5e139..e5c0244 100644 > > --- a/kernel/cgroup_freezer.c > > +++ b/kernel/cgroup_freezer.c > > @@ -205,9 +205,12 @@ static void freezer_fork(struct cgroup_subsys *ss, struct task_struct *task) > > * No lock is needed, since the task isn't on tasklist yet, > > * so it can't be moved to another cgroup, which means the > > * freezer won't be removed and will be valid during this > > - * function call. > > + * function call. Nevertheless, apply RCU read-side critical > > + * section to suppress RCU lockdep false positives. > > */ > > It was me that added the original comment. > > > + rcu_read_lock(); > > freezer = task_freezer(task); > > + rcu_read_unlock(); > > > > /* > > * The root cgroup is non-freezable, so we can skip the > > Acked-by: Li Zefan <lizf@cn.fujitsu.com>
Thank you, Li! I have added your Acked-by. Thanx, Paul --
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:
INFO: suspicious rcu_dereference_check() usage - include/l ...
, Miles Lane
, (Sun Mar 7, 6:26 pm)
Re: INFO: suspicious rcu_dereference_check() usage - inclu ...
, Paul E. McKenney
, (Wed Mar 10, 8:28 pm)
Re: INFO: suspicious rcu_dereference_check() usage - incl ...
, Eric Paris
, (Mon Apr 12, 11:44 am)
Re: INFO: suspicious rcu_dereference_check() usage - incl ...
, Peter Zijlstra
, (Mon Apr 12, 11:47 am)
Re: INFO: suspicious rcu_dereference_check() usage - incl ...
, Peter Zijlstra
, (Wed Apr 14, 3:47 am)
Re: INFO: suspicious rcu_dereference_check() usage - inclu ...
, Paul E. McKenney
, (Wed Apr 14, 9:03 am)
Re: INFO: suspicious rcu_dereference_check() usage - inclu ...
, Paul E. McKenney
, (Thu Apr 15, 8:47 am)
Re: INFO: suspicious rcu_dereference_check() usage - inclu ...
, Lai Jiangshan
, (Sun Apr 18, 8:45 pm)
Re: INFO: suspicious rcu_dereference_check() usage - incl ...
, Eric Paris
, (Mon Apr 19, 11:26 am)
Re: INFO: suspicious rcu_dereference_check() usage - inclu ...
, Paul E. McKenney
, (Mon Apr 19, 4:01 pm)
Re: INFO: suspicious rcu_dereference_check() usage - inclu ...
, Eric Paris
, (Mon Apr 19, 6:25 pm)
Re: INFO: suspicious rcu_dereference_check() usage - inclu ...
, Paul E. McKenney
, (Mon Apr 19, 8:04 pm)
Re: INFO: suspicious rcu_dereference_check() usage - inclu ...
, Peter Zijlstra
, (Tue Apr 20, 12:21 am)
[PATCH] RCU: don't turn off lockdep when find suspicious r ...
, Lai Jiangshan
, (Tue Apr 20, 1:23 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Peter Zijlstra
, (Tue Apr 20, 1:36 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Eric Paris
, (Tue Apr 20, 5:31 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Tue Apr 20, 6:28 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Tue Apr 20, 6:52 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Miles Lane
, (Tue Apr 20, 8:38 am)
Re: INFO: suspicious rcu_dereference_check() usage - inclu ...
, Li Zefan
, (Tue Apr 20, 6:05 pm)
Re: INFO: suspicious rcu_dereference_check() usage - inclu ...
, Paul E. McKenney
, (Tue Apr 20, 8:14 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Borislav Petkov
, (Tue Apr 20, 11:04 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Wed Apr 21, 2:35 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Wed Apr 21, 2:45 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Wed Apr 21, 2:48 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Eric Dumazet
, (Wed Apr 21, 2:57 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Wed Apr 21, 3:14 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Eric W. Biederman
, (Wed Apr 21, 4:26 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Vivek Goyal
, (Thu Apr 22, 7:56 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Thu Apr 22, 9:01 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Miles Lane
, (Fri Apr 23, 5:50 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Fri Apr 23, 12:42 pm)
[PATCH v2.6.34-rc5 01/12] rcu: Fix RCU lockdep splat in se ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 02/12] rcu: fix RCU lockdep splat on fr ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 03/12] rcu: leave lockdep enabled after ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 04/12] NFSv4: Fix the locking in nfs_in ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 05/12] NFS: Fix RCU issues in the NFSv4 ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 06/12] KEYS: Fix an RCU warning
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 07/12] KEYS: Fix an RCU warning in the ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 08/12] cgroup: Fix an RCU warning in cg ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 09/12] cgroup: Fix an RCU warning in al ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 10/12] sched: Fix an RCU warning in pri ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 11/12] cgroup: Check task_lock in task_ ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
[PATCH v2.6.34-rc5 12/12] memcg: css_id() must be called u ...
, Paul E. McKenney
, (Fri Apr 23, 12:43 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Miles Lane
, (Fri Apr 23, 3:59 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Miles Lane
, (Fri Apr 23, 10:35 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Sat Apr 24, 7:34 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Sat Apr 24, 7:36 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Johannes Berg
, (Sun Apr 25, 12:45 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, David Miller
, (Sun Apr 25, 12:49 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Miles Lane
, (Sun Apr 25, 8:49 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Miles Lane
, (Sun Apr 25, 1:20 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Sun Apr 25, 7:07 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Mon Apr 26, 9:09 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Eric W. Biederman
, (Mon Apr 26, 11:35 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Mon Apr 26, 9:27 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Tue Apr 27, 9:22 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Eric Dumazet
, (Tue Apr 27, 9:33 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Miles Lane
, (Tue Apr 27, 10:58 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Tue Apr 27, 4:31 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, David Miller
, (Tue Apr 27, 4:42 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Tue Apr 27, 4:52 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Wed Apr 28, 2:37 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Miles Lane
, (Sat May 1, 10:26 am)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Sat May 1, 2:55 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Miles Lane
, (Sat May 1, 7:00 pm)
Re: [PATCH] RCU: don't turn off lockdep when find suspicio ...
, Paul E. McKenney
, (Sat May 1, 9:11 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Greg Kroah-Hartman
[PATCH 09/36] driver core: register_memory/unregister_memory clean ups and bugfix
Greg Kroah-Hartman
[PATCH 08/36] driver core: memory: semaphore to mutex
Pierre Ossman
Re: sdio: enhance IO_RW_EXTENDED support
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Johannes Schindelin
Re: error: cannot lock ref 'refs/remotes/origin/*'
Pat Thoyts
[PATCH] git-gui: use themed tk widgets with Tk 8.5
Michael Witten
Re: 'git gc --aggressive' effectively unusable
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
linux-netdev
:
David Miller
Re: [PATCH 32/53] netns xfrm: finding policy in netns
Jean-Louis Dupond
Re: tg3 driver not advertising 1000mbit
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
git-commits-head
:
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
imxfb: Fix margin settings
Linux Kernel Mailing List
USB: set correct configuration in probe of ti_usb_3410_5052
openbsd-misc
:
Stas Miasnikou
Re: Another question: device naming convention
Darrin Chandler
Re: That whole "Linux stealing our code" thing
Community First Financial
Teacher A+ Loan
Jan Stary
Re: audio recording levels
Andrej Elizarov
Re: Web Browsers
Colocation donated by:
Syndicate