Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp431134pxb; Fri, 28 Jan 2022 02:18:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxK8vcksQsFiA/RHsbUNPlmIKbCIHNCkIPNxOoObyFeAjPu2OSOOXcJXlzdwiqrwV8wJyiU X-Received: by 2002:a05:6a00:1a0e:: with SMTP id g14mr7142789pfv.64.1643365133614; Fri, 28 Jan 2022 02:18:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643365133; cv=none; d=google.com; s=arc-20160816; b=aaLPj4Mr+B3CN/z8pUTy87FL9PzLQnTLKY8Du6DPAL7NRokxGI7nNQqDAsiUciVeXv Ahs3dDBgvoVoF8vITq2B8chW0Kc3PwbPQup42jW8pTWasAak/Pbo2KH+Xt3SuKf/RlGm y8rvT4lakPTNKC2HV3s4ZcpYRDLsbRjHCKbAOabDJuepPDN1+s89mMpi0TJiCbderXsP 5miLRg+l9zsd0JhMA0fpdNn9NM+qT+j7bdvU3HkSYHh20Ixy+HQDGRIt+Ub3Dg6svdqX rtuUIivSx+A4a7vRbO4zbbyccZlPLOuRpVNueAOeL1TNv265OK5MxYVo+6iWpgbN6Gac CHbA== 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=6ry8NU6KqQ/Zz8ssxlnKVfGeEGVMNQjTGYINnzlZzNc=; b=Zv3c8FrWqZp8mwSHW87oJN0Ujvfzz8U9xxqhRG6brp3t8PWsCQpth8zRtb5bN3DyRW DifSIiqaNUpiWZtlG2oCDXZvvtWzH3Jagzd1I6PhWex2YoBEhXd3APFCsPtwd/CzidC2 ouAnYaqy++xNAvsMCbfjYQfKS9OcEhTCufDJlNWKhDlrX6+gHVFZTWRSYmi378ZJ52eA rJlmpYNjwWDFs9ku9So2Qgby9ZALeFzYfycgFID51xdIZpW5hHJIEdKJHmxDn4MP3krH auCShJyBgUwHORbJm9UDQ36O4Ejjfm/Qb9vOqgMe87PrA2n9ZTjOQK4TueVMRw0eopv0 yokg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=QVfCMai+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si4687305pgp.394.2022.01.28.02.18.42; Fri, 28 Jan 2022 02:18:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=QVfCMai+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244113AbiA0Qr7 (ORCPT + 99 others); Thu, 27 Jan 2022 11:47:59 -0500 Received: from fanzine2.igalia.com ([213.97.179.56]:59078 "EHLO fanzine2.igalia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238557AbiA0Qr6 (ORCPT ); Thu, 27 Jan 2022 11:47:58 -0500 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=6ry8NU6KqQ/Zz8ssxlnKVfGeEGVMNQjTGYINnzlZzNc=; b=QVfCMai+H1d6AdaS+BsYVlRPB/ 87rG4JejPHMKfUxGI0s+jYnJgKw0nbsvg+nnp2jW9w6m/D0pdS64cq91DnQXkZGEFtr0lij+5hiCo 76jLjaQguFw0oN0E7jVwYbPr3jWLB9BAOZ12dWZ4JNvenxiXrJsj4lp//HC4mbcN5kxHTlGU7KUlQ qwELAHNxQLP8MEQQpt0NDjQ6wG01GjxOBp5dX3oJ92K2usd2wWreBM7bDPrED6LlgBoLyTf0zml09 nkCBdDFsXDWNn/jR6rZp6YlLp4VVnMaKqqR4XPWlQTeC8x7+9DQw62mHOUmn4TYDyKeuSor4ibq8R EPzp8HKg==; Received: from 200-207-58-141.dsl.telesp.net.br ([200.207.58.141] 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 1nD7w7-0006Nl-Kb; Thu, 27 Jan 2022 17:47:51 +0100 Message-ID: <7b93afff-66a0-44ee-3bb7-3d1e12dd47c2@igalia.com> Date: Thu, 27 Jan 2022 13:47:34 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH V4] panic: Move panic_print before kmsg dumpers Content-Language: en-US To: Baoquan He , akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, pmladek@suse.com, anton@enomsg.org, ccross@android.com, dyoung@redhat.com, feng.tang@intel.com, john.ogness@linutronix.de, keescook@chromium.org, kernel@gpiccoli.net, kexec@lists.infradead.org, rostedt@goodmis.org, senozhatsky@chromium.org, tony.luck@intel.com, vgoyal@redhat.com References: <20220124203101.216051-1-gpiccoli@igalia.com> <20220126052246.GC2086@MiWiFi-R3L-srv> From: "Guilherme G. Piccoli" In-Reply-To: <20220126052246.GC2086@MiWiFi-R3L-srv> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/01/2022 02:22, Baoquan He wrote: > [...] >> if (!_crash_kexec_post_notifiers) { >> + if (kexec_crash_loaded()) >> + panic_print_sys_info(false); >> + > > Please reconsider this change. As I said in another thread, it's not > suggested when adding any action before kdump switching and the action > doesn't benefit kdump switching. > > We don't oppose execute handling before kdump switching as long as > it's executed conditionally. For those conditional extra handling and > the followoing crash dumping's stability, it's not under kdump's care. > Hi Baoquan, thanks for your review - I understand your concern, so let's reconsider the change, as you suggest. The only thing is that the specific bit that concerns you is not really a code added by the hereby proposed patch, but it was in another patch I submitted, that reached linux-next. So, Andrew : can I ask you to please remove the following patch from linux-next? "panic: allow printing extra panic information on kdump" https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=56439cb78293 (I'll also send this request in the original thread of the patch, for completeness). Baoquan: once it's removed from linux-next, I'll rework this proposed patch and send a V5, hopefully a version that you consider more safe =) Cheers, Guilherme