From owner-freebsd-bugs@freebsd.org Wed Feb 22 05:43:28 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D64D5CE9DBF for ; Wed, 22 Feb 2017 05:43:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5FC6102C for ; Wed, 22 Feb 2017 05:43:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v1M5hSsi076479 for ; Wed, 22 Feb 2017 05:43:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 217287] if_em: "Off by 8" error in network streams under -CURRENT as of roughly Feb 1 Date: Wed, 22 Feb 2017 05:43:28 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jeff@baitis.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2017 05:43:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217287 Bug ID: 217287 Summary: if_em: "Off by 8" error in network streams under -CURRENT as of roughly Feb 1 Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: jeff@baitis.net Originally discovered in TrueOS UNSTABLE and tested / verified in vanilla FreeBSD kernel source as of 12.0-CURRENT FreeBSD 12.0-CURRENT #1 7a0e1ff53(master) -- originally recorded at https://github.com/trueos/trueos-core/issues/327 Summary: Corruption observed in network data within socket stream resulting in chang= es of a +8 value added, at seemingly random intervals, to bytes within the str= eam Hardware: CPU: Intel(R) Xeon(R) CPU E3-1225 v3 @ 3.20GHz Selected data from `lspci -v`: 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3 Processor DRAM Controller (rev 06) 00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217= -LM (rev 04) 00:1f.0 ISA bridge: Intel Corporation C226 Series Chipset Family Server Advanced SKU LPC Controller (rev 04) 00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SM= Bus Controller (rev 04) 01:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 730] (rev a1) Steps to reproduce: $ curl http://norvig.com/big.txt -o big.txt $ curl http://norvig.com/big.txt -o big2.txt $ sha256 big.txt=20 SHA256 (big.txt) =3D a36fe438864ad8c7b76ca310c2d1176689bbf79536f84338ebd3dc253997efd5 $ sha256 big2.txt=20 SHA256 (big2.txt) =3D 71f0fa4bf8585feae457dbfc0b48dd6dfef8dcd03a07220a5754e0876b9e4efc `diff -u big.txt big2.txt` results in lines such as: -There was a movement and an mxclamation from my right, and peering through= the gloom, I saw Whitney, pale, haggard, and unkempt, staring out at me. +There was a movement and an exclamation from my right, and peering through= the gloom, I saw Whitney, pale, haggard, and unkempt, staring out at me.=20=20= =20 -" 'You may as well face the matter,' said I; 'you have been caught in the = act, and no confession could make your guilt more heinous. If you but make such reparation as is in your power, by telling us where the beryls are, all sha= ll be forgiven and forgotten.' +" 'You may as well face the matter,' said I; 'you have been caught in the = act, and no confession could make your guilt more heino}s. If you but make such reparation as is in your power, by telling us where the beryls are, all sha= ll be forgiven and forgotten.' Diagnostic: +>>> ord('m') - ord('e') 8 +>>> ord('}') - ord('u') 8 Last working state: The last working version in -CURRENT occurs somewhere prior to commit=20 '8f3781173d79d5b83e19f59b10b54263976dd66e' which was merged into the TrueOS "drm-next" branch on Jan 27. --=20 You are receiving this mail because: You are the assignee for the bug.=