From owner-freebsd-net@freebsd.org Tue Jan 7 12:05:07 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C5BDB1D8B98 for ; Tue, 7 Jan 2020 12:05:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47sWKH4tBCz44Jm for ; Tue, 7 Jan 2020 12:05:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A75C81D8B92; Tue, 7 Jan 2020 12:05:07 +0000 (UTC) Delivered-To: net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A720F1D8B91 for ; Tue, 7 Jan 2020 12:05:07 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47sWKH43HFz44Jl for ; Tue, 7 Jan 2020 12:05:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6D68F269F1 for ; Tue, 7 Jan 2020 12:05:07 +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 007C570t057935 for ; Tue, 7 Jan 2020 12:05:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 007C57Dd057926 for net@FreeBSD.org; Tue, 7 Jan 2020 12:05:07 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: net@FreeBSD.org Subject: [Bug 243126] Assertion fl->ifl_cidx == cidx failed at /usr/src/sys/net/iflib.c:2531 Date: Tue, 07 Jan 2020 12:05:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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 Some People X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2020 12:05:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243126 --- Comment #2 from Andriy Gapon --- Looking at vmxnet3_isc_rxd_pkt_get, I see that both iri_cidx and ifr_cq_cidx will be set to cqidx after the last fragment. irf_idx of each fragment is = set to rxd_idx of the rspective descriptor. Getting back to the assertion in rxd_frag_to_sd(): (kgdb) p *ri $4 =3D {iri_qsidx =3D 0, iri_vtag =3D 0, iri_len =3D 1514, iri_cidx =3D 477= , iri_ifp =3D 0xfffff80002d1a800, iri_frags =3D 0xfffffe00003fe140, iri_flowid =3D 600473= 664, iri_csum_flags =3D 251658240, iri_csum_data =3D 65535, iri_flags =3D 0 '\00= 0', iri_nfrags =3D 1 '\001', iri_rsstype =3D 130 '\202', iri_pad =3D 0 '\000'} (kgdb) p ri->iri_frags[0] $13 =3D {irf_flid =3D 0 '\000', irf_idx =3D 142, irf_len =3D 1514} So, irf_idx =3D 142 in the first and the only fragment. irf_flid is zero, so: $15 =3D {ifl_cidx =3D 141, ifl_pidx =3D 140, ifl_credits =3D 254, ifl_gen = =3D 1 '\001', ifl_rxd_size =3D 0 '\000', ifl_rx_bitmap =3D 0xfffff80002daa8c0, ifl_fragid= x =3D 139, ifl_size =3D 256, ifl_buf_size =3D 2048, ifl_cltype =3D 1,=20 ifl_zone =3D 0xfffff80002957000, ifl_sds =3D {ifsd_map =3D 0xfffff80002d2= d800, ifsd_m =3D 0xfffff80002d1b800, ifsd_cl =3D 0xfffff80002d1b000, ifsd_ba =3D 0xfffff80002d1e000}, ifl_rxq =3D 0xfffffe00003fe000, ifl_id =3D 0 '\000',=20 ifl_buf_tag =3D 0xfffff80002cf8100, ifl_ifdi =3D 0xfffff80002d17da8, ifl_bus_addrs =3D {32051296256, 32050450432, 31627747328, 31625582592, 31637278720, 6269554688, 6269536256, 6272448512, 6512416768, 6269433856, 5922217984,=20 6273015808, 31638720512, 6261741568, 6268790784, 29797609472, 627156992= 0, 6271576064, 6271574016, 6271580160, 6271578112, 6271584256, 6271582208, 6271588352, 6271739904, 6271733760, 6271735808, 6271729664, 6271731712,=20 6271725568, 6271727616, 6271721472}, ifl_vm_addrs =3D {0xfffff8077667f8= 00 ... So, ifl_cidx is 141 and that's the actual problem. 477 that I mentioned in the previous comment is irrelevant. The real problem is ifl_cidx !=3D irf_idx, 141 !=3D 142. Still no clue how that could happen. --=20 You are receiving this mail because: You are the assignee for the bug.=