lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTimvER2Qjpphj+io-qh9mRfDQJ1=goARH3zDLpeJ@mail.gmail.com>
Date:	Wed, 27 Oct 2010 16:05:06 +0200
From:	Ohad Ben-Cohen <ohad@...ery.com>
To:	Elvis Dowson <elvis.dowson@....com>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Benzy Gabay <benzyg@...com>,
	Luciano Coelho <luciano.coelho@...ia.com>,
	Vishal Mahaveer <vishalm@...com>, linux-mmc@...r.kernel.org
Subject: Re: kernel BUG at drivers/mmc/core/sdio_io.c:28!

Hi Elvis,

On Wed, Oct 27, 2010 at 3:24 PM, Elvis Dowson <elvis.dowson@....com> wrote:
> root@...gleboard:/wlan# insmod sdio.ko
...
> root@...gleboard:/wlan# insmod tiwlan_drv.ko
...
> root@...gleboard:/wlan# ifconfig tiwlan0 up
> [  200.916687] TIWLAN: 2227.094325: pInitParams->RoamingScanning_2_4G_enable 0
> [  200.924530] dashboard20_wifi_power: 1
> [  200.943267] dashboard20_wifi_power: 0
> [  200.947937] dashboard20_wifi_power: 1
> [  201.020507] dashboard20_wifi_reset: 0
> [  201.024200] dashboard20_wifi_set_carddetect: 1
> [  201.029113] dashboard20_wifi_set_carddetect: Nobody to notify
> [  202.027465] tiwlan_sdio_probe not yet called
> [  202.031768] tiwlan_sdio_probe not yet called    <---------------------------------------------
> [  202.036590] kernel BUG at drivers/mmc/core/sdio_io.c:28!
> [  202.041961] Unable to handle kernel NULL pointer dereference at virtual address 00000000


The BUG is most probably in the driver you are using, and not in the SDIO layer.

The driver is calling sdio_claim_host() without having a valid SDIO function.

Check out the 2 lines above the BUG message - you have a log there
complaining that your SDIO driver's probe function wasn't called.

You actually seem to have two problems here:
1. Your SDIO driver's probe function isn't called
2. Your WLAN driver is using the SDIO API without having a valid SDIO function

Ignoring the 2nd issue for now, you most probably have an integration
problem.  Is the chip powered up correctly ? is it mmc rescanned after
it is powered up ? are you using the correct mmc controller ? have you
configured your mmc lines correctly (board muxing) ? etc..

Maybe you want to checkout the mainline wl1271 driver using Luca's
Beagle board patches :)

Regards,
Ohad.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ