Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3903041rwb; Sun, 30 Jul 2023 19:39:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGUKZSoSkdOdD1oF6zblGHb+NWQlK3/9CiVRx5UzNL42zEd1O4IuuSyJuAvmWRB3AijeJ1E X-Received: by 2002:a17:906:4fca:b0:988:8efc:54fa with SMTP id i10-20020a1709064fca00b009888efc54famr5400544ejw.37.1690771163301; Sun, 30 Jul 2023 19:39:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690771163; cv=none; d=google.com; s=arc-20160816; b=XkGvZg8HtXhG+vSs3kaFNnmx/+VZ6W//fRqGyBbnBOFLVvA55SMLs2uMgfJ/9UN32F 6WgTm+Y8N/dHV0tQ/jszOXt6mQYNvRILV+UNjnqE3B8g6eqL95wGKxLEcIzMmiwnxsj/ S/OZUkl0L2qEWzn39mm33oLt2RhF0FW/RUDjoeq1e1037fCZHQTMGechs+M7xrwJT0nz 5WUpea3SMAds4sz+y18aXBLha5mcnj6LewMo44b2QIgnHJjrefLruF2N7ygf1VeZ4ILl kZYvQW1xqAUsPITJ9zbrlQlOM8XUfR0SeAcgpUi2rTeF69T7Fu31mKzV0IJwLemab7i3 IO6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Rk52475ZbL9s7/hfzBOCB7Jm9cqV9XCvqs/zZ6NPZQI=; fh=3SqDpalMzPdUOya3Dq/vB2nq5Ruj527i2Xi2NeggpSk=; b=0RYX1C+6fE9Xf48xFdV+HliGsI6kgvTz25xic1n1YSY2SoHr/7MzmypTnL1O0MlD6v 2bdK0IiKumA8d5gCndf2nll8MJ/reDOrLchrxS2pNKpv5OgxJsTLWLohiMJlC4aMSD36 T0U2uiZiJOgHBrUznf6UkRgBql6+osNxu45qYCt7vyGBY/7wzRQ+NMTPpxYqy7ny1zFu 6/cOTmTFbjq54gw1TqpWlvXz9bQq8XcVacys//599enbe81aTXiowBDjxYtVpALQEMaf qDuy8OWto9G9BZlQw7Qo/l/ROWG+L3m8OJ8LaJpdf9C4Gsfvn0YKmMKCHAAb+QYkk6Ew WofQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=A3y2ViIQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w26-20020a170906131a00b00987b0a5f325si5826752ejb.1043.2023.07.30.19.38.59; Sun, 30 Jul 2023 19:39:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=A3y2ViIQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229643AbjGaCYC (ORCPT + 99 others); Sun, 30 Jul 2023 22:24:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbjGaCYB (ORCPT ); Sun, 30 Jul 2023 22:24:01 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 709B5E4E for ; Sun, 30 Jul 2023 19:24:00 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-58451ecf223so43197307b3.1 for ; Sun, 30 Jul 2023 19:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1690770239; x=1691375039; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Rk52475ZbL9s7/hfzBOCB7Jm9cqV9XCvqs/zZ6NPZQI=; b=A3y2ViIQXJShjd6wDFcAEALxDEVLj6N3sTEKT8sUWmBs34mm+rMeempLoiJIHa2zG1 tq3ygHbhY5MtzqqQCTATOvrkevDCft1psD9WA8pO1bif5w+Mb7BdG7R1BXaUypurKP6N g03kK0r+XdXPzLPGHeG06LmfIVx2cLQkeC2AjGzFoU4YcNA8Nxqq8aw4eqAsgs65KMCM E8+EUgd3D4lVZdIytzC2PTGefQ+Vkr4duSJ1jgxH4sh0qgaB3oykGeOKjIP6oF6TAThh 6Bhc+gO/TsWAcQ6u+Tz7+gk2BaiCiB/FFi/8iu7mAA0vi9YAMcRL8UqAFtbCCLshinPx fwow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690770239; x=1691375039; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rk52475ZbL9s7/hfzBOCB7Jm9cqV9XCvqs/zZ6NPZQI=; b=Te4c5SeqYBxfXhKMJfm8I2RQpf73PKmjzfmAaIbAQijiaiEXsG8Xdm0ap5H8U0WlrG 1F1og+J3549odqyJ7TpTEKETtiWO5dDF4i1OdC+6H8QdsYxr9JJr2jbxJCmBiUn6lbJF r1u7JWycYil445hIFAnk5BIUpbK+Y+rzxevb/y/MKRci2ib7QGkzEUbZUc6YfpS0Ar3i pioWdgNWd31IzkZuGZkqg1N6GM8ixFB5Itzp2/yrkgD/3Nu+IqrRX3vd5X0njCt+4DL5 WRzyjutkPB1duL/tuzO98EMVupQD9KEkCdNCTdPgobiQwlTjhC/bwFBJBEL1Otyz1Pw1 9ztw== X-Gm-Message-State: ABy/qLbbNaizkgI3tRhkz8GIjpHqQZxmdzRWf7GgK28XZlRYSJiwzBqh KjvRAteOg+aksy9jWFWPX1cj67aH8fSqRkj8Qh/R X-Received: by 2002:a81:74d4:0:b0:577:1909:ee15 with SMTP id p203-20020a8174d4000000b005771909ee15mr8587315ywc.6.1690770239668; Sun, 30 Jul 2023 19:23:59 -0700 (PDT) MIME-Version: 1.0 References: <20230726191036.14324-1-dtatulea@nvidia.com> In-Reply-To: <20230726191036.14324-1-dtatulea@nvidia.com> From: Yongji Xie Date: Mon, 31 Jul 2023 10:23:48 +0800 Message-ID: Subject: Re: [PATCH] virtio-vdpa: Fix cpumask memory leak in virtio_vdpa_find_vqs() To: Dragos Tatulea Cc: "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , stable@vger.kernel.org, Gal Pressman , virtualization , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 27, 2023 at 3:11=E2=80=AFAM Dragos Tatulea wrote: > > From: Gal Pressman > > Free the cpumask allocated by create_affinity_masks() before returning > from the function. > > Fixes: 3dad56823b53 ("virtio-vdpa: Support interrupt affinity spreading m= echanism") > Signed-off-by: Gal Pressman > Reviewed-by: Dragos Tatulea Reviewed-by: Xie Yongji Thanks, Yongji