From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D134345A6D; Mon, 30 Sep 2024 20:46:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63B47406B8; Mon, 30 Sep 2024 20:46:23 +0200 (CEST) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id 0D3384064E for ; Mon, 30 Sep 2024 20:46:16 +0200 (CEST) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-7d50e865b7aso3652196a12.0 for ; Mon, 30 Sep 2024 11:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727721975; x=1728326775; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OCC/7pypcVANnAzLwv1ykHuWe7RDnUwbh8hT6nfkbJU=; b=ILwDgM1xlsWCycee7tEDe7WNGA/jGmgzjIugc3LYoQeBDFndZYitfaZud/UniDKE2r vfZkXxNsIHEsFUEC5/Iz0m7fVuQw1GHck3cA/5yoOQA8oneppGuFz6sr57laIE5bsDE0 5P8I9N7GruRZOWuzxHj51ZpSBz+RkHmZNVVKm+niTj6GrWvzSRj8+wRQOgIp1Kz19jfn gGX1TePwo381YHqGP3e6MCgVR6eRnDmPcWRgnOA/ubSAQktJ9LX0OejqYen+m499ndZA WYWM6/FxtVxsO5z55bq3DkO/utDV9elCttsQ+4cTi3VJFtmZREUrx6wm6AE1wOaoTNSG Vc5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727721975; x=1728326775; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OCC/7pypcVANnAzLwv1ykHuWe7RDnUwbh8hT6nfkbJU=; b=Fuqll6OBJ0OCHwMvv7MNG0VTvMa1Jn39vWmYG54BZiPHSfX7egAujaKFv/GwQUjahf YJ+PrOTm2zI8vSiOHrbBqi72oF3a3nIioN2UbFifD0Z1dpffx86Oa5jHMQKVP3phG72E uEUrDE71cVLQOBxJzJcwdMkEUSLd+jfc7GZunF7TezZLLS0rO3x16YkpP/F4yrKKX5lY Gdi1L4ofstqnwOtUzWIYIDEMFajCoJjw9ZvAknCs4XKhS3ncLWNbNybeQ8ryDNYlu2dn bX05qqNHqFDEl5wlPs4MkJU5mqr+joU1Wfnd/rZx040vkPZPS7RGjpk3WghDYrWopjF+ Oq7g== X-Gm-Message-State: AOJu0YyUkvHhHRVPI+iSmQcqG4P6STnjpRyofDwwD4vEHRLVw/lYw4Q4 5icJWCPCHOrvk38oh3iSMMH+eWpI33RcpLiua8qKMYH+KA2gPeQvPlWOufYanU57NxrlChbnz0d PaFxssA== X-Google-Smtp-Source: AGHT+IE3Hce4/Cehb+XMIK0+pGYK5nTDPWSAY7bmtnU4H/zdIC7CJT28d4wM17l6f/ERQJBihl7n3A== X-Received: by 2002:a05:6a20:c888:b0:1d2:e888:fcd1 with SMTP id adf61e73a8af0-1d4fa78b795mr18059501637.33.1727721975263; Mon, 30 Sep 2024 11:46:15 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b264bcca6sm6581895b3a.78.2024.09.30.11.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 11:46:14 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , rbhansali@marvell.com, stable@dpdk.org, Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra Subject: [PATCH v4 06/17] net/cnxk: fix use-after-free Date: Mon, 30 Sep 2024 11:44:00 -0700 Message-ID: <20240930184600.7092-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930184600.7092-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20240930184600.7092-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The driver would refer to the mempool object after it was freed. Bugzilla ID: 1554 Fixes: 7ea187184a51 ("common/cnxk: support 1-N pool-aura per NIX LF") Cc: rbhansali@marvell.com Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger --- drivers/net/cnxk/cnxk_ethdev_sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/cnxk/cnxk_ethdev_sec.c b/drivers/net/cnxk/cnxk_ethdev_sec.c index 6f5319e534..e428d2115d 100644 --- a/drivers/net/cnxk/cnxk_ethdev_sec.c +++ b/drivers/net/cnxk/cnxk_ethdev_sec.c @@ -136,8 +136,8 @@ cnxk_nix_inl_custom_meta_pool_cb(uintptr_t pmpool, uintptr_t *mpool, const char return -EINVAL; } - rte_mempool_free(hp); plt_free(hp->pool_config); + rte_mempool_free(hp); *aura_handle = 0; *mpool = 0; -- 2.45.2