Date: Mon, 30 Jan 2017 19:46:45 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-amd64@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 Message-ID: <bug-216613-6@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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<value optimized out>, dummy2=3D= <value optimized out>, dummy3=3D<value optimized out>,=20 dummy4=3D<value optimized out>) at /usr/src/sys/ddb/db_command.c:546 #2 0xffffffff803a132f in db_command (cmd_table=3D<value optimized out>) 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<value optimized out>, code=3D<va= lue optimized out>) at /usr/src/sys/ddb/db_main.c:248 #5 0xffffffff80b171e3 in kdb_trap (type=3D<value optimized out>, code=3D<v= alue optimized out>, tf=3D<value optimized out>) 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<value optimized out>) at cpufunc.h:63 #9 0xffffffff80acbd13 in vpanic (fmt=3D<value optimized out>, ap=3D0xfffffe0456d9e8a0) at /usr/src/sys/kern/kern_shutdown.c:772 #10 0xffffffff80acbb63 in panic (fmt=3D<value optimized out>) 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<value optimized out>, cc= =3D<value optimized out>, direct=3D<value optimized out>) at /usr/src/sys/kern/kern_timeout.c:729 #13 0xffffffff80ae64d4 in softclock (arg=3D<value optimized out>) at /usr/src/sys/kern/kern_timeout.c:867 #14 0xffffffff80a8696f in intr_event_execute_handlers (p=3D<value optimized= out>, ie=3D<value optimized out>) at /usr/src/sys/kern/kern_intr.c:1262 #15 0xffffffff80a86f76 in ithread_loop (arg=3D<value optimized out>) at /usr/src/sys/kern/kern_intr.c:1275 #16 0xffffffff80a83545 in fork_exit (callout=3D0xffffffff80a86eb0 <ithread_= loop>, 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 on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216613-6>