Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120937 - Kernel bug when inserting PCMCIA bluetooth card
Summary: Kernel bug when inserting PCMCIA bluetooth card
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Daniel Drake (RETIRED)
URL: http://www.kernel.org/git/?p=linux/ke...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 06:18 UTC by Stefano
Modified: 2006-03-02 04:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch which solves the bug (patch,1.16 KB, patch)
2006-02-03 14:20 UTC, Stefano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano 2006-01-30 06:18:47 UTC
Hi,

when inserting a PCMCIA bluetooth card, with gentoo-sources-2.6.15-r1 and pcmciautils-010, the following happens:

Jan 30 14:52:56 raistmobile cs: pcmcia_socket0: unsupported voltage key.
Jan 30 14:53:02 raistmobile pccard: PCMCIA card inserted into slot 0
Jan 30 14:53:02 raistmobile cs: memory probe 0xe0200000-0xe07fffff: excluding 0x
e0200000-0xe02bffff
Jan 30 14:53:02 raistmobile pcmcia: registering new device pcmcia0.0
Jan 30 14:53:02 raistmobile dhcpcd[8817]: terminating on signal 15
Jan 30 14:53:02 raistmobile Bluetooth: Core ver 2.8
Jan 30 14:53:02 raistmobile NET: Registered protocol family 31
Jan 30 14:53:02 raistmobile Bluetooth: HCI device and connection manager initial
ized
Jan 30 14:53:02 raistmobile Bluetooth: HCI socket layer initialized
Jan 30 14:53:02 raistmobile ------------[ cut here ]------------
Jan 30 14:53:02 raistmobile kernel BUG at fs/sysfs/symlink.c:87!
Jan 30 14:53:02 raistmobile invalid operand: 0000 [#1]
Jan 30 14:53:02 raistmobile Modules linked in: bt3c_cs bluetooth sd_mod ieee8021
1_crypt_wep ohci_hcd 8250_pnp 8250 serial_core parport_pc parport ipw2100 ieee80
211 ieee80211_crypt hw_random ehci_hcd usb_storage scsi_mod uhci_hcd yenta_socke
t rsrc_nonstatic pcmcia pcmcia_core snd_pcm_oss snd_mixer_oss snd_intel8x0m snd_
intel8x0 snd_ac97_codec snd_ac97_bus snd_pcm snd_timer snd snd_page_alloc
Jan 30 14:53:02 raistmobile CPU:    0
Jan 30 14:53:02 raistmobile EIP:    0060:[<c01731f5>]    Tainted: GF     VLI
Jan 30 14:53:02 raistmobile EFLAGS: 00010202   (2.6.15-gentoo-r1)
Jan 30 14:53:02 raistmobile EIP is at sysfs_create_link+0x22/0x5d
Jan 30 14:53:02 raistmobile eax: dfcfdf01   ebx: daf14188   ecx: 00000000   edx:
 da8edd00
Jan 30 14:53:02 raistmobile esi: 00000000   edi: dc5ebdc0   ebp: c02e9120   esp:
 dc1bd920
Jan 30 14:53:02 raistmobile ds: 007b   es: 007b   ss: 0068
Jan 30 14:53:02 raistmobile Process modprobe (pid: 9152, threadinfo=dc1bc000 tas
k=daee3580)
Jan 30 14:53:02 raistmobile Stack: daf14188 daf14180 daf14180 c020b664 df454aa8
daf14188 dc5ebdc0 daf14188
Jan 30 14:53:02 raistmobile df454aa8 c02ae1b0 daf14180 00000000 dc5ebdc0 0000000
0 daf14180 daf14180
Jan 30 14:53:02 raistmobile df454a40 dc1bd9b0 c020b701 daf14180 daf14180 daece64
0 c020e087 daf14180
Jan 30 14:53:02 raistmobile Call Trace:
Jan 30 14:53:02 raistmobile [<c020b664>] class_device_add+0x168/0x1f4
Jan 30 14:53:02 raistmobile [<c020b701>] class_device_register+0x11/0x15
Jan 30 14:53:02 raistmobile [<c020e087>] fw_register_class_device+0xca/0x103
Jan 30 14:53:02 raistmobile [<c02890d0>] schedule+0x46a/0x4cf
Jan 30 14:53:02 raistmobile [<c020e0e0>] fw_setup_class_device+0x20/0xae
Jan 30 14:53:02 raistmobile [<c020e1cd>] _request_firmware+0x5f/0x141
Jan 30 14:53:02 raistmobile [<c020e2c2>] request_firmware+0x13/0x17
Jan 30 14:53:02 raistmobile [<df452a51>] bt3c_open+0xcf/0x155 [bt3c_cs]
Jan 30 14:53:02 raistmobile [<df452f68>] bt3c_config+0x289/0x2d2 [bt3c_cs]
Jan 30 14:53:02 raistmobile [<c015a823>] free_fdtable_rcu+0x84/0xc3
Jan 30 14:53:02 raistmobile [<c0124577>] __rcu_process_callbacks+0x7e/0x97
Jan 30 14:53:02 raistmobile [<c0124500>] __rcu_process_callbacks+0x7/0x97
Jan 30 14:53:02 raistmobile [<c01314f7>] mempool_alloc_slab+0xd/0x10
Jan 30 14:53:02 raistmobile [<c0131416>] mempool_alloc+0x2e/0xac
Jan 30 14:53:02 raistmobile [<c01314f7>] mempool_alloc_slab+0xd/0x10
Jan 30 14:53:02 raistmobile [<c0131416>] mempool_alloc+0x2e/0xac
Jan 30 14:53:02 raistmobile [<c01314f7>] mempool_alloc_slab+0xd/0x10
Jan 30 14:53:02 raistmobile [<c0197fe2>] get_request+0x162/0x262
Jan 30 14:53:02 raistmobile [<c019c212>] as_update_arq+0x19/0x46
Jan 30 14:53:02 raistmobile [<c019ca55>] as_add_request+0xdc/0x1b1
Jan 30 14:53:02 raistmobile [<c0195e03>] __elv_add_request+0xe4/0x131
Jan 30 14:53:02 raistmobile [<c0198d22>] __make_request+0x46d/0x49d
Jan 30 14:53:02 raistmobile [<c0198e8b>] generic_make_request+0xd3/0xe4
Jan 30 14:53:02 raistmobile [<c0214715>] ide_map_sg+0x34/0x80
Jan 30 14:53:02 raistmobile [<c021a938>] ide_build_sglist+0x32/0x95
Jan 30 14:53:02 raistmobile [<c021adcb>] ide_dma_start+0x26/0x35
Jan 30 14:53:02 raistmobile [<c021c6e7>] __ide_do_rw_disk+0x35e/0x435
Jan 30 14:53:02 raistmobile [<c0215a9d>] ide_wait_stat+0xd0/0x113
Jan 30 14:53:02 raistmobile [<c0114e62>] deactivate_task+0x15/0x21
Jan 30 14:53:02 raistmobile [<c02890d0>] schedule+0x46a/0x4cf
Jan 30 14:53:02 raistmobile [<c02896bd>] io_schedule+0xe/0x16
Jan 30 14:53:02 raistmobile [<c028992b>] __wait_on_bit_lock+0x4f/0x57
Jan 30 14:53:02 raistmobile [<c012e729>] sync_page+0x0/0x38
Jan 30 14:53:02 raistmobile [<c012ed15>] __lock_page+0x6a/0x71
Jan 30 14:53:02 raistmobile [<df3a4bac>] pccard_get_next_tuple+0x7e/0x20b [pcmci
a_core]
Jan 30 14:53:02 raistmobile [<df3a49a3>] pccard_get_first_tuple+0x102/0x10f [pcm
cia_core]
Jan 30 14:53:02 raistmobile [<df453060>] bt3c_event+0x6b/0xa7 [bt3c_cs]
Jan 30 14:53:02 raistmobile [<df3af121>] pcmcia_register_client+0x1c1/0x1dc [pcm
cia]
Jan 30 14:53:02 raistmobile [<c011562f>] __wake_up+0x14/0x1e
Jan 30 14:53:02 raistmobile [<c0135a9b>] kzalloc+0x14/0x3b
Jan 30 14:53:02 raistmobile [<df452ba9>] bt3c_attach+0x8b/0xb0 [bt3c_cs]
Jan 30 14:53:02 raistmobile [<c02890d0>] schedule+0x46a/0x4cf
Jan 30 14:53:02 raistmobile [<c01a1e73>] kobject_get+0x12/0x17
Jan 30 14:53:02 raistmobile [<df3ae3f7>] pcmcia_device_probe+0x4a/0x9f [pcmcia]
Jan 30 14:53:02 raistmobile [<c020a96e>] driver_probe_device+0x37/0x89
Jan 30 14:53:02 raistmobile [<c020aa25>] __driver_attach+0x0/0x3b
Jan 30 14:53:02 raistmobile [<c020aa4e>] __driver_attach+0x29/0x3b
Jan 30 14:53:02 raistmobile [<c020a1d7>] bus_for_each_dev+0x47/0x6d
Jan 30 14:53:02 raistmobile [<c01a1d0b>] kobject_add+0x64/0x83
Jan 30 14:53:02 raistmobile [<c020aa74>] driver_attach+0x14/0x18
Jan 30 14:53:02 raistmobile [<c020aa25>] __driver_attach+0x0/0x3b
Jan 30 14:53:02 raistmobile [<c020a5af>] bus_add_driver+0x54/0x96
Jan 30 14:53:02 raistmobile [<c020ad95>] driver_register+0x34/0x39
Jan 30 14:53:02 raistmobile [<df3ae316>] pcmcia_register_driver+0xf/0x48 [pcmcia
]
Jan 30 14:53:02 raistmobile [<de81500a>] init_bt3c_cs+0xa/0xc [bt3c_cs]
Jan 30 14:53:02 raistmobile [<c012bef4>] sys_init_module+0xc0/0x186
Jan 30 14:53:02 raistmobile [<c01029ff>] sysenter_past_esp+0x54/0x75
Jan 30 14:53:02 raistmobile Code: 59 89 e8 5a 5b 5e 5f 5d c3 57 56 53 8b 44 24 1
0 8b 7c 24 18 85 c0 8b 70 30 74 10 85 f6 0f 94 c0 85 ff 0f 94 c2 09 d0 a8 01 74
08 <0f> 0b 57 00 cc e3 29 c0 8b 5e 08 e8 e0 63 11 00 ff 4b 70 0f 88

# emerge info
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.0_pre15
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.mirror.solnet.ch http://gentoo.ngi.it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acl acpi alsa amuled aqua_theme arts async atlas audiofile avantgo bash-completion berkdb bindist bitmap-fonts bluetooth bzip2 cardbus cdparanoia cdr cpudetection crypt css cups curl curlwrappers devfs26 devmap dga dhcp dio directfb divx4linux djbfft dlloader dpms dri dvb dvd encode ethereal exif expat fat fbcon fbsplash ffmpeg fftw flac foomaticdb fortran fpx ftp gd gdbm gif glut glx gnutls gphoto2 gpm gs gssapi gtk gtk2 gzip hpn icq idea idn imagemagick imap imlib ipv6 irda jabber java javascript jikes john jp2 jpeg jpeg2k kde kdepim kerberos krb4 lapack lcms ldap lesstif libg++ libwww mad mbox messages mikmod mime mmap mmx mmxext mng motif mozilla mozsvg mp3 mpeg mppe-mppc msn mysql mysqli ncurses nls nocd nomalloccheck nptl nptlonly ntfs ntlm octave odbc offensive ogg oggvorbis opengl oscar oss pam pcapnav pcmcia pcntl pcre pda pdflib perl plotutils png pnp posix ppds python qt quicktime radius rdesktop readline real samba sasl sdl sharedmem silc slp sms snmp sockets sox spell sse ssl svga sysfs sysvipc tcltk tcpd tetex threads tiff truetype truetype-fonts type1 type1-fonts udev unicode usb userlocales v4l v4l2 vcd vorbis wifi win32codecs winbind wmf xchattext xml2 xmlrpc xmms xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Stefano 2006-01-31 02:17:32 UTC
As a side note: I just tried various other PCMCIA cards, and they do not show any problem.

The one causing problems is a 3Com Bluetooth PCMCIA card.
Comment 2 Henrik Brix Andersen 2006-02-01 07:46:01 UTC
Can you reproduce this with this problem with the latest vanilla-sources (currently sys-kernel/vanilla-sources-2.6.16_rc1)?
Comment 3 Stefano 2006-02-03 14:20:15 UTC
Created attachment 78832 [details, diff]
Patch which solves the bug

The attached patch solves the bug
Comment 4 Stefano 2006-02-03 14:21:05 UTC
I posted the patch by Bluez maintainer Marcel Holtman (thanks mate !) which solves the bug like a charm :)
Comment 5 Henrik Brix Andersen 2006-02-03 14:34:46 UTC
This may be fixed for you, but not the rest of the Gentoo Linux users out there...
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-02-11 02:31:19 UTC
I checked with Marcel, who says the patch will go upstream when he finds some time.
Comment 7 Henrik Brix Andersen 2006-02-19 12:16:06 UTC
Daniel, will this patch go into genpatches?
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2006-02-19 15:00:27 UTC
It already is. I thought you said you saw the commit :)
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2006-03-02 04:46:31 UTC
Thanks for reporting and testing. Fixed in genpatches-2.6.15-9 (gentoo-sources-2.6.15-r6).