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 DC46245A5E for ; Sun, 29 Sep 2024 17:41:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B743A4065D; Sun, 29 Sep 2024 17:41:30 +0200 (CEST) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mails.dpdk.org (Postfix) with ESMTP id 9B261402AE for ; Sun, 29 Sep 2024 17:41:24 +0200 (CEST) Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-7d50e865b7aso2796460a12.0 for ; Sun, 29 Sep 2024 08:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727624484; x=1728229284; 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=hEJylcI4qV1oWMTltsRHdvo57eBwmvtnOuzYsr6nxZ2HdiYwH/zYh58vZfvUYDOuIT ver+Fy9ElFMNLsoezBcgt0sMdfOmcMy3Ul0itsdZ8M6n6iyHvpAMSjeYWydaHxHqPcOi kBrx0DLLaKZPn7YHnhtg1fnEUrL1voQy76QXyAb0I9VMOyVCE+SHEF4FfvPDA04RuobB 3GlP8qPX4NSZDm7ASO8GNLqUDmw2M1q4Vy/3+S0WEoL27+oxFpsYPYoGHwaUn7X5ieBN kM5CAcmCEh6GoSehdsgKhIggHy6wd3rg/v9vO3XP4VzeNmsUEwzM5BDzcVCo0cGlrP17 FG9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727624484; x=1728229284; 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=b1IXi5g4YTx221lWo3WjFy2Itb4zDBSsBW70a4rXwPQvBjzGU7UgMZExpPUb8voq5O R1uK2gle0FWN9hbFN89LGH2RmGKb20ZJrq2crwMKBfmbmW9vpuJD4y890tZddEnyjaBS +Y5ydtGBHql0q7kmL1s9sNte8o2eNHUMTw/Pla0bczCO5WGerB9hBITzse6GjpKRI4oW PRXZgscN2SGxLOLLQgEA8Rp28FI5VMeuu46TI5mlXsMANoGpQ5FA8VSzoZhu3zEHqnGB eL2RU8QpORSrW/898H2qPyV7GTKhClIaVi4R2VmLqFVYEcci1iSdl33OFO6Hla/kcUop 4TTw== X-Forwarded-Encrypted: i=1; AJvYcCXJ+HO65XhayGLucPmb+4G4bZYs295BLFxPPI9cE/6FjBOgstkFPhoBWB841HHNMLHgxDK3+io=@dpdk.org X-Gm-Message-State: AOJu0Yx96gcDemWAQnKI1e3u7HokUti496mLi7YsXTCvhpRGfAuiRrdQ pI5Qw2/7g8Rg9BS6U7FhAVLIBv3FuD/ZyC0HY6xB5jkAZjFFOG4n4hMFLgOBw0U= X-Google-Smtp-Source: AGHT+IHbOHo/EHX0+Uoflrd9jUzIFt+IJihUYQLWgyzoTKmj/xv5j2l/6p0YOipk5s3oG/tR0RcQSg== X-Received: by 2002:a05:6a21:3416:b0:1d5:119d:6299 with SMTP id adf61e73a8af0-1d5119d636emr4673223637.28.1727624483784; Sun, 29 Sep 2024 08:41:23 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2649c775sm4707416b3a.29.2024.09.29.08.41.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Sep 2024 08:41:23 -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 v3 06/18] net/cnxk: fix use-after-free Date: Sun, 29 Sep 2024 08:34:31 -0700 Message-ID: <20240929154107.62539-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240929154107.62539-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20240929154107.62539-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