From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758065AbcIMK2W (ORCPT ); Tue, 13 Sep 2016 06:28:22 -0400 Received: from foss.arm.com ([217.140.101.70]:45148 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754745AbcIMK2V (ORCPT ); Tue, 13 Sep 2016 06:28:21 -0400 Subject: Re: [PATCH] irqchip/atmel-aic: Fix potential deadlock in ->xlate() To: Boris Brezillon , Thomas Gleixner , Jason Cooper References: <1473761409-16226-1-git-send-email-boris.brezillon@free-electrons.com> Cc: Nicolas Ferre , Jean-Christophe Plagniol-Villard , Alexandre Belloni , linux-kernel@vger.kernel.org, stable@kernel.vger.org From: Marc Zyngier X-Enigmail-Draft-Status: N1110 Organization: ARM Ltd Message-ID: <57D7D4C1.6080007@arm.com> Date: Tue, 13 Sep 2016 11:28:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0 MIME-Version: 1.0 In-Reply-To: <1473761409-16226-1-git-send-email-boris.brezillon@free-electrons.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/09/16 11:10, Boris Brezillon wrote: > aic5_irq_domain_xlate() and aic_irq_domain_xlate() take the generic chip > lock without disabling interrupts, which can lead to a deadlock if an > interrupt occurs while the lock is held in one of these functions. > > Replace irq_gc_{lock,unlock}() calls by > raw_spin_{lock_irqsave,unlock_irqrestore}() ones to prevent this bug from > happening. > > Signed-off-by: Boris Brezillon > Fixes: b1479ebb7720 ("irqchip: atmel-aic: Add atmel AIC/AIC5 drivers") > Cc: > --- > drivers/irqchip/irq-atmel-aic.c | 5 +++-- > drivers/irqchip/irq-atmel-aic5.c | 5 +++-- > 2 files changed, 6 insertions(+), 4 deletions(-) Acked-by: Marc Zyngier Thomas, any chance you could queue this one as a fix for 4.8-rc7? Thanks, M. -- Jazz is not dead. It just smells funny...