From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753345AbbF3BbE (ORCPT ); Mon, 29 Jun 2015 21:31:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37462 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752444AbbF3Baz (ORCPT ); Mon, 29 Jun 2015 21:30:55 -0400 Date: Tue, 30 Jun 2015 03:29:31 +0200 From: Oleg Nesterov To: Peter Zijlstra , Tejun Heo Cc: paulmck@linux.vnet.ibm.com, mingo@redhat.com, der.herr@hofr.at, dave@stgolabs.net, riel@redhat.com, viro@ZenIV.linux.org.uk, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] stop_machine: cleanups and fix Message-ID: <20150630012931.GA23904@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/30, Oleg Nesterov wrote: > > But let me send some cleanups first. Plus I believe I found another > stop_machine bug, see the last patch. So I hope these changes make > sense in any case. The last patch fixes the bug, I think. Say, stop_one_cpu(X) can race with _cpu_down(X)->stop_machine() so that the kernel will crash if this CPU X becomes online again. The window after cpu_stopper_thread() returns and before smpboot_thread() calls ->park() is tiny, but still this is possible afaics. Oleg.