Received: by 10.223.164.202 with SMTP id h10csp221671wrb; Mon, 13 Nov 2017 05:30:42 -0800 (PST) X-Google-Smtp-Source: AGs4zMbVkKy9t01MHB1de9DqqUQT0qsnDGAZuhctXe03Zvbuby/4jCmOYcQCKDZ6SoTAac7WDCS1 X-Received: by 10.99.121.69 with SMTP id u66mr8580740pgc.193.1510579842559; Mon, 13 Nov 2017 05:30:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510579842; cv=none; d=google.com; s=arc-20160816; b=o8/lAXGJ0I8b0rsbwfzfRDWxgtz18TlgEzGw4xJoKGJMtH1qADqoNxAqpJ3YZmI92O n09cXJDfOdluwKbvZoENwDsUzRpXNAz3j7r9KpHXgPLWr7v0Knl29lGZbK5G+IKC5kdl SMMjVDbcjWCWJ0rwuWFYXCuyNEIxTkCbCqM/H/PPTYiQZFEzZKB5ZovCt9CJWeFroUx/ VLKrKZYiM1QyvFeBnXl733drAuDvm9pCzw3TnHqYXQoVTXo+uZdxTUlmN+Xfujwmnkcq 2AO2jyK17vdaob0/OQO2qXEIvmFPP9C7VMJQ8ga4U8v5e5HxaHH+yTEdVfO+u86WrkoM fwmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=CKFhEloASZvBc8YyI8th5k2/2ScUOjH3B7i1s3Nih3E=; b=azNp+QVlyEbMpPKsVy4kF+ITH9Xk38Lqre6eTIq6aAeZxRbwBQ39dUO63Td+t+OS94 HHM5GF1OJN5dBm9xI+JqiWviNgClgbLvAhsswbn2NscJ4aglTg/Y6nilIvU/TnPkAfsT VKF9T2NXhDvenea6P0IN8IvysNKN6fKIunrg3K8P5serpJlBkYbUlvKnjhf5Kak7J7K+ ++Gf16q3VSoucsRGOYPCcZi6J+ts0JO6FWT5efQC720f0ehQwjSwBnevKO8YJCa0nfVx er/BxzAe9FwmOAG0mmlLJnJrF1JbSj2gbby5gtitFT7OCLMAiwz788sg18zzsAqcQykM y6jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si14417464pli.472.2017.11.13.05.30.29; Mon, 13 Nov 2017 05:30:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754061AbdKMM7c (ORCPT + 95 others); Mon, 13 Nov 2017 07:59:32 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:49752 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754036AbdKMM7a (ORCPT ); Mon, 13 Nov 2017 07:59:30 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id A96CAA95; Mon, 13 Nov 2017 12:59:29 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ingo Molnar , Borislav Petkov , "Peter Zijlstra (Intel)" , Linus Torvalds , Mike Galbraith , Thomas Gleixner , Sasha Levin Subject: [PATCH 4.9 04/87] sched/core: Add missing update_rq_clock() call in sched_move_task() Date: Mon, 13 Nov 2017 13:55:21 +0100 Message-Id: <20171113125615.746915684@linuxfoundation.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171113125615.304035578@linuxfoundation.org> References: <20171113125615.304035578@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Zijlstra [ Upstream commit 1b1d62254df0fe42a711eb71948f915918987790 ] 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 Reported-by: Borislav Petkov Signed-off-by: Peter Zijlstra (Intel) Cc: Linus Torvalds Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Thomas Gleixner Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+) --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -7961,6 +7961,7 @@ void sched_move_task(struct task_struct struct rq *rq; rq = task_rq_lock(tsk, &rf); + update_rq_clock(rq); running = task_current(rq, tsk); queued = task_on_rq_queued(tsk); From 1583963501551128258@xxx Mon Nov 13 15:01:49 +0000 2017 X-GM-THRID: 1583932524454443128 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread