From owner-freebsd-net@FreeBSD.ORG Sun Nov 25 21:29:29 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3841016A468 for ; Sun, 25 Nov 2007 21:29:29 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from relay02.kiev.sovam.com (relay02.kiev.sovam.com [62.64.120.197]) by mx1.freebsd.org (Postfix) with ESMTP id C207A13C467 for ; Sun, 25 Nov 2007 21:29:28 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from [212.82.216.226] (helo=deviant.kiev.zoral.com.ua) by relay02.kiev.sovam.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1IwNy1-000F61-Sv for freebsd-net@freebsd.org; Sun, 25 Nov 2007 22:20:40 +0200 Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id lAPKKbSH064050 for ; Sun, 25 Nov 2007 22:20:37 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id lAPKKbKk064049 for freebsd-net@freebsd.org; Sun, 25 Nov 2007 22:20:37 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 25 Nov 2007 22:20:37 +0200 From: Kostik Belousov To: freebsd-net@freebsd.org Message-ID: <20071125202037.GD78396@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bqPh76xD3yWylqqJ" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Scanner-Signature: a0e7373be156534abcc10f92c304d741 X-DrWeb-checked: yes X-SpamTest-Envelope-From: kostikbel@gmail.com X-SpamTest-Group-ID: 00000000 X-SpamTest-Info: Profiles 1827 [Nov 24 2007] X-SpamTest-Info: helo_type=3 X-SpamTest-Info: {received from trusted relay: not dialup} X-SpamTest-Method: none X-SpamTest-Method: Local Lists X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0255], KAS30/Release Subject: Panic with wlan when switching from adhoc to infrastructure X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2007 21:29:29 -0000 --bqPh76xD3yWylqqJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On the up-to-date RELENG_7 system, I have configured ath0 in the adhoc mode. After that, I tried to switch the interface into the hostap mode. I got the consistent error message "Interface not configured". After several attempts, I got the following page fault. The second argument to the ieee80211_ht_adjust_channel, chan, is NULL. Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc2ed21c8 stack pointer = 0x28:0xd5da4a18 frame pointer = 0x28:0xd5da4a28 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 1418 (ifconfig) trap number = 12 panic: page fault KDB: stack backtrace: db_trace_self_wrapper(c06f679d,d5da48ac,c04b8a1a,c06f4b26,c0759780,...) at 0xc044b256 = db_trace_self_wrapper+0x26 kdb_backtrace(c06f4b26,c0759780,c06edbd0,d5da48b8,d5da48b8,...) at 0xc04de839 = kdb_backtrace+0x29 panic(c06edbd0,c0711148,c34e2220,1,1,...) at 0xc04b8a1a = panic+0xaa trap_fatal(c31e9bc8,0,1,0,18d5,...) at 0xc06cce33 = trap_fatal+0x353 trap_pfault(369e99,0,c34e2000,0,c,...) at 0xc06cd09b = trap_pfault+0x25b trap(d5da49d8) at 0xc06cdac2 = trap+0x3d2 calltrap() at 0xc06b664b = calltrap+0x6 --- trap 0xc, eip = 0xc2ed21c8, esp = 0xd5da4a18, ebp = 0xd5da4a28 --- ieee80211_ht_adjust_channel(c2f4e22c,0,2,533,2,...) at 0xc2ed21c8 = ieee80211_ht_adjust_channel+0x38 adhoc_pick_bss(c2eee000,c2f4e22c,c2ed7538,1ec,c2f2b2a7,...) at 0xc2ef8f6f = adhoc_pick_bss+0x1ff ieee80211_check_scan(c2f4e22c,10002,7fffffff,1,c2f4f210,...) at 0xc2ed06c4 = ieee80211_check_scan+0x244 ieee80211_newstate(c2f4e22c,1,ffffffff,0,d5da4b10,...) at 0xc2ecef08 = ieee80211_newstate+0x508 ath_init(c2f4e000,0,c2f1300c,16dd,c35448e0,...) at 0xc2f0cb86 = ath_init+0x1a6 ath_ioctl(c29cdc00,80206910,c35448e0,c334e708,d5da4b8c,...) at 0xc2f118d8 = ath_ioctl+0x138 ifhwioctl(c34e1210,c330a18c,c10be238,c10416c8,85,...) at 0xc0548c97 = ifhwioctl+0x417 ifioctl(c330a18c,80206910,c35448e0,c34e1210,3,...) at 0xc054bb1c = ifioctl+0x3bc soo_ioctl(c2b0baf8,80206910,c35448e0,c3340500,c34e1210,...) at 0xc04f20f2 = soo_ioctl+0x5a2 kern_ioctl(c34e1210,3,80206910,c35448e0,8cbc,...) at 0xc04eac91 = kern_ioctl+0x351 ioctl(c34e1210,d5da4cfc,c,d5da4cb0,c06d786e,...) at 0xc04eadff = ioctl+0x13f syscall(d5da4d38) at 0xc06cd425 = syscall+0x365 Xint0x80_syscall() at 0xc06b66b0 = Xint0x80_syscall+0x20 --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x281697f3, esp = 0xbfbfe44c, ebp = 0xbfbfe488 --- Uptime: 55m50s (gdb) list *(ieee80211_ht_adjust_channel+0x38) 0x211c8 is in ieee80211_ht_adjust_channel (/usr/bsd/src/sys/modules/wlan/../../net80211/ieee80211_ht.c:818). 813 } else if (!IEEE80211_IS_CHAN_HT20(chan)) { 814 c = findhtchan(ic, chan, IEEE80211_CHAN_HT20); 815 if (c != NULL) 816 chan = c; 817 } 818 } else if (IEEE80211_IS_CHAN_HT(chan)) { 819 /* demote to legacy, HT use is disabled */ 820 c = ieee80211_find_channel(ic, chan->ic_freq, 821 chan->ic_flags &~ IEEE80211_CHAN_HT); 822 if (c != NULL) --bqPh76xD3yWylqqJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHSdkUC3+MBN1Mb4gRAhjkAJ4yRgBttNWfs0fU8vYFEChUwQfqDwCdFDch am2NCG3DThu1EjQalyWryT8= =Rbd8 -----END PGP SIGNATURE----- --bqPh76xD3yWylqqJ--