Dario Faggioli
49307fd6f7
sched: NULL pointer dereference while setting sched_rt_period_us
When CONFIG_RT_GROUP_SCHED and CONFIG_CGROUP_SCHED are enabled, with:
echo 10000 > /proc/sys/kernel/sched_rt_period_us
We get this:
BUG: unable to handle kernel NULL pointer dereference at 0000008c
[ 947.682233] IP: [<c0216b72>] __rt_schedulable+0x12/0x160
[ 947.683123] *pde = 00000000=20
[ 947.683782] Oops: 0000 [#1]
[ 947.684307] Modules linked in:
[ 947.684308]
[ 947.684308] Pid: 2359, comm: bash Not tainted (2.6.26-rc6 #8)
[ 947.684308] EIP: 0060:[<c0216b72>] EFLAGS: 00000246 CPU: 0
[ 947.684308] EIP is at __rt_schedulable+0x12/0x160
[ 947.684308] EAX: 00000000 EBX: 00000000 ECX: 00000000 EDX: 00000001
[ 947.684308] ESI: c0521db4 EDI: 00000001 EBP: c6cc9f00 ESP: c6cc9ed0
[ 947.684308] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068
[ 947.684308] Process bash (pid: 2359, tiÆcc8000 taskÇa54f00=20 task.tiÆcc8000)
[ 947.684308] Stack: c0222790 00000000 080f8c08 c0521db4 c6cc9f00 00000001 00000000 00000000
[ 947.684308] c6cc9f9c 00000000 c0521db4 00000001 c6cc9f28 c0216d40 00000000 00000000
[ 947.684308] c6cc9f9c 000f4240 000e7ef0 ffffffff c0521db4 c79dfb60 c6cc9f58 c02af2cc
[ 947.684308] Call Trace:
[ 947.684308] [<c0222790>] ? do_proc_dointvec_conv+0x0/0x50
[ 947.684308] [<c0216d40>] ? sched_rt_handler+0x80/0x110
[ 947.684308] [<c02af2cc>] ? proc_sys_call_handler+0x9c/0xb0
[ 947.684308] [<c02af2fa>] ? proc_sys_write+0x1a/0x20
[ 947.684308] [<c0273c36>] ? vfs_write+0x96/0x160
[ 947.684308] [<c02af2e0>] ? proc_sys_write+0x0/0x20
[ 947.684308] [<c027423d>] ? sys_write+0x3d/0x70
[ 947.684308] [<c0202ef5>] ? sysenter_past_esp+0x6a/0x91
[ 947.684308] =======================
[ 947.684308] Code: 24 04 e8 62 b1 0e 00 89 c7 89 f8 8b 5d f4 8b 75
f8 8b 7d fc 89 ec 5d c3 90 55 89 e5 57 56 53 83 ec 24 89 45 ec 89 55 e4
89 4d e8 <8b> b8 8c 00 00 00 85 ff 0f 84 c9 00 00 00 8b 57 24 39 55 e8
8b
[ 947.684308] EIP: [<c0216b72>] __rt_schedulable+0x12/0x160 SS:ESP 0068:c6cc9ed0
We think the following patch solves the issue.
Signed-off-by: Dario Faggioli <raistlin@linux.it>
Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-06-19 09:06:54 +02:00
..
2008-05-02 13:40:34 +02:00
Merge branches 'release', 'acpica', 'bugzilla-10224', 'bugzilla-9772', 'bugzilla-9916', 'ec', 'eeepc', 'idle', 'misc', 'pm-legacy', 'sysfs-links-2.6.26', 'thermal', 'thinkpad' and 'video' into release
2008-04-30 13:58:00 -04:00
2008-05-03 18:11:48 +02:00
2008-02-09 23:27:01 -08:00
2008-03-24 19:22:20 -07:00
2008-05-17 03:30:23 -04:00
2008-05-17 03:30:22 -04:00
2008-04-28 06:28:04 -04:00
2008-04-29 11:41:22 -07:00
2008-04-28 06:28:37 -04:00
2008-04-29 08:06:29 -07:00
2008-05-31 16:36:16 -07:00
2008-04-29 08:06:09 -07:00
2008-05-24 09:56:14 -07:00
2008-05-01 08:03:59 -07:00
2008-04-29 08:06:22 -07:00
2008-04-30 08:29:54 -07:00
2008-06-06 11:29:11 -07:00
2008-04-29 08:06:22 -07:00
2008-05-24 09:56:10 -07:00
2008-05-16 17:22:26 -04:00
2008-03-30 14:18:41 -07:00
2008-05-05 08:18:45 -07:00
2008-05-03 18:11:48 +02:00
2008-02-08 09:22:29 -08:00
2008-04-29 08:06:22 -07:00
2008-03-10 18:01:20 -07:00
2008-05-01 08:04:00 -07:00
2008-05-28 12:49:56 -05:00
2008-05-01 13:08:16 -04:00
2008-06-12 18:05:40 -07:00
2008-04-30 08:29:48 -07:00
2008-04-29 08:06:22 -07:00
2008-04-29 08:06:22 -07:00
2008-02-25 23:03:02 +01:00
2008-05-05 23:56:18 +02:00
2008-04-30 08:29:49 -07:00
2008-05-23 13:09:33 +10:00
2008-02-08 09:22:31 -08:00
2008-02-08 09:22:31 -08:00
2008-04-29 08:06:13 -07:00
2008-04-29 08:06:07 -07:00
2008-04-29 08:06:14 -07:00
2008-04-29 08:05:59 -07:00
2008-02-08 09:22:41 -08:00
2008-04-30 08:29:49 -07:00
2008-04-30 08:29:48 -07:00
2008-05-01 08:03:58 -07:00
2008-04-30 08:29:36 -07:00
2008-04-30 08:29:52 -07:00
2008-04-29 08:06:22 -07:00
2008-05-01 10:21:54 -07:00
2008-02-13 16:21:18 -08:00
2008-04-19 19:44:59 +02:00
2008-04-29 08:06:04 -07:00
2008-05-28 14:49:27 +02:00
2008-04-29 08:06:10 -07:00
2008-04-29 08:06:22 -07:00
2008-02-08 09:22:41 -08:00
2008-02-08 09:22:41 -08:00
2008-02-13 15:45:36 +01:00
2008-05-29 11:29:19 +02:00
2008-05-29 11:28:57 +02:00
2008-05-29 11:29:20 +02:00
2008-04-19 19:45:00 +02:00
2008-05-05 23:56:17 +02:00
2008-05-29 11:28:57 +02:00
2008-05-29 11:25:15 +02:00
2008-06-19 09:06:54 +02:00
2008-05-10 20:43:22 -07:00
2008-05-26 10:37:07 -07:00
2008-05-01 08:03:58 -07:00
2008-02-29 18:46:53 +01:00
2008-02-06 10:41:02 -08:00
2008-05-23 13:09:34 +10:00
2008-05-24 09:56:13 -07:00
2008-02-08 09:22:31 -08:00
2008-05-16 17:22:52 -04:00
2008-04-30 08:29:48 -07:00
2008-02-06 10:41:11 -08:00
2008-05-02 16:18:42 -07:00
2008-05-02 16:18:42 -07:00
2008-04-30 08:29:53 -07:00
2008-04-10 17:28:26 -07:00
2008-04-29 08:06:07 -07:00
2008-04-30 08:29:53 -07:00
2008-04-29 08:06:04 -07:00
2008-02-08 09:22:31 -08:00
2008-05-01 08:04:02 -07:00