Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31755953rwd; Fri, 7 Jul 2023 04:06:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlHliaFvIV7gc5xVzdIaPR9SRvnxosTNvaBcPxPrA1GVxwWIQjgQBq9YEV9rZu7PapP4GwRJ X-Received: by 2002:a17:902:ce86:b0:1b8:6deb:dd6d with SMTP id f6-20020a170902ce8600b001b86debdd6dmr4213677plg.0.1688727996264; Fri, 07 Jul 2023 04:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688727996; cv=none; d=google.com; s=arc-20160816; b=asj3CBTzErmBsxYB0XFyuwySec6ZjlBYGqv/gw2hLlWt/DYQk9HtPJVoppBZQZtE+D XHxSvBYlVmenMO/3NmKpuQi1Cc1uZZNOTvfp73OOIHKsWjQiG/MP/iLyuei59LY+kVOR JdkIsuM1wVGwV9VaiD/IVtK6rycjy/DUL+cTDUZa765EKAu+V8BPG51J6FCiQVN57cb8 wEqj+ycWrcQdEGq50DCWFLdegbHuwHnp1PsXhYCUzY7serUaY6J/KF9ExxFWZxsbSBB4 eeQ2B/ZSgjB7gQp0u79J9YuM6CzX5tgMzlcLXfRoiPy3TiaZoZmnqJ4fyE2iCm8HoWUL zRag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=2d3houmsYkGVGZJ+TnslUxorhkLSwL4n9/p70tnZL7A=; fh=Weo8TAHPkxBJJGk1U4TwuxkBOkzq12pmJ6P0zhUNIKk=; b=aEhtmTSb+CFpq5d1VNCj36aQB+NeTda6yPSyJEUdg5leF3RY989su8jmTyy0EmcvuI nWWlcqlX2/TOMnb7Jvo9b7Qw0LSQSV0H1bexCtN76E8u31lfrY5lraPJn0GtXly7TiTs mT+0i1M1d5rAUC7PI71mUDAJN5C6MFUCUODXPZk81nrv8ndC+K67HDz9FP6J0EeTJe+U duCIdWCuylWE/7FBtHi4l0/Px5vSh4q9n79nwa4l2l11ovD6Dg7BgfPuLribzSq5G9db nNhapjIksFaZu5U2D8fMnV2pL+Oud5sw0kImpLqNZ1nyivUcAE2CMfmR4ya+Thp+Akef CXcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=y4doa5DK; dkim=neutral (no key) header.i=@linutronix.de header.b=9tdprbeu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jc18-20020a17090325d200b001b7e5ed70d4si3203734plb.440.2023.07.07.04.06.22; Fri, 07 Jul 2023 04:06:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=y4doa5DK; dkim=neutral (no key) header.i=@linutronix.de header.b=9tdprbeu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231245AbjGGKSt (ORCPT + 99 others); Fri, 7 Jul 2023 06:18:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjGGKSo (ORCPT ); Fri, 7 Jul 2023 06:18:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D602110B for ; Fri, 7 Jul 2023 03:18:42 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1688725121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2d3houmsYkGVGZJ+TnslUxorhkLSwL4n9/p70tnZL7A=; b=y4doa5DKfOzdCF21tIHXXGEp7Tighcyi2aqc4+bE5su2grB8igK69DcILbae5lykTRs5JV PYm8S351m8I52i6O6betlp1NJBOuaDOhcpSjHpAf5gkPS4ql4bPs59vUfRwN0hS9oBxuGZ HjfgVjqt5FZpSyJuXRwsWXqLu6J3UyRqhFNdrmogJQ1uVYvApG4e2Mrb+3YSpKMjw+Fuhg aRPDRjqsb/hyTS0kFyDNsh6kwdQIYmX8MSLyHPhJp7wTnbDAeNbh9ORfvwHzHkqL0p85+B TOR0s68ZDsmb21uc+eK6qJ/CoWkJZQt1mKvLGEyZipI8aM+1MJbfWzOqwFeCDw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1688725121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2d3houmsYkGVGZJ+TnslUxorhkLSwL4n9/p70tnZL7A=; b=9tdprbeuz34HJLn6OXpF/f1dsXMyUURUW2bxIbsBMyXUbdtkctVG/W3f9EIP518gzZTyL0 btin56Kv04H/BoDg== To: Baokun Li Cc: arjan@linux.intel.com, ashok.raj@intel.com, ashok.raj@linux.intel.com, ebiederm@xmission.com, linux-kernel@vger.kernel.org, mario.limonciello@amd.com, thomas.lendacky@amd.com, tony.luck@intel.com, tonyb@cybernetics.com, x86@kernel.org, yangerkun , Baoquan He , kexec@lists.infradead.org, Baokun Li Subject: Re: [BUG REPORT] Triggering a panic in an x86 virtual machine does not wait In-Reply-To: References: <20230615193330.608657211@linutronix.de> <71578392-63ed-02a9-24da-2adf8cce38c7@huawei.com> <87ttui91jo.ffs@tglx> Date: Fri, 07 Jul 2023 12:18:39 +0200 Message-ID: <87lefs81og.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 06 2023 at 14:44, Baokun Li wrote: > On 2023/7/5 16:59, Thomas Gleixner wrote: >> + /* >> + * If this is a crash stop which does not execute on the boot CPU, >> + * then this cannot use the INIT mechanism because INIT to the boot >> + * CPU will reset the machine. >> + */ >> + if (this_cpu) >> + return false; > This patch does fix the problem of rebooting at panic, but the > exported stack stays at stop_this_cpu() like below, instead of showing > what the corresponding process is doing as before. > > PID: 681=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 TASK: ffff9ac2429d3080=C2=A0 CPU: = 2=C2=A0=C2=A0=C2=A0 COMMAND: "fsstress" > =C2=A0#0 [ffffb00200184fd0] stop_this_cpu at ffffffff89a4ffd8 > =C2=A0#1 [ffffb00200184fe8] __sysvec_reboot at ffffffff89a94213 > =C2=A0#2 [ffffb00200184ff0] sysvec_reboot at ffffffff8aee7491 > --- --- > =C2=A0=C2=A0=C2=A0 RIP: 0000000000000010=C2=A0 RSP: 0000000000000018=C2= =A0 RFLAGS: ffffb00200f8bd08 > =C2=A0=C2=A0=C2=A0 RAX: ffff9ac256fda9d8=C2=A0 RBX: 0000000009973a85=C2= =A0 RCX: ffff9ac256fda078 > =C2=A0=C2=A0=C2=A0 RDX: ffff9ac24416e300=C2=A0 RSI: ffff9ac256fda9e0=C2= =A0 RDI: ffffffffffffffff > =C2=A0=C2=A0=C2=A0 RBP: ffff9ac2443a5f88=C2=A0=C2=A0 R8: 000000000000000= 0=C2=A0=C2=A0 R9: ffff9ac2422eeea0 > =C2=A0=C2=A0=C2=A0 R10: ffff9ac256fda9d8=C2=A0 R11: 0000000000549921=C2= =A0 R12: ffff9ac2422eeea0 > =C2=A0=C2=A0=C2=A0 R13: ffff9ac251cd23c8=C2=A0 R14: ffff9ac24269a800=C2= =A0 R15: ffff9ac251cd2150 > =C2=A0=C2=A0=C2=A0 ORIG_RAX: ffffffff8a1719e4=C2=A0 CS: 0206=C2=A0 SS: f= fffffff8a1719c8 > bt: WARNING: possibly bogus exception frame > > Do you know how this happened? I would be grateful if you could fix it. No, I don't. But there is clearly a hint: > bt: WARNING: possibly bogus exception frame So the exception frame seems to be corrupted. I have no idea why. The question is, whether this goes away when you revert that commit or not. I can't oracle that out from your report. Can you please revert 45e34c8af58f on top of Linus tree and verify that it makes the issue go away? Thanks, tglx