Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp27602lqd; Tue, 23 Apr 2024 13:25:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9m84dYcWSOV1oU5ZRJ5F4H6MMJlSFvUuArcvTr/3V3akeoUz0SrYA527dMKRoVgpbHwA394/3JsVSj385ZEpDavcD3B3AhLrKNhttZA== X-Google-Smtp-Source: AGHT+IFQguQy7kdLzWtfaJJ+tW9vYfyMYfNEp2Wj5cqKhgusKIFU+Eh1EZZb9SRVcHbIUYqWNCaa X-Received: by 2002:a50:874c:0:b0:56f:e7b9:e67d with SMTP id 12-20020a50874c000000b0056fe7b9e67dmr329503edv.12.1713903921923; Tue, 23 Apr 2024 13:25:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713903921; cv=pass; d=google.com; s=arc-20160816; b=Q1XcKYEz4R9AEmxkwTMCIF76sDyqHqwI8VlKAqKUgIzjCuCS30a7lrrTEiEtxIaQze HH/UzPE7XAmJpXZ2Nl4IP+Kf8L2UpSJt5xCGgRGUO+XWGKs9tSJxcVdg7ssa7KmSnJfQ lESg5/v5XpvfqRnaWjMyTVl7+UeSbuZlrzZwaGtIFTidaqu0mekitfRVGkbcfh5Gwa/o UfHsiFX6uDD+AW4MJVc3eJ0bRt4fbZOEx/d389SgmsJBW5EcbbA8DbXTB9pYRVpx+UXO OkHYxmE6Ojsk1vBshVYwLQFPQ49xVRDzAl66vOAJMJ6ZOcWbr84UnZ3ke90Uz+L+uRHt KyPA== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=s2YosHNze/KnevH6aeloLEYctU29JplkQLtgxuJbONU=; fh=pS1Qh5sMrTh5urBXGgKaB5xKvMMIMlRlhTHMaeY9fvw=; b=LypfJ5i2Yyj7L6h29RZnDGuyAf5PxRljv/CR945oLZyXMfv9cvfXZ0220ojyuk892E hdHm3DYjsQ0xgzG5dYhpKs3Tfri8BRfVSjfpAxMfF2ycxIsRn2WwCRRMUBHA1d9Q2hBt UGpzcUAXAgtyNJ5UvVsA7aPqk1bClX7/A6IrIuOM8Q19zvyBachdQXDh3oZI1ATmaRJk DVp8qmw6qmKMCH3N51M7ygzprLpQtPoOYJQnFt0ejLNyDBv7e77qu4EijIbS9hPBSwOo v4iQQpPwtW0uiszed57BO4kbmwwrxx3vVgBdflX9zPKlUR0uyqDiKz56xEFDaypeavBe CyIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ajSuadJY; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-155847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155847-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w8-20020a50d788000000b00568b4af7206si7557402edi.482.2024.04.23.13.25.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 13:25:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ajSuadJY; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-155847-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155847-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 85AE21F24093 for ; Tue, 23 Apr 2024 20:25:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DDE8142909; Tue, 23 Apr 2024 20:25:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ajSuadJY" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 D9AC314265C for ; Tue, 23 Apr 2024 20:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713903910; cv=none; b=bKYliDfzn03rpiS9Wyr5qYp+vz5gdopRm8jwxY35rsPqOfwQ1aoxPgQg5IqTdJYiYVE8el5IFRdmkvIdMRc7NPs0oPDbZKCxjF3xsmeIxOp+s6vNEbFgcxdg4mWprVno2L41e8XIx8sI876yKsnamt2hQJ8QQUeiM/H6FN/QH2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713903910; c=relaxed/simple; bh=IiKD5SyliMCZS6uycnE4FDV8Y10UkP2LI2qZh1H+yng=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pC4JdH2Ifxlo3COOUNbK1yBwIkHqvdFdBuel0HUKYcQYS+Zl5e+bh5uiRfDIvmmKlSnM55V5zxPui5NYV0TnRKEUoEh90rJXqRu9vYGIl2j801IDZACUFdpgxJtIoMrTI2fXi55zjZyDYOXUiRRGLbM4sH+onYcQAbDWz8xO2lw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ajSuadJY; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713903907; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s2YosHNze/KnevH6aeloLEYctU29JplkQLtgxuJbONU=; b=ajSuadJYZZ1mpu4R2wKGhe2ERXcnxj7lPynHgesqOFwyq811pxlXpn3djEoMp5TcEfR+D8 CZCQWX0leErPUn4n55Q+prQc891twBwaXdc9qTsCKxeqIHG507Hk+J/WrjFlEPyNPbmsfL K5Qcyq/zj5Nj19HkXdu84x6vd8kHE28= Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-561-rpCWMtz4NCqJdVfZY904HQ-1; Tue, 23 Apr 2024 16:25:06 -0400 X-MC-Unique: rpCWMtz4NCqJdVfZY904HQ-1 Received: by mail-io1-f72.google.com with SMTP id ca18e2360f4ac-7dd8cd201aaso204193239f.0 for ; Tue, 23 Apr 2024 13:25:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713903905; x=1714508705; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s2YosHNze/KnevH6aeloLEYctU29JplkQLtgxuJbONU=; b=ZVzmeoAwfRowp/RQWkNCpF87svJyNva5T/6YkACwDxbJo3eotopQyeWZ7YkFcce8Z+ DmfZzYPvjQ11a3UFV+LtxMgY6zgsgtzQGQaAatPGcbH/wfzdnbMYNNzZZzlNTGufr+/a tG9P9u3wW2Bx0WvHPVwvvHEDTPsZGc+1dGQMBGP1nhT4iES6bJayCYGqX381yGYRU/8W CCftIFsCxyXVd68pPNQUlHp+DZ1PSKbAVNFHH3ireiuFKdiCIfguFXaJgTrsRI7KPkmT FWRZSG8JBlogQszhXBUe/0y/qLkZ/IVg+EWRs3dmQcXTACz74fxbaOk5T1lndtcrpn0W nDAA== X-Forwarded-Encrypted: i=1; AJvYcCXkbhvXB3heAHrJZgEATMY2JYYjh7RXhQiYU8my9pIJ0IZKfGt7VxVWKdANENVT+/vvPknydWJLQ283b4D6WzvQPbweu3mgjcicrGN1 X-Gm-Message-State: AOJu0YxqOZmM4qJxZ0e02K3crqtErQ25mJIEY+q6khHZSG/XF1oRggcB LEmDetFUkBcvhiGl2maRGtAABD3ctgMh0GVJCENwqdHiVyIAeJoJRBXk84AtiXoCL5OMoybieF5 JlYM6YpYPxmmH3ZYqf/RqN0Fo3R1b8+pApsK6XwnaY4d5N+Pifxkf3l7hyZDuOg== X-Received: by 2002:a6b:fc19:0:b0:7d6:bf30:a39 with SMTP id r25-20020a6bfc19000000b007d6bf300a39mr634219ioh.9.1713903904557; Tue, 23 Apr 2024 13:25:04 -0700 (PDT) X-Received: by 2002:a6b:fc19:0:b0:7d6:bf30:a39 with SMTP id r25-20020a6bfc19000000b007d6bf300a39mr634209ioh.9.1713903904304; Tue, 23 Apr 2024 13:25:04 -0700 (PDT) Received: from redhat.com ([38.15.36.11]) by smtp.gmail.com with ESMTPSA id x5-20020a056638160500b00484f72550ccsm2540519jas.174.2024.04.23.13.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 13:25:03 -0700 (PDT) Date: Tue, 23 Apr 2024 14:25:02 -0600 From: Alex Williamson To: Ye Bin Cc: , , , , , Subject: Re: [PATCH] vfio/pci: fix potential memory leak in vfio_intx_enable() Message-ID: <20240423142502.3f10bc92.alex.williamson@redhat.com> In-Reply-To: <20240415015029.3699844-1-yebin10@huawei.com> References: <20240415015029.3699844-1-yebin10@huawei.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 15 Apr 2024 09:50:29 +0800 Ye Bin wrote: > If vfio_irq_ctx_alloc() failed will lead to 'name' memory leak. > > Fixes: 18c198c96a81 ("vfio/pci: Create persistent INTx handler") > Signed-off-by: Ye Bin > --- > drivers/vfio/pci/vfio_pci_intrs.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied to vfio next branch for v6.10. Thanks! Alex