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 A1A6F460F6 for ; Fri, 31 Jan 2025 19:34:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90A22402C4; Fri, 31 Jan 2025 19:34:48 +0100 (CET) Received: from mail-ej1-f98.google.com (mail-ej1-f98.google.com [209.85.218.98]) by mails.dpdk.org (Postfix) with ESMTP id 01EDE40274 for ; Fri, 31 Jan 2025 19:34:45 +0100 (CET) Received: by mail-ej1-f98.google.com with SMTP id a640c23a62f3a-aaf900cc7fbso499563666b.3 for ; Fri, 31 Jan 2025 10:34:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1738348485; x=1738953285; 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=CmV/gtb4ls5Bv4dHfJnYf5cRxuInDYkWE9nZg1E9JG0=; b=BR/0N+WS8qsPFTidIzG9MvpO++GG6Qfj2U6bWK4IRL0StwSatV916W2kZwBoHRn8yH y4iE+z9m38MEz1qS9EjTkxoA9BbAmudsAQC/rd4kCPd4ML7lmp7bn4zEMI2Fsf+7MMXr Yvf1ZHeyWljN4W5Hw5M+Hy3tmvF4qVKiLs11X8tfKE7BnH7tg5qtHHdgpcqTh+stOKgf 3UdRktkoRCk27BsDDg9ozzANMkj6JiePs6QHwXqBeBNaeNVGEhJMNSJqBHsMbQPQ5dRN LzGvP5RQ/6xWwJKsb/MzeYDZkqMTzN2jbxkiaU81vRMNh+xDd4hvIVjnt6QjAa3geaVF 5IzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738348485; x=1738953285; 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=CmV/gtb4ls5Bv4dHfJnYf5cRxuInDYkWE9nZg1E9JG0=; b=wZ6w1Zbq2n06i8nQFD2uzBTpbmyriSS7ArRG9ZGuv5vg2VTwC4jWBdZMlOHctfeR51 5mC1VBwrT+cRyeBIrI6SG9LkfDMC5Oos0UkY5c/A9YP5Z1JTm6CA033OLVCve2tG5HNP Af6Xweu3spsDfv9rJ7qMr+gC5S9niXWf6vvROJA8ClvZJ6mJkwvyXyxYXbqvYyLCFWSA BgpslQYDlMH8Pr/U1cJSMSqEioewDX4KUcJ4O80m+Ci7Zm1o7eESYjr2hg6cRk4C+i7g EP86Nj+RzRb18/w/33iCxA1VFn+7UCscQyMkrCPpgcpPnBb0MTH+UUwQrOQLQh4yuhuK /i8g== X-Gm-Message-State: AOJu0YzoqFsg40kAT/LT0yJJrWA7ifzhFIn0NUD7ms2GjV48GqYd5UiG 5UmKuy9lVw9FKbZrxd1uEG4TaXVi2GLBMlOR9IIYlJfg+R+cYl91sghgc3zphtAU8hA0K5y8gLZ +QO1zSfSSvZdwoyKeI3H5oaJRpkSmxLrY X-Gm-Gg: ASbGncszWMPyeAR+QLOePFO+h8VnZHxZbtpNsC5rzSGzHsznyQXkbFNeRSVVEaDbFNj AURy/qTUaUsd46zWTsURgG8+iVXscIIMH03U6GcWgVByVdDiMC1s+3QRHHKud99BEQ2MBd0suVv CutuE/64kNl7i0sq0wwtUiGX0hBM96PUijAAwc0L4zFGOFNZFMNTiHskVi6pvNJ0RXwgsjeRaOP Fs59wwzlETl5W2WXs8Gdi57p4VXj7cZlNy80CpzaB4kLmF0W9izqzyAHpeYeyzi+3D+EBrPswrV GJRmkRuzXbJ5ofF2NfLDAzKfpb1DdMTWr0CQjtplG+Tc76snHQ== X-Google-Smtp-Source: AGHT+IHFIqPeXcacncIKqMLKL2JI/o45KBblfgnRTT4aUzXELTDnVBdAvVV8fWf4gbBujkTFAH1a86eOF33/ X-Received: by 2002:a17:907:96a0:b0:aaf:1183:ec2c with SMTP id a640c23a62f3a-ab6cfcb3ba8mr1284867166b.5.1738348485308; Fri, 31 Jan 2025 10:34:45 -0800 (PST) Received: from smtpservice.6wind.com ([185.13.181.2]) by smtp-relay.gmail.com with ESMTP id a640c23a62f3a-ab6e48ba162sm12494466b.116.2025.01.31.10.34.45; Fri, 31 Jan 2025 10:34:45 -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 1BBE219C93; Fri, 31 Jan 2025 19:34:44 +0100 (CET) From: Ariel Otilibili To: dev@dpdk.org Cc: stable@dpdk.org, Thomas Monjalon , David Marchand , Ariel Otilibili , Ciara Loftus , Maryam Tahhan , Stephen Hemminger Subject: [PATCH v5 0/2] Fix use after free, and refactor af_xdp_tx_zc Date: Fri, 31 Jan 2025 19:34:37 +0100 Message-Id: <20250131183439.909831-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, --- v5 * 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