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 7695245A7E; Tue, 1 Oct 2024 18:38:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD0314065F; Tue, 1 Oct 2024 18:37: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 AF6F040655 for ; Tue, 1 Oct 2024 18:37:24 +0200 (CEST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-718e285544fso4496233b3a.1 for ; Tue, 01 Oct 2024 09:37:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727800644; x=1728405444; 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=G3LgOH7F6OW8Mn3cLIRS+4LePVBXJtn8FwSptv9B5EiU9AmQL8dPRXVus7c64QQNR6 w6NKCGdmr2NoxDln2pcJZmdlog5xG92wPJajdypSkXqkqQbjO9+sB0lONFO/dmQHyE09 NQwY24ro57y0/6Q6DT8qP+lZvxqXUohFWSUs2FzUMYKxLfN5qmmkX83KcdKr/ZmgYQ0d 2tjEa7v8v1EoRbTZms3fVGI4hp1COUzxbXReyfWTlIO+KmdRdg+ATu9qlYL5DER813pq eLGGyHro+lockG2pQLOcSy1nIvYTA8oFMrRh7kV+QWu3ZjYLSoyTT5c8+H/fQP3xmF9o pGHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727800644; x=1728405444; 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=cWC4cUCzXQwGz9PceTRt5JVKN/3nYzRJql9gqGXyJUfsLWcUZVjYeVQCHuzJExXhw5 VxI3fZN59O5e/VLDyKRTSBS3zUtNQ012x94/mRgj5kCZDrobtcma3AxfLM1csm5Vl34C 9BUntcdqCCwkuGiymCHbOeR6zAT4WPqfx5Sj5Jl8KDzdmzxdKssIjqaUFJoJkt9mnfVI sH3qOcrf5Nsrbr3cxFOs3A0rKuYPMbonhD0fph3nb9cFUgl0L4wxn715HfsHUCfZ3xH7 LcjGJ/j2nQaOabc0psFQPGJo3a49R6iZGujakNyHV4QCHRXyBl5DBvW9U8hacr8Y/9ML PBBQ== X-Gm-Message-State: AOJu0YwKz6yX2sy6s6RvH/kcn6dnzg4s05ilvuzDLq6Tsh0RkpmpDqta K5o35gG3Y+RXUYjRgeVQwyhsYzu055NGKtLuOq8hetUh8Dun0d+0Cwt4P6WlvybiBU/lfi4wsc/ BLkw= X-Google-Smtp-Source: AGHT+IFQAzkbm349kKZk1EJ47rblvzGDM1fUo0R0yNEXshZT0MWMRmPHgxuzyC3QXdW3wpZu5QgbbA== X-Received: by 2002:a05:6a00:1496:b0:706:b10c:548a with SMTP id d2e1a72fcca58-71dc5d56b3fmr421515b3a.22.1727800643971; Tue, 01 Oct 2024 09:37: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-71b26518818sm8213565b3a.129.2024.10.01.09.37.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 09:37: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 v5 06/17] net/cnxk: fix use-after-free Date: Tue, 1 Oct 2024 09:35:29 -0700 Message-ID: <20241001163708.355128-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241001163708.355128-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241001163708.355128-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