Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp93340ybg; Mon, 27 Jul 2020 16:39:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLUszz0h5ouk4r5hWj6qBWSObeGWy4qpoXSQP33b8UL/4vlzjcqY420i5yumzfcmb9rqa4 X-Received: by 2002:a17:906:d9c4:: with SMTP id qk4mr24290789ejb.100.1595893170594; Mon, 27 Jul 2020 16:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595893170; cv=none; d=google.com; s=arc-20160816; b=jOqAeBBKZaFBtdltOxBKgc9jWNWkRgeKZ1T7I4N03cokQLJsgGRf9HQA/xeEW7bAjU MpEXyQgzsdB+HyQyC+Valx/OoNLKuPp1TZIlTM9Cl1ydr/DKETddU7beeoocTq1w2tHe 8L+Y0To/uazIY/8HGe4jo09Zw2mfg3XhdhGfJGQMVNpCOYdBoKA7HzYnSHeyAEcAf9IL QgRxVWUQLSLfIs3HwmNipGy4Gx2Aw5dBmv+81QcRgBSLpKoxIA3zfAeXvHdSp+FdVAj8 H6oEuCXEA3+sd4tOACPkgWzkyb1aEP28+Z3ElXy6En12mxvFmJ748ySAUBjrC8H1VJYS 3VgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=CgreHBcp2l44FpUnJ0UIoV9MbTLdN2J/voJiu7dK0ks=; b=jIbKDpG9OniMKf9bFLWIIHm4w2QpwUOdYeVbJUteCBI7tfJJtwE5v82xNUOH8QOdcr DeK+u+YPyuS1WtZVc8MEYKRMM/g/wxCiBuweFgU2TOdXjmhBz+7BfPOt08oNpWNl4A69 PbN+zyVs0lOu4fS+nU8fK7ebx5rRZAtp6U19ilARSVLOBQJ/1xRS3lP2dFwaw6FXInjY NmJeYJKRfEpNjy23nWOk2l6d4nP59eSrRDhjjWI2JmbOUhGBLYHUKy0McGj0z9+2y11X bEq4awYpEzfYDFrJOJZwIHeBL0r/8XYJf398WHnqIU1PrjFi1tyQcJWGPCtjmxAhsMdK SPoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TrKJV2Cj; 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 j14si3738389edl.358.2020.07.27.16.39.08; Mon, 27 Jul 2020 16:39:30 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=TrKJV2Cj; 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 S1727826AbgG0Xg5 (ORCPT + 99 others); Mon, 27 Jul 2020 19:36:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:43048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbgG0Xg4 (ORCPT ); Mon, 27 Jul 2020 19:36:56 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 649F22070B; Mon, 27 Jul 2020 23:36:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595893016; bh=jD76YQM8f/TUsUl8oDjD/7d0es35o7kkPw5jloOAyFI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TrKJV2Cjw/I6yAzthI+7FxywCGioynOQReVA9DNc80OGtrbAAI2Hj3UKigr4m+JS+ zu/Q9zsLGfb1fegaNxdjZHRmggIIfRCdiosXyES49FPbVXUquIuod2lGUX6BMmaSWC umC2RwRccGES3T/Q+1c6X/MjiWLMs1givxkbcRl8= Date: Mon, 27 Jul 2020 16:36:55 -0700 From: Andrew Morton To: Joerg Vehlow Cc: Steven Rostedt , linux-kernel@vger.kernel.org, Joerg Vehlow , Thomas Gleixner , Sebastian Andrzej Siewior , Huang Ying Subject: Re: [BUG RT] dump-capture kernel not executed for panic in interrupt context Message-Id: <20200727163655.8c94c8e245637b62311f5053@linux-foundation.org> In-Reply-To: References: <2c243f59-6d10-7abb-bab4-e7b1796cd54f@jv-coder.de> <20200528084614.0c949e8d@gandalf.local.home> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 22 Jul 2020 06:30:53 +0200 Joerg Vehlow wrote: > >> About 12 years ago this was not implemented using a mutex, but using xchg. > >> See: 8c5a1cf0ad3ac5fcdf51314a63b16a440870f6a2 > > Yes, that commit is wrong, because mutex_trylock() is not to be taken in > > interrupt context, where crash_kexec() looks like it can be called. Yup, mutex_trylock() from interrupt is improper. Well dang, that's a bit silly. Presumably the 2006 spin_lock_mutex() wasn't taken with irqs-off. Ho hum, did you look at switching the kexec code back to the xchg approach?