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 4834C432E4;
Thu, 9 Nov 2023 13:34:03 +0100 (CET)
Received: from mails.dpdk.org (localhost [127.0.0.1])
by mails.dpdk.org (Postfix) with ESMTP id 0DEAE402F0;
Thu, 9 Nov 2023 13:34:03 +0100 (CET)
Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178])
by mails.dpdk.org (Postfix) with ESMTP id 49DEE402F1
for ; Thu, 9 Nov 2023 13:34:01 +0100 (CET)
Received: by inbox.dpdk.org (Postfix, from userid 33)
id 3B883432E5; Thu, 9 Nov 2023 13:34:01 +0100 (CET)
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [Bug 1312] When iterating through the mbufs, mbuf->nb_segs indicates
there are 21 segments, but when reaching the 8th mbuf,
its mbuf->next pointer is NULL
Date: Thu, 09 Nov 2023 12:34:01 +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: 20.11
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: tingsong.zheng@gmail.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=16995332410.3c82fD6.352740
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
--16995332410.3c82fD6.352740
Date: Thu, 9 Nov 2023 13:34:01 +0100
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=3D1312
Bug ID: 1312
Summary: When iterating through the mbufs, mbuf->nb_segs
indicates there are 21 segments, but when reaching the
8th mbuf, its mbuf->next pointer is NULL
Product: DPDK
Version: 20.11
Hardware: ARM
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: tingsong.zheng@gmail.com
Target Milestone: ---
The version of DPDK is 20.11.
When iterating through the mbufs, mbuf->nb_segs indicates there are 21
segments, but when reaching the 8th mbuf, its mbuf->next pointer is NULL.
I used ASAN tool to check and found no memory out-of-bounds errors before
encountering the NULL value in the mbuf's 'next' pointer.
My scenario involves sending approximately 30,000 large packets using a sen=
der
via the kernel protocol stack, where the network card's MTU is 1500. On the
receiver side, I'm using DPDK to capture these packets. In Thread 1, I'm
receiving the packets using rte_eth_rx_burst, then processing them through =
the
IP fragment reassembly process. Upon receiving a complete packet, I enqueue=
the
mbuf into an 'rte_ring' named 'test'. In Thread 2, I dequeue the mbufs from=
the
'test' rte_ring. I then iterate through these mbufs to copy data from each
segment mbuf. However, I encounter an issue with some mbufs having a 'next'
pointer set as NULL."
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--16995332410.3c82fD6.352740
Date: Thu, 9 Nov 2023 13:34:01 +0100
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
When iterating through the mbufs, mbuf->nb_segs indicates =
there are 21 segments, but when reaching the 8th mbuf, its mbuf->next po=
inter is NULL
Product
DPDK
Version
20.11
Hardware
ARM
OS
Linux
Status
UNCONFIRMED
Severity
normal
Priority
Normal
Component
core
Assignee
dev@dpdk.org
Reporter
tingsong.zheng@gmail.com
Target Milestone
---
The version of DPDK is 20.11.
When iterating through the mbufs, mbuf->nb_segs indicates there are 21
segments, but when reaching the 8th mbuf, its mbuf->next pointer is NULL.
I used ASAN tool to check and found no memory out-of-bounds errors before
encountering the NULL value in the mbuf's 'next' pointer.
My scenario involves sending approximately 30,000 large packets using a sen=
der
via the kernel protocol stack, where the network card's MTU is 1500. On the
receiver side, I'm using DPDK to capture these packets. In Thread 1, I'm
receiving the packets using rte_eth_rx_burst, then processing them through =
the
IP fragment reassembly process. Upon receiving a complete packet, I enqueue=
the
mbuf into an 'rte_ring' named 'test'. In Thread 2, I dequeue the mbufs from=
the
'test' rte_ring. I then iterate through these mbufs to copy data from each
segment mbuf. However, I encounter an issue with some mbufs having a 'next'
pointer set as NULL."