I'm using a Huawei GSM modem to connect to the internet, and it uses "option" module. After moving to gentoo-sources 2.6.31 I get frequent crashes of this module (modem disconnects and there is no /dev/USB0). reconnecting the modem gives a nice trace in dmesg (attachment) Reproducible: Always Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.0.1 Timestamp of tree: Mon, 14 Sep 2009 11:30:01 +0000 app-shells/bash: 4.0_p33 dev-java/java-config: 2.1.9 dev-lang/python: 2.5.4-r3, 2.6.2-r1, 3.1.1 dev-python/pycrypto: 2.0.1-r8 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.6.3, 1.8.5-r3, 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.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" INSTALL_MASK="/usr/lib64/python2.5/" LANG="pl_PL.utf8" LC_ALL="pl_PL.utf8" LDFLAGS="-Wl,-O1" LINGUAS="pl" MAKEOPTS="-j3" 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/layman/roslin /usr/local/portage/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acl acpi alsa amd64 apm autoipd automount avahi berkdb bittorrent bluetooth branding bzip2 cairo cdparanoia cdr chm cli connection-sharing connectionstatus consolekit cracklib crypt cups dbus dhcp dhcpcd disk-partition djvu dri dts dvb dvd dvdr eds emboss encode evo exif fam fastcgi ffmpeg firefox flac fontconfig fontforge gadu gdbm gif glib google-gadgets gphoto2 gpm gstreamer hal hddtemp history iconv inotify irc isdnlog jabber java5 java6 jpeg kde kdehiddenvisibility kqemu laptop lcms libgadu lm_sensors lzma lzo mad mikmod mmx mng mozdevelop mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl php png ppds pppd python qt3support qt4 quicktime readline reflection rss samba sdl semantic-desktop sensord session spell spl sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg symlink sysfs syslog tcpd theora threads thumbnail thunar tiff truetype unicode usb v4l2 vorbis webkit x264 xcomposite xine xinerama xml xorg xslt xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 autoindex cache 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 status unique_id authz_host proxy_http proxy proxy_connect" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 204414 [details] dmesg output of the module crash
Can we have a full copy of your dmesg and a copy of your .config? Thanks!
Created attachment 204637 [details] Kernel .config
I've added the config, as for full dmesg copy I can attach it when the module will crash (didn't crashed today yet ;))
Created attachment 204960 [details] Full dmesg with the crash
attach the output of lsusb -v
Created attachment 205067 [details] lsusb -v output As you wish ;)
You mentioned crashes. Are they different from the one you attached while removing inserting the modem? Do they look anything like this? http://bugzilla.kernel.org/show_bug.cgi?id=14212
The attached logs/crash in dmesg is what I get after reinserting the modem (modem disconnects, and something happens that removes /dev/ttyUSB* so I can't use wvdial to connect again... so I reinsert the modem - no help, and the trace in dmesg shows up.). The source may be the same as in that linked bug - I don't know ("BUG: unable to handle kernel paging request at 0010378c" vs my "BUG: unable to handle kernel NULL pointer dereference at (null)")
Any crashes that occur besides the reinserting one?
none. When it dies/disconnect there are no crash/oops/whatever entries in dmesg
Linux 2.6.31.5 includes this patch which might address your problem: http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.31.y.git;a=commitdiff_plain;h=670add0a279e39e13a66876389c64d4f7dcf0379 Can you test with the latest gentoo-sources 2.6.31-r5.
I'm using gentoo sources 2.6.30-r4 right now, and no problems so far :) I'll upgrade to -r5 too.
Hopefully silence means success. :) Feel free to reopen if your problem is not solved.