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 938F045A50 for ; Sat, 28 Sep 2024 18:48:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2ECAE4066A; Sat, 28 Sep 2024 18:48:40 +0200 (CEST) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 340EC40609 for ; Sat, 28 Sep 2024 18:48:32 +0200 (CEST) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-20551e2f1f8so39525115ad.2 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=dlb8JeGhOENCEtLpJio7Del6RQFSE5HsuGGAtoIFMRt1UN7Lp9+AP9wYE0hDVmTCWQ zcYcYnUZNYNZ8UKz80+7m+aXfZPU1ueAQFdaX+60hqfEoa+AtdxXTxh1kYLef8jrOl48 Q/SJl+a3rYcXxJbxoUdjNObG+1On9VDVM7SxD5gyp16SqGrZ0vtWN4Ye9D3ZUI3sBoEd F6MT3gz1rzzwBG0Q15p/VXQ0MJsRi5ir03MTAQtaSan0kwO713HXMhVFk5+hUoL0Jij+ 55ksM0/E/May5eWhd5UIfkgpcdNIBWyxUMr5LamK1qnyStcn9cHWXiXPlFZcQ570VTuy JA0Q== X-Forwarded-Encrypted: i=1; AJvYcCVnT/hl9BAQYTGEE9QaDoRh6gwIRhQvJlaC4iG6/W6l/q6iPuecscpB2MfSGbWL7WxyzZ7TVns=@dpdk.org X-Gm-Message-State: AOJu0Yydd7Us96TvIPewK9OvYFOyH672MDR6EM8D7Nuk2U30IAOrIDV7 E4Jnc6vo8hN8lMCZ7acbbWva4/l8zW2qthYmyXSqb60bJQALCUAgxT11Bd2q/dk= 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: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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