From owner-freebsd-bugs@freebsd.org Mon Jan 30 19:46:45 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 3A2C0CC79F3 for ; Mon, 30 Jan 2017 19:46:45 +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 202A6102F for ; Mon, 30 Jan 2017 19:46:45 +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 v0UJkiKe017157 for ; Mon, 30 Jan 2017 19:46:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 216613] VIMAGE and TCP_RFC7413 panic: CURVNET_SET at /usr/src/sys/netinet/tcp_fastopen.c:270 tcp_fastopen_autokey_callout() curvnet=0 vnet=0 Date: Mon, 30 Jan 2017 19:46:45 +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 Many People X-Bugzilla-Who: alex.deiter@gmail.com 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 cc attachments.created 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: Mon, 30 Jan 2017 19:46:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216613 Bug ID: 216613 Summary: VIMAGE and TCP_RFC7413 panic: CURVNET_SET at /usr/src/sys/netinet/tcp_fastopen.c:270 tcp_fastopen_autokey_callout() curvnet=3D0 vnet=3D0 Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: alex.deiter@gmail.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Created attachment 179438 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179438&action= =3Dedit kernel config The most recent CURRENT [r312928] with enabled kernel options VIMAGE and TCP_RFC7413 panics spontaneously: (kgdb) where #0 doadump (textdump=3D0) at pcpu.h:222 #1 0xffffffff803a152b in db_dump (dummy=3D, dummy2=3D= , dummy3=3D,=20 dummy4=3D) at /usr/src/sys/ddb/db_command.c:546 #2 0xffffffff803a132f in db_command (cmd_table=3D) at /usr/src/sys/ddb/db_command.c:453 #3 0xffffffff803a10a4 in db_command_loop () at /usr/src/sys/ddb/db_command.c:506 #4 0xffffffff803a40ff in db_trap (type=3D, code=3D) at /usr/src/sys/ddb/db_main.c:248 #5 0xffffffff80b171e3 in kdb_trap (type=3D, code=3D, tf=3D) at /usr/src/sys/kern/subr_kdb.c:654 #6 0xffffffff80f77bc9 in trap (frame=3D0xfffffe0456d9e710) at /usr/src/sys/amd64/amd64/trap.c:537 #7 0xffffffff80f5a971 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:236 #8 0xffffffff80b1690b in kdb_enter (why=3D0xffffffff814cc5c0 "panic", msg= =3D) at cpufunc.h:63 #9 0xffffffff80acbd13 in vpanic (fmt=3D, ap=3D0xfffffe0456d9e8a0) at /usr/src/sys/kern/kern_shutdown.c:772 #10 0xffffffff80acbb63 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:710 #11 0xffffffff80cf945b in tcp_fastopen_autokey_callout (arg=3D0xfffffe0000d= 25f10) at /usr/src/sys/netinet/tcp_fastopen.c:270 #12 0xffffffff80ae5f36 in softclock_call_cc (c=3D, cc= =3D, direct=3D) at /usr/src/sys/kern/kern_timeout.c:729 #13 0xffffffff80ae64d4 in softclock (arg=3D) at /usr/src/sys/kern/kern_timeout.c:867 #14 0xffffffff80a8696f in intr_event_execute_handlers (p=3D, ie=3D) at /usr/src/sys/kern/kern_intr.c:1262 #15 0xffffffff80a86f76 in ithread_loop (arg=3D) at /usr/src/sys/kern/kern_intr.c:1275 #16 0xffffffff80a83545 in fork_exit (callout=3D0xffffffff80a86eb0 , arg=3D0xfffff80005493040, frame=3D0xfffffe0456d9eac0) at /usr/src/sys/kern/kern_fork.c:1038 #17 0xffffffff80f5aeae in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:611 #18 0x0000000000000000 in ?? () (kgdb)=20 (kgdb) up 11 #11 0xffffffff80cf945b in tcp_fastopen_autokey_callout (arg=3D0xfffffe0000d= 25f10) at /usr/src/sys/netinet/tcp_fastopen.c:270 270 CURVNET_SET(ctx->v); (kgdb)=20 (kgdb) list 265 { 266 struct tcp_fastopen_callout *ctx =3D arg; 267=20=20=20=20=20 268 KASSERT(ctx !=3D NULL, ("tcp_fastopen_autokey_callout: arg = is NULL")); 269=20=20=20=20=20 270 CURVNET_SET(ctx->v); 271 tcp_fastopen_autokey_locked(); 272 callout_reset(&ctx->c, V_tcp_fastopen_autokey * hz, 273 tcp_fastopen_autokey_callout, ctx); 274 CURVNET_RESTORE(); (kgdb)=20 (kgdb) info local saved_vnet =3D (struct vnet *) 0xffffffff81e64f38 saved_vnet_lpush =3D 0x0 (kgdb) print *saved_vnet $2 =3D {vnet_le =3D {le_next =3D 0x1, le_prev =3D 0x0}, vnet_magic_n =3D 0,= vnet_ifcnt =3D 0, vnet_sockcnt =3D 0, vnet_state =3D 0,=20 vnet_data_mem =3D 0x0, vnet_data_base =3D 256} (kgdb)=20 Kernel config: GENERIC + VIMAGE and TCP_RFC7413 options --=20 You are receiving this mail because: You are the assignee for the bug.=