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 E8F46460D0; Tue, 21 Jan 2025 09:54:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5749427C6; Tue, 21 Jan 2025 09:54:52 +0100 (CET) Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) by mails.dpdk.org (Postfix) with ESMTP id 4A6534066E for ; Tue, 21 Jan 2025 09:54:51 +0100 (CET) Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-3ce85545983so18954045ab.0 for ; Tue, 21 Jan 2025 00:54:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1737449690; x=1738054490; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xK5gs4iIzJfHrKiXfNDSrOreECfGliseoBb5H/5m5Qw=; b=HXfn3rIpqZmRu6H/haXf+aDs+HqCrZRhrtRQjq5IPEJyEzKmq5ekXTn3wBHMfiUsJZ qlvHyHVJMCnHx62rX1nAA/v27swu2LPOb38MUrnoBeZaqMYGnqr7QjI5siDmMZ4DDlsz 1VqXbAQYPE7PMryRP7a9gB3At26/aRc4LrRG/W7UeXsfT8pTqDPNk4QXMIQIB3h5CHEv IZoTChCPeZoj2it549FFHExvJdon9Q/Hhu/pDjufgaKo/vvx1nlTSj3kTm10peAI4SDc fpLLsIW3L0oHhv1IS7z6I0+k+dS1pPNAjJNjOuYP5aD0xebs1pXz18pM8mnpkCu+KMmn y3zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737449690; x=1738054490; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xK5gs4iIzJfHrKiXfNDSrOreECfGliseoBb5H/5m5Qw=; b=K5Uan9uwB7KmsTlzDutPAefDtnDG3rNCPN33u62/lmf8SA8FAwKSe0TnG1BSV63xcz l6PWLF4SZ1zXVYUgWYWLnfO4039oA7olueNEkQom+h+HNYtAHe41pHNeZ4wfk+SCDpMI Gk4MAU4qq04dmg7duWADvqIleTa5FriqX0DzaB7fM6nr1GnjbsdR5Wl96tOr0yYnmhkA Gamg8fEn+0dyrL7pxA/irMW7uNaPJo9vWkMN0n2Anx3qjuK/BeH+7SekRip91GYZDeAb 6Yl6BEMLs3fERqPIokGLsTJn7ecbjZ7fiHFsbM/XUip2sSY7uDO6f/jFAYmiND7ehF+N Y7FQ== X-Gm-Message-State: AOJu0YxX/GErafFRATOUlelyLjO4AQWZAnO0uGTrozq+jnF/2jqSa7Lj WX4K7QtKmTdz7dX5UQozi2cIF+aDw/r71Gcy7rUNsvpdU+Ttzsup4dxOhXvnfDVZ4K4VZusSEjy MTGkJ5sQ4YRUQU+6l2e7xYN5d+xSK8bNZyIKS6Q== X-Gm-Gg: ASbGnct/McYfIv2UUCibSOxicN/EXPRc+3PzwkedKIqAUqrBRO21H8WdNR91RL1ftZz /QH1hN8ptVzBpkpeB/2f6/xRvRfHcc3Q/aL/b69q7FyXuMwRI702ufn+Vkh7nZAopFvorEBhKNA SdYQhz X-Google-Smtp-Source: AGHT+IHOZmbeaDNPCoe9nW9q8HMnzAikuqU9ymhBuMHH8sYtDYZvQKNdvXHCengCR9s4Bpsz1DmDx8+OtzhWhthjBUk= X-Received: by 2002:a92:c98e:0:b0:3ce:3541:d80f with SMTP id e9e14a558f8ab-3ce8485cc3bmr184276645ab.0.1737449690500; Tue, 21 Jan 2025 00:54:50 -0800 (PST) MIME-Version: 1.0 References: <20250116195640.68885-1-ariel.otilibili@6wind.com> <20250116225151.188214-1-ariel.otilibili@6wind.com> <20250116225151.188214-2-ariel.otilibili@6wind.com> <30d650e7-4f7a-4cd1-92d2-02b049f3889e@redhat.com> In-Reply-To: <30d650e7-4f7a-4cd1-92d2-02b049f3889e@redhat.com> From: Ariel Otilibili Date: Tue, 21 Jan 2025 09:54:39 +0100 X-Gm-Features: AbW1kvbS6jtEYbN_prXYA_MHozkCaOfdmzLM0uEzMXEz74WKZ839sHg64zrAW-U Message-ID: Subject: Re: [PATCH v2 1/2] net/af_xdp: fix use after free in af_xdp_tx_zc() To: Maryam Tahhan Cc: dev@dpdk.org, stable@dpdk.org, Stephen Hemminger , Thomas Monjalon , David Marchand , Ciara Loftus Content-Type: multipart/alternative; boundary="0000000000009e2e37062c338792" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --0000000000009e2e37062c338792 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Maryam, On Mon, Jan 20, 2025 at 3:54=E2=80=AFPM Maryam Tahhan = wrote: > I think that you could've just set tx_bytes to the desc->len as this is > being set in all scenarios... > > tx_bytes +=3D desc->len; > Thanks for your feedback. I'll change that. --0000000000009e2e37062c338792 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Maryam,

On Mon, Jan 20, 2= 025 at 3:54=E2=80=AFPM Maryam Tahhan <mtahhan@redhat.com> wrote:
I think that you could've just set tx_bytes to the desc->len as this= is
being set in all scenarios...

tx_bytes +=3D desc->len;
=C2=A0Thanks for your feed= back. I'll change that.
--0000000000009e2e37062c338792--