Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159277 - [2.6.19 regression] ppp over bluetooth fails with "TIOCGSERIAL is not supported" error
Summary: [2.6.19 regression] ppp over bluetooth fails with "TIOCGSERIAL is not support...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-2.6.19-regression
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-28 05:43 UTC by Bill Kenworthy
Modified: 2007-09-10 22:53 UTC (History)
2 users (show)

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


Attachments
debug patch (rfcomm-debug.patch,985 bytes, patch)
2007-01-27 21:22 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bill Kenworthy 2006-12-28 05:43:30 UTC
ppp over bluetooth for a treo650 with 2.16.19-r2 gives the error (see "<<<<<<<"):

Dec 28 21:56:54 rattus hcid[22749]: pin_code_request (sba=00:0A:3A:59:39:38, dba=00:07:E0:06:AC:7A)
Dec 28 21:57:02 rattus hcid[22749]: link_key_notify (sba=00:0A:3A:59:39:38, dba=00:07:E0:06:AC:7A)
Dec 28 21:57:37 rattus rfcomm_tty_ioctl: TIOCGSERIAL is not supported <<<<<<<<
Dec 28 21:57:37 rattus dund[23081]: New connection from 00:07:E0:06:AC:7A
Dec 28 21:57:37 rattus pppd[23094]: pppd 2.4.4 started by root, uid 0
Dec 28 21:57:37 rattus pppd[23094]: Couldn't get channel number: Input/output error
Dec 28 21:57:37 rattus pppd[23094]: Exit.

2.16.18-r2 was fine.

diffing net/bluetooth/rfcomm/tty.c between the two kernels shows

2.6.19-r2: tty_register_device(rfcomm_tty_driver, dev->id, rfcomm_get_device(dev));

and

2.16.18-r2: tty_register_device(rfcomm_tty_driver, dev->id, NULL);

Changing this line to match the earlier kernel (using NULL) removes the error and ppp connects as it should.


emerge info:
rattus linux # emerge info
*** Deprecated use of action 'info', use '--info' instead
Portage 2.1.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.19-gentoo-r2 i686)
=================================================================
System uname: 2.6.19-gentoo-r2 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.6
Last Sync: Thu, 28 Dec 2006 11:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.8.1-r1, 2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-w -mcpu=athlon-xp -march=athlon-xp -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -ftracer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-w -mcpu=athlon-xp -march=athlon-xp -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -ftracer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp.iinet.net.au/pub/Gentoo"
LANG="en_AU.UTF-8"
LC_ALL="en_AU.UTF-8"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext 7zip X X509 Xaw3d a52 aac aalib activefilter adns aim alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 apm arts asf audiofile avahi bash-completion berkdb bidi bigger-fonts binfilter bitmap-fonts blas bluetooth bonobo browserplugin buffysize bzip2 bzlib c++ cairo cap cdda cddb cdparanoia cdr cgi cli corba cpudetection cracklib crypt cscope css cups curl daap dbus devmap dga dhcp divx divx4linux djvu dlloader dnd doc dri dts dv dvb dvd dvdr dvdread dvi dxr3 edl eds elibc_glibc emboss encode erandom escreen esd ethereal evo exif expat extensions faad fam fame fbcon fbsplash ffmpeg fftw firefox flac flash font-server foomaticdb fortran fpx freetds freetype gb gd gdbm ggi gif gimp gimpprint ginac glade glgd glibc-omitfp glut gmedia gmp gnome gnome-print gnomedb gnuplot gnutls gphoto2 gpm graphviz gs gsl gstreamer gtk gtk2 gtkhtml guile gzip hal hdf hdf5 howl-compat hpn httpd iconv icq idn imagemagick imap imlib imlib2 inkjar innodb input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jabber java javascript jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdexdeltas kernel_linux kig-scripting kqemu largeterminal lcms ldap libcaca libclamav libg++ libgda libsamplerate libwww linguas_en live logitech-mouse logrotate lua lzo lzw-tiff mad maildir matroska mbrola mcal mdb mdnsresponder-compat mhash mikmod ming mjpeg mmx mmx2 mmxext mng modplug motif mozctl mozilla moznocompose moznoirc moznomail mozp3p mozplaintext mozsvg mozxmlterm mp3 mp4 mpeg mpeg4 mplayer msn multislot multiuser mupad-noscilab musepack music musicbrainz mysql mythtv native nautilus ncurses network nls nntp nocardbus nocd nptl nptlonly nsplugin ntlm nvidia nviz oav objc odbc offensive ogg openal openexr opengl operanom2 oscar oss pam parse-clocks passfile pcap pcntl pcre pda pdf pdfkit pear-db perl pg-hier php physfs pic plotutils plugin png pnp posix postgres povray ppds pppd profile python qemu-fast qt3 qt4 quicktime quotes rar readline real realmedia reflection rtc rtsp samba scanner screen sdl seamonkey sensord server session sftplogging shout silc slang smime sms sndfile snmp soap sox speedo speex speexvorbis spell spl sse sse2 ssl stencil-buffer stream svg svga swat t1lib tcl tcltk tcpd tetex tga theora threads tidy tiff tk tokenizer toolbar transcode transparent-proxy truetype truetype-fonts type1 type1-fonts udev unicode usb userland_GNU uudeview v4l v4l2 vcd vcdimager vda vdr video_cards_nvidia video_cards_vesa video_cards_vga videos vidix vim vim-with-x vlm vnc vorbis vorbis-psy webdav wifilm_sensors win32codecs wmf wmp wsconvert wxgtk1 wxwindows x264 xanim xbase xchatdccserver xchattext xcomposite xface xine xinetd xml xml2 xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xrandr xscreensaver xsl xv xvid xvmc yv12 zip zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

rattus linux #
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2007-01-27 21:22:56 UTC
Created attachment 108316 [details, diff]
debug patch

please apply this patch and look for new messages in dmesg about rfcomm_dev_add
Hopefully it will clarify things
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2007-02-24 18:42:18 UTC
see comment #1
Comment 3 Olivier Crete (RETIRED) gentoo-dev 2007-04-10 21:31:53 UTC
creating the device succeeds.. I think its a racing problem... pppd probably checks for the device before it gets created...
Comment 4 Olivier Crete (RETIRED) gentoo-dev 2007-04-11 00:40:11 UTC
what seems to happen is that the udev event to remove the rfcomm device comes almost immediately after the message to add it.. probably while dund is sleep (for 100ms) to wait for it to appear...
Comment 5 Olivier Crete (RETIRED) gentoo-dev 2007-04-11 01:50:45 UTC
what seems to happen is that the udev event to remove the rfcomm device comes almost immediately after the message to add it.. as if the other side was pulling it from us (or if the local kernel does for some reason).. The other side is a Nokia N800. I can provide the result of hcidump if its useful.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2007-04-29 14:41:17 UTC
Olivier, can you open an upstream bug at http://bugzilla.kernel.org with your findings so far?
Comment 7 Maarten Bressers (RETIRED) gentoo-dev 2007-07-22 16:56:17 UTC
Bill, could you please file a bug report upstream (http://bugzilla.kernel.org) about this?
Comment 8 Maarten Bressers (RETIRED) gentoo-dev 2007-07-22 16:58:05 UTC
And please post the URL of the upstream bug here, so we can track it. Thanks.
Comment 9 Mike Pagano gentoo-dev 2007-09-10 22:53:53 UTC
Once a bug has been opened upstream please reopen this bug and attach the URL for tracking purposes.