Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3789536img; Mon, 25 Mar 2019 18:32:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxs6kmX1Vd/wTfDsoDwMShoAu2Bl/AoTWrFiyaf/EASFENZfjN5UXkmbU9+v9SofgXTqrak X-Received: by 2002:a65:5b47:: with SMTP id y7mr26349760pgr.449.1553563975088; Mon, 25 Mar 2019 18:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553563975; cv=none; d=google.com; s=arc-20160816; b=F9bsmhyKzxYMd4tbOpMS9Ol5p/6BRgqlGDHR6k8/yYDbu8wKVIJhcnph+1Ko4Otzav kR5KffjaPElozzgdJAFh8DxE9eeZ2okwFW7FEMq/mggLkP2jP4BSHPcds6f6VmeAhzSR qzO6N81obPwOlaGeCHO1cL6LUlrbEa6OBW2d4uY38puTOmVDUKBqtg1VynTzIpyQIRO7 YUSQ0/YMvKWajt6yeJs9P1fgyW0kVNgZq8lgFYnrycrCz3NA2fceY0lVmCMiVbSmaZ9S qEzOSve6GyzXCL7wrPiiYDsPRdQfxGug5jAHbX6ZxtfdSSXZhGWLiwBUdhxNUzwvLfO/ SlDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=r5UJx4J5fctEZQ0CDJ8H7/A5KNf0uerUnK7Z3LaTy5c=; b=RDFbp1cpzknK87x7DsvlBrsNw1DU0fWFu9VU78XTO+6vams9LYooXZbgXuGVhSKlV5 5XrgYkhURBfb1K1XCJuSY5xns7ZS1qtLy8JX3azp0M/QCod/4ITO1hxdyH7KWS12PEyv ZRSgcltFR6WmLbLh8YhUy6M2LhZC4fBpSM0qVhmL11WukMO2uA1E1MBOXVdigmKk16xm wkLEGcdHAswvcIBX6ITS9B4dWA5sljQ3EAPicY0ghF7ldLpcrHtCMjfIO4Tkvk6W1qHO qSSZey+JD4CQyf4A+zJK2nZD3I4UG/nNaMaL0WOHRaMWNxnLYWoRM1YPAWiz/qgmUd3f NUMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P2ar99z8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si9435550pgn.93.2019.03.25.18.32.40; Mon, 25 Mar 2019 18:32:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P2ar99z8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730804AbfCZBbR (ORCPT + 99 others); Mon, 25 Mar 2019 21:31:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:36250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727427AbfCZBbQ (ORCPT ); Mon, 25 Mar 2019 21:31:16 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) (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 CF1A120848; Tue, 26 Mar 2019 01:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553563876; bh=jkAx+kty5v2H1VmV7W7HMAjMJbh3KwIEB+4/f8+km9I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P2ar99z8/QbHDBGHJuB0vlFRl4THKXFatW+qTa5LhVeM2PBWSL6ZFCrb6bZGupP+N ahILmhUTUfzH4H45hhHc6mGSffZRhq1p45CxO0u6ZeR7u2DKv0eBRePd/S95u0WTeg CVGaEt20m0JEhKlgUXgXCi6bIDmcE1yKa/Xdmxws= Date: Tue, 26 Mar 2019 10:31:09 +0900 From: Greg KH To: Arnd Bergmann Cc: stable@vger.kernel.org, Catalin Marinas , Will Deacon , Mark Rutland , "Eric W. Biederman" , Marc Zyngier , Anshuman Khandual , Andrey Konovalov , Qiao Zhou , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [BACKPORT 4.4.y 21/25] arm64: traps: disable irq in die() Message-ID: <20190326013109.GB21198@kroah.com> References: <20190322154425.3852517-1-arnd@arndb.de> <20190322154425.3852517-22-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190322154425.3852517-22-arnd@arndb.de> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 22, 2019 at 04:44:12PM +0100, Arnd Bergmann wrote: > From: Qiao Zhou > > In current die(), the irq is disabled for __die() handle, not > including the possible panic() handling. Since the log in __die() > can take several hundreds ms, new irq might come and interrupt > current die(). > > If the process calling die() holds some critical resource, and some > other process scheduled later also needs it, then it would deadlock. > The first panic will not be executed. > > So here disable irq for the whole flow of die(). > > Signed-off-by: Qiao Zhou > Signed-off-by: Will Deacon > (cherry picked from commit 6f44a0bacb79a03972c83759711832b382b1b8ac) > Signed-off-by: Arnd Bergmann > --- > arch/arm64/kernel/traps.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) also added to 4.9.y