Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Tejun Heo Newsgroups: linux.kernel Subject: Re: [tip:sched/core] sched/core: Fix unserialized r-m-w scribbling stuff Date: Wed, 06 Jan 2016 21:20:02 +0100 Message-ID: References: X-Original-To: linux-kernel@vger.kernel.org, dvyukov@google.com, mingo@kernel.org, peterz@infradead.org, sasha.levin@oracle.com, torvalds@linux-foundation.org, hpa@zytor.com, tglx@linutronix.de Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=O7legu9gDa6GyNMr1w8bytUxDwpx6sMwtCo/IBxMBsE=; b=s0vkfNImukVS0WgF0uo0R/o2oJwUADweSuVddkxgMqG14uenI5zKe48Sdc7sfgyYyc N0XGA8r/RxHEJfCGNQ11UULEwJkrZhpU/1u/pYyxdwKcgnOVhIUmzj6SxK/Zimlpm8Uw ccR5HF0Ihzjxh8YMEOsxu45ytTgbcRjshyA0BTZxlwjtCAyuybXKG2UU5RZ1NOzDZSyH 6i5bCUUL+lFA9Lg3oLD8IVMCrlmSnjBuBmKXoSqTe8FC3jZyfkjvf5wUSoGNm2cdBZ4K w1mWcsSbJO1E6kfpK9t7JdET8avS7+8j41+S4dEzlQK1BnVUZkW8n07dOld/9bhCp0wD /pGg== X-Received: by 10.140.32.194 with SMTP id h60mr131123084qgh.79.1452111444522; Wed, 06 Jan 2016 12:17:24 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 40 Organization: linux.* mail to news gateway X-Original-Cc: linux-tip-commits@vger.kernel.org X-Original-Date: Wed, 6 Jan 2016 15:17:23 -0500 X-Original-Message-ID: <20160106201723.GH3660@htj.duckdns.org> X-Original-References: <20151125150207.GM11639@twins.programming.kicks-ass.net> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1303038 On Wed, Jan 06, 2016 at 10:48:15AM -0800, tip-bot for Peter Zijlstra wrote: > Commit-ID: be958bdc96f18bc1356177bbb79d46ea0c037b96 > Gitweb: http://git.kernel.org/tip/be958bdc96f18bc1356177bbb79d46ea0c037b96 > Author: Peter Zijlstra > AuthorDate: Wed, 25 Nov 2015 16:02:07 +0100 > Committer: Ingo Molnar > CommitDate: Wed, 6 Jan 2016 11:01:07 +0100 > > sched/core: Fix unserialized r-m-w scribbling stuff > > Some of the sched bitfieds (notably sched_reset_on_fork) can be set > on other than current, this can cause the r-m-w to race with other > updates. > > Since all the sched bits are serialized by scheduler locks, pull them > in a separate word. > > Reported-by: Tejun Heo > Signed-off-by: Peter Zijlstra (Intel) > Cc: Dmitry Vyukov > Cc: Linus Torvalds > Cc: Peter Zijlstra > Cc: Sasha Levin > Cc: Thomas Gleixner > Cc: akpm@linux-foundation.org > Cc: hannes@cmpxchg.org > Cc: mhocko@kernel.org > Cc: vdavydov@parallels.com > Link: http://lkml.kernel.org/r/20151125150207.GM11639@twins.programming.kicks-ass.net > Signed-off-by: Ingo Molnar cc stable? -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/