From owner-freebsd-wireless@FreeBSD.ORG Sat Feb 9 14:47:42 2013 Return-Path: Delivered-To: wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 892B869A for ; Sat, 9 Feb 2013 14:47:42 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx1.freebsd.org (Postfix) with ESMTP id 67FF3DD0 for ; Sat, 9 Feb 2013 14:47:42 +0000 (UTC) Received: by mail-pa0-f47.google.com with SMTP id bj3so2503795pad.6 for ; Sat, 09 Feb 2013 06:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=XnY9LAXlarArvQoGwS+uhwHkjfOhKPabfVGUjMitvcM=; b=Y+1U1aCGV3m5+Fl6YC3oDHcvNtzoWyrGqGQy2d7qi3Wvt5ZCAIKhn502rn6Cc7PG2m 8xvd2i/CC2vsNn70qW5CCp0UqhVa+CvjO2E4wtVUoqbBNe7dHAKlAzSrDOuvFgLd4lKD qbNp0QWA+39KbF6rsbXMogNG5KMqcmswPRn3s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=XnY9LAXlarArvQoGwS+uhwHkjfOhKPabfVGUjMitvcM=; b=G65ghoo0/LUG4kyOLIKu945kzVosIgbqf3OhUxWInxQxvS6hkD4SXijx0paFLzGc0m 7k2vOeJ7JwoHyofi+WWLQbAfCvb2rYKuy3m/azhGsT8YLWCvOfAt7DktHuzOHQEywzXk T5GcwlT2Zas2l+/HT2ymkND5+Wt6+SQMvhyqrBny/ZIdLAUABAkQdhQhXwqG9Hc7tpiQ 1uGZMw9o0xHZBhIvbK1VNmGmN4xN8fk9aeq2cFIK4gE9mg9iGIxsRCEmotFBYiCy+pyK hxLk8xDsO948TI6ieOQeDCteprhjc+TR4EZjO/XLuUUBvaXo3kf5QAHIuvabyTyOjVXP NuTw== X-Received: by 10.68.189.197 with SMTP id gk5mr4062769pbc.21.1360421262056; Sat, 09 Feb 2013 06:47:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.66.148.10 with HTTP; Sat, 9 Feb 2013 06:47:12 -0800 (PST) From: Eitan Adler Date: Sat, 9 Feb 2013 09:47:12 -0500 Message-ID: Subject: panic on removing urtw0 To: wireless@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmWyArg2TNarUNuo9WocVPC6lnm/JblGzZQMeg/GIBTObOeSuvMbXWpFUU6zb5VOT6gaDKC X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 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: Sat, 09 Feb 2013 14:47:42 -0000 I recently encountered a kernel panic upon removing a urtw0 device. This removal occurred during machine shutdown. The crashing kernel and textdump is available upon request. Unread portion of the kernel message buffer: urtw0: failed to stop (USB_ERR_NOT_CONFIGURED) Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x368 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff808c4be7 stack pointer = 0x28:0xffffff8227152730 frame pointer = 0x28:0xffffff8227152780 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 15 (usbus2) trap number = 12 panic: page fault cpuid = 1 KDB: stack backtrace: #0 0xffffffff8090c7a6 at kdb_backtrace+0x66 #1 0xffffffff808d67be at panic+0x1ce #2 0xffffffff80bc4140 at trap_fatal+0x290 #3 0xffffffff80bc447d at trap_pfault+0x1ed #4 0xffffffff80bc4a9e at trap+0x3ce #5 0xffffffff80baf05f at calltrap+0x8 #6 0xffffffff809a541a at ieee80211_ageq_remove+0xea #7 0xffffffff809a54c9 at ieee80211_ageq_drain_node+0x9 #8 0xffffffff809c584a at node_cleanup+0x6a #9 0xffffffff809c5960 at node_free+0x30 #10 0xffffffff8077f97b at urtw_free_data_list+0x4b #11 0xffffffff80785a45 at urtw_detach+0xd5 #12 0xffffffff80905a84 at device_detach+0x74 #13 0xffffffff80750388 at usb_detach_device+0x58 #14 0xffffffff80750524 at usb_unconfigure+0x34 #15 0xffffffff807507c5 at usb_free_device+0x195 #16 0xffffffff80758dce at uhub_explore+0x1be #17 0xffffffff807590d4 at uhub_explore+0x4c4 -- Eitan Adler