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 8A70E45AE2; Tue, 8 Oct 2024 17:44:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6B51240E11; Tue, 8 Oct 2024 17:43:23 +0200 (CEST) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id 547DE40A4B for ; Tue, 8 Oct 2024 17:43:18 +0200 (CEST) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-71e0c3e85c5so1453144b3a.2 for ; Tue, 08 Oct 2024 08:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728402197; x=1729006997; 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=gfMHfoX+NppzyEK+RzP+Sg0JjlKgC5vHTIzRl1xmwXdauPyOswLEIt/NH3ZLBphiMx 1pfbbecXHhxwOGnxMz4pXEYCf202GRnidk0D0jHiJW7/YSRO7AE/QUurdK974NjAxLOd FiKb1BVd2wFitxHYMZKOlthA61q4kHc6U43PHZyEAromao8xppvTtlSaClhI/vWuV2fB 5DXNRKUj2rwsthzF9c7Il8NChmnYbOpCFj1B99OjDb9b0JvU2coVrVl+39cyCxk5wnIc gT1JjBAwQp6wKpVNCZV3vYeRsHcHoLk9KtNZ8dhCXbg9E7Mh5LRbGUJS2MAIRNdhYWec OVoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728402197; x=1729006997; 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=BHFvNDBp1AN//dGld04Of/E9/KtTneBEqHfygTmI2tUDlQmrrADGjaOKErKP9sB+0T KiVPOnFOvQOgK66ZqtfBxZFKyzGnp9ToTlAAkUNFOpDze7JX6ap7/35PFGPZKEQuZTIs eev1tCZJV3faDsxJ75fOTLZiy3uSvGpupypfpBlAqYqQKCiyGcW6PQJhI1Sa+poDYVjz EDb+z13tKfpXSLnTkl/0VcLkf1juMUWCU9C++rAsHaQEDhPfySXAWNDABfhT4W1vu6cY MUzS9/PvR0wCdkhPjLw6VY4onwMCAhdjSxxiT2ux+3d0VIZNNJUCOl3k66Ue8hK8a6sC r8tw== X-Gm-Message-State: AOJu0YyJLUG1sHTKISjziMnBA6XzcTlCQriQsCpQqWwT9J8Wio/TK8mB 003cch94jKyXtfXHCAdIkbfI3jPlloHswLg5y3QIQ9rYTncVv3kBuDIqs2KNPRvDQAcSKgyUf++ o3fo2Fw== X-Google-Smtp-Source: AGHT+IEjsmozucOf+KLxnT2BNXFxi3kEMnNNHkamGY2PpsLEqos763rxfS6M930OX0Z1N0V4KpHTFA== X-Received: by 2002:a05:6a00:c8e:b0:71d:ff17:9309 with SMTP id d2e1a72fcca58-71dff179646mr11580827b3a.27.1728402197409; Tue, 08 Oct 2024 08:43:17 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71df0ccf01dsm6293527b3a.70.2024.10.08.08.43.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 08:43:17 -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 v8 06/17] net/cnxk: fix use-after-free Date: Tue, 8 Oct 2024 08:41:36 -0700 Message-ID: <20241008154301.66192-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241008154301.66192-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241008154301.66192-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