From owner-freebsd-virtualization@FreeBSD.ORG Tue Mar 6 09:53:18 2012 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9355106566C for ; Tue, 6 Mar 2012 09:53:18 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9521E8FC17 for ; Tue, 6 Mar 2012 09:53:18 +0000 (UTC) Received: by iahk25 with SMTP id k25so9291572iah.13 for ; Tue, 06 Mar 2012 01:53:18 -0800 (PST) Received-SPF: pass (google.com: domain of monthadar@gmail.com designates 10.50.158.131 as permitted sender) client-ip=10.50.158.131; Authentication-Results: mr.google.com; spf=pass (google.com: domain of monthadar@gmail.com designates 10.50.158.131 as permitted sender) smtp.mail=monthadar@gmail.com; dkim=pass header.i=monthadar@gmail.com Received: from mr.google.com ([10.50.158.131]) by 10.50.158.131 with SMTP id wu3mr9840790igb.49.1331027598184 (num_hops = 1); Tue, 06 Mar 2012 01:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=GMUJhAh0p7PGVP+x/daxjA6yqK81T9NMcII9Ty4GUEs=; b=zmIY4l8DAz8Jpw+aAHAh+EywGtWLuTk0qW5hq8OgpT9vm8LnIfRpDuUYjKC10HRWR0 Vunktpnj3d6Czz5KgF3c12E/LbTgIwRn0Gq8TEhvqod5ZZqRBe0Sc5bu7QOyzlF/FU8p D+i+fkcX+SXw6YrliHyLp4sNZY/Zth2ck/SVKeV7igu08ZiNbeQm+wxQFSPr8ugsY/Mk Hn6X2q6Pz1MAnMlrsNGY+uvQ3+yIsvi8yONc7Q6K+lWwBM7/KGKfYdRiNJV+AIUdSSFZ jrhxQMxi7/xzUKMz+EWhLaBMKL+k3Yw3k3FJXfu4PWZOE+I4T7Rc5tVORoYZVcGGJLhi T2+w== MIME-Version: 1.0 Received: by 10.50.158.131 with SMTP id wu3mr8158026igb.49.1331027598137; Tue, 06 Mar 2012 01:53:18 -0800 (PST) Received: by 10.50.236.67 with HTTP; Tue, 6 Mar 2012 01:53:18 -0800 (PST) In-Reply-To: <201203060052.28603.zec@fer.hr> References: <201203060052.28603.zec@fer.hr> Date: Tue, 6 Mar 2012 10:53:18 +0100 Message-ID: From: Monthadar Al Jaberi To: Marko Zec Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Adrian Chadd , freebsd-virtualization@freebsd.org Subject: Re: VIMAGE + kldload wlan + kldload wtap panic X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2012 09:53:18 -0000 On Tue, Mar 6, 2012 at 12:52 AM, Marko Zec wrote: > On Monday 05 March 2012 22:14:45 Monthadar Al Jaberi wrote: >> Hi, >> >> I am a very happy VIMAGE user. But lately I have been having problems >> using it, and its too complicated for me to dig in so I hope you can >> help me (and help Adrian too). >> >> I am using FreeBSD Current with a kernel config without wlan module >> and wireless devices =A0attach kernel config. >> >> uname -a shows: >> FreeBSD acke 10.0-CURRENT FreeBSD 10.0-CURRENT #2: Mon Mar =A05 20:02:38 >> CET 2012 =A0 =A0 root@acke:/usr/obj/usr/src/sys/VNET_without_wlan =A0amd= 64 >> >> I run the following commands: >> cd /usr/sys/module/wlan >> make load >> cd /usr/sys/modules/wtap >> make load >> >> then: >> /usr/src/ools/tools/wtap/wtap/wtap c 0 >> ifconfig wlan create wlandev wtap0 wlanmode mesh >> wlandebug -i wlan0 hwmp+mesh+output+input+inact >> ifconfig wlan0 meshid mymesh >> ifconfig wlan0 inet 192.168.2.1 >> >> and freebsd panics with: >> Mon Mar =A05 21:17:46 CET 2012 >> Mar =A05 21:59:23 acke login: ROOT LOGIN (root) ON ttyv0 >> Using visibility wtap plugin... >> Loaded wtap wireless simulator >> wtap0: ieee80211_radiotap_attach: no tx channel, radiotap 0x0wtap0: >> ieee80211_radiotap_attach: no rx channel, radiotap 0x0wlan0: Ethernet >> address: 00:98:9a:98:96:97 >> wlan0: ieee80211_start: ignore queue, in SCAN state >> wlan0: [00:98:9a:98:96:97] ieee80211_alloc_node: inact_reload 2 >> Kernel page fault with the following non-sleepable locks held: >> exclusive sleep mutex wtap0_com_lock (wtap0_com_lock) r =3D 0 >> (0xffffff8002395018) locked @ >> /usr/src/sys/modules/wlan/../../net80211/ieee80211_proto.c:1937 >> KDB: stack backtrace: >> db_trace_self_wrapper() at db_trace_self_wrapper+0x2a >> kdb_backtrace() at kdb_backtrace+0x37 >> _witness_debugger() at _witness_debugger+0x2c >> witness_warn() at witness_warn+0x2c4 >> trap() at trap+0x2fe >> calltrap() at calltrap+0x8 >> --- trap 0xc, rip =3D 0xffffffff80885d0c, rsp =3D 0xffffff80003e9a00, rb= p >> =3D 0xffffff80003e9a20 --- >> rt_dispatch() at rt_dispatch+0x2c >> rt_ieee80211msg() at rt_ieee80211msg+0x7f >> scan_task() at scan_task+0x4cd >> taskqueue_run_locked() at taskqueue_run_locked+0x93 >> taskqueue_thread_loop() at taskqueue_thread_loop+0x3e > > It may be that scan_task() calls further down into the network stack with= out > setting curvnet first. I added CURVNET_SET(TD_TO_VNET(curthread))/CURVNET_RESTORE() in scan_task but it didnt help > > Marko > > >> fork_exit() at fork_exit+0x135 >> fork_trampoline() at fork_trampoline+0xe >> --- trap 0, rip =3D 0, rsp =3D 0xffffff80003e9cf0, rbp =3D 0 --- >> >> >> Fatal trap 12: page fault while in kernel mode >> cpuid =3D 0; apic id =3D 00 >> fault virtual address =3D 0x28 >> fault code =A0 =A0 =A0 =A0 =A0 =A0=3D supervisor read data, page not pre= sent >> instruction pointer =A0 =3D 0x20:0xffffffff80885d0c >> stack pointer =A0 =A0 =A0 =A0 =3D 0x28:0xffffff80003e9a00 >> frame pointer =A0 =A0 =A0 =A0 =3D 0x28:0xffffff80003e9a20 >> code segment =A0 =A0 =A0 =A0 =A0=3D base 0x0, limit 0xfffff, type 0x1b >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D DPL 0, pres 1, long 1, d= ef32 0, gran 1 >> processor eflags =A0 =A0 =A0=3D interrupt enabled, resume, IOPL =3D 0 >> current process =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (wtap0 net80211 task) >> >> I am attaching dump file too. >> >> The weird thing is that I don't get this panic if I include wlan in >> kernel config while everything else is the same. >> >> Thank you for any help! > > --=20 Monthadar Al Jaberi