Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1127162lqb; Thu, 18 Apr 2024 00:19:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPsucxYF5rzco8qVxn+woO7wOPBawj95Sctfi3YSTkp3361nDt41i30NE0wYEQTb+92zqMDpcG+9BT3QThMFDOta0pHDZVT0AFPXZmkA== X-Google-Smtp-Source: AGHT+IESNSfKwoEQcZ9tCaX6bD/Gq3zkQw+2Njlr0WmC3hmMxynPVd15sjwwKzQaXDLMRF4GkbV3 X-Received: by 2002:a05:6808:14d3:b0:3c5:e755:8340 with SMTP id f19-20020a05680814d300b003c5e7558340mr2620855oiw.29.1713424773982; Thu, 18 Apr 2024 00:19:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713424773; cv=pass; d=google.com; s=arc-20160816; b=PApILgq9mMeXegbJWpALSvQBeEL/JDrdCmJq6ZSJwQU9nS6TRzPSy9wtkakUpGMgvC 7X7cS3Bk9ZHmR1cZabi5Dzc32Pqnrvi/sIkum84W+2xBWUaLQvcm5jO/xVDJdIINkYjP yY1wNjeeavjbsSUIHBfRZYIbB89sZoLhMMf0FiN5jzEFRmLNiCMd4l1MIP80R3C7ZD2M wRU7YuDDNNUotruTcMEd1PXY/skk5BEmrHVHXOA/MESUYPIIx0tFA+wATdXOLivl3T83 1FNeQczKtxibQzcIUHVwALkS0ok7vTUjuZspsZiwC+OFmiH36yEUItx23xAkDKcbmZ59 SkBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=FoTs3zZzIwFMOv20Q0mxvNODMiABRu5X9nl76hrsYgE=; fh=EqV1gXWA/TTEIGGjCg0uInfWW29BhlY/Ki89TqDz52E=; b=nvcvXQyO1SwqXT373lE8Slo0kpQh+BRSg7d4Uc/44OZpa85plfhVDohXEIV6li/YON jSYjOIBiF+O6h80GryTjxT2hwCsPX6MqBqoynSjpzcoQq3hSccRYXQ5Ri7w6f/5iJoTb vTv/a10v1OEL3YXGtJkH4a1av1V/Bma4ODm2eOnk6KL1zi23NiHqHLBDHY5EGdmC3YT1 R3eSUNAE7eSwSvTfiyPO0P0JRHjVUjwotGGbi4fRT6jbCq8mCDm2Otm5O1zveAALNG2j +yewnuF4IKqYpBP7YDT4JJwtsXzko0GYMIMnPUWno3TWEW70xygls9prN1K6dYr8ESj/ OKmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u0DL3bwI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-149643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d34-20020a631d22000000b005d8b48044d3si886143pgd.723.2024.04.18.00.19.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 00:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u0DL3bwI; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-149643-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149643-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8C11A281D16 for ; Thu, 18 Apr 2024 07:19:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED0223D984; Thu, 18 Apr 2024 07:19:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u0DL3bwI" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25A4938F9A for ; Thu, 18 Apr 2024 07:19:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713424767; cv=none; b=jxmo24DaLlU8lZeehdeBFWk6nIpJPfe/SU4HRKo7uvEVEQzUehepCOUx/CozZX3MlQFD6z995+UBaQCdaQ2ColThXUuOCej/Kel0WDTSoR2dzq068rOgIYEN+SE2KCF7OWsZGKDQayZILuZgWFi91VbgkKFmnjRxcMH8P1A8NNA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713424767; c=relaxed/simple; bh=iVNEkWhaYxo85+q/ZaRi29XbrrdDZIdNKqJFHi/EYM4=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=ZcM8HXxfDWHdRi/G6yf1tVN180YzDDAlTmVGr0PtbClV8AGTlokQshzgRqsg8KEc63kL1U3MedMbBJOg4jC3woJPs3S1fLv/LrMSc3fTw1/PRpF+CeJ1baJRy/yUGXXDGVqpw3Q/ToJKf77+lxWPo2xv9FhitBK9CNcDX6pDgiY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u0DL3bwI; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B369AC113CC; Thu, 18 Apr 2024 07:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713424765; bh=iVNEkWhaYxo85+q/ZaRi29XbrrdDZIdNKqJFHi/EYM4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=u0DL3bwIiqjxY7xLQmaSPLc4XsT2YoTyGLc68yDk5pHZyGvT3WqLHIdAvRIIUl3PS 7TNRFxfQj/vColwkosB7T5H8+4V2eVMYpe8rFJNqp3DgbnjMRopc56KHeSHHvlNKen E4vIbyc9RpLS52iShpaeFM2BVaiJ7i0cQwHDm0DaHllrTw+sOVSB9C0ymsNBy3ZmfI Ss6vVRQ40UJSQdJO1UMGtBRYftDQccXfK1u2Hur5x8Hs8yskjnegFE3hZRDBSP95wC 0uscDyNsbn9m/JL8D48UXAQzg8gz3ezH4Ig419hc5F6agHv0Z1cFaHU0TubyhBfGsF 116+QCViAV0Lw== Received: from ip-185-104-136-29.ptr.icomera.net ([185.104.136.29] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1rxM3G-005e59-F5; Thu, 18 Apr 2024 08:19:23 +0100 Date: Thu, 18 Apr 2024 08:18:59 +0100 Message-ID: <8734rjrvdo.wl-maz@kernel.org> From: Marc Zyngier To: tglx@linutronix.de, Guanrui Huang Cc: yuzenghui@huawei.com, shannon.zhao@linux.alibaba.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/2] irqchip/gic-v3-its: Fix double free on error In-Reply-To: <20240418061053.96803-1-guanrui.huang@linux.alibaba.com> References: <20240418061053.96803-1-guanrui.huang@linux.alibaba.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.104.136.29 X-SA-Exim-Rcpt-To: tglx@linutronix.de, guanrui.huang@linux.alibaba.com, yuzenghui@huawei.com, shannon.zhao@linux.alibaba.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Thu, 18 Apr 2024 07:10:51 +0100, Guanrui Huang wrote: > > Hello everyone, this is the v5 of the patch to fix double free > in gic driver. > > The differences from the v3 and v4: > 1. modify description: add "Fixes" in patch 1, as suggested by Markus Elfring. > > 2. improve patch granularity: split 'remove BUG_ON' into a secord patch, > as suggested by Zenghui and Markus Elfring. > > 3. modify description: explain why the BUG_ON is useless in patch 2, > as suggested by Marc Zyngier. > > Thanks, > Guanrui > > Guanrui Huang (2): > irqchip/gic-v3-its: Fix double free on error > irqchip/gic-v3-its: remove BUG_ON in its_vpe_irq_domain_alloc > > drivers/irqchip/irq-gic-v3-its.c | 11 ++--------- > 1 file changed, 2 insertions(+), 9 deletions(-) > Thomas, can you please take this in for 6.10? Thanks, M. -- Without deviation from the norm, progress is not possible.