Paul E. McKenney
c79aa0d965
events: Protect access via task_subsys_state_check()
The following RCU splat indicates lack of RCU protection:
[ 953.267649] ===============================
[ 953.267652] [ INFO: suspicious RCU usage. ]
[ 953.267657] 3.9.0-0.rc6.git2.4.fc19.ppc64p7 #1 Not tainted
[ 953.267661] -------------------------------
[ 953.267664] include/linux/cgroup.h:534 suspicious rcu_dereference_check() usage!
[ 953.267669]
[ 953.267669] other info that might help us debug this:
[ 953.267669]
[ 953.267675]
[ 953.267675] rcu_scheduler_active = 1, debug_locks = 0
[ 953.267680] 1 lock held by glxgears/1289:
[ 953.267683] #0: (&sig->cred_guard_mutex){+.+.+.}, at: [<c00000000027f884>] .prepare_bprm_creds+0x34/0xa0
[ 953.267700]
[ 953.267700] stack backtrace:
[ 953.267704] Call Trace:
[ 953.267709] [c0000001f0d1b6e0] [c000000000016e30] .show_stack+0x130/0x200 (unreliable)
[ 953.267717] [c0000001f0d1b7b0] [c0000000001267f8] .lockdep_rcu_suspicious+0x138/0x180
[ 953.267724] [c0000001f0d1b840] [c0000000001d43a4] .perf_event_comm+0x4c4/0x690
[ 953.267731] [c0000001f0d1b950] [c00000000027f6e4] .set_task_comm+0x84/0x1f0
[ 953.267737] [c0000001f0d1b9f0] [c000000000280414] .setup_new_exec+0x94/0x220
[ 953.267744] [c0000001f0d1ba70] [c0000000002f665c] .load_elf_binary+0x58c/0x19b0
...
This commit therefore adds the required RCU read-side critical
section to perf_event_comm().
Reported-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: a.p.zijlstra@chello.nl
Cc: paulus@samba.org
Cc: acme@ghostprotocols.net
Link: http://lkml.kernel.org/r/20130419190124.GA8638@linux.vnet.ibm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Gustavo Luiz Duarte <gusld@br.ibm.com>
2013-04-21 11:21:39 +02:00
..
2013-03-02 08:31:39 -08:00
2013-04-21 11:21:39 +02:00
2013-01-11 11:39:33 -08:00
2013-02-26 20:16:07 -08:00
2013-02-21 12:05:51 -08:00
2013-04-14 11:12:17 -07:00
2013-03-07 17:16:11 +01:00
2013-04-14 11:10:44 -07:00
2013-02-26 20:16:07 -08:00
2013-02-19 22:01:33 -08:00
2013-01-11 14:54:55 -08:00
2013-01-11 14:54:55 -08:00
2013-01-11 14:54:56 -08:00
2012-10-12 00:32:02 -04:00
2013-01-10 14:35:23 -08:00
2013-01-11 14:54:55 -08:00
2013-04-14 10:06:31 -07:00
2012-11-19 08:13:38 -08:00
2013-02-27 19:10:24 -08:00
2013-02-23 18:50:11 -08:00
2013-02-19 18:19:48 -08:00
2013-02-19 19:04:55 -08:00
2013-02-20 09:18:31 -08:00
2012-12-18 10:55:28 -08:00
2013-01-27 19:23:31 +01:00
2013-03-31 11:38:33 -07:00
2013-03-13 15:00:20 -07:00
2012-10-26 14:27:49 -07:00
2013-02-23 18:50:11 -08:00
2013-03-12 20:42:10 -07:00
2013-02-19 19:05:45 -08:00
2013-02-05 00:48:46 +01:00
2012-08-06 19:00:35 +03:00
2012-12-20 17:40:19 -08:00
2012-09-13 17:56:13 +02:00
2013-02-27 19:10:12 -08:00
2013-01-23 09:31:01 -08:00
2013-02-27 19:10:24 -08:00
2012-12-11 18:10:49 -08:00
2012-12-12 17:38:33 -08:00
2012-10-24 12:39:09 +02:00
2013-03-31 11:38:33 -07:00
2013-02-27 20:58:09 -08:00
2012-12-14 13:06:44 +10:30
2012-12-20 17:40:21 -08:00
2012-12-05 11:27:24 +10:30
2012-10-19 17:30:40 -07:00
2013-02-26 20:16:07 -08:00
2013-02-07 20:51:08 +01:00
2013-02-26 20:16:07 -08:00
2012-12-06 17:16:23 +08:00
2013-01-21 17:17:57 +10:30
2013-03-26 03:41:23 -07:00
2013-02-27 19:10:24 -08:00
2013-02-19 19:05:45 -08:00
2013-02-27 19:10:19 -08:00
2013-03-22 16:41:20 -07:00
2013-01-24 15:37:26 +01:00
2013-02-08 17:47:13 +01:00
2013-01-28 22:06:21 -08:00
2013-01-28 22:25:21 -08:00
2013-01-28 22:06:21 -08:00
2013-01-28 22:25:21 -08:00
2013-02-04 12:18:20 -08:00
2013-01-08 14:12:19 -08:00
2012-11-16 10:05:57 -08:00
2013-01-28 22:25:21 -08:00
2013-01-28 22:25:21 -08:00
2013-02-22 23:31:31 -05:00
2012-12-18 15:02:12 -08:00
2012-10-06 03:05:31 +09:00
2013-02-07 20:51:08 +01:00
2013-02-07 20:51:08 +01:00
2013-02-07 20:51:08 +01:00
2013-01-11 14:54:55 -08:00
2012-10-02 21:14:29 +10:00
2013-03-13 15:21:45 -07:00
2013-02-21 17:22:20 -08:00
2013-03-08 15:05:34 -08:00
2012-08-13 17:01:07 +02:00
2013-03-05 18:10:04 -08:00
2013-02-07 15:19:36 -08:00
2013-02-26 22:25:17 +01:00
2012-12-14 13:05:22 +10:30
2013-04-08 22:10:40 +02:00
2013-02-27 19:10:21 -08:00
2013-03-02 07:58:56 -08:00
2012-09-13 16:47:34 +02:00
2012-10-06 03:05:31 +09:00
2013-02-21 17:22:19 -08:00
2013-02-16 23:17:25 +01:00
2013-02-19 18:19:48 -08:00
2013-02-27 19:10:24 -08:00
2013-01-27 19:23:31 +01:00
2013-03-27 07:50:08 -07:00
2013-02-27 19:10:24 -08:00
2013-03-27 07:50:08 -07:00
2013-02-27 19:10:22 -08:00
2013-02-27 19:10:22 -08:00
2012-12-06 10:39:54 +01:00
2013-02-22 19:25:09 -08:00
2013-02-13 19:29:12 -08:00
2013-03-18 18:47:07 -07:00