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 9F1B2461BB for ; Fri, 7 Feb 2025 11:46:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9741442D2E; Fri, 7 Feb 2025 11:46:05 +0100 (CET) Received: from mail-wm1-f99.google.com (mail-wm1-f99.google.com [209.85.128.99]) by mails.dpdk.org (Postfix) with ESMTP id 630F542C24 for ; Fri, 7 Feb 2025 11:46:02 +0100 (CET) Received: by mail-wm1-f99.google.com with SMTP id 5b1f17b1804b1-4362bae4d7dso12990725e9.1 for ; Fri, 07 Feb 2025 02:46:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1738925162; x=1739529962; 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=vyURwO3+yL6WyaCBLqWEyNYl/znQ+E3Y0MUzq/hvxX8=; b=EapW9LRGk+JnrlbaQaI1BlHZl0MCwtKj4lKdcP2/yGJJNGn8p6uDLGDVzsRBPKKg95 4b+G+am0gTj3Wn4iHsNhYAQTJ2EyG1eVhcRKgnV6PW4O0/F0sUukESgVs0fyL3BHte/f jL5hz8vYb/m9qVibt+RvCVYaOLSvE/Hms5Ck9EjnipXOVAdsPhi7FWONFC+ukigLd16H FRXZGgiznzR1KRYfTdJD9kyX/xYJdkCrTo/58whM0QCdLOSWPTBfhdUB/ltaEKqgxqAb 7xFZm34O+mEB7hRfGnyorqClpQPf9+mn/LL91GghqVmB1D42HYpT2V8zVn4ucEfaHtxl xOKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738925162; x=1739529962; 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=vyURwO3+yL6WyaCBLqWEyNYl/znQ+E3Y0MUzq/hvxX8=; b=ocPf/2XjUDLLO3LqyysS/3yqj6vAouyVX96cyBkFSYN52JCNICT6eICnkXV3rpPZRv 2O18kvCsXFbg+k5bq4JZPIxyhm3q8AFllP29509bXt4b9uTiQj3a89VU3R2sgGKLnzVK JeO6qmpmwIHOl9mJxcJVkYSCOfG1l6Oujo06ffw6P1SsQu/A7n2bIQvKEAlH7YXFPl8U m80NP3nfsuchr4hwCnZ93tKHMYlf6KlDY9nXehvnS/oSEfsXjlFxUZWCmmT1AKzu3jF4 arAaYflIy+pUA0ZNdzbDJupKC53909CPUrsa0UIs/ZcTxU2GXcoCyvsT4mcEqRX2xj+p 1x+A== X-Gm-Message-State: AOJu0YztQYkixIGiM0o79sI4hg54HeBVmMH8iYlEUeAyXNsH/yTgyRWz CPgf4v+kgW4T829bszuKI5nBMgezLThcT/hzUsR7m6Hb8ABtV/yFV49lY7fZoOa2AUADIEYzisu eG3HUgchGbFTnt01z4CtzFdxtl4kDskMT X-Gm-Gg: ASbGncuAN4W/yoNQBQYEDqTv8YS3t4f/ydkA/41QWw0746QilIUY3sCwbe5FHLybDBS J0/mgUZbB1UPNTzLWvchU2zk8R3FqMjtR+oBgZt/uWkQvUWixnELURskhnvkTJoFKN948BeaJ/l HqnfYGaSPlHQo2h70/NUDAz32sIWs9eYV8GeXbU1aS1Txmet5Wfkd4UpbS1iBgYQd9nYkyLwKiW ecVWZ1FwJc+6lkSIra3R+qNZZcVUooe6Fi2RvoOpbPXdA3sXZJJ89Pk7DIG6dkFxAG3EA9Un0MD KU+ZV7ZG3Jm9BFoY8VaOmgnJzQmKxuEwzCRuPwsP6XlFH1aivQ== X-Google-Smtp-Source: AGHT+IEQ/T37zP16n7mpkzJbZj0pBp1H0ie53ocolhEnuGiSSfuwDzVrZKzjPk5l73uqubKxwcZ0psp2EPmR X-Received: by 2002:a05:600c:b44:b0:435:b064:7dce with SMTP id 5b1f17b1804b1-43925f3c487mr16826025e9.18.1738925161766; Fri, 07 Feb 2025 02:46:01 -0800 (PST) Received: from smtpservice.6wind.com ([185.13.181.2]) by smtp-relay.gmail.com with ESMTP id 5b1f17b1804b1-4391daa3b98sm3257125e9.9.2025.02.07.02.46.01; Fri, 07 Feb 2025 02:46:01 -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 97D421D385; Fri, 7 Feb 2025 11:46:01 +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 v9 0/2] Fix use after free, and refactor af_xdp_tx_zc Date: Fri, 7 Feb 2025 11:45:50 +0100 Message-Id: <20250207104552.1663519-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, --- v9 * 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