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 5F8DF4615A for ; Sat, 1 Feb 2025 00:11:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 37DE2400D7; Sat, 1 Feb 2025 00:11:09 +0100 (CET) Received: from mail-lf1-f99.google.com (mail-lf1-f99.google.com [209.85.167.99]) by mails.dpdk.org (Postfix) with ESMTP id A4C34400D7 for ; Sat, 1 Feb 2025 00:11:08 +0100 (CET) Received: by mail-lf1-f99.google.com with SMTP id 2adb3069b0e04-54021daa6cbso2660442e87.0 for ; Fri, 31 Jan 2025 15:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1738365068; x=1738969868; 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=rh0e7iHlEA3bZA09UtFIB4SRtY9iDOY1wZSYQRHBZ6Q=; b=PR2AnfyKWGmDZxA3rQ3Cpfg+iItBeRi5CbbnejdOCXidCIdG3K2WJrkZx6yhkZHusw uAXl2Tgl0SPEcTV7tMZtgxwzehf/YAM5wjL+vLJSkl5dU3yRy0/HsGmoWz/JDnbEW92y gN1iVvhjlFJkr20HdcwmvtTWsIpciprJD1eTrNH9xaDLFh3wuvz6DILp+iIvY+oz9mP7 MJG0bj9TBp9KAWJEYtf6VZOsnbLpVvOcrNcO0/C5KrWI8F4iYDAwnfcJ7kRYK4zM3sUA 2CPPoid+P+F+OJRxTLP9jV94eb8reKGW8DXb8wYm/avCosACFF+7k66Ydlg9zLsN5kZo pX9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738365068; x=1738969868; 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=rh0e7iHlEA3bZA09UtFIB4SRtY9iDOY1wZSYQRHBZ6Q=; b=v1rZezDx9sJ9nxgd+O6F0h4XlHS5YpAfK+KGh/yOicQbeQhaqbDTBf7u5VQIUjLVQk ESibG4WcCQXo/kvvJJqZ6E+F/gcu9L1xTSFtZ3Tc4xXlTsIb4njLo2Kqh6y1ZxxfyUyy 4BsLfPYIcK8WN6jjBt1GVwyFciWCli/U3sapS0YMezbo6uFhqT7r6n7pa46c8CwKCMBb xUxvePkmNrc7R05xKsA/QnoB0SXAyxYo2ZvaPwyMNh3y8OZx1pK0gAfMwC+lYpNfRwWp w/otXH3pbDAPh2ONAsTZOUlM8sqZyG+Lp7jahlI8gatOI77a1Op5lKt9ObMmL/SyUPDr OL2Q== X-Gm-Message-State: AOJu0Yzl6sDAezqAhv44kmN028tQ4R4tezS2dFq/vRjpGMW4Akdq3hGs O6pm6D8vS4LBxBJYmJSMMmNsCrFuuStwBxITO3ItsRS0mhkhEyI8JplaLdX/ABUpWlnpRjJ1PzK C5j1u16LG1+KuRg8IL7QYZ3mcJMTLu9ca X-Gm-Gg: ASbGncuEP9ax6bVyqdSCaNMm4yIO8kVtGZqOcOevY9o5msdB21ilwUqZbr9cB/t+PPO CNqhLMUfNdTW1mcF3oMV0y/LbPGx7RUnU7x8A71FHvKXhLuH4+XCOTaNe+MvMckanLyqD315Hmr 2ugAcmfUWjLzqdsJOaZXmtBVzp5Q55RuCuZQav6Hve7q/nB+htgvzHaPL442BqHgvcS0Rxt56SL D8dOP53pHQDUyFtPVhORpv+GVyz3AfCH3eSzztwcDhTfluBRTjy3uTMqZloZFi0dJeI0+fEzF1S 997YY9ntes09hEKkR7a9+SXszWHqO6ZscmA0kZn+X0PgMhwYHA== X-Google-Smtp-Source: AGHT+IG43R7uQpYJse3ccQANLyMmKEYr5bFv359tk1Z/JDjovcQDls19yNIPMgQLxwEDwJPGy0fn9DSk0msL X-Received: by 2002:a05:6512:e85:b0:540:2a92:7dac with SMTP id 2adb3069b0e04-543e4beab07mr4244865e87.17.1738365067969; Fri, 31 Jan 2025 15:11:07 -0800 (PST) Received: from smtpservice.6wind.com ([185.13.181.2]) by smtp-relay.gmail.com with ESMTP id 2adb3069b0e04-543ebeaffa7sm160290e87.84.2025.01.31.15.11.07; Fri, 31 Jan 2025 15:11:07 -0800 (PST) X-Relaying-Domain: 6wind.com Received: from localhost (rainbow.dev.6wind.com [10.17.1.165]) by smtpservice.6wind.com (Postfix) with ESMTP id 931AA19E11; Sat, 1 Feb 2025 00:11:07 +0100 (CET) From: Ariel Otilibili To: dev@dpdk.org Cc: stable@dpdk.org, Thomas Monjalon , David Marchand , Stephen Hemminger , Maryam Tahhan , Ciara Loftus , Ariel Otilibili Subject: [PATCH v6 0/2] Fix use after free, and refactor af_xdp_tx_zc Date: Sat, 1 Feb 2025 00:10:17 +0100 Message-Id: <20250131231018.2163893-1-ariel.otilibili@6wind.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20250116195640.68885-1-ariel.otilibili@6wind.com> References: <20250116195640.68885-1-ariel.otilibili@6wind.com> 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 Hello, The series addresses Bugzilla ID 1440 in two steps; 1. Fix use after free. 2. Refactor af_xdp_tx_zc(). Thank you, --- v6 * added missing credits to Maryam Tahhan in v5 v5 (https://inbox.dpdk.org/dev/20250131183439.909831-1-ariel.otilibili@6wind.com/) * fix style issues in the signature of reserve_and_fill() (Stephen Hemminger) v4 (https://inbox.dpdk.org/dev/20250130221853.789366-1-ariel.otilibili@6wind.com/) * redid the refactor (Maryam Tahhan) * marked the fix as acked (Stephen Hemminger) * updated .mailmap, my main e-mail is @6wind.com (https://inbox.dpdk.org/dev/20250115121152.487360-4-otilibil@eurecom.fr/) v3 (https://inbox.dpdk.org/dev/20250128231152.249497-1-ariel.otilibili@6wind.com/) * reworded commit message of patch-1 * addressed feedback of Maryam Tahhan v2 (https://inbox.dpdk.org/dev/20250116225151.188214-1-ariel.otilibili@6wind.com/) * reworded commit messages * addressed feedback from Stephen Hemminger v1 (http://inbox.dpdk.org/dev/20250116195640.68885-1-ariel.otilibili@6wind.com/) Ariel Otilibili (2): net/af_xdp: Fix use after free in af_xdp_tx_zc net/af_xdp: Refactor af_xdp_tx_zc .mailmap | 2 +- drivers/net/af_xdp/rte_eth_af_xdp.c | 64 ++++++++++++++++------------- 2 files changed, 36 insertions(+), 30 deletions(-) -- 2.30.2