From owner-freebsd-current@freebsd.org Fri Jun 5 13:41:36 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 7727232B253 for ; Fri, 5 Jun 2020 13:41:36 +0000 (UTC) (envelope-from david@catwhisker.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 49dkMN11P4z3Yvj for ; Fri, 5 Jun 2020 13:41:36 +0000 (UTC) (envelope-from david@catwhisker.org) Received: by mailman.nyi.freebsd.org (Postfix) id 20A4532B1EE; Fri, 5 Jun 2020 13:41:36 +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 205F732B528 for ; Fri, 5 Jun 2020 13:41:36 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from mx.catwhisker.org (mx.catwhisker.org [107.204.234.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49dkML2ynsz3ZCB for ; Fri, 5 Jun 2020 13:41:34 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id 055DfR9t066040 for ; Fri, 5 Jun 2020 13:41:27 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id 055DfR1k066039 for current@freebsd.org; Fri, 5 Jun 2020 06:41:27 -0700 (PDT) (envelope-from david) Date: Fri, 5 Jun 2020 06:41:27 -0700 From: David Wolfskill To: current@freebsd.org Subject: panic: page fault head/amd64 @r361830 Message-ID: <20200605134127.GY2100@albert.catwhisker.org> Reply-To: current@freebsd.org Mail-Followup-To: current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="L+CNnuwY89phXYPb" Content-Disposition: inline X-Rspamd-Queue-Id: 49dkML2ynsz3ZCB X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of david@catwhisker.org designates 107.204.234.170 as permitted sender) smtp.mailfrom=david@catwhisker.org X-Spamd-Result: default: False [0.92 / 15.00]; HAS_REPLYTO(0.00)[current@freebsd.org]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.967]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:107.204.234.170]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.98)[-0.979]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_SHORT(0.26)[0.264]; DMARC_NA(0.00)[catwhisker.org]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:7018, ipnet:107.192.0.0/12, country:US]; REPLYTO_EQ_TO_ADDR(5.00)[] X-Spam: Yes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 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: Fri, 05 Jun 2020 13:41:36 -0000 --L+CNnuwY89phXYPb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable My build machine had no issues with the upgrade from r361784 to r361830, but my laptop panicked during the transition from single- to multi-user mode, just after bpf was attached. Rebooting from the old kernel worked; trying to boot from r361830 failed again with similar symptoms, and the laptop normally runs stable/12 (r361761 yesterday; r361831 today), so it seems to be an issue in head. The build machine isn't a DHCP client, and doesn't run ipfw; the laptop differs (in both respects). The backtrace (from the core.txt file: =2E.. <118>Mounting local filesystems: linprocfs registered <118>. <118>ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/l= ocal/lib/R/lib /usr/local/lib/compat /usr/local/lib/gcc9 /usr/l ocal/lib/graphviz /usr/local/lib/mysql /usr/local/lib/perl5/5.30/mach/CORE = /usr/local/lib/qt5 /usr/local/llvm80/lib /usr/local/llvm90/lib=20 /usr/local/share/chromium <118>32-bit compatibility ldconfig path: /usr/lib32 /usr/lib32/compat /usr/= local/lib32/compat <118>Setting hostname: localhost. <118>Setting up harvesting: PURE_RDRAND,[UMA],[FS_ATIME],SWI,INTERRUPT,NET_= NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED <118>Feeding entropy: . <6>wlan0: bpf attached <6>wlan0: bpf attached Fatal trap 12: page fault while in kernel mode cpuid =3D 3; apic id =3D 03 fault virtual address =3D 0x0 fault code =3D supervisor read instruction, page not present instruction pointer =3D 0x20:0x0 stack pointer =3D 0x28:0xfffffe0fc08c3b08 frame pointer =3D 0x28:0xfffffe0fc08c3b80 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 0 (iwn0 net80211 taskq) trap number =3D 12 panic: page fault cpuid =3D 3 time =3D 1591362374 KDB: stack backtrace: db_trace_self_wrapper() at 0xffffffff804a4afb =3D db_trace_self_wrapper+0x2= b/frame 0xfffffe0fc08c37b0 vpanic() at 0xffffffff80b93452 =3D vpanic+0x182/frame 0xfffffe0fc08c3800 panic() at 0xffffffff80b93203 =3D panic+0x43/frame 0xfffffe0fc08c3860 trap_fatal() at 0xffffffff81069b07 =3D trap_fatal+0x387/frame 0xfffffe0fc08= c38c0 trap_pfault() at 0xffffffff81069ba9 =3D trap_pfault+0x99/frame 0xfffffe0fc0= 8c3920 trap() at 0xffffffff810691a5 =3D trap+0x2a5/frame 0xfffffe0fc08c3a30 calltrap() at 0xffffffff8103edb8 =3D calltrap+0x8/frame 0xfffffe0fc08c3a30 --- trap 0xc, rip =3D 0, rsp =3D 0xfffffe0fc08c3b08, rbp =3D 0xfffffe0fc08c= 3b80 --- ??() at 0/frame 0xfffffe0fc08c3b80 taskqueue_thread_loop() at 0xffffffff80bf3214 =3D taskqueue_thread_loop+0x9= 4/frame 0xfffffe0fc08c3bb0 fork_exit() at 0xffffffff80b503c0 =3D fork_exit+0x80/frame 0xfffffe0fc08c3b= f0 fork_trampoline() at 0xffffffff8103fdfe =3D fork_trampoline+0xe/frame 0xfff= ffe0fc08c3bf0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- KDB: enter: panic __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 55 __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru= ct pcpu, (kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 #1 doadump (textdump=3D0) at /usr/src/sys/kern/kern_shutdown.c:394 #2 0xffffffff804a1eaa in db_dump (dummy=3D,=20 dummy2=3D, dummy3=3D, dummy4=3D) at /usr/src/sys/ddb/db_command.c:575 #3 0xffffffff804a1c6c in db_command (last_cmdp=3D,=20 cmd_table=3D, dopager=3D1) at /usr/src/sys/ddb/db_comman= d.c:482 #4 0xffffffff804a19dd in db_command_loop () at /usr/src/sys/ddb/db_command.c:535 #5 0xffffffff804a4c48 in db_trap (type=3D, code=3D) at /usr/src/sys/ddb/db_main.c:253 #6 0xffffffff80bdde34 in kdb_trap (type=3D3, code=3D0, tf=3D) at /usr/src/sys/kern/subr_kdb.c:699 #7 0xffffffff810696b8 in trap (frame=3D0xfffffe0fc08c36e0) at /usr/src/sys/amd64/amd64/trap.c:578 #8 #9 kdb_enter (why=3D0xffffffff8122ff12 "panic", msg=3D) at /usr/src/sys/kern/subr_kdb.c:486 #10 0xffffffff80b9346e in vpanic (fmt=3D, ap=3D) at /usr/src/sys/kern/kern_shutdown.c:902 #11 0xffffffff80b93203 in panic ( fmt=3D0xffffffff81c7f298 "\326/\037\201\377\377\377\377") at /usr/src/sys/kern/kern_shutdown.c:839 #2 0xffffffff804a1eaa in db_dump (dummy=3D,=20 dummy2=3D, dummy3=3D, dummy4=3D) at /usr/src/sys/ddb/db_command.c:575 #3 0xffffffff804a1c6c in db_command (last_cmdp=3D,=20 cmd_table=3D, dopager=3D1) at /usr/src/sys/ddb/db_comman= d.c:482 #4 0xffffffff804a19dd in db_command_loop () at /usr/src/sys/ddb/db_command.c:535 #5 0xffffffff804a4c48 in db_trap (type=3D, code=3D) at /usr/src/sys/ddb/db_main.c:253 #6 0xffffffff80bdde34 in kdb_trap (type=3D3, code=3D0, tf=3D) at /usr/src/sys/kern/subr_kdb.c:699 #7 0xffffffff810696b8 in trap (frame=3D0xfffffe0fc08c36e0) at /usr/src/sys/amd64/amd64/trap.c:578 #8 #9 kdb_enter (why=3D0xffffffff8122ff12 "panic", msg=3D) at /usr/src/sys/kern/subr_kdb.c:486 #10 0xffffffff80b9346e in vpanic (fmt=3D, ap=3D) at /usr/src/sys/kern/kern_shutdown.c:902 #11 0xffffffff80b93203 in panic ( fmt=3D0xffffffff81c7f298 "\326/\037\201\377\377\377\377") at /usr/src/sys/kern/kern_shutdown.c:839 #12 0xffffffff81069b07 in trap_fatal (frame=3D0xfffffe0fc08c3a40, eva=3D0) at /usr/src/sys/amd64/amd64/trap.c:919 #13 0xffffffff81069ba9 in trap_pfault (frame=3D0xfffffe0fc08c3a40,=20 usermode=3D, signo=3D, ucode=3D) at /usr/src/sys/amd64/amd64/trap.c:736 #14 0xffffffff810691a5 in trap (frame=3D0xfffffe0fc08c3a40) at /usr/src/sys/amd64/amd64/trap.c:400 #15 #16 0x0000000000000000 in ?? () #17 0xffffffff80bf219a in taskqueue_run_locked (queue=3D0xfffff8000f1e9100) at /usr/src/sys/kern/subr_taskqueue.c:476 #18 0xffffffff80bf3214 in taskqueue_thread_loop (arg=3D) at /usr/src/sys/kern/subr_taskqueue.c:793 #19 0xffffffff80b503c0 in fork_exit ( callout=3D0xffffffff80bf3180 ,=20 arg=3D0xfffffe1052453148, frame=3D0xfffffe0fc08c3c00) at /usr/src/sys/kern/kern_fork.c:1053 #20 (kgdb)=20 Please see http://www.catwhisker.org/~david/FreeBSD/head/r361830/ for the crasah cump, core.txt file, and anything else I think to put there that might be useful. http://www.catwhisker.org/~david/FreeBSD/history/ has pointers to recent copies of dmesg.boot from a verbose boot and sundry other bits of trivia, some of which may be of use. Peace, david --=20 David H. Wolfskill david@catwhisker.org "... we distance ourselves from the incendiary language of this President." -- Bishop Mariann Edgar Budde of the Episcopal Diocese of Washington See http://www.catwhisker.org/~david/publickey.gpg for my public key. --L+CNnuwY89phXYPb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAl7aS4ZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2 PclHmwgAqgfzfyJK12m4xksf5eHNWSmlnyEbhdMK0sxF9gLvEzH2PSWcqahZ02sA sQDsIAeGz86fnPKV7LH8HqyGS19stv2Yapxs2+hCSntB1QnaRt2N7LbrfHDkHzYf ZHJJgi4teYDIwbOv9SPFghhUorOgJrh7SZtWvVEOl/XaJ0fWFHYoO05Hju7ZMSw3 A9pG1oDbIZ9cNLSTg6smF9d2PuTV82RX1+0BmZTMo0fW96yjjRwHQAPhbstAJsYl 0hZDT3isgtloUI8k+7h15xjr+Ea+EqF33zvTDw9KPBL2h8Upw6cFlkIW93NU/kRK R+JPhgTmmBkZE0amhtQAVGTVMtzTyg== =kV6z -----END PGP SIGNATURE----- --L+CNnuwY89phXYPb--