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 26AA346C54;
Wed, 30 Jul 2025 17:18:26 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
by mails.dpdk.org (Postfix) with ESMTP id E1D16402E6;
Wed, 30 Jul 2025 17:18:25 +0200 (CEST)
Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178])
by mails.dpdk.org (Postfix) with ESMTP id BFC13402C3
for ; Wed, 30 Jul 2025 17:18:24 +0200 (CEST)
Received: by inbox.dpdk.org (Postfix, from userid 33)
id A4DFA46C55; Wed, 30 Jul 2025 17:18:24 +0200 (CEST)
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/core Bug 1761] rte_raw_cksum_mbuf obtain incorrect cksum when
a packet in mbuf split mode.
Date: Wed, 30 Jul 2025 15:18:23 +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: unspecified
X-Bugzilla-Keywords:
X-Bugzilla-Severity: critical
X-Bugzilla-Who: yanglanping@bytedance.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=17538887040.0CCA229.508620
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: https://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
--17538887040.0CCA229.508620
Date: Wed, 30 Jul 2025 17:18:24 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
https://bugs.dpdk.org/show_bug.cgi?id=3D1761
Bug ID: 1761
Summary: rte_raw_cksum_mbuf obtain incorrect cksum when a
packet in mbuf split mode.
Product: DPDK
Version: unspecified
Hardware: All
OS: Linux
Status: UNCONFIRMED
Severity: critical
Priority: Normal
Component: core
Assignee: dev@dpdk.org
Reporter: yanglanping@bytedance.com
Target Milestone: ---
Hi.
This issue is about calc cksum, in rte_raw_cksum_mbuf function, when the pa=
cket
data is stored in multiple mbufs, below code easy overflow.
File rte_cksum.h
line 159: if (done & 1)
line 160: tmp =3D rte_bswap16((uint16_t)tmp);=20
line 161: sum +=3D tmp;
The tmp(uint32_t) variable can easily be greater than 0xFFFF, so (uint16_t)=
tmp
will discard the high 16bit, cause incorrect result.
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--17538887040.0CCA229.508620
Date: Wed, 30 Jul 2025 17:18:24 +0200
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
Bug ID
1761
Summary
rte_raw_cksum_mbuf obtain incorrect cksum when a packet in mb=
uf split mode.
Product
DPDK
Version
unspecified
Hardware
All
OS
Linux
Status
UNCONFIRMED
Severity
critical
Priority
Normal
Component
core
Assignee
dev@dpdk.org
Reporter
yanglanping@bytedance.com
Target Milestone
---
You are receiving this mail because:
You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
=
--17538887040.0CCA229.508620--