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 2943045A50; Sat, 28 Sep 2024 18:49:10 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED1C440665; Sat, 28 Sep 2024 18:48:38 +0200 (CEST) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 382014060A for ; Sat, 28 Sep 2024 18:48:32 +0200 (CEST) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-20792913262so37292025ad.3 for ; Sat, 28 Sep 2024 09:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727542111; x=1728146911; 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=Kp0oAA0bE8XAI2bynUJUbSUYmI0yba5uQHq96NHKjROagheiRYaQhhcpPVsBwzpvBM Sm35XWVoNatpJw/OZUPjIJcO1qSPbGkzOmZNxdqVa6+p4y6galel1skGarX9OCB783sE 2DQjnE5AA+mcXOlBhH0TBjY29DgGHDwiotUt0luYRs5UZaRna7J0b6BjXVFs8tggu2LQ TrGCHtEQ4N31IkAVPaahsugTlzG03jvzM4Eh01KxUMU3lH+Koc+16wfbCiA6V0KouRQT Vja6kCk6V3A6GpUNgqbg9q9O1gL/6bFzG57FIgtT6F4IKiArDBGeDUwg/0Zvez6RnxQ1 qQ/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727542111; x=1728146911; 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=Yf37aO+lVIsZPb8oa/AAIWGI1H+5+UJvJyDm3LHRcijT8yvH2qCyjQeQ/gg1yf6D7N 0xAt+vqc5vnTTGRr9ujRL9eBOvY0rPJgIw0p8ZqG0BDn9+Txay23jO/M0RrvcP6q2S41 QYKMFXWp8lxQocofMFOKccA/t3gmnU3MyuYoNNeVPG2QS+AiEgJidvBaZFwoRT6ed+c9 B6mkpUQYdUFeR2lGhavPMy+rvgvZwU/kfEx/z+crS2KUqkGKS47eEpIkeomNEkX+s8eD /x7jceLdsOuGD4VeGl8R7Obm633Rp1km1LONRWL4pC2/PRRvlQJ9CMxV/Jyo7hUAcG9m 4Dow== X-Gm-Message-State: AOJu0Yxb9JnnRVsk+QPHSJ+E9+QllcwBdmHP8l2vnJYg3CIBMEN8K1Ii xITHBUArQL/dG+QpQ+EmMZ3nYlOOyIEHjFXUsIY2keGbD7rfWUl7k4SDR9I0cAyhhitNsuIrc0J q X-Google-Smtp-Source: AGHT+IG613I/l/Eu25gScUGL2krNLxal+eYJdhsq0f+CpdGkcbn70LzNl/iJtkPbozP7csjiULEH9Q== X-Received: by 2002:a17:903:18e:b0:20b:6c3c:d481 with SMTP id d9443c01a7336-20b6c3cd81cmr7328205ad.23.1727542111373; Sat, 28 Sep 2024 09:48:31 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20b37e47c7dsm28854015ad.216.2024.09.28.09.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 09:48:30 -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 v2 07/16] net/cnxk: fix use-after-free Date: Sat, 28 Sep 2024 09:47:15 -0700 Message-ID: <20240928164814.861933-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240928164814.861933-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20240928164814.861933-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