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 D01C445AE2 for ; Tue, 8 Oct 2024 17:43:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A5BF40E20; Tue, 8 Oct 2024 17:43:24 +0200 (CEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 54DF340A72 for ; Tue, 8 Oct 2024 17:43:18 +0200 (CEST) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-71e06ba441cso1675825b3a.1 for ; Tue, 08 Oct 2024 08:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728402197; x=1729006997; 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=gfMHfoX+NppzyEK+RzP+Sg0JjlKgC5vHTIzRl1xmwXdauPyOswLEIt/NH3ZLBphiMx 1pfbbecXHhxwOGnxMz4pXEYCf202GRnidk0D0jHiJW7/YSRO7AE/QUurdK974NjAxLOd FiKb1BVd2wFitxHYMZKOlthA61q4kHc6U43PHZyEAromao8xppvTtlSaClhI/vWuV2fB 5DXNRKUj2rwsthzF9c7Il8NChmnYbOpCFj1B99OjDb9b0JvU2coVrVl+39cyCxk5wnIc gT1JjBAwQp6wKpVNCZV3vYeRsHcHoLk9KtNZ8dhCXbg9E7Mh5LRbGUJS2MAIRNdhYWec OVoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728402197; x=1729006997; 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=WYFZSwGh1v74D2Sn7ouAFSccFaOAbYfRyjes6LBSOT29AUdCgXYeETDFPrzoFQ95Cr kvH8iBeE62qTUlQrZyfp2icp6QYTEpQiMYYYALjaQfluCEAVJ0Cqjlz1ESA1FOgU9Gbm qurR1QhbKxWbONt6sbN8yeyeIUrlBSx6Vgqe2D7YiQHpItDobYgTVsh4zI3U5zEWSsvE RO6mr137Wqzepad6WtOLm+HkRdOLnufODtSfknrrJPyKg1YuGPLF3scHBwNs7gYzIDNJ ENr6QYKA+9EzQX+8xpY5tByB8Ki0RdLvUdWGDnH3RTf/vsLkfmRnLxfVU4e2bD9k8n/V WyBA== X-Forwarded-Encrypted: i=1; AJvYcCUhM1HvfYu/X5qB/qmZr95wZtpnPhl+3C/XG535NH/GCcW3NRqqFjQ3CUdOoJ/Uijn2O/44hqQ=@dpdk.org X-Gm-Message-State: AOJu0Ywe4weJth2i24fVIkFm+WlOBr6a0Hg2QvGW4s1AEI5LFqhjAfKV 0bFzWpjjxR7sQgV83IDam6Kfmglyc/dl4Gm1QbA8QR2KBZ7n1KxTilC6N0BrCMQ= X-Google-Smtp-Source: AGHT+IEjsmozucOf+KLxnT2BNXFxi3kEMnNNHkamGY2PpsLEqos763rxfS6M930OX0Z1N0V4KpHTFA== X-Received: by 2002:a05:6a00:c8e:b0:71d:ff17:9309 with SMTP id d2e1a72fcca58-71dff179646mr11580827b3a.27.1728402197409; Tue, 08 Oct 2024 08:43:17 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71df0ccf01dsm6293527b3a.70.2024.10.08.08.43.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 08:43:17 -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 v8 06/17] net/cnxk: fix use-after-free Date: Tue, 8 Oct 2024 08:41:36 -0700 Message-ID: <20241008154301.66192-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241008154301.66192-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241008154301.66192-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