From nobody Fri Dec 05 10:11:42 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dN6bz090bz6KmGZ for ; Fri, 05 Dec 2025 10:11:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dN6by4THnz49YY for ; Fri, 05 Dec 2025 10:11:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764929502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SuWalvkmZwsBxLtxpXzeoTHHtCn8c6/iZCwh10MtOFo=; b=fqK4IcREjfupQ0zNlK0EKu+ouA9kI490D6cDAth07aF+pO3IrVT/EDhlYs0SuAwVZNLLAP jcoLqEAXq2nFUm/G6A8wS1u7AJi/yA3730TGSCTF82gBABsp0c8pUV8eS1bMyr80CM/7t7 BAhp35femO1+CeVYkzS//PAxJ7I1vY1S6+mkVlzszD5kVysMNzAaqWv/FdAbrIpzXlainp ps2dimg0K00znbxTYCj/M9t7ZHZZFNJm1lU/lZ10wjZzv89Wcn+SVvvbC/YR5Kay4w/UtB H5sYZqRAWXwbyCnFakoYh48E0PX3CnZd1EbmB78qE5HWSAS1JS8fN2+RlhGQJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764929502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SuWalvkmZwsBxLtxpXzeoTHHtCn8c6/iZCwh10MtOFo=; b=VhhPiLDpO/mqFQJ6yQbZnFTV7B9f7zXT25TTzGfu+xU9E1zYcmbXW92sx0W8IvPCysE2oQ uvzBwHTAeMUw+mOm1Yge7AafBxB559iyqSm4xArL8CvNEpPTM5NItzhYVpNC8hxO9J0RTB /84GYkgsW6sJnufZMMdgEjwCVVFx2xmvNUkbUbV8CzTdXMXrCnkhaI/GVPTIQz+ujh6SDR 83foIpSch1jf+gN3GS+yjAhMGNm5e7Xb5o5QMIYrRPw5nPFwgNyScj9+I/fo4Jg1fIUPLR 2dX6xXmT8QUtdWd7GGZ18+R7+78v9M1aRqmmG5vT1obfgYwb0jrrQiBIYTCrkg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1764929502; a=rsa-sha256; cv=none; b=bTNi986/8ox1bX7I7MyTjBRqja4xGtz8ZT5qcCVK2nseSqTKkYvmdjG+9znwUW22p1RJXI SZ5V91dOf8KooG+axRPwRQ4rDRDwVx3S2RKcS3BiPyUGWmwVl8L1MuWdnteyD0D/2pCU5e 8TEKer402tpUC1odgMKHcPx8s0wOx6RkuIYMUxbRH4BnpeOkVD3YfFgfiMLSvLliuE243r 5TPQBg7mem08urJNtruL52rIpzfg1L/TgrJYzII+L5kOHbNmGTd+HI5u6fSTcd17cWszm4 1IsX2oXUYe/7e3cadNqjojOhLBt4G/kHz4wFqpoXb5E44FXNF7aDhQBEUq7Yuw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4dN6by3pyDz14yR for ; Fri, 05 Dec 2025 10:11:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 5B5ABglJ028294 for ; Fri, 5 Dec 2025 10:11:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5B5ABgxO028293 for bugs@FreeBSD.org; Fri, 5 Dec 2025 10:11:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 291420] [epair] Bad UDP packet checksum with epair(4) and txcsum enabled Date: Fri, 05 Dec 2025 10:11:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dmitryluhtionov@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org 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 attachments.created Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D291420 Bug ID: 291420 Summary: [epair] Bad UDP packet checksum with epair(4) and txcsum enabled Product: Base System Version: 14.3-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dmitryluhtionov@gmail.com Created attachment 265874 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D265874&action= =3Dedit traffic dump Bad udp checksum, when `txcsum` enabled on `epair` interface Host mashine ``` bge1: flags=3D1008943 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3Dc009b ether c4:34:6b:b8:e4:39 media: Ethernet autoselect (1000baseT ) status: active nd6 options=3D29 bridge1: flags=3D1008843 m= etric 0 mtu 1500 options=3D0 ether 58:9c:fc:10:ff:ca id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: epair1a flags=3D143 ifmaxaddr 0 port 19 priority 128 path cost 2000 member: bge1 flags=3D143 ifmaxaddr 0 port 2 priority 128 path cost 55 groups: bridge epair1a: flags=3D1008943 metric 0 mtu 1500 options=3D20000b ether 02:ef:5d:1e:0d:0a groups: epair media: Ethernet 10Gbase-T (10Gbase-T ) status: active nd6 options=3D9 ``` Inside jail ``` epair1b: flags=3D1008843 m= etric 0 mtu 1500 options=3D20000b ether 02:ef:5d:1e:0d:0b inet 193.34.20.8 netmask 0xfffffff0 broadcast 193.34.20.15 groups: epair media: Ethernet 10Gbase-T (10Gbase-T ) status: active nd6 options=3D29 ``` 193.34.20.4 - neighbors machine Trying `drill i.ua @193.34.20.4` inside jail On neighbor machine `bad checksum` counter increased by three ``` # netstat -sp udp udp: 5505590454 datagrams received 0 with incomplete header 17 with bad data length field 46288 with bad checksum ``` PCAP file attached first three packets - unanswered (bad checksum) fourth packet - with disabled `txcsum` on 'epair1a` fifth packet - answer to the fourth enable/disable txcsum on bge1 interface - does not give results enable/disable net.inet.udp.checksum - does not give results Additional dev.bge.3.forced_udpcsum: 0 dev.bge.2.forced_udpcsum: 0 dev.bge.1.forced_udpcsum: 0 dev.bge.0.forced_udpcsum: 0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D ALSO. It's unbelievable - but it's true I have no idea why it works this way. Inside Jail # ping 193.34.20.5 PING 193.34.20.5 (193.34.20.5): 56 data bytes ^C --- 193.34.20.5 ping statistics --- 2 packets transmitted, 0 packets received, 100.0% packet loss Press any key to continue... # ping 193.34.20.4 PING 193.34.20.4 (193.34.20.4): 56 data bytes 64 bytes from 193.34.20.4: icmp_seq=3D0 ttl=3D64 time=3D0.702 ms 64 bytes from 193.34.20.4: icmp_seq=3D1 ttl=3D64 time=3D0.465 ms --=20 You are receiving this mail because: You are the assignee for the bug.=