From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752589AbbKPSw0 (ORCPT ); Mon, 16 Nov 2015 13:52:26 -0500 Received: from mail-yk0-f171.google.com ([209.85.160.171]:35011 "EHLO mail-yk0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751546AbbKPSwZ (ORCPT ); Mon, 16 Nov 2015 13:52:25 -0500 Date: Mon, 16 Nov 2015 13:52:21 -0500 From: Tejun Heo To: Oleg Nesterov Cc: Ingo Molnar , Peter Zijlstra , Milos Vyletel , Prarit Bhargava , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] stop_machine: cpu_stopper_thread() must check done != NULL Message-ID: <20151116185221.GK18894@mtj.duckdns.org> References: <20151115193254.GA8225@redhat.com> <20151115193311.GA8242@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151115193311.GA8242@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 15, 2015 at 08:33:11PM +0100, Oleg Nesterov wrote: > stop_one_cpu_nowait(fn) will crash the kernel if the callback returns > nonzero, work->done == NULL in this case. > > This needs more cleanups, cpu_stop_signal_done() is called right after > we check done != NULL and it does the same check. > > Signed-off-by: Oleg Nesterov Acked-by: Tejun Heo cc stable? Thanks. -- tejun