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 8D48D454CF; Sat, 22 Jun 2024 18:08:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FCBB4028B; Sat, 22 Jun 2024 18:08:05 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id A4EEB400D6 for ; Sat, 22 Jun 2024 18:08:03 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 8A4FF454D0; Sat, 22 Jun 2024 18:08:03 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/core Bug 1472] mbuf: some dynamic fields are mishandled if IOVA as PA is disabled during build Date: Sat, 22 Jun 2024 16:08:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 22.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: mb@smartsharesystems.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: multipart/alternative; boundary=17190724830.dCe06b.3441172 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 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 --17190724830.dCe06b.3441172 Date: Sat, 22 Jun 2024 18:08:03 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1472 Bug ID: 1472 Summary: mbuf: some dynamic fields are mishandled if IOVA as PA is disabled during build Product: DPDK Version: 22.11 Hardware: All OS: All Status: UNCONFIRMED Severity: major Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: mb@smartsharesystems.com Target Milestone: --- If IOVA as PA is disabled during build (i.e. !RTE_IOVA_AS_PA), a second dyn= amic field [1] becomes available in the rte_mbuf structure. This is fine. rte_mbuf_dynfield_copy() [2] does not copy this field, although it should. In turn, this also affects __rte_pktmbuf_copy_hdr(), which in turn affects rte_pktmbuf_attach() and rte_pktmbuf_copy(). The bug was introduced by the patch [3] making the dynfield2 available for dynamic fields. The bug is present in DPDK 22.11(incl. 22.11.5) - 24.07-rc1. The bug is not present in DPDK 22.07. [1]: https://elixir.bootlin.com/dpdk/v22.11.5/source/lib/mbuf/rte_mbuf_core.h#L6= 09 [2]: https://elixir.bootlin.com/dpdk/v22.11.5/source/lib/mbuf/rte_mbuf.h#L1= 121 [3]: https://git.dpdk.org/dpdk/commit/lib/mbuf/rte_mbuf_dyn.c?id=3D03b57eb7ab9a1= 203ed6eee67ec0d8ffbc44ca750 --=20 You are receiving this mail because: You are the assignee for the bug.= --17190724830.dCe06b.3441172 Date: Sat, 22 Jun 2024 18:08:03 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1472
Summary mbuf: some dynamic fields are mishandled if IOVA as PA is dis= abled during build
Product DPDK
Version 22.11
Hardware All
OS All
Status UNCONFIRMED
Severity major
Priority Normal
Component core
Assignee dev@dpdk.org
Reporter mb@smartsharesystems.com
Target Milestone ---

If IOVA as PA is disabled during b=
uild (i.e. !RTE_IOVA_AS_PA), a second dynamic
field [1] becomes available in the rte_mbuf structure. This is fine.

rte_mbuf_dynfield_copy() [2] does not copy this field, although it should.

In turn, this also affects __rte_pktmbuf_copy_hdr(), which in turn affects
rte_pktmbuf_attach() and rte_pktmbuf_copy().

The bug was introduced by the patch [3] making the dynfield2 available for
dynamic fields.

The bug is present in DPDK 22.11(incl. 22.11.5) - 24.07-rc1.
The bug is not present in DPDK 22.07.

[1]:
https://elixir.bootlin.com/dpdk/v22.11.5/source/lib/mbuf/rte=
_mbuf_core.h#L609
[2]: https://elixir.bootlin.com/dpdk/v22.11.5/source/lib/mbuf/rt=
e_mbuf.h#L1121
[3]:
https://git.dpdk.org/dpdk/commit/li=
b/mbuf/rte_mbuf_dyn.c?id=3D03b57eb7ab9a1203ed6eee67ec0d8ffbc44ca750
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17190724830.dCe06b.3441172--