Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5965178rwb; Tue, 22 Nov 2022 07:10:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf4OQlNrXs4u0pNrHWeS0BwpArIMJrgw+jNvONRutjs+wIXvhU/8fvvrGpZ4YCaT1ooP9FV+ X-Received: by 2002:a17:906:1844:b0:77a:4bfe:d6df with SMTP id w4-20020a170906184400b0077a4bfed6dfmr20468119eje.396.1669129856305; Tue, 22 Nov 2022 07:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669129856; cv=none; d=google.com; s=arc-20160816; b=U7z9VU/qyaagNQ6C2futHuziHNoNI+tooTpW+ikf4WjIhJdTPbVbSV1gMWKqs43IQa T7kvLsNKXpy1u3X0stP8sYgADqHW82E5+/U+/1rSM58JFgEMz5RFjUL1EQeSfuDhdA6q CPppkmr5zSz+Zd2sYGzr+sZJ8q/RsWVdLjOjDLUuZ6JYow2UeeZCkJknUksaPnYGJlsH shxk2sD0WyvghcpN31T2S1OjRhtqnjcmcAoLIQWWfNtARbCmoGZOlnoWaShXRVB6mrX5 Qa/LB8SQ3ITY+eAjjGhnnNssA3v7UV1lxU5TZVk86I9Sqjt9HQ6N14RfksH6GeI3oxU4 HV2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=rSYIGGtjZljFBal86Avbxge1dAX05jgxf9qrktsTsB8=; b=Hiaujgpu/6pox9AXEhiDvAjkM1RBmV159p+/Ki6TICBCacN51U8OCAWWEJgQCD/Ck9 /2Exs8CDD984FeRF3J3h9sc6FGj4D+cSmy/JMf+DBPofKec6TfxamFUn9v9dcokEdLiN SlDYZxIZWIWiKcooaX3K0FkCIKNjyG1P1+tXEkVLxK5YzKAf5S7oP3vAuGHHo4ReWy5d aVSBZCUojQiU7fJllBWuirn7gAE/fQBE+7falikRTkXfSJn8HvBdbMjt8UFW0UgOzUx7 Ao9JkxsZAQf5GrVCUo4nMC+zTjmWv2WPEVJg5J1uYdzhilG6rAhNGvMwzOcnxDlfzkRX axuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=MX800+aY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a0564020e8d00b0046751bddcf0si5677397eda.425.2022.11.22.07.10.33; Tue, 22 Nov 2022 07:10:56 -0800 (PST) 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=fail header.i=@igalia.com header.s=20170329 header.b=MX800+aY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233933AbiKVObP (ORCPT + 90 others); Tue, 22 Nov 2022 09:31:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233953AbiKVObH (ORCPT ); Tue, 22 Nov 2022 09:31:07 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 304CF6A6B7; Tue, 22 Nov 2022 06:31:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rSYIGGtjZljFBal86Avbxge1dAX05jgxf9qrktsTsB8=; b=MX800+aYXTdyYof4USzixvuPvg 9FbkPgWEf4yn5YKSZ6YZvZYMUIrJ83siHY3JDQnjBib+dAZOvIjPcv4rwFWWZmC8nuU/CNyqTv37J LI9uahtiyTlFT5sg3l2Jt6DAPlbV/eGuCYZHMx1mJgP8y9VUP0QV5AhKWiiwBT3/TtAdOZxoHUjGo wBjoV4n84SXGRfQJ1FQgM2titKAX9RMXtyQrLP2E1UPM76R5ywtg8b8JzSylFz4KM6CKbhsW2RDhw 2Wuo/c750D1OMJECUK35f1MTpZl3Tuqe5CqaKSXYSU2Si3ILxqlcvyZFxEYL6RqkDNw1VeQ19rA9/ QwSDYHeg==; Received: from [177.102.6.147] (helo=[192.168.1.60]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1oxTR5-006yBT-L8; Tue, 22 Nov 2022 14:35:39 +0100 Message-ID: <831175d7-1b30-de61-d6c5-cbb91e4fdcfb@igalia.com> Date: Tue, 22 Nov 2022 10:35:34 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH V3 11/11] panic: Fixes the panic_print NMI backtrace setting Content-Language: en-US To: akpm@linux-foundation.org, bhe@redhat.com, pmladek@suse.com, feng.tang@intel.com Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, x86@kernel.org, kernel-dev@igalia.com, kernel@gpiccoli.net References: <20220819221731.480795-1-gpiccoli@igalia.com> <20220819221731.480795-12-gpiccoli@igalia.com> From: "Guilherme G. Piccoli" In-Reply-To: <20220819221731.480795-12-gpiccoli@igalia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 19/08/2022 19:17, Guilherme G. Piccoli wrote: > Commit 8d470a45d1a6 ("panic: add option to dump all CPUs backtraces in panic_print") > introduced a setting for the "panic_print" kernel parameter to allow > users to request a NMI backtrace on panic. Problem is that the panic_print > handling happens after the secondary CPUs are already disabled, hence > this option ended-up being kind of a no-op - kernel skips the NMI trace > in idling CPUs, which is the case of offline CPUs. > > Fix it by checking the NMI backtrace bit in the panic_print prior to > the CPU disabling function. > > Fixes: 8d470a45d1a6 ("panic: add option to dump all CPUs backtraces in panic_print") > Cc: Feng Tang > Cc: Petr Mladek > Signed-off-by: Guilherme G. Piccoli > > --- > > V3: > - No changes. > > V2: > - new patch, there was no V1 of this one. > > Hi folks, thanks upfront for reviews. This is a new patch, fixing an issue > I found in my tests, so I shoved it into this fixes series. > > Notice that while at it, I got rid of the "crash_kexec_post_notifiers" > local copy in panic(). This was introduced by commit b26e27ddfd2a > ("kexec: use core_param for crash_kexec_post_notifiers boot option"), > but it is not clear from comments or commit message why this local copy > is required. > > My understanding is that it's a mechanism to prevent some concurrency, > in case some other CPU modify this variable while panic() is running. > I find it very unlikely, hence I removed it - but if people consider > this copy needed, I can respin this patch and keep it, even providing a > comment about that, in order to be explict about its need. > > Let me know your thoughts! Cheers, > > Guilherme > > Hi folks, bi-monthly ping - apologies for the noise heh Is there anything suggested so we can get this fix merged in 6.2? Any suggestions / reviews are much appreciated. Tnx in advance, Guilherme