This issue has been present throughout the 2.6.29 series and with the last versions of bluez-libs / bluez-utils as well as current bluez-4.3* (which is as long as I have had the machine, a Samsung NC10 netbook). Remote devices can be scanned, pinged and paired without issue, but whenever transmission is attempted, a hard lockup occurs after 5-10 seconds. This locks the system completely to the extent that SysRq does not work and hard-poweroff is the only option. Examples of crash-causing actions: 1) rfcomm connect 0 (configured in rfcomm.conf) 2) (using blueman) receive a file via obex from previously-paired mobile phone (Nokia N95 8GB). The lockup does not occur until just after the file is received. Here's everything in the messages log for the second example (including loading the btusb module): Jun 13 13:47:07 minime [ 8977.632116] Bluetooth: Core ver 2.14 Jun 13 13:47:07 minime [ 8977.632345] NET: Registered protocol family 31 Jun 13 13:47:07 minime [ 8977.632351] Bluetooth: HCI device and connection manager initialized Jun 13 13:47:07 minime [ 8977.632358] Bluetooth: HCI socket layer initialized Jun 13 13:47:07 minime [ 8977.662083] Bluetooth: Generic Bluetooth USB driver ver 0.4 Jun 13 13:47:07 minime [ 8977.664071] usbcore: registered new interface driver btusb Jun 13 13:47:07 minime /etc/init.d/bluetooth[4409]: bluetooth: not allowed to be hotplugged Jun 13 13:50:01 minime cron[4416]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons ) Jun 13 13:50:12 minime bluetoothd[5530]: Bluetooth daemon 4.39 Jun 13 13:50:12 minime bluetoothd[5530]: Starting SDP server Jun 13 13:50:12 minime [ 9162.367404] Bluetooth: L2CAP ver 2.11 Jun 13 13:50:12 minime [ 9162.367412] Bluetooth: L2CAP socket layer initialized Jun 13 13:50:12 minime [ 9162.461905] Bluetooth: RFCOMM socket layer initialized Jun 13 13:50:12 minime [ 9162.461933] Bluetooth: RFCOMM TTY layer initialized Jun 13 13:50:12 minime [ 9162.461940] Bluetooth: RFCOMM ver 1.10 Jun 13 13:50:12 minime [ 9162.524971] Bluetooth: SCO (Voice Link) ver 0.6 Jun 13 13:50:12 minime [ 9162.524983] Bluetooth: SCO socket layer initialized Jun 13 13:50:12 minime [ 9162.586076] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Jun 13 13:50:12 minime [ 9162.586086] Bluetooth: BNEP filters: protocol multicast Jun 13 13:50:12 minime bluetoothd[5530]: Can't create GN bridge Jun 13 13:50:12 minime bluetoothd[5530]: Starting experimental netlink support Jun 13 13:50:12 minime bluetoothd[5530]: Failed to find Bluetooth netlink family Jun 13 13:50:12 minime bluetoothd[5530]: HCI dev 0 registered Jun 13 13:50:12 minime bluetoothd[5530]: HCI dev 0 up Jun 13 13:50:12 minime bluetoothd[5530]: Starting security manager 0 Jun 13 13:50:12 minime bluetoothd[5530]: probe failed with driver input-headset for device /org/bluez/5530/hci0/dev_00_1F_00_B1_00_F6 Jun 13 13:50:12 minime bluetoothd[5530]: Adapter /org/bluez/5530/hci0 has been enabled Jun 13 13:50:32 minime [ 9182.268776] usbcore: registered new interface driver snd-usb-audio Jun 13 13:52:36 minime bluetoothd[5530]: Discovery session 0xb801b268 with :1.24 activated Here's the lsusb output for the device: Bus 003 Device 002: ID 0a5c:2101 Broadcom Corp. A-Link BlueUsbA2 Bluetooth emerge --info: Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 12 Jun 2009 19:45:02 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 4.0_p24 dev-java/java-config: 2.1.8 dev-lang/python: 2.5.4-r2, 2.6.2-r1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r2 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mssse3" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/security/pam_mount.conf.xml /usr/share/apps/kdm/themes/oxygen/oxygen.xml /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe -mmmx -msse -msse2 -mssse3" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/" LDFLAGS="-Wl,-O1" LINGUAS="en_GB" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://brazil/gentoo-portage" USE="X a52 aac acl acpi alsa apache2 berkdb bluetooth bzip2 cairo cdparanoia cdr chm cli clucene consolekit cracklib crypt cups dbus dga dio dri dvd dvdread encode faac faad ffmpeg flac flash foomaticdb fortran fuse gdbm gif gimp glitz gnutls gpm hal iconv imagemagick innodb isdnlog java java6 javascript jpeg kde libwww madwifi matroska midi mmx mp3 mpeg mplayer msn mudflap mysql ncurses nls nptl nptlonly nsplugin odbc ogg opengl openmp oss pam pcmcia pcntl pcre pdf perl plasma png posix ppds pppd python qt3support qt4 readline reflection samba scanner sdl semantic-desktop sesame2 session sharedmem soap sockets spl sqlite sqlite3 sse sse2 sse3 ssl ssse3 svg sysfs tcpd theora threads tiff tk truetype unicode usb vcd vhosts webkit wifi win32codecs x264 x86 xcb xcomposite xine xinerama xml xmlrpc xorg xsl xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="intel vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS kernel config to follow.
Created attachment 194544 [details] Kernel config for 2.6.29-gentoo-r5
Can you reproduce this issue with any of 2.6.30 sources? Thanks
I did to have hard lookup's with 2.6.29 series and bluez-4* before i change to 2.6.30 series. Jun 7 01:39:44 192.168.0.X BUG: unable to handle kernel Jun 7 01:39:54 192.168.0.X NULL pointer dereference Jun 7 01:39:54 192.168.0.X at (null) Jun 7 01:39:54 192.168.0.X IP: Jun 7 13:38:28 192.168.0.X [<ffffffff8041ea65>] skb_dequeue+0x4c/0x67 Jun 7 13:38:28 192.168.0.X PGD 0 Jun 7 13:38:28 192.168.0.X Oops: 0002 [#1] Jun 7 13:38:28 192.168.0.X SMP Jun 7 13:38:28 192.168.0.X last sysfs file: /sys/class/bluetooth/hci0/hci0:42/type Jun 7 13:38:28 192.168.0.X CPU 0 Jun 7 13:38:28 192.168.0.X Modules linked in: ....
Ok I adjusted the title I think I tracked down the commit that fixes this issue on 2.6.30 kernels dsd/mpagano are you planning another release for 2.6.29 gentoo-sources?
Yes, I will definitely be doing another 2.6.29 release. Can the OP test the patch referenced and report back here?
OK, didn't know 2.6.30 was out yet, will test ASAP.
Actually its a series of commits that seems to be related to this issue starting from this one http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.30.y.git;a=commit;h=ffa6a7054d172a2f57248dff2de600ca795c5656
Created attachment 194630 [details, diff] backported patch I backported the patch from 2.6.30 series. Could you please test it? Thanks :)
Confirmed - patch prevents the lockup (tested on receiving jpg file via obex from same phone) on 2.6.29-gentoo-r5. Thanks again.
This patch will be included in the next gentoo-sources-2.6.29 release. Thank you
Fixed in gentoo-sources-2.6.29-r6