Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp636016iog; Fri, 17 Jun 2022 10:09:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t3GL2tUzKl8Cf5GTOunZHc/8Ev9V6PCnqNlcBk5GTfdKpYmYKrIkSOYCwrSjrrRd5h8fze X-Received: by 2002:a17:906:72cf:b0:712:20aa:46c7 with SMTP id m15-20020a17090672cf00b0071220aa46c7mr10092291ejl.768.1655485798314; Fri, 17 Jun 2022 10:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655485798; cv=none; d=google.com; s=arc-20160816; b=e/bSBbqU8AoeeCqvtWd+S1vf1akMOILHzFjdAM7Dj3lvYJqacxDvyrDEjjdvYOWJRx mQaTlGZn+8din1G93jCU/9e8jWxVypU11TBWTdIdfX3pKv918xHICsAPpn2e4yI3svpS E1lhh+Mzv/yHy8n3Vn4s/J9sWdVJQLMjz0RGSNB5g/0S2xNRTabf5aSKLWXZtvAMuQ2b Bv4NpP5zFNgez+Xsi0QCiGZJqe9dwkaBFHoEzI/GQ5fA0/FRlHS40oXgiUFcAk46q6sB Gaqw1kC07yO0r6Fau1ezt9p+RIuqCsHt2g6GMIf+P+BcqS4I6LC2XGOozv8m6zMUqJw2 uD2g== 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:dkim-signature :dkim-signature:date; bh=giQdDv8p0YqkjTRJ/+bMp26gGyp0dRqL/fs20UthWLo=; b=eRRiSjr9IGjMJUTvhEyyYEM1wspnarcdXtmjr6EkbJNtNZ1BjIlNHBUgI9XuUOd0Sz yKSXDMaEfaTzngtC7mu5KTE/ReBFYDbfnPNcnzk+i6OdzETmm8WcVovEADGd2fC0QHOg ilfU8bPZNPzqZaP8sgbrVFBMwQEREl1cnQhstzb5/ZY/wJWlZM4TGSQM2Z5wyJxpKleM twZ2UujV6CyY6EMuIONDOl+4PSKDZ55ZcHmEgmgZB+8OGEp1YUFgxWQgxkxhmoyTjZxt m3BWnj4Gi3j6go1H6xKb1E/CyL4zdVnNd4SVz7ShW2dBtA99nKmetwkwRAEYfYg9rls8 uaGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4knjiden; dkim=neutral (no key) header.i=@linutronix.de header.b=oT4dJHHB; 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 dt19-20020a170907729300b007156bee9755si5727661ejc.917.2022.06.17.10.09.32; Fri, 17 Jun 2022 10:09:58 -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=4knjiden; dkim=neutral (no key) header.i=@linutronix.de header.b=oT4dJHHB; 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 S1383288AbiFQQyS (ORCPT + 99 others); Fri, 17 Jun 2022 12:54:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382641AbiFQQxl (ORCPT ); Fri, 17 Jun 2022 12:53:41 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F207649C9E; Fri, 17 Jun 2022 09:53:34 -0700 (PDT) Date: Fri, 17 Jun 2022 18:53:32 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1655484813; 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: in-reply-to:in-reply-to:references:references; bh=giQdDv8p0YqkjTRJ/+bMp26gGyp0dRqL/fs20UthWLo=; b=4knjidennpLmK5EdIueesjrOBlk4jXwtLAq2P1eAl3AnTdC4GnjfBV9eRR1iSNUMeUR4Ak bKIizBa9cpTZqhp7nR7WOcrDB+WWinuuQm3fxNNel9yqsS7k3iPEHuAzBufuPF7pfov0jk 9Fw4FfkoB9OPVVx72yP/P1j8kSFdTCJOQ5/SsQlREeeyxvcN1zcBL3FXNZzR3gn5NDwAvb D0f+pd8SqS676/BDvxRSjs4RWRI7cLO8e2176dTK5twaivPWi7t1JKxdxiJdalQaNnaMVU 6+GNyby9/yb5LbgFUlYsg7bsCy+UIwNX1j7jZTXXmjdPfwddHq7q/0mhqNv0pw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1655484813; 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: in-reply-to:in-reply-to:references:references; bh=giQdDv8p0YqkjTRJ/+bMp26gGyp0dRqL/fs20UthWLo=; b=oT4dJHHBw+WW1QEdjaKsyt0kh2/dZWwsWY0fYKfKddIp8nq/B3rppmyWB50dBdyBbxlxzA EWkZU775Hz0oykAg== From: Sebastian Andrzej Siewior To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, linux-rt-users@vger.kernel.org, Eric Biederman , Arnd Bergmann , Petr Mladek , Thomas Gleixner , Juri Lelli , "Luis Claudio R. Goncalves" Subject: Re: [PATCH] panic, kexec: Don't mutex_trylock() in __crash_kexec() Message-ID: References: <20220616123709.347053-1-vschneid@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 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 2022-06-17 17:09:24 [+0100], Valentin Schneider wrote: > Those were pretty much my thoughts. I *think* panic() can be re-entrant on > the same CPU if the first entry was from NMI, but that still requires being > able to schedule a thread that panics which isn't a given after getting > that panic NMI. So for now actually doing the kexec in NMI (or IRQ) context > seems to be the less hazardous route. most likely. Just get rid of the mutex and we should be good to go ;) Sebastian