Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1099837lqb; Wed, 17 Apr 2024 23:11:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIUfCsI6VknJfjUoFEG3DDuWtY1pLTDVjd51VexhjGHBtRFgRdZT2AR2wkjsMztwwdmFQWmj4af2PI5KsulnqmRXCd1LN3FVdmIThwIg== X-Google-Smtp-Source: AGHT+IGuqWPmPngDuEIRP9OPAX8jQYRkPjvTCucknJNzkXr75ikxDecciRgZWBKhIjpu361NOVSn X-Received: by 2002:a37:f50d:0:b0:78e:eb60:182e with SMTP id l13-20020a37f50d000000b0078eeb60182emr1700142qkk.10.1713420674574; Wed, 17 Apr 2024 23:11:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713420674; cv=pass; d=google.com; s=arc-20160816; b=KVFq1Tw9wQK5d9nhibvjBF+HtpD7qlPeQRabo3d6OAIKImDJeF7Gz7C6p9NogmLlk5 y9MX/xqCmSS/LLASVUa3LO3aYi8mzjI3te+5bSmVj+8QjGvUZvmzX3BwHex9PMvLU/QY WaF4IRc7boWk5ylKkMg4wBVkIgqO3bHfCa8PX8X75Hlofmt2zCkE1QnhsxJFHljmJS+1 sPjcIDknMo3DHg2DrUtbfq0O9u15H++3DtGv21+fwfEtzi1dqp9E0Kk6dPQqN7cih2t6 KiKzSOHW//G341JuQ2go7iMmg71HDSjWo/EmQoK6Gg9mSpU3KisnH7fsTKDu+wlH8XQq KyDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=3bFz7uSfuqAzoxJEBrUhxQLNNZLWIx1u2o1PHn7m880=; fh=lhJ9XTtNdYxIwFFrX3lwhmiyaLx2N77JYdfK8hYUSyw=; b=mjrdm33AJkvjCRnGsSkW8OCHeQ0TpDP5NZEygImeg2qlzBSJ/wYr6Y1ixLx31IG9C1 eLpNLAv5x4KHonpkb6WcDd85PimDpunxIf/K0EC5gL5OtMxFl4sSfCtiKPqexj3y6MI4 Y1rlOrFtlOsi6E1Iwn360wob9flNjm84AG2fIw7dkpMygPDs9GSe7XWyY6FCZmayryu6 qxVmF5fKui4CvIMB/cTNghP34uOs9d68sfMp4WN7Ho+IVyK62jzCvfXwpFR7x3l8lWka BVVI+3TU4NeW5h1bWsEcCQDN7FRd5tPMVDmGwMXpXjgHnmmyQVKeTLUB4NaNjK5YA+wV ABjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=qqaWJN8e; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-149552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149552-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i7-20020a05620a404700b0078d704a8e7esi824975qko.490.2024.04.17.23.11.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 23:11:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=qqaWJN8e; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-149552-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149552-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4B9BB1C20BBB for ; Thu, 18 Apr 2024 06:11:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E10C0657D5; Thu, 18 Apr 2024 06:11:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="qqaWJN8e" Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) (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 D22E6282F4 for ; Thu, 18 Apr 2024 06:11:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.97 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713420668; cv=none; b=ffzTkp+QxpOvj9Dsvbt13vYH/c7Q/dGmki6FhKwa8NVfIa7UfdCy+gu7Qc40ec2beaBHNoohTPOcbvujGV87BrlMwz47rjznsCEznKUeL1Xvs8UxlvZk7ga+9B4JLFZnKru73DuBqm+mk02c+ooSf+Bd9aX4epao3qVd7YErj94= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713420668; c=relaxed/simple; bh=2ovER/jZCFkIr5c1CVSCF8FTvQgnyZlDgKYt2Ty4uBk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=uPnGxDNEIH+5JiJgDyN5AKN3O/r7zi5WNumimFNtPDBljGgu8ejTCkiEC4iiLDW1lcQlmt/JfZTkdyL2QYwZr2Sn4IoTjZuzvHncHGnZampfWjuC+7XgtfssPfzqomJTy+U9rAJJf6SpTBS5i17qUFdPHDsxVV1HMx9du32HD8Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=qqaWJN8e; arc=none smtp.client-ip=115.124.30.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1713420662; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=3bFz7uSfuqAzoxJEBrUhxQLNNZLWIx1u2o1PHn7m880=; b=qqaWJN8ejro5ibA8lJ1IF2mGGeNq4hoT5Jkw5U3njD+VK/2w6OlnZwKk9mYeh9h0aE4oJ2BYjwjClwZKPpekDR2CWsMLbCAZym9CWsLGnZnMTgtjixJg0QCrQzlFysfdBUCzt6dpmJkS2hwdCC690TnGJb4j3vPMryTSjbRbR/o= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R211e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=guanrui.huang@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0W4nY4IL_1713420661; Received: from localhost(mailfrom:guanrui.huang@linux.alibaba.com fp:SMTPD_---0W4nY4IL_1713420661) by smtp.aliyun-inc.com; Thu, 18 Apr 2024 14:11:01 +0800 From: Guanrui Huang To: maz@kernel.org Cc: Markus.Elfring@web.de, yuzenghui@huawei.com, shannon.zhao@linux.alibaba.com, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Guanrui Huang Subject: [PATCH v5 0/2] irqchip/gic-v3-its: Fix double free on error Date: Thu, 18 Apr 2024 14:10:51 +0800 Message-Id: <20240418061053.96803-1-guanrui.huang@linux.alibaba.com> X-Mailer: git-send-email 2.36.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(-) -- 2.36.1