From owner-freebsd-wireless@FreeBSD.ORG Sat Oct 8 14:35:03 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 500FB106566C for ; Sat, 8 Oct 2011 14:35:03 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm35-vm6.bullet.mail.ne1.yahoo.com (nm35-vm6.bullet.mail.ne1.yahoo.com [98.138.229.102]) by mx1.freebsd.org (Postfix) with SMTP id F0DCE8FC13 for ; Sat, 8 Oct 2011 14:35:02 +0000 (UTC) Received: from [98.138.90.53] by nm35.bullet.mail.ne1.yahoo.com with NNFMP; 08 Oct 2011 14:35:02 -0000 Received: from [98.138.226.133] by tm6.bullet.mail.ne1.yahoo.com with NNFMP; 08 Oct 2011 14:35:02 -0000 Received: from [127.0.0.1] by smtp220.mail.ne1.yahoo.com with NNFMP; 08 Oct 2011 14:35:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1318084502; bh=6jqInDce7IYF01S1yxS6ui2yCGq1xqZnuN9EXJvqmqI=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type; b=1Rhmr8uziRgLr8DEu8Jnq0dPmgICCKukguWCJXQ9cMDRD44GVnmbdb0Qf3oNtPEBq1R2MYkZnhrmkUTQmvt5SiM2F4fooKDXClBvIcNwSDyrHUMEZo/Ove6y9/QhdQHHaDyqLz9lTLS1efJSFkUWGAe4aqfznOJftTFnJgr1XeU= X-Yahoo-Newman-Id: 98938.93504.bm@smtp220.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: vFdaknYVM1mCVXh9Sw4CTpgLsZdRxZzFGU.OLNTIGFnhYtL 3iPoHQt3eaBdOBsSpwQUjIPcfffR3qSzS6l8Hfg5xe_ZvQtT5NYJRSKFNqfQ clAG2OtkGbS9Uu.giX4JozHtiv6tEtBcJxbSocPa2eMc.Mwpwwmn0IJ.PNF_ s27sBPUDNbdFDExeiWVvzwisl1bImxzplO8tws_SoBrJrDaDUzaEBzeftQyq VNPuOkQVWcKqRub3IGi8SeDuLNsl6zYI5IOgxOEd.HUXoWmCLj1up9dAm0sW Nj5_.AneVFoBQaIz0FXrnUojKtGp4.AGaCXhReEpQz7p96LWU3fjCJZ.mZRM Hj.32rzyHPEuzuL54bqcOYnX1lgU2lpkTB52ImJTkk.QanCLx4a64fgqisXC _WITA0KmGqxYaq7CtyTFX X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-iy0-f182.google.com (moonlightakkiy@209.85.210.182 with plain) by smtp220.mail.ne1.yahoo.com with SMTP; 08 Oct 2011 07:35:01 -0700 PDT Received: by iaby12 with SMTP id y12so273691iab.13 for ; Sat, 08 Oct 2011 07:35:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.0.208 with SMTP id 16mr3984066ibc.50.1318084501434; Sat, 08 Oct 2011 07:35:01 -0700 (PDT) Received: by 10.231.12.139 with HTTP; Sat, 8 Oct 2011 07:35:01 -0700 (PDT) Date: Sat, 8 Oct 2011 08:35:01 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd , Edgar Martinez Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" Subject: Re: LOR - COM LOCK X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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, 08 Oct 2011 14:35:03 -0000 > But I wonder whether there's a bigger problem somewhere lurking in > that older HAL code. Hrm! Could be. (might not be a driver problem.) I've got lock order reversal: 1st 0xffffff8000a257d0 run0_node_lock (run0_node_lock) @ /usr/src/sys/net80211/ieee80211_ioctl.c:1326 2nd 0xffffff8000a24018 run0_com_lock (run0_com_lock) @ /usr/src/sys/net80211/ieee80211_node.c:2486 (line numbers are of old 9-CUREENT but referring the same lock) KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e _mtx_lock_flags() at _mtx_lock_flags+0x78 ieee80211_node_leave() at ieee80211_node_leave+0x80 setmlme_common() at setmlme_common+0x27b ieee80211_ioctl_setmlme() at ieee80211_ioctl_setmlme+0x7e ieee80211_ioctl_set80211() at ieee80211_ioctl_set80211+0xaba in_control() at in_control+0x1ff ifioctl() at ifioctl+0x1100 kern_ioctl() at kern_ioctl+0xc5 ioctl() at ioctl+0xf0 syscallenter() at syscallenter+0x1b5 syscall() at syscall+0x4c Xfast_syscall() at Xfast_syscall+0xe2 Also, I've got lock order reversal: 1st 0xffffff8000a257d0 run0_node_lock (run0_node_lock) @ /usr/src/sys/net80211/ieee80211_ioctl.c:1326 2nd 0xffffff8000a19328 run0 (network driver) @ /mnt/share/home/AK/FreeBSD/modules/usb/run/../../../../mnt/dev/usb/wlan/if_run.c:3409 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x81e _mtx_lock_flags() at _mtx_lock_flags+0x78 run_raw_xmit() at run_raw_xmit+0x57 ieee80211_send_mgmt() at ieee80211_send_mgmt+0x4d5 domlme() at domlme+0x95 setmlme_common() at setmlme_common+0x27b ieee80211_ioctl_setmlme() at ieee80211_ioctl_setmlme+0x7e ieee80211_ioctl_set80211() at ieee80211_ioctl_set80211+0xaba in_control() at in_control+0x1ff ifioctl() at ifioctl+0x1100 kern_ioctl() at kern_ioctl+0xc5 ioctl() at ioctl+0xf0 syscallenter() at syscallenter+0x1b5 syscall() at syscall+0x4c Xfast_syscall() at Xfast_syscall+0xe2 Here are suspicious part (Though, I don't have any solutions.) setmlme_common() at setmlme_common+0x27b ieee80211_ioctl_setmlme() at ieee80211_ioctl_setmlme+0x7e ieee80211_ioctl_set80211() at ieee80211_ioctl_set80211+0xaba in_control() at in_control+0x1ff AK