Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1572905pxb; Fri, 18 Feb 2022 10:30:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJykPjSAdRy8qiYsH9ZcHImxoWkniLfa6n3KPtyfeTPmwITyHEpVXZfkfMiNQtijSnaZNB3w X-Received: by 2002:a17:903:31c8:b0:14e:db10:5b02 with SMTP id v8-20020a17090331c800b0014edb105b02mr8513012ple.81.1645209007988; Fri, 18 Feb 2022 10:30:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645209007; cv=none; d=google.com; s=arc-20160816; b=RiWagDCeaN0PcYQEzhCT9GpPl4jFMZQXuhBRAg2pdrIBIOoKCHyux0v+gaGRn/Y2EG tdY/pRCCO9P4MZTggqWatQmpd3NFl52e1FmjPVdgCvP+q9IssVD4jhqBlYmSUz75ncdz Sbeo+IuOkdB7Kst4oI3jw/M1lJpO3dEcbmYtYEgOfNRR2g9x+BNq+/LEpr5pRcmX35TT mQjbOw7jk6QOyNofiBzeRXZdvPsBaP6Wy6KDRqsrWwO1mtEIyQRfiP1VnYbp3d1p+H2S ZnbL5YvhTViSqeflv1SBZJaT6f+Kp/EQWoVtv85Q28u7bmdjDBlbgKUlJUG/PuE8qt1l TCMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AQkiJ8sW1OP2y4RdGzYTJIbJ9pKacy4Yi3FStIGv35A=; b=gP615xH9YtKWFKi702fRaowQ+5ArLk1kgvVppfO926ebTpw4Dgz0+LeCVBn+/gGTnH ReKsYdUXsZLZf/PNx4oAmR19Q1tOYIkJvTnLQWtu6IS98B3wfpYvBWfYS+SgrfXywnbb fMJEC6p88Z1GKqbuH0xfxlF3J/RGBtaRyP4C2EcQsvwA+tcc5vwBN+zhD5vbWAMCofen l6FNFRWZyILOLWb1PliN/RiPjPCyzok3sDX21MF61cmczYVM4l5xg7OMnGXmM0Mr2h9l TsEx/4M4i4cj/QV67Izh59Y5+ripVCZx+D0Wlf/z2rr3LCclPZFjYPUWW1iANsgGBddz wl6g== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12si8196644pgt.805.2022.02.18.10.29.51; Fri, 18 Feb 2022 10:30:07 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235649AbiBRNKm (ORCPT + 99 others); Fri, 18 Feb 2022 08:10:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232732AbiBRNKi (ORCPT ); Fri, 18 Feb 2022 08:10:38 -0500 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4903253BDE; Fri, 18 Feb 2022 05:10:20 -0800 (PST) Received: by mail-wr1-f42.google.com with SMTP id u2so13374172wrw.1; Fri, 18 Feb 2022 05:10:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AQkiJ8sW1OP2y4RdGzYTJIbJ9pKacy4Yi3FStIGv35A=; b=oF4b87HmK163jWyYfRYRtGCoPDdJB5kZwYxJBUMDwRf8LMKh+SHOAOWpEEDAJK72fF G81gdtdZ6Q5kPXmteqPQglbhJI50iK6S3iDd4+/OqFlSsOXBhhBaL0Utzk1BeeAUJrqP zsGEOojdDTP1mNmyOe7A0V1MYunn3TrzSA2urFdctiAHlDSDwg6HUudb7xYV77yhgxVn UFPK7eXIFMugiBn520AXy/V3PLPbr4bazVNbwgj9zVNZWvhF3J2LmGfaN7/tNWWypPsb NHzOfc1jRPcWV0Aj6bI5+Q8LjfZQc3JLBHfomL3gT+/a69AeARR8C0iMpte2eB/hDv5N D/gQ== X-Gm-Message-State: AOAM532cbDqS8+L4D7Q8Ugfw3FODWRGlUTPYlVPZV0EiBtVI5YAIQzx8 DmyHP88/2Dxnq1VRoQv+HCQ= X-Received: by 2002:a5d:584f:0:b0:1e8:5697:e979 with SMTP id i15-20020a5d584f000000b001e85697e979mr6002036wrf.167.1645189819011; Fri, 18 Feb 2022 05:10:19 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id z10sm4110316wmi.31.2022.02.18.05.10.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 05:10:18 -0800 (PST) Date: Fri, 18 Feb 2022 13:10:17 +0000 From: Wei Liu To: "Michael Kelley (LINUX)" Cc: Stephen Brennan , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] drivers: hv: log when enabling crash_kexec_post_notifiers Message-ID: <20220218131017.cmzirxxo2msppgy4@liuwe-devbox-debian-v2> References: <20220215013735.358327-1-stephen.s.brennan@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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, Feb 17, 2022 at 04:44:13PM +0000, Michael Kelley (LINUX) wrote: > From: Stephen Brennan Sent: Monday, February 14, 2022 5:38 PM > > > > Recently I went down a rabbit hole looking at a race condition in > > panic() on a Hyper-V guest. I assumed, since it was missing from the > > command line, that crash_kexec_post_notifiers was disabled. Only after > > a rather long reproduction and analysis process did I learn that Hyper-V > > actually enables this setting unconditionally. > > > > Users and debuggers alike would like to know when these things happen. I > > think it would be good to print a message to the kernel log when this > > happens, so that a grep for "crash_kexec_post_notifiers" shows relevant > > results. > > I'm OK with adding this output line. However, you have probably > seen the two other LKML threads [1] and [2] about reorganizing the > panic notifiers to clearly distinguish between notifiers that always run > vs. those controlled by "crash_kexec_post_notifiers". If the changes > proposed in those threads are submitted and accepted, it is likely that > the kernel log message in this patch would become unnecessary. > But since we don't know when those proposed changes might come > to fruition, adding the message for now makes sense. > > Reviewed-by: Michael Kelley Applied to hyperv-next. Thanks.