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 1B6D445A9D; Wed, 2 Oct 2024 17:45:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0362D4066A; Wed, 2 Oct 2024 17:44:49 +0200 (CEST) Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) by mails.dpdk.org (Postfix) with ESMTP id CA7314064C for ; Wed, 2 Oct 2024 17:44:44 +0200 (CEST) Received: by mail-oi1-f181.google.com with SMTP id 5614622812f47-3e3a47ae905so1772087b6e.1 for ; Wed, 02 Oct 2024 08:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727883884; x=1728488684; 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=Fq8bRgDDO8UTKtdSyZ80a8OA3QAKYAt9Bo7J6FEaZjemNoUmioXqpVmP0VtB0QFOK1 VskUm3yk/wAQIBErTIKbaV43LOjfLkTuAmEBny6coFpurfVl7ncq3NXTJyTjm2zSQ8Pw 5LaZi8taWfsqqvCwQFgso3prVRGKYjkP/ar/S3HrmQ0iORNS9o2oYiRfEjOdsFVswfL5 BDqKgxqS0YBOSyUM4s+Q34c994znGD4a+0ZCAbhsYoXOPFgyt/cO4z3tC3hhuqMYSZE4 NAmaLZ6NoGI7kfX23+bxnxVFS4GhNcVxDYX1jSvjDxh8QlZzx25ScZC6vn6wiqMu2ckQ wHiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727883884; x=1728488684; 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=hkBMgIs8YhtnS2ZlASuKGJSGTLzWN6OPYTExnWSMEScKJsDyycoT5Nd9CzwA2y/t+g bblJZm34YJfmuXy6d70E6mYxgiIGC0rroL63mlyvSETcU0wnLamjP7FSCxq+GrhsU71g 6Bk5Apr9MfOU+rLCIKw5ghJJhkVkFELX89w7qLzX2P0y7ue0J3ii+FQwkUUsbGOia0fw iMdlqbyLlJWMEpFB9Eew/du8vCW1B6XOR1Ir8+0xA23XrTRhL0HYS/Ge00piiww2ejs8 aibcbIWaH74OSW3BulfkRCeG2svBToc5CR2AE/c+W/hEUEsP5V3tjrreX4wBn4C3u1+F Utjw== X-Gm-Message-State: AOJu0YzV6YqOuVPbM2ZW6NTLHiy8yzD+cQDbKIHg0kIka1HBFKiF1w/X +Mp4ul48SPRKqTqugKenLX1IJdglgfxDq2pZoVMcj9rtUzZnbGKwXxrZzca0LxikPSO10NY0eym Lvww= X-Google-Smtp-Source: AGHT+IF7hgBV3UIUkAod3+1LheqZghlBlwqOlSQ73kMEsXspLWgfnYb0Tmx9jX6CVDddIqVXZWJVbQ== X-Received: by 2002:a05:6808:14c7:b0:3da:b35d:52e0 with SMTP id 5614622812f47-3e3b4194bbfmr2539547b6e.43.1727883884160; Wed, 02 Oct 2024 08:44:44 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6db2927c7sm10247363a12.1.2024.10.02.08.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 08:44:43 -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 v6 06/17] net/cnxk: fix use-after-free Date: Wed, 2 Oct 2024 08:42:50 -0700 Message-ID: <20241002154429.64357-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241002154429.64357-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241002154429.64357-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