From owner-freebsd-bugs@freebsd.org Tue Apr 24 17:23:08 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22D1AFAC9A8 for ; Tue, 24 Apr 2018 17:23:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A58C17D243 for ; Tue, 24 Apr 2018 17:23:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 609F2FAC9A7; Tue, 24 Apr 2018 17:23:07 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AD1EFAC9A6 for ; Tue, 24 Apr 2018 17:23:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C473C7D21F for ; Tue, 24 Apr 2018 17:23:06 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0FD6B19912 for ; Tue, 24 Apr 2018 17:23:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3OHN5GZ049354 for ; Tue, 24 Apr 2018 17:23:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3OHN5lQ049353 for bugs@FreeBSD.org; Tue, 24 Apr 2018 17:23:05 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 227749] post-panic assertion failed: panic: Assertion (*xp & ~LK_EXCLUSIVE_SPINNERS) == LK_SHARERS_LOCK(1) failed at /usr/src/sys/kern/kern_lock.c:541 Date: Tue, 24 Apr 2018 17:23:06 +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: jtl@freebsd.org 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 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: Tue, 24 Apr 2018 17:23:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227749 Bug ID: 227749 Summary: post-panic assertion failed: panic: Assertion (*xp & ~LK_EXCLUSIVE_SPINNERS) =3D=3D LK_SHARERS_LOCK(1) failed at /usr/src/sys/kern/kern_lock.c:541 Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jtl@freebsd.org Running an INVARIANTS kernel, we saw a kernel panic (in tcp_output(), if it matters). Then, we tripped over this assertion. Due to the double-fault, the system rebooted without a coredump. panic: tcp_output: len <=3D tso_segsz cpuid =3D 16 time =3D 1524314516 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0c1bee5= 1f0 vpanic() at vpanic+0x18d/frame 0xfffffe0c1bee5250 vpanic() at vpanic/frame 0xfffffe0c1bee52d0 tcp_output() at tcp_output+0x1f33/frame 0xfffffe0c1bee5490 tcp_do_segment() at tcp_do_segment+0x23aa/frame 0xfffffe0c1bee5580 tcp_input_with_port() at tcp_input_with_port+0xed7/frame 0xfffffe0c1bee56d0 tcp_input() at tcp_input+0xb/frame 0xfffffe0c1bee56e0 ip_input() at ip_input+0x33c/frame 0xfffffe0c1bee5740 netisr_dispatch_src() at netisr_dispatch_src+0x83/frame 0xfffffe0c1bee57a0 ether_demux() at ether_demux+0x162/frame 0xfffffe0c1bee57d0 ether_nh_input() at ether_nh_input+0x346/frame 0xfffffe0c1bee5810 netisr_dispatch_src() at netisr_dispatch_src+0x83/frame 0xfffffe0c1bee5870 ether_input() at ether_input+0x62/frame 0xfffffe0c1bee58a0 tcp_lro_flush() at tcp_lro_flush+0x217/frame 0xfffffe0c1bee58c0 tcp_lro_flush_all() at tcp_lro_flush_all+0x13b/frame 0xfffffe0c1bee5900 service_iq() at service_iq+0x7d1/frame 0xfffffe0c1bee59c0 t4_intr() at t4_intr+0x30/frame 0xfffffe0c1bee59e0 intr_event_execute_handlers() at intr_event_execute_handlers+0x99/frame 0xfffffe0c1bee5a20 ithread_loop() at ithread_loop+0xb7/frame 0xfffffe0c1bee5a70 fork_exit() at fork_exit+0x84/frame 0xfffffe0c1bee5ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0c1bee5ab0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- panic: Assertion (*xp & ~LK_EXCLUSIVE_SPINNERS) =3D=3D LK_SHARERS_LOCK(1) f= ailed at /usr/src/sys/kern/kern_lock.c:541 cpuid =3D 16 time =3D 1524314516 Uptime: 19m34s Someone needs to modify this code to do the right thing in the post-panic world. For what its worth, ignoring the assert lets a coredump finish correctly, and is probably the "right thing" to do in this case. --=20 You are receiving this mail because: You are the assignee for the bug.=