Mike Galbraith
bb2bc55a69
sched: Fix crash if cpuset_cpumask_can_shrink() is passed an empty cpumask
While creating an exclusive cpuset, we passed cpuset_cpumask_can_shrink()
an empty cpumask (cur), and dl_bw_of(cpumask_any(cur)) made boom with it:
CPU: 0 PID: 6942 Comm: shield.sh Not tainted 3.19.0-master #19
Hardware name: MEDIONPC MS-7502/MS-7502, BIOS 6.00 PG 12/26/2007
task: ffff880224552450 ti: ffff8800caab8000 task.ti: ffff8800caab8000
RIP: 0010:[<ffffffff81073846>] [<ffffffff81073846>] cpuset_cpumask_can_shrink+0x56/0xb0
[...]
Call Trace:
[<ffffffff810cb82a>] validate_change+0x18a/0x200
[<ffffffff810cc877>] cpuset_write_resmask+0x3b7/0x720
[<ffffffff810c4d58>] cgroup_file_write+0x38/0x100
[<ffffffff811d953a>] kernfs_fop_write+0x12a/0x180
[<ffffffff8116e1a3>] vfs_write+0xb3/0x1d0
[<ffffffff8116ed06>] SyS_write+0x46/0xb0
[<ffffffff8159ced6>] system_call_fastpath+0x16/0x1b
Signed-off-by: Mike Galbraith <umgwanakikbuti@gmail.com>
Acked-by: Zefan Li <lizefan@huawei.com>
Fixes: f82f80426f7a ("sched/deadline: Ensure that updates to exclusive cpusets don't break AC")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1422417235.5716.5.camel@marge.simpson.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-01-28 15:28:15 +01:00
..
2015-01-20 11:38:33 +10:30
2014-08-08 16:30:24 -07:00
2015-01-23 06:40:36 +12:00
2015-01-09 11:12:28 +01:00
2014-12-13 12:42:51 -08:00
2014-12-13 13:33:07 +01:00
2015-01-09 11:20:39 +01:00
2014-12-19 22:55:06 +01:00
2014-12-13 14:04:41 -08:00
2014-11-13 10:39:04 -08:00
2015-01-28 15:28:15 +01:00
2015-01-25 17:47:34 -08:00
2015-01-17 07:55:52 +13:00
2014-10-09 22:26:04 -04:00
2014-10-09 22:26:04 -04:00
2014-12-13 12:42:53 -08:00
2014-09-23 16:37:53 -04:00
2014-12-30 10:45:47 -08:00
2014-09-23 16:37:51 -04:00
2014-12-23 18:13:16 -08:00
2014-12-31 14:52:18 -08:00
2014-06-04 16:54:14 -07:00
2014-08-08 15:57:18 -07:00
2014-07-24 21:53:47 +10:00
2014-07-15 11:05:09 -04:00
2015-01-22 10:26:43 -05:00
2014-09-06 12:58:18 +02:00
2014-10-28 10:46:05 +01:00
2014-11-03 19:21:01 -08:00
2014-12-11 18:57:19 -08:00
2014-08-25 15:42:19 -07:00
2014-07-23 10:18:06 -07:00
2014-06-04 16:54:15 -07:00
2015-01-08 15:10:51 -08:00
2014-11-19 15:25:26 -05:00
2014-12-13 12:42:45 -08:00
2014-10-21 23:44:20 +02:00
2014-10-26 16:16:18 +01:00
2014-12-09 16:58:40 -06:00
2014-06-04 16:54:15 -07:00
2014-10-29 11:18:18 -04:00
2014-10-14 02:18:16 +02:00
2014-09-10 15:42:12 -07:00
2014-07-16 14:57:13 +02:00
2014-12-13 12:42:51 -08:00
2014-12-10 17:41:17 -08:00
2015-01-20 11:38:33 +10:30
2014-04-25 12:00:49 -07:00
2014-10-09 22:25:51 -04:00
2014-06-04 16:54:15 -07:00
2014-12-10 17:41:04 -08:00
2015-01-22 11:15:54 +10:30
2014-04-24 10:26:39 +02:00
2014-12-04 14:34:54 -05:00
2014-12-10 17:41:10 -08:00
2015-01-20 11:38:31 +10:30
2014-12-16 15:53:03 -08:00
2014-12-16 15:53:03 -08:00
2014-06-06 16:08:13 -07:00
2014-12-10 17:41:10 -08:00
2015-01-17 10:02:23 +13:00
2014-09-26 00:00:06 -07:00
2014-04-12 14:49:50 -07:00
2014-10-14 02:18:22 +02:00
2014-10-14 02:27:06 +02:00
2014-12-10 09:34:43 -08:00
2014-10-15 07:48:18 +02:00
2014-10-28 10:56:24 +01:00
2014-11-03 19:20:34 -08:00
2014-12-13 12:42:48 -08:00
2014-06-04 16:54:15 -07:00
2014-12-13 12:42:51 -08:00
2015-01-22 21:11:06 +01:00
2014-12-10 17:41:10 -08:00
2014-12-16 12:53:59 -08:00
2014-07-17 09:35:17 -04:00
2014-11-19 13:01:25 -05:00
2014-08-08 15:57:18 -07:00
2014-09-16 13:41:06 -07:00
2014-06-21 00:15:26 -04:00
2014-07-23 10:18:05 -07:00
2014-12-05 17:19:27 -06:00
2014-12-17 12:31:40 -08:00
2014-08-26 13:45:45 -04:00
2014-12-17 12:31:40 -08:00
2014-06-06 16:08:16 -07:00
2014-12-04 14:34:47 -05:00
2014-10-15 07:48:18 +02:00
2014-05-20 10:59:32 -04:00
2015-01-16 14:21:16 -05:00