From owner-freebsd-bugs@freebsd.org Thu Dec 14 18:59:00 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 5E07DE8B7CF for ; Thu, 14 Dec 2017 18:59:00 +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 4C8E57330E for ; Thu, 14 Dec 2017 18:59:00 +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 vBEIx0e7018473 for ; Thu, 14 Dec 2017 18:59:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224346] [regression] e1000 rxcsum corruption Date: Thu, 14 Dec 2017 18:59:00 +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: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: gjb@FreeBSD.org 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 keywords bug_severity priority component assigned_to reporter cc 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.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 18:59:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224346 Bug ID: 224346 Summary: [regression] e1000 rxcsum corruption Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: regression Severity: Affects Many People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: gjb@FreeBSD.org CC: sbruno@FreeBSD.org There appears to be a regression in e1000-based drivers (em(4), igb(4)) whi= ch intermittently causes data corruption with rxcsum enabled. I do not have an exact timeframe, but it appears to be roughly within the past two months or= so. When building arm snapshots, math/mpfr is a dependent port which, for the p= ast several weeks had caused build failures due to a checksum mismatch. It is = not 100% reproducible, but this port specifically has been the consistent cause= of the build failures. When looking into the root cause of the checksum mismatch, I noticed that manually fetching the distfile for the math/mpfr port did not always produc= e an incorrect checksum. Looking closer at several different machines running various versions of 12-CURRENT ranging from September through early Novembe= r, some with different NICs (bge(4) being the most common non-e1000 NIC), it became apparent that the key common element for the intermittent corrupted distfile was the network driver. Looking further, I discovered that when rxcsum is turned off via ifconfig(8= ), the problem is no longer reproducible. It should be noted that the failures have not been observed with other port= s, and I am uncertain what about the master site for math/mpfr is special in t= his regard, but this testing has been repeated numerous times with similar resu= lts. With rxcsum enabled: # ifconfig igb0 igb0: flags=3D8843 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3De505bb # for i in $(seq 1 9); do fetch -4 -o ${i}.tar.xz http://www.mpfr.org/mpfr-current/mpfr-3.1.6.tar.xz; sha256 -q ${i}.tar.xz; = done 1.tar.xz 100% of 1107 kB 585 kBps 00m= 02s=20=20 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 2.tar.xz 100% of 1107 kB 597 kBps 00m= 02s 3cf25a685c0dda614e320e7263299f2897425a55302a51bc69a2df449d7d34a6 3.tar.xz 100% of 1107 kB 704 kBps 00m= 02s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 4.tar.xz 100% of 1107 kB 565 kBps 00m= 02s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 5.tar.xz 100% of 1107 kB 627 kBps 00m= 02s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 6.tar.xz 100% of 1107 kB 633 kBps 00m= 02s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 7.tar.xz 100% of 1107 kB 637 kBps 00m= 02s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 8.tar.xz 100% of 1107 kB 290 kBps 00m= 04s 8f429167a0225c62063b62f3fe6eff70a0dafcdee15d3ead7d90bb533d1b64bd 9.tar.xz 100% of 1107 kB 492 kBps 00m= 02s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 With rxcsum disabled: # ifconfig igb0 igb0: flags=3D8843 metric 0 mtu 1500 =20=20=20=20=20=20=20 options=3Dc505ba # for i in $(seq 1 9); do fetch -4 -o ${i}.tar.xz http://www.mpfr.org/mpfr-current/mpfr-3.1.6.tar.xz; sha256 -q ${i}.tar.xz; = done 1.tar.xz 100% of 1107 kB 202 kBps 00m= 06s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 2.tar.xz 100% of 1107 kB 269 kBps 00m= 04s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 3.tar.xz 100% of 1107 kB 445 kBps 00m= 03s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 4.tar.xz 100% of 1107 kB 127 kBps 00m= 09s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 5.tar.xz 100% of 1107 kB 384 kBps 00m= 03s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 6.tar.xz 100% of 1107 kB 182 kBps 00m= 06s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 7.tar.xz 100% of 1107 kB 451 kBps 00m= 02s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 8.tar.xz 100% of 1107 kB 310 kBps 00m= 03s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 9.tar.xz 100% of 1107 kB 223 kBps 00m= 05s 7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950 --=20 You are receiving this mail because: You are the assignee for the bug.=