Comment 0 for bug 75084

Revision history for this message
hm (colimit) wrote :

Binary package hint: linux-image-2.6.17-10-generic

system: Turion 64 MT-40
OS: Ubuntu 6.10 server x86_64
kernel: linux-image-2.6.17-10-generic_2.6.17-10.33_amd64.deb

wbsd SD-card reader driver (CONFIG_MMC_WBSD) has some severe problems with DMA memory allocation on amd64 platform. It causes kernel (linux-image-2.6.17-10-generic_2.6.17-10.33_amd64.deb) to oops and in many cases hangs the machine. This is due to the fact that the original author wrote the driver for ia32 and still didn't port it to amd64. Here is the link http://lkml.org/lkml/2005/9/25/95 where he aknowledges it. Also, see a relevant part of my dmesg in the attachment.

While it is desirable that the default kernel includes as many hardware drivers as possible, it is also important that the default kernel boots at all on any machine ;).

The solution is: exclude wbsd.ko (CONFIG_MMC_WBSD) from any linux-image*_amd64 kernel.

----------------------------------------------------------------------------
----------------------------------------------------------------------------
[ 56.462163] irda_init()
[ 56.462189] NET: Registered protocol family 23
[ 56.530584] Yenta: ISA IRQ mask 0x0890, PCI irq 169
[ 56.557931] Socket status: 30000006
[ 56.585466] wbsd: Winbond W83L51xD SD/MMC card interface driver, 1.5
[ 56.613315] wbsd: Copyright(c) Pierre Ossman
[ 56.640843] Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
[ 56.641610] <ffffffff802772b0>{check_addr+16}
[ 56.696794] PGD 1d8f7067 PUD 1d387067 PMD 0
[ 56.724623] Oops: 0000 [1] SMP
[ 56.752143] CPU 0
[ 56.779072] Modules linked in: wbsd mmc_core irda yenta_socket rsrc_nonstatic pcmcia_core snd pcspkr psmouse serio_raw evd
ev mii crc_ccitt soundcore shpchp pci_hotplug reiserfs uhci_hcd usbcore ide_generic ide_cd cdrom ide_disk generic via82cxxx t
hermal processor fan capability commoncap vesafb cfbcopyarea cfbimgblt cfbfillrect fbcon tileblit font bitblit softcursor
[ 56.869395] Pid: 2716, comm: modprobe Not tainted 2.6.17-10-generic #2
[ 56.899924] RIP: 0010:[<ffffffff802772b0>] <ffffffff802772b0>{check_addr+16}
[ 56.900904] RSP: 0000:ffff81001c263db8 EFLAGS: 00010286
[ 56.961466] RAX: 0000000000000000 RBX: 0000000000620000 RCX: 0000000000010000
[ 56.992566] RDX: 0000000000620000 RSI: ffff81001c8d3000 RDI: ffffffff80433353
[ 57.023492] RBP: ffff81001d4bc200 R08: ffff81000000b0e8 R09: 0000000000000010
[ 57.054414] R10: 0000000000000004 R11: 0000000000000010 R12: ffff81001d4bc000
[ 57.085644] R13: 0000000000000001 R14: 000000000000004e R15: ffff81001c8d3000
[ 57.116568] FS: 00002ae139ef36d0(0000) GS:ffffffff805f3000(0000) knlGS:0000000000000000
[ 57.148020] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 57.179485] CR2: 0000000000000000 CR3: 000000001c24c000 CR4: 00000000000006e0
[ 57.211374] Process modprobe (pid: 2716, threadinfo ffff81001c262000, task ffff81001dbcb590)
[ 57.243554] Stack: 0000000000000000 ffffffff80277450 0000000000000000 ffffffff881a3f38
[ 57.244736] 0000000000000000 000000011d4bfd80 0000000500000002 ffffffff8036be56
[ 57.277234] 00000001000000d0 0000000000000000
[ 57.308658] Call Trace: <ffffffff80277450>{nommu_map_single+64}
[ 57.339478] <ffffffff881a3f38>{:wbsd:wbsd_init+872} <ffffffff8036be56>{compare_pnp_id+38}
[ 57.370708] <ffffffff8036c001>{pnp_device_probe+145} <ffffffff80393685>{driver_probe_device+101}
[ 57.402592] <ffffffff80393802>{__driver_attach+114} <ffffffff80393790>{__driver_attach+0}
[ 57.434546] <ffffffff80392f19>{bus_for_each_dev+73} <ffffffff80392abd>{bus_add_driver+141}
[ 57.466845] <ffffffff881ab033>{:wbsd:wbsd_drv_init+51} <ffffffff802a8eb7>{sys_init_module+199}
[ 57.499769] <ffffffff8026580e>{system_call+126}
[ 57.564922]
[ 57.564923] Code: 4c 8b 00 48 8d 04 0a 4c 39 c0 76 24 b8 fe ff ff ff 31 f6 49
[ 57.631929] RIP <ffffffff802772b0>{check_addr+16} RSP <ffff81001c263db8>
[ 57.666199] CR2: 0000000000000000
[ 57.700012] <6>via-rhine.c:v1.10-LK1.2.0-2.6 June-10-2004 Written by Donald Becker
[ 57.857274] Synaptics Touchpad, model: 1, fw: 5.1, id: 0x8f40b1, caps: 0x80471b/0x0
[ 57.932458] input: SynPS/2 Synaptics TouchPad as /class/input/input2