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 BDA05462A0 for ; Sun, 23 Feb 2025 22:53:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 95AB9402CF; Sun, 23 Feb 2025 22:53:04 +0100 (CET) Received: from mail-wr1-f100.google.com (mail-wr1-f100.google.com [209.85.221.100]) by mails.dpdk.org (Postfix) with ESMTP id 58421402CF for ; Sun, 23 Feb 2025 22:53:03 +0100 (CET) Received: by mail-wr1-f100.google.com with SMTP id ffacd0b85a97d-38f2f391864so2078414f8f.3 for ; Sun, 23 Feb 2025 13:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1740347583; x=1740952383; 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=TLCSQFVQv8VjFrJmGroWCfKrupqcgkYXy2v4bBh/kUQ=; b=N5MA0dTQ8ymw+oYdwpsuL2hGHz3WBWqWX0MGK9fpFO+7zHcx1b9Br+zAynB89iZaI1 0zJTcaOrj1C5sFauW5na1bQfYtkfh/fFVWifHb+5coTF4Wg2hc6Jl4SkrTURXKtTwXgq vQIjg13uyc5piR1kVVpWc/DqmRy2XjlZi9sG2Jel9mlJ2kCCypfJbeUEzX7u1PsawnxV OJRzhTTcTp155NsNsjbOYxqPl1get2IffvQXgXNyyrqMHuwMBn/Q1kbSr+RZIwu1h/4v 0MV3AVUIaJFXBtSqx3q5lUC5SYf3t0tFkpdYyDlh+7BvESE0HmteWLSJflrEOqnpTKw+ 7MIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740347583; x=1740952383; 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=TLCSQFVQv8VjFrJmGroWCfKrupqcgkYXy2v4bBh/kUQ=; b=TjIj917/F+uqZ//yYBddxPJ8r7ROYHEYYBE0Mwq6x9Evs40vRqv2v4amUD6dTKQnB3 IuuCPDePYKYVAbd05nwX0Xh9fvT3YTg+aJrx90jUezHaXZ6O5eYGUkULVqDwfRvtX82U p693DEBdnt6YeFicVh0usz8f7RDROgBCsk+2V6rNR9ckQZIR7ZwdP7CPbmYqQnzL9nwj ZzsklAUDeeWgUQ7MogLM5EfyLHP/3F6AglM+k+AaE8+R+hJvzqrv2ILEbW1VmeHRXSIU nRDNCySW1hwFTFom+lLlFjAlh2RvwX9Bpx6+EgjIviXyZD4QTxtEIj3XJfnLVz1dWmz+ /sSw== X-Forwarded-Encrypted: i=1; AJvYcCUwS68riWkqrNo6owKvAHzJD58AvxvCLQBy1eelWGGCRD6OW9Ou17KwcYDEt/TPk4SiGB+GWJU=@dpdk.org X-Gm-Message-State: AOJu0Yy5p1uwhLqCZ/fSFxz4E/szZqoMiOMPhvqckWYFMHyKI3B1nz6l ZfigpkC2pobE10BJsTSi44ZBH5+tAmmNLxNeSdGDKHnAG7PJ+kQRjt2nSMc2QJNya54LrWDNDMa G54Y82n6leSTLpRkx/PMoa2iRk0VMgLnj X-Gm-Gg: ASbGncvnHj+AMKA3pEr5rI7k30eY1T6U07z33fQNpuxkvW4Zuut1hx23VhJhIb30Jiy wVD6KA2Wg9h0Bi+S7FM1zKa1gM5hNyy57VjW2Cs6v3kyGfDG/S++xh/w7ZKWVvljqhM40oQtb3u 7UWz3AmWafF+i+44VwUdnyuJp3vZVQMX0iL6bBA0yK8cOVpHjBrqujxv2HwPMzvTx55r0/GVAxI gSSg86khTPryqT+/mNRkvlPBfrBP31QVtKPeDfWY5aSG3dVzenf/OLtSxUzuoI0rPSZoLfsLxMJ f+AvrDe1bEHnA9bg4lm7LMz6UXqqhGyWMopY6OcXv80o69e8RSyzOvtV85xf X-Google-Smtp-Source: AGHT+IGK0RPkGIRDs5Xb2qhSzjWmij2wor2Bgrnop7lsY1X6X2u22bAGKsCdRGvuWWGLR+X+Dm5w/6B9gCY2 X-Received: by 2002:a05:6000:1786:b0:38f:3e8d:dd42 with SMTP id ffacd0b85a97d-38f6f0d6ccemr9860648f8f.53.1740347582432; Sun, 23 Feb 2025 13:53:02 -0800 (PST) Received: from smtpservice.6wind.com ([185.13.181.2]) by smtp-relay.gmail.com with ESMTP id 5b1f17b1804b1-439b030bde2sm4555805e9.34.2025.02.23.13.53.02; Sun, 23 Feb 2025 13:53:02 -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 4E14C14F03; Sun, 23 Feb 2025 22:53:02 +0100 (CET) From: Ariel Otilibili To: dev@dpdk.org Cc: Thomas Monjalon , David Marchand , stable@dpdk.org, Stephen Hemminger , Ciara Loftus , Maryam Tahhan , Ariel Otilibili Subject: [PATCH v10 0/2] Fix use after free, and refactor af_xdp_tx_zc Date: Sun, 23 Feb 2025 22:52:57 +0100 Message-Id: <20250223215259.448723-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, --- v10 * no change v9 (https://inbox.dpdk.org/dev/20250207104552.1663519-1-ariel.otilibili@6wind.com/) * desc->len takes its value from mbuf (Maryam Tahhan) v8 (https://inbox.dpdk.org/dev/20250206204645.1564535-1-ariel.otilibili@6wind.com/) * fixed seg fault (https://inbox.dpdk.org/dev/CAFdtZitaNGhC5Q10ATNa7xXX1JbuWob=YzrcWmq8LTz+qjiu4A@mail.gmail.com/) * addressed feedback from Maryam Tahhan v7 (https://inbox.dpdk.org/dev/20250201100300.2194018-1-ariel.otilibili@6wind.com/) * no change * resent because CI didn't take patch-2 into the series v6 (https://inbox.dpdk.org/dev/20250131231018.2163893-1-ariel.otilibili@6wind.com/) * 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 | 75 ++++++++++++++++------------- 2 files changed, 42 insertions(+), 35 deletions(-) -- 2.30.2