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 C0F0645A5D; Sun, 29 Sep 2024 17:42:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F3FA24065B; Sun, 29 Sep 2024 17:41:30 +0200 (CEST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mails.dpdk.org (Postfix) with ESMTP id 91334402D4 for ; Sun, 29 Sep 2024 17:41:24 +0200 (CEST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-71781f42f75so3353794b3a.1 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=KQkQcxwbolt1pg1e3NYn/Agk8qciMxfy00NuhK5tS6WkcdsD/BqZl9VHcQe10bOCOK w14Yd3rcHbAwdKnN+32byzk0ICKL7y9V0C/lixrhRZOfsvbAeyaaqCa3le4rRZLVyxE/ fbeOUGXD12kSNs50zjoL+v5YvchNqCR3iZ3FIBH2UXzZnF9htWGZORmOwH2z6m+LnqsG ii9dMEzXP4yTfzdChNIiGC1fWenSlI7FsbTjOGdv3W/3YecD0Dwakf2rTbk0kCVmZyPf dwbgH6jS4sgEP/0A75Pas+i4HXDxTA57/B+7WDvYjJT1Mnsf/NXBcBV2wXKtrwZ4mPjt ysHg== X-Gm-Message-State: AOJu0YwIa15lxphcS1z7uQ7IqgrasvG6DvHVnYRp6CJlcUjhBA/HiGWG 4khi05nXexIiDVfHY3AC0X2WjH4IWJICVBrGwMSGIyu77OhdsKASoHpg0MVIJvEh9vPwzNMzJOk UgRI= 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: 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