Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp903020ybl; Sat, 17 Aug 2019 13:23:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAMFtI5zWwtVm/YVR7CTcWZ2CQFokxp/HTee4ZY1RulTs9qkV+UcNiegGq21QKJW85my8s X-Received: by 2002:a17:90a:9dca:: with SMTP id x10mr13617674pjv.100.1566073430091; Sat, 17 Aug 2019 13:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566073430; cv=none; d=google.com; s=arc-20160816; b=JpCgBZfqLgeluLM7exfuLbC53AWrwnsFankGB2OuoG08/J+u5JUg+K1fG7/Q9yd9UO iwwa+Q8BoWRvrzfBc1rP2v2kFgU9Fb2LdkvRRFjNoaLTL/eCo2fqazbX7w8Myy2/3U0D HJYV3kRL2WDp3vyqeyr6Ny2gm8TJ/ULRQEcmQIvNwebdcZ4sbguapatyBBETi+Lxgt0u o3yG3PQ4qw/ViFEVk5mAyBgwgrB11roKkFbNXbyWtzdqnXFGiZZ5ywBuiFbIvq+3iH8S 63aJMyIvkHA3lyl0I6U2bDSeDUy92fEmMrI8cqLGIv6bncyKnfeDoVm2JhUU6HQc/WP8 37ug== 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 :message-id:in-reply-to:subject:cc:to:from:date; bh=9YxdjY+t44QpeURrGSbko6tpwCrIFZI679Xc7ASOrlg=; b=Hl+ClTCdvIv7Uy2zivl14RdIFOQZX0FiUD53EgXH2En3aiKFxK+oAYQJ4gAw2mMCce 5bCFtKIf005Z1EsnUWk/IDUx8wYOvYs32Lt27GegkaEdsgnev1P81L1uqdW86irEVSeL leA9yhyeFCNGjkBV1cmSeQiwDQJDHPN0QswCBgoytms3esDW+1vYSmYKUmX9X6unp5Fg oC5AFlxWcIhAcCYQ9dKSbrYltKsnTtB5/f8UcBxA+fFmO2S5AuwFnysjHSt4j6nn4lU8 HlCPIrP+vmbS21cRONnNjvxV4wbzg9k1/ZLg5rBzMKYobGZ5mniIoDWR/x1n5L612tIY itEQ== 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 1si7091089pfe.271.2019.08.17.13.23.25; Sat, 17 Aug 2019 13:23:50 -0700 (PDT) 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 S1726208AbfHQUWD (ORCPT + 99 others); Sat, 17 Aug 2019 16:22:03 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:44213 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbfHQUWD (ORCPT ); Sat, 17 Aug 2019 16:22:03 -0400 Received: from pd9ef1cb8.dip0.t-ipconnect.de ([217.239.28.184] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hz5Cv-0007vq-1S; Sat, 17 Aug 2019 22:21:49 +0200 Date: Sat, 17 Aug 2019 22:21:48 +0200 (CEST) From: Thomas Gleixner To: Guenter Roeck cc: Peter Zijlstra , x86@kernel.org, Ingo Molnar , linux-kernel@vger.kernel.org, Borislav Petkov Subject: Re: sched: Unexpected reschedule of offline CPU#2! In-Reply-To: <20190816193208.GA29478@roeck-us.net> Message-ID: References: <20190727164450.GA11726@roeck-us.net> <20190729093545.GV31381@hirez.programming.kicks-ass.net> <20190729101349.GX31381@hirez.programming.kicks-ass.net> <20190729104745.GA31398@hirez.programming.kicks-ass.net> <20190729205059.GA1127@roeck-us.net> <20190816193208.GA29478@roeck-us.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Aug 2019, Guenter Roeck wrote: > On Fri, Aug 16, 2019 at 12:22:22PM +0200, Thomas Gleixner wrote: > > diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c > > index 75fea0d48c0e..625627b1457c 100644 > > --- a/arch/x86/kernel/process.c > > +++ b/arch/x86/kernel/process.c > > @@ -601,6 +601,7 @@ void stop_this_cpu(void *dummy) > > /* > > * Remove this CPU: > > */ > > + set_cpu_active(smp_processor_id(), false); > > set_cpu_online(smp_processor_id(), false); > > disable_local_APIC(); > > mcheck_cpu_clear(this_cpu_ptr(&cpu_info)); > > > No luck. The problem is still seen with this patch applied on top of > the mainline kernel (commit a69e90512d9def6). Yeah, was a bit too naive .... We actually need to do the full cpuhotplug dance for a regular reboot. In the panic case, there is nothing we can do about. I'll have a look tomorrow. Thanks, tglx