From owner-freebsd-amd64@freebsd.org Sun Jan 31 16:53:33 2016 Return-Path: Delivered-To: freebsd-amd64@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 2908DA73C8A for ; Sun, 31 Jan 2016 16:53:33 +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 1AB9711FA for ; Sun, 31 Jan 2016 16:53:33 +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 u0VGrWF5027538 for ; Sun, 31 Jan 2016 16:53:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 206801] iwn(4) page fault on netif restart Date: Sun, 31 Jan 2016 16:53:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dteske@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-wireless@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 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-Mailman-Approved-At: Sun, 31 Jan 2016 18:12:52 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2016 16:53:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206801 Bug ID: 206801 Summary: iwn(4) page fault on netif restart Product: Base System Version: 11.0-CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: wireless Assignee: freebsd-wireless@FreeBSD.org Reporter: dteske@FreeBSD.org CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Woke up this morning to find that network wasn't working. A quick "service netif restart" hung at trying to bring down wpa_supplicant. A "kill -9" of wpa_supplicant had no effect. The ppid of this wpa_supplicant was 1. Eventu= ally we landed on a page fault. I was able to extract a fair bit of precious information. $ uname -a FreeBSD lent.shxd.cx 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r293338: Wed Jan = 13 21:26:36 PST 2016=20=20=20=20 root@lent.shxd.cx:/usr/obj/home/dteske/src/freebsd_svn/base/head/sys/GENERI= C=20 amd64 $ ident -q kern/subr_firmware.c dev/iwn/if_iwn.c=20 kern/subr_firmware.c: $FreeBSD: head/sys/kern/subr_firmware.c 285391 2015-07-11 16:22:48Z mj= g $ dev/iwn/if_iwn.c: $FreeBSD: head/sys/dev/iwn/if_iwn.c 293716 2016-01-12 00:24:40Z avos $ db> show msgbuf msgbufp =3D 0xfffff8023bffffb8 magic =3D 63062, size =3D 98232, r=3D 97305, ptr =3D 0xfffff8023bfe8000, ck= sum=3D 7937404 Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex firmware table (firmware table) r =3D 0 (0xffffffff81ba8c80) locked @ /home/dteske/src/freebsd_svn/base/head/sys/kern/subr_firmware.c:367 exclusive sleep mutex iwn0 (network driver) r =3D 0 (0xfffffe0000ed4018) lo= cked @ /home/dteske/src/freebsd_svn/base/head/sys/dev/iwn/if_iwn.c:8197 stack backtrace: #0 0xffffffff80a79b10 at witness_debugger+0x70 #1 0xffffffff80a7ae27 at witness_warn+0x3d7 #2 0xffffffff80e6a9e7 at trap_pfault+0x57 #3 0xffffffff80e6a2bf at trap+0x4bf #4 0xffffffff80e4a1d7 at calltrap+0x8 #5 0xffffffff805b56d7 at iwn_init_locked+0x567 #6 0xffffffff805ad93b at iwn_radio_on+0x3b #7 0xffffffff80a6d340 at taskqueue_run_locked+0xf0 #8 0xffffffff80a6de68 at taskqueue_thread_loop+0x88 #9 0xffffffff809e5c14 at fork_exit+0x84 #10 0xffffffff80e4a70e at fork_trampoline+0xe Fatal trap 12: page fault while in kernel mode=20 cpuid =3D 3; apic id =3D 05 fault virtual address =3D 0xffffffffffffffe0 fault code =3D supervisor write data, page not present instruction pointer =3D 0x20:0xffffffff80a5aee7 stack pointer =3D 0x28:0xfffffe022a544aa0 frame pointer =3D 0x28:0xfffffe022a544ac0 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) 255217) 20151225 db> bt Tracing pid 0 tid 100039 td 0xfffff8000482b000 firmware_put() at firmware_put+0x27/frame 0xfffffe022a544ac0 iwn_init_locked() at iwn_init_locked+0x567/frame 0xfffffe022a544af0 iwn_radio_on() at iwn_radio_on+0x3b/frame 0xfffffe022a544b20 taskqueue_run_locked() at taskqueue_run_locked+0xf0/frame 0xfffffe022a544b80 taskqueue_thread_loop() at taskqueue_thread_loop+0x88/frame 0xfffffe022a544= bb0 fork_exit() at fork_exit+0x84/frame 0xfffffe022a544bf0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe022a544bf0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- --=20 You are receiving this mail because: You are on the CC list for the bug.=