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 0D2F445A7E for ; Tue, 1 Oct 2024 18:37:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C977C4069D; Tue, 1 Oct 2024 18:37:31 +0200 (CEST) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id B03DD40656 for ; Tue, 1 Oct 2024 18:37:24 +0200 (CEST) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-71dbdb7afe7so664366b3a.0 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=FJANaHpP7FWS047Wxxt+vi6pd6wsHgE4194NyRHHCviJ8Mo9JYRcM10zyq8dbrVvJQ FGmpQjB4sFoddaHMPUMSF8UcnzeHPWjRdLLi6UPjGw8RTyJHGDi9tQpqHoQCN9LIBYvQ TgXCTcZShoa7Rn3OEftnoE/5K9TdWrMAMASiUQqjslF2ja2jByYAobUhtcOio4ibf1cO /ZeLObyClnMyRQgHW6exi5XLO02iZ+EeiGN2lNwrW7lg8t8hrhyo2xKxEa3Si2jlODWY azIdNAnIROfTvBamqq0pYssU5Z6oB2zur0PPeFV04tMqTVYdwk6KobA7GIJqHQo12RnR NS0Q== X-Forwarded-Encrypted: i=1; AJvYcCX1uFlu4GPsCGimBswTvzSHhrwWfm085NWjAAJdxg9kdkftlhMfu0WQ96U88Ervfh4XuD8nSFs=@dpdk.org X-Gm-Message-State: AOJu0YwVcs7/uWXlefSfo4OPATB07ReSL/hSgyHhHoboaPBu9y1i3/Hm 8XrKUXlfipUV8ZEQoJoFNjx6C4BAmGVAPRw8sBErXxm1Q1FA1FmTFr9vupW8PSE= 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: 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