From owner-freebsd-current@FreeBSD.ORG Thu Sep 24 12:46:26 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A031106566C for ; Thu, 24 Sep 2009 12:46:26 +0000 (UTC) (envelope-from kubito@gmail.com) Received: from mail-iw0-f181.google.com (mail-iw0-f181.google.com [209.85.223.181]) by mx1.freebsd.org (Postfix) with ESMTP id 3A74E8FC21 for ; Thu, 24 Sep 2009 12:46:25 +0000 (UTC) Received: by iwn11 with SMTP id 11so862865iwn.3 for ; Thu, 24 Sep 2009 05:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zcaNY2C6RePnbQe3f1dkPS7agjLz00HALUv/Z5I/fqs=; b=PFDYj4oUDCMZH/e12uCJ/S+W4FH8qCCw8Lh5CCThO+6/cU2B4xF11AXdakZ5s2ju01 PExZXMy7F+GjJGA+4cYH1m+wg813TftIi3acp+PtsFNEqoq9Uoee21hcqwNcxNt/vGk5 WUPx2lEY2PWHaeKtYdnt87UHMwaAJ4qEkttcs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=w6IVEYqE+iOuptkS9XTUl86mRmIeX6fL67qXvJcB4OtrsesSjfxDhXq3RU8l142l/3 E7YsbQt06eJF7JuKXj83/ovjkClRlw+9afr92vkTytcs9xqGfLUQ4FNL5LIo1a7rvLlC aGZnVwocoA/ppkyYpwcHgePSddu85u0yRoCPw= MIME-Version: 1.0 Received: by 10.231.25.160 with SMTP id z32mr1751195ibb.5.1253796385659; Thu, 24 Sep 2009 05:46:25 -0700 (PDT) In-Reply-To: <3a142e750909240244h59a4a001o13a4a7a46e7a75a1@mail.gmail.com> References: <68c3445d0909212153rf19ec23p81ecc0a070f6d594@mail.gmail.com> <3a142e750909220343k153daac0xc00099fc09c176ac@mail.gmail.com> <68c3445d0909220551k33973d38iccf20c030a00b6c8@mail.gmail.com> <3a142e750909221420m29ae8302t71ed9558c77542f4@mail.gmail.com> <68c3445d0909221449g62904ae7pa4deb939baf4be1@mail.gmail.com> <3a142e750909221453l25d5dc8eifcbe70b39ced2ea8@mail.gmail.com> <68c3445d0909232143r623d9d2ex768578ff6c26d3b9@mail.gmail.com> <3a142e750909240244h59a4a001o13a4a7a46e7a75a1@mail.gmail.com> Date: Thu, 24 Sep 2009 09:46:25 -0300 Message-ID: <68c3445d0909240546n371fe467wbf7ffb7284a9099@mail.gmail.com> From: Raphael Kubo da Costa To: "Paul B. Mahol" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: 8.0RC1 - Kernel panic when loading a ndisgen-generated module (rtl8180_sys) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2009 12:46:26 -0000 2009/9/24 Paul B. Mahol : > On 9/24/09, Raphael Kubo da Costa wrote: >> 2009/9/22 Paul B. Mahol : >>> On 9/22/09, Raphael Kubo da Costa wrote: >>>> While I'm not at home to do the other things you've mentioned: I don't >>>> even have time to run ifconfig - I've commented out the lines enabling >>>> ndis, if_ndis and rtl8180_sys in /boot/loader.conf. I just run kldload >>>> rtl8180_sys the kernel panics automatically. >>> >>> Just make sure you are using correct kernel source files(8.0 and not 7.= X). >> >> Well, after trying to fix things I ended up with a system that >> wouldn't even boot. So I formatted everything and installed 8.0-RC1 >> from the DVD. > > Does this installation installed new 8.0-RC1 sources in /sys ? Yes. >> ndisgen worked fine and I was able to load the module I had generated. >> However, wpa_supplicant does not work, and always writes the following > > With what arguments did wpa_supplicant start? I just ran /etc/rc.d/netif restart, so I'm not 100% sure. -D ndis -i ndis0 -c /etc/wpa_supplicant.conf, I guess, since when I ran it with these arguments the same errors were printed. > >> error messages after I try to use /etc/rc.d/netif restart: >> >> Sep 24 01:30:53 borges wpa_supplicant[1689]: Failed to initialize >> driver interface >> ifconfig: ioctl(SIOCAIFADDR): Invalid argument >> ioctl[SIOCG80211, op 98, len 32]: Invalid argument >> >> When I unloaded the ndis, if_ndis and rtl8180_sys modules and tried to >> kldload the latter, the kernel panicked again. >> >> Fatal trap 12: page fault while in kernel mode >> cpuid =3D 0; apic id =3D 00 >> fault virtual address =A0 =3D 0xc4b3631a >> fault code =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D supervisor read, page not pres= ent >> instruction pointer =A0 =A0 =3D 0x20:0xc4b136b3 >> stack pointer =A0 =A0 =A0 =A0 =A0 =3D 0x28:0xe3617a44 >> frame pointer =A0 =A0 =A0 =A0 =A0 =3D 0x28:0xe3617aac >> code segment =A0 =A0 =A0 =A0 =A0 =A0=3D base 0x0, limit 0xfffff, type 0x= 1b >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D DPL 0, pres 1, def32= 1, gran 1 >> processor eflags =A0 =A0 =A0 =A0=3D interrupt enabled, resume, IOPL =3D = 0 >> current process =A0 =A0 =A0 =A0 =3D 2223 (ifconfig) > > But ifconfig is here again. So panic did not happened while loading modul= e. Is there anything I can do to get more information about this? > >> trap number =A0 =A0 =A0 =A0 =A0 =A0 =3D 12 >> panic: page fault >> cpuid =3D 0 >> Uptime: 6m6s >> Physical memory: 883 MB >> Dumping 69 MB: 54 38 22 6 >> >> >> Reading symbols from /boot/kernel/if_ndis.ko...Reading symbols from >> /boot/kernel/if_ndis.k >> o.symbols...done. >> done. >> Loaded symbols for /boot/kernel/if_ndis.ko >> Reading symbols from /boot/kernel/ndis.ko...Reading symbols from >> /boot/kernel/ndis.ko.symb >> ols...done. >> done. >> Loaded symbols for /boot/kernel/ndis.ko >> Reading symbols from /boot/modules/rtl8180_sys.ko...done. >> Loaded symbols for /boot/modules/rtl8180_sys.ko >> #0 =A0doadump () at pcpu.h:246 >> 246 =A0 =A0 pcpu.h: No such file or directory. >> =A0 =A0 =A0 =A0 in pcpu.h >> (kgdb) #0 =A0doadump () at pcpu.h:246 >> #1 =A00xc08823c7 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdow= n.c:416 >> #2 =A00xc08826b9 in panic (fmt=3DVariable "fmt" is not available. >> ) at /usr/src/sys/kern/kern_shutdown.c:579 >> #3 =A00xc0bb346c in trap_fatal (frame=3D0xe3617a04, eva=3D3300090650) >> =A0 =A0 at /usr/src/sys/i386/i386/trap.c:933 >> #4 =A00xc0bb36f0 in trap_pfault (frame=3D0xe3617a04, usermode=3D0, eva= =3D3300090650) >> =A0 =A0 at /usr/src/sys/i386/i386/trap.c:846 >> #5 =A00xc0bb40d5 in trap (frame=3D0xe3617a04) at >> /usr/src/sys/i386/i386/trap.c:528 >> #6 =A00xc0b96a4b in calltrap () at /usr/src/sys/i386/i386/exception.s:16= 5 >> #7 =A00xc4b136b3 in ndis_rtl8180_sys_drv_data_start () >> =A0 =A0from /boot/modules/rtl8180_sys.ko >> Previous frame inner to this frame (corrupt stack?) >> (kgdb) >> > > The backtrace is useless - dead end. > > -- > Paul