From owner-freebsd-wireless@freebsd.org Mon Aug 20 21:02:35 2018 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB1B9107CA3F for ; Mon, 20 Aug 2018 21:02:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 88C5581A63 for ; Mon, 20 Aug 2018 21:02:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4CC97107CA3E; Mon, 20 Aug 2018 21:02:34 +0000 (UTC) Delivered-To: wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2A9E2107CA3D for ; Mon, 20 Aug 2018 21:02:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A568881A62 for ; Mon, 20 Aug 2018 21:02: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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id F365328341 for ; Mon, 20 Aug 2018 21:02:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7KL2WUF074603 for ; Mon, 20 Aug 2018 21:02:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7KL2WxC074594 for wireless@FreeBSD.org; Mon, 20 Aug 2018 21:02:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 230785] Page fault when if_ath module is unloaded Date: Mon, 20 Aug 2018 21:02:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: aliovx@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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 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-wireless@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2018 21:02:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230785 Bug ID: 230785 Summary: Page fault when if_ath module is unloaded Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: wireless Assignee: wireless@FreeBSD.org Reporter: aliovx@gmail.com When compiling if_ath as a module. kldload if_ath followed by kldunload if_= ath causes a page fault. The chip is AR9380. [ath] unloaded [ar5210] unloaded [ar5211] unloaded [ar5416] unloaded [ar5212] unloaded [ar9300] unloaded Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex ath0 (ath0) r =3D 0 (0xfffffe004eea0190) locked @ /usr/src/sys/dev/ath/if_ath.c:1423 stack backtrace: #0 0xffffffff8044a2b3 at witness_debugger+0x73 #1 0xffffffff8044b691 at witness_warn+0x461 #2 0xffffffff806ce093 at trap_pfault+0x53 #3 0xffffffff806cd6aa at trap+0x2ba #4 0xffffffff806a84a5 at calltrap+0x8 #5 0xffffffff81d4c745 at ath_pci_detach+0x95 #6 0xffffffff80416d27 at device_detach+0x167 #7 0xffffffff8041629f at devclass_driver_deleted+0x4f #8 0xffffffff804161ad at devclass_delete_driver+0x8d #9 0xffffffff8041bc9f at driver_module_handler+0x10f #10 0xffffffff803c3c52 at module_unload+0x32 #11 0xffffffff803b65cb at linker_file_unload+0x23b #12 0xffffffff803b695c at linker_file_unload+0x5cc #13 0xffffffff803b782d at kern_kldunload+0xcd #14 0xffffffff806ce9c1 at amd64_syscall+0x281 #15 0xffffffff806a8d8d at fast_syscall_common+0x101 Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0xffffffff81cb3180 fault code =3D supervisor read instruction, page not present instruction pointer =3D 0x20:0xffffffff81cb3180 stack pointer =3D 0x28:0xfffffe004e249708 frame pointer =3D 0x28:0xfffffe004e249730 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 701 (kldunload) --=20 You are receiving this mail because: You are the assignee for the bug.=