From owner-freebsd-current@freebsd.org Tue Jan 21 17:24:50 2020 Return-Path: Delivered-To: freebsd-current@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 436FE1FCA60 for ; Tue, 21 Jan 2020 17:24:50 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 482Flk0ZyHz3KcL for ; Tue, 21 Jan 2020 17:24:50 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: by mailman.nyi.freebsd.org (Postfix) id 13F0C1FCA5F; Tue, 21 Jan 2020 17:24:50 +0000 (UTC) Delivered-To: current@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 13AF91FCA5E for ; Tue, 21 Jan 2020 17:24:50 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from violet.van-laarhoven.org (violet.van-laarhoven.org [195.201.116.25]) by mx1.freebsd.org (Postfix) with ESMTP id 482Flh3L6qz3KcJ for ; Tue, 21 Jan 2020 17:24:48 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from [IPv6:2a02:58:4c:6601:5da9:a368:51ff:90a7] (unknown [IPv6:2a02:58:4c:6601:5da9:a368:51ff:90a7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by violet.van-laarhoven.org (Postfix) with ESMTPSA id 9FBE59CCAD for ; Tue, 21 Jan 2020 18:24:40 +0100 (CET) From: Nick Hibma Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: panic: Assertion in_epoch(net_epoch_preempt) failed at ... src/sys/net/if.c:3694 Date: Tue, 21 Jan 2020 18:24:39 +0100 References: <20191008121519.GS1263@albert.catwhisker.org> <20191009120451.GK1263@albert.catwhisker.org> To: current@freebsd.org In-Reply-To: <20191009120451.GK1263@albert.catwhisker.org> Message-Id: <83DFEF06-AB56-4F5C-A11C-9888C85A34F5@van-laarhoven.org> X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 482Flh3L6qz3KcJ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of nick@van-laarhoven.org designates 195.201.116.25 as permitted sender) smtp.mailfrom=nick@van-laarhoven.org X-Spamd-Result: default: False [-2.56 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[van-laarhoven.org]; MV_CASE(0.50)[]; IP_SCORE(-0.86)[ipnet: 195.201.0.0/16(-2.74), asn: 24940(-1.54), country: DE(-0.02)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2020 17:24:50 -0000 When using a trivial program to read from the divert socket and post = back the machine panics instantly when a packet is sent to userland and = back again (incoming packet for the interface, so ifname is set). This = is current from today with no changes Any pointers as to how to fix this? Thanks in advance for any help. Nick Hibma nick@van-laarhoven.org -- Open Source: We stand on the shoulders of giants. Unread portion of the kernel message buffer: panic: Assertion in_epoch(net_epoch_preempt) failed at = /usr/src/sys/netinet/in.c:968 cpuid =3D 0 time =3D 1579626632 KDB: stack backtrace: db_trace_self_wrapper(3836393a,1a9000a,0,1fdc088c,bd5320,...) at = db_trace_self_wrapper+0x2a/frame 0x1fdc0860 kdb_backtrace(2,1e03ebc,1fdc08e8,14683a4,20b72500,...) at = kdb_backtrace+0x2e/frame 0x1fdc08c0 vpanic(1461278,1fdc0904,1fdc0904,1fdc0918,11355ac,...) at = vpanic+0x11f/frame 0x1fdc08e4 panic(1461278,1512573,154b440,3c8,20b72500,...) at panic+0x14/frame = 0x1fdc08f8 in_broadcast(f02000a,94df400,20b72594,1dc0ae8,2001be24,...) at = in_broadcast+0x8c/frame 0x1fdc0918 div_send(2001bcc0,0,20b72500,9082e10,0,177f1a80) at div_send+0x1bd/frame = 0x1fdc0958 sosend_generic(2001bcc0,9082e10,1fdc0a18,0,0,0,177f1a80) at = sosend_generic+0x3c5/frame 0x1fdc09b4 sosend(2001bcc0,9082e10,1fdc0a18,0,0,...) at sosend+0x50/frame = 0x1fdc09e4 kern_sendit(177f1a80,3,1fdc0aa0,0,0,0) at kern_sendit+0x1b4/frame = 0x1fdc0a50 sendit(1fdc0aa0,0) at sendit+0x196/frame 0x1fdc0a88 sys_sendto(177f1a80,177f1d0c) at sys_sendto+0x50/frame 0x1fdc0ac8 syscall(1fdc0ba8,3b,3b,3b,54,...) at syscall+0x2db/frame 0x1fdc0b9c Xint0x80_syscall() at 0xffc033c9/frame 0x1fdc0b9c --- syscall (133, FreeBSD ELF32, sys_sendto), eip =3D 0xffc01230, esp =3D = 0xffc07fe8, ebp =3D 0xffbfeb68 --- KDB: enter: panic 0x00fd1129 in doadump (textdump=3D0) at = /usr/src/sys/kern/kern_shutdown.c:392 392 savectx(&dumppcb); (kgdb) quit {e}nick@fimkjecurrent:/home/nick % svn info /usr/src Path: /usr/src Working Copy Root Path: /usr/src URL: svn+ssh://repo.freebsd.org/base/head Relative URL: ^/head Repository Root: svn+ssh://repo.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 356907 Node Kind: directory Schedule: normal Last Changed Author: jhibbits Last Changed Rev: 356904 Last Changed Date: 2020-01-20 05:01:35 +0100 (Mon, 20 Jan 2020) > On 9 Oct 2019, at 14:04, David Wolfskill wrote: >=20 > On Tue, Oct 08, 2019 at 05:15:19AM -0700, David Wolfskill wrote: >> This was on my laptop (build machine, which was updated in parallel, >> but uses a different NIC, had no issues) after a src update from >> r353176 to r353298; laptop's NIC is wlan(4) (which is iwn(4), in >> this case). >=20 > After restoring the /boot/*.old set, I was able to reboot & update = from > r353298 to r353336. The subsequent reboot seemed OK ... until the > keyboard & mouse were enabled (under X11; I use xdm on the laptop). >=20 > Then I got a slightly different panic: >=20 > panic: Assertion in_epoch(net_epoch_preempt) failed at = /usr/src/sys/net/if.c:356 >=20 > Backtrace: >=20 > panic: Assertion in_epoch(net_epoch_preempt) failed at = /usr/src/sys/net/if.c:356 > cpuid =3D 0 > time =3D 1570621553 > KDB: stack backtrace: > db_trace_self_wrapper() at 0xffffffff8049ebab =3D = db_trace_self_wrapper+0x2b/frame 0xfffffe1072956580 > vpanic() at 0xffffffff80b978fd =3D vpanic+0x19d/frame = 0xfffffe10729565d0 > panic() at 0xffffffff80b97693 =3D panic+0x43/frame 0xfffffe1072956630 > if_ref() at 0xffffffff80ca1b10 =3D if_ref/frame 0xfffffe1072956650 > sysctl_ifdata() at 0xffffffff80cb247d =3D sysctl_ifdata+0x4d/frame = 0xfffffe1072956760 > sysctl_root_handler_locked() at 0xffffffff80ba714b =3D = sysctl_root_handler_locked+0x7b/frame 0xfffffe10729567a0 > sysctl_root() at 0xffffffff80ba64dc =3D sysctl_root+0x20c/frame = 0xfffffe1072956820 > userland_sysctl() at 0xffffffff80ba6bab =3D = userland_sysctl+0x17b/frame 0xfffffe10729568d0 > sys___sysctl() at 0xffffffff80ba69ef =3D sys___sysctl+0x5f/frame = 0xfffffe1072956980 > amd64_syscall() at 0xffffffff810480f4 =3D amd64_syscall+0x2d4/frame = 0xfffffe1072956ab0 > fast_syscall_common() at 0xffffffff8101eaa0 =3D = fast_syscall_common+0x101/frame 0xfffffe1072956ab0 > --- syscall (202, FreeBSD ELF64, sys___sysctl), rip =3D 0x8014d4d2a, = rsp =3D 0x7fffffffeaa8, rbp =3D 0x7fffffffeae0 --- > KDB: enter: panic >=20 >> The ddb "dump" command recorded a dump, which I managed to capture; = the >> information may be found at >> http://www.catwhisker.org/~david/FreeBSD/head/r353298/ >=20 > This one is at http://www.catwhisker.org/~david/FreeBSD/head/r353336 >=20 > As before, the (headless) build machine had no issues that I could = see. >=20 > Peace, > david > --=20 > David H. Wolfskill david@catwhisker.org > I am amazed that anyone would condone what Trunp has publicly admitted = he did. >=20 > See http://www.catwhisker.org/~david/publickey.gpg for my public key.