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 83AC845AE3; Tue, 8 Oct 2024 18:49:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C399240E48; Tue, 8 Oct 2024 18:49:05 +0200 (CEST) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id 1E3F840DCA for ; Tue, 8 Oct 2024 18:48:59 +0200 (CEST) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-20b7eb9e81eso69576665ad.2 for ; Tue, 08 Oct 2024 09:48:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728406138; x=1729010938; 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=cSfE8zTlDkEESZ/fKatu3bBtloQvUuNsWMn+KGquh/TKYyVA8+GsIKKVoGOO6aTDFd Ca44wmzQ01D/bi2P80OHYjaBLgJkySAZbgWRo2TWwsC7cUbP0chPaDaq0RSG0DDaBZcT 3xNj5yt5aFEio8Pt1D8yelZppT7HOwOOr3/T26Ij6e+W4NylSZu6U3qVbX8B+Ea0cyJ6 BmKKC+Bzkx/OG3fMnFTwoBDkQ5si0KXugW4CTyfiiG18+vn8v9G3X/VjI08L7whv8cZ5 HV6WkhQp2282IGKGbqaxWReuDiHwD1FbBQlMNPZR73hYkA5jPDVyY1tv80+KMu0jLtXB AXJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728406138; x=1729010938; 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=si2q2IenQ1HgrXVwSeaHLwS5Qo2wjUIPO+eP+p4UfUbFWWSYayXoIQl+qQgao0ZASZ EmvghxUCWdRk+o9Oyrbi20p2wI512o7NQCJOy1w3c0ABTu5S6INX4FT2vRr6XTdCbDB7 5byiSvBheoiP20wQP3gW+gd1MclSZB2JoI/2aHH5L4ANdbe+K1YBS6owmMiqxFPrdkAv KzOT6U8CHNIsYf61j32WzZskcVc/JOxGSMHTKZjnkaNJlhyfq2Xfmz3Qu5AwIJqEBgYo JgCKgSJqCIavwW8diBgPiy8ZFSDlBlVgCBblBbwLVtFhNUMFp5EZC3X26Xx7wOhMlD19 kuPQ== X-Gm-Message-State: AOJu0YyA3Odb32lRo2lxvgPf5UlhaHOPjh+eGHADjzYQGwd8L12RWDET JoiUKo9TzeI6sF3WDCTqXuQ8iYcqxHcrGzJCT6S3+t9/EZJs2ejgsxfZkSCzjrb34HZjvy0+6Tj xmyQtCQ== X-Google-Smtp-Source: AGHT+IGezT9LzxFqDyqA4cNPJ8iWYGy9IEbDmVupgNMAjsk8zHwAFe/eXJB2DQMvP3/JVHuK840RKw== X-Received: by 2002:a17:902:ecca:b0:20c:5fd7:d71 with SMTP id d9443c01a7336-20c5fd70e4cmr8593825ad.22.1728406138217; Tue, 08 Oct 2024 09:48:58 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c54056bd9sm13832965ad.85.2024.10.08.09.48.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:48:57 -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 v9 06/17] net/cnxk: fix use-after-free Date: Tue, 8 Oct 2024 09:47:10 -0700 Message-ID: <20241008164842.139045-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241008164842.139045-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241008164842.139045-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