From owner-freebsd-net@FreeBSD.ORG Tue Feb 1 14:55:08 2011 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 501AF10656B4 for ; Tue, 1 Feb 2011 14:55:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id CB8A08FC12 for ; Tue, 1 Feb 2011 14:55:07 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 8292441C798; Tue, 1 Feb 2011 15:55:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id GgE+NhaSG3Mc; Tue, 1 Feb 2011 15:55:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id 878D541C7A8; Tue, 1 Feb 2011 15:55:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id AA8E04448F3; Tue, 1 Feb 2011 14:53:41 +0000 (UTC) Date: Tue, 1 Feb 2011 14:53:41 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Monthadar Al Jaberi In-Reply-To: Message-ID: <20110201145319.W43179@maildrop.int.zabbadoz.net> References: X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org Subject: Re: if_alloc() page fault, VirtualBox + VIMAGE 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: Tue, 01 Feb 2011 14:55:08 -0000 On Tue, 1 Feb 2011, Monthadar Al Jaberi wrote: > Hi, > > I am running FreeBSD Current (201010) as guest in VirtualBox on an > Ubuntu 10.04. FreeBSD is compiled with VIMAGE option. > > I loaded a module (my own) that calls if_alloc(IFT_IEEE80211), but I > get a panic: see discussions and patch on freebsd-virtualization@ > Kernel page fault with the following non-sleepable locks held: > exclusive rw ifnet_rw (ifnet_rw) r = 0 (0xc0fc8284) locked @ > /usr/src/sys/net/if.c:414 > KDB: stack backtrace: > db_trace_self_wrapper(c0cf3cdb,1,0,0,0,...) at db_trace_self_wrapper+0x26 > kdb_backtrace(19e,1,ffffffff,c0f9b194,c2fc9a1c,...) at kdb_backtrace+0x2a > _witness_debugger(c0cf6408,c2fc9a30,4,1,0,...) at _witness_debugger+0x25 > witness_warn(5,0,c0d2c479,3,c4070d48,...) at witness_warn+0x1fe > trap(c2fc9abc) at trap+0x195 > calltrap() at calltrap+0x6 > --- trap 0xc, eip = 0xc0970999, esp = 0xc2fc9afc, ebp = 0xc2fc9b1c --- > ifindex_alloc_locked(c0d003cf,c2fc9b36,19e,19e,c15ab714,...) at > ifindex_alloc_locked+0x19 > if_alloc(47,c4085a16,3,c0de9614,c32aa780,...) at if_alloc+0x85 > wtap_attach(c31a7800,c40857c0,0,4,0,...) at wtap_attach+0x29 > new_wtap(c32aa780,0,c2fc9bf0,c083ac9b,c3cbb200,...) at new_wtap+0x9b > wtap_ioctl(c3cbb200,80045701,c31edaa0,1,c3f90b40,...) at wtap_ioctl+0x36 > devfs_ioctl_f(c3cfe3b8,80045701,c31edaa0,c3185d00,c3f90b40,...) at > devfs_ioctl_f+0x10b > kern_ioctl(c3f90b40,3,80045701,c31edaa0,fc9cec,...) at kern_ioctl+0x20d > ioctl(c3f90b40,c2fc9cec,c2fc9d28,c0cf5783,0,...) at ioctl+0x134 > syscallenter(c3f90b40,c2fc9ce4,c2fc9ce4,0,0,...) at syscallenter+0x263 > syscall(c2fc9d28) at syscall+0x34 > Xint0x80_syscall() at Xint0x80_syscall+0x21 > --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x28181203, esp = > 0xbfbfec3c, ebp = 0xbfbfec58 --- > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x18 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc0970999 > stack pointer = 0x28:0xc2fc9afc > frame pointer = 0x28:0xc2fc9b1c > 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 = 1203 (ioctl) > panic: from debugger > cpuid = 0 > Uptime: 21s > Physical memory: 495 MB > Dumping 55 MB: 40 24 8 > > > Without VIMAGE option if_alloc returns fine, I thought if I dont > create any VNETs the system should behave like normal... what is the > problem? > > Best regards, > > -- Bjoern A. Zeeb You have to have visions! Going to jail sucks -- All my daemons like it! http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html