Peter Zijlstra
6da1c989cc
sched/core: Add missing update_rq_clock() call in sched_move_task()
[ Upstream commit 1b1d62254d ]
Bug was noticed via this warning:
WARNING: CPU: 6 PID: 1 at kernel/sched/sched.h:804 detach_task_cfs_rq+0x8e8/0xb80
rq->clock_update_flags < RQCF_ACT_SKIP
Modules linked in:
CPU: 6 PID: 1 Comm: systemd Not tainted 4.10.0-rc5-00140-g0874170baf55-dirty #1
Hardware name: Supermicro SYS-4048B-TRFT/X10QBi, BIOS 1.0 04/11/2014
Call Trace:
dump_stack+0x4d/0x65
__warn+0xcb/0xf0
warn_slowpath_fmt+0x5f/0x80
detach_task_cfs_rq+0x8e8/0xb80
? allocate_cgrp_cset_links+0x59/0x80
task_change_group_fair+0x27/0x150
sched_change_group+0x48/0xf0
sched_move_task+0x53/0x150
cpu_cgroup_attach+0x36/0x70
cgroup_taskset_migrate+0x175/0x300
cgroup_migrate+0xab/0xd0
cgroup_attach_task+0xf0/0x190
__cgroup_procs_write+0x1ed/0x2f0
cgroup_procs_write+0x14/0x20
cgroup_file_write+0x3f/0x100
kernfs_fop_write+0x104/0x180
__vfs_write+0x37/0x140
vfs_write+0xb8/0x1b0
SyS_write+0x55/0xc0
do_syscall_64+0x61/0x170
entry_SYSCALL64_slow_path+0x25/0x25
Reported-by: Ingo Molnar <mingo@kernel.org>
Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-15 15:53:11 +01:00
..
2017-10-12 11:51:20 +02:00
2016-10-11 15:06:32 -07:00
2017-01-06 10:40:17 +01:00
2017-10-12 11:51:21 +02:00
2017-09-02 07:07:53 +02:00
2017-10-05 09:43:58 +02:00
2016-08-26 14:42:08 +02:00
2017-10-21 17:21:33 +02:00
2017-10-12 11:51:25 +02:00
2017-02-23 17:44:36 +01:00
2017-10-18 09:35:38 +02:00
2017-11-15 15:53:11 +01:00
2017-10-21 17:21:38 +02:00
2017-10-12 11:51:24 +02:00
2016-01-22 18:04:28 -05:00
2016-04-04 09:46:47 -04:00
2017-08-24 17:12:18 -07:00
2016-10-04 14:21:41 -07:00
2016-07-29 17:54:17 -07:00
2016-06-27 11:01:00 -04:00
2016-10-04 14:21:41 -07:00
2017-01-06 10:40:13 +01:00
2017-03-26 13:05:58 +02:00
2017-08-11 08:49:28 -07:00
2017-08-06 18:59:41 -07:00
2017-10-12 11:51:25 +02:00
2016-06-30 18:05:09 -05:00
2016-11-22 12:33:43 +01:00
2017-07-21 07:42:21 +02:00
2017-09-07 08:35:39 +02:00
2016-07-28 16:07:41 -07:00
2016-01-20 17:09:18 -08:00
2017-08-16 13:43:15 -07:00
2016-10-07 18:46:30 -07:00
2016-10-11 15:06:33 -07:00
2017-01-19 20:17:59 +01:00
2016-03-15 16:55:16 -07:00
2016-01-20 17:09:18 -08:00
2016-12-07 17:10:00 -08:00
2016-08-02 19:35:31 -04:00
2016-09-01 17:52:01 -07:00
2016-01-20 17:09:18 -08:00
2016-08-02 19:35:27 -04:00
2017-05-25 15:44:47 +02:00
2016-08-02 19:35:30 -04:00
2017-04-21 09:31:18 +02:00
2016-02-09 11:54:23 +01:00
2017-06-17 06:41:57 +02:00
2017-03-12 06:41:45 +01:00
2017-03-12 06:41:43 +01:00
2016-04-11 22:43:43 +01:00
2016-11-29 16:01:30 -08:00
2016-02-16 13:04:58 -05:00
2017-05-20 14:28:40 +02:00
2017-07-05 14:40:24 +02:00
2017-05-25 15:44:38 +02:00
2017-08-24 17:12:21 -07:00
2016-07-15 10:41:42 +02:00
2017-06-14 15:05:54 +02:00
2017-01-12 11:39:30 +01:00
2016-04-14 12:56:09 -07:00
2017-10-05 09:44:02 +02:00
2017-08-11 08:49:36 -07:00
2016-09-22 14:49:10 +02:00
2016-10-11 15:06:33 -07:00
2016-03-01 20:36:56 +01:00
2016-10-21 15:45:47 -06:00
2017-02-14 15:25:42 -08:00
2016-10-03 13:39:00 -07:00
2016-09-13 14:41:36 +02:00
2016-05-23 17:04:14 -07:00
2016-05-20 17:58:30 -07:00
2017-10-05 09:44:04 +02:00
2016-08-02 19:35:02 -04:00
2016-11-03 16:55:58 -04:00
2016-08-22 10:01:49 -07:00
2016-03-22 15:36:02 -07:00
2016-02-29 09:53:09 +01:00
2017-06-17 06:41:51 +02:00
2016-10-07 18:46:30 -07:00
2016-09-05 13:52:39 +02:00
2016-09-22 20:00:36 -05:00
2016-09-22 20:00:36 -05:00
2017-06-17 06:41:57 +02:00
2017-06-17 06:41:57 +02:00
2016-03-02 10:28:47 -05:00
2017-11-02 09:49:12 +01:00