Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 370813

Summary: kernel panic in CONFIG_USB_NET_AX8817X driver
Product: Gentoo Linux Reporter: Randy Barlow <randy>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Screenshot of kernel panic
kernel config
Traceback with Intel Pro/1000 chip

Description Randy Barlow 2011-06-09 13:49:17 UTC
I apologize for the lack of clarity in this report, but it's been a difficult bug to track down. The short of it is that I am using a Gentoo box as a router on my network. It uses an on board Intel interface for the LAN side, and I have this crappy old USB dongle for the WAN side of things. I believe the kernel panic that I am seeing is due to the use of the USB dongle. The bizarre part is that the kernel panic only seems to occur when I have a client computer (laptop, wireless --> WRT54 G --> Intel LAN nic on router) participate on a PPTP VPN. Bizarre, I know.

I've noted this problem when using gentoo-sources-2.6.37, 2.6.38, and 2.6.39.

Reproducible: Always

Steps to Reproduce:
Have a client start a PPTP VPN session.
Actual Results:  
Eventually, in 5-10 minutes, the router will kernel panic.


$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0b95:7720 ASIX Electronics Corp. AX88772

$ emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.5, libc-0-r0, 2.6.39-gentoo x86_64)                                                                                                                                                                           
=================================================================                                                                                                                                                                                                               
System uname: Linux-2.6.39-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.0.2                                                                                                                                                                          
Timestamp of tree: Wed, 01 Jun 2011 13:00:01 +0000                                                                                                                                                                                                                              
app-shells/bash:     4.1_p9                                                                                                                                                                                                                                                     
dev-java/java-config: 2.1.11-r3                                                                                                                                                                                                                                                 
dev-lang/python:     2.7.1-r1, 3.1.3-r1                                                                                                                                                                                                                                         
dev-util/cmake:      2.8.4-r1                                                                                                                                                                                                                                                   
sys-apps/baselayout: 2.0.2                                                                                                                                                                                                                                                      
sys-apps/openrc:     0.8.2-r1                                                                                                                                                                                                                                                   
sys-apps/sandbox:    2.4                                                                                                                                                                                                                                                        
sys-devel/autoconf:  2.13, 2.65-r1                                                                                                                                                                                                                                              
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1                                                                                                                                                                                                                                   
sys-devel/binutils:  2.20.1-r1                                                                                                                                                                                                                                                  
sys-devel/gcc:       4.4.5                                                                                                                                                                                                                                                      
sys-devel/gcc-config: 1.4.1-r1                                                                                                                                                                                                                                                  
sys-devel/libtool:   2.2.10                                                                                                                                                                                                                                                     
sys-devel/make:      3.82                                                                                                                                                                                                                                                       
sys-kernel/linux-headers: 2.6.36.1                                                                                                                                                                                                                                              
sys-libs/glibc:      2.12.2                                                                                                                                                                                                                                                     
virtual/os-headers:  0                                                                                                                                                                                                                                                          
ACCEPT_KEYWORDS="amd64"                                                                                                                                                                                                                                                         
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10 AdobeFlash-10.1"                                                                                                                                                                                                                 
CBUILD="x86_64-pc-linux-gnu"                                                                                                                                                                                                                                                    
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2"                                                                                                                                                                                                                            
CHOST="x86_64-pc-linux-gnu"                                                                                                                                                                                                                                                     
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"                                                                                                                                                                                                                            
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                                                                                                                                                  
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=core2"                                                                                                                                                                                                                          
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j9"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb branding bzip2 cairo caps cjk cli consolekit cracklib crypt cups cxx dbus device-mapper doc dri dts dvd dvdr eds emboss encode evo exif faac fam ffmpeg firefox flac fortran gdbm gdu gif gimp gnome gnome-keyring gnutls gpm gstreamer gtk iconv ipv6 jpeg lame lcms ldap libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qemu qt3support readline sdl session spell sqlite sse sse2 ssl startup-notification svg sysfs tcpd templates threads tiff truetype udev unicode usb vim-syntax vorbis x264 xcb xml xorg xscreensaver xulrunner xv xvid 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 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Randy Barlow 2011-06-09 14:01:09 UTC
Created attachment 276379 [details]
Screenshot of kernel panic

I had a hard time getting the full kernel panic. The router doesn't seem to log the kernel panic anywhere that I can find, it just seems to appear on the console. Because of this, I took a photo of the panic and I've attached that photo to this ticket. I may be able to set the router's console to a higher resolution if necessary, to get the full traceback.

Is there somewhere in particular that the traceback might be getting written to a file?
Comment 2 Randy Barlow 2011-06-09 14:08:12 UTC
Created attachment 276381 [details]
kernel config

Here is my kernel config.
Comment 3 Randy Barlow 2011-06-09 14:11:43 UTC
I do note that the interface in question does seem to have RX errors, and I've noted this in the past.

$ /sbin/ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:50:b6:00:78:ff  
          inet addr:XX.XX.XX.XX  Bcast:255.255.255.255  Mask:255.255.254.0
          inet6 addr: fe80::250:b6ff:fe00:78ff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18453 errors:2 dropped:0 overruns:0 frame:2
          TX packets:2688 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1804937 (1.7 MiB)  TX bytes:592019 (578.1 KiB)

Let me know if there is any further information that I could provide. Thanks!
Comment 4 Randy Barlow 2011-06-16 16:07:19 UTC
Created attachment 277261 [details]
Traceback with Intel Pro/1000 chip

I decided to buy a more respectable network card to use for my WAN connection, so I got an Intel Pro 1000 Gigabit card. I expected this to resolve the problem, but it turns out that I am able to cause my router to kernel panic when it is using this card as well. I've attached a screen shot of the traceback (I still unfortunately wasn't able to see the whole thing on the console).

Is it possible for me to get the full traceback in text format from the disk somewhere, or does the kernel not log these to disk?
Comment 5 Randy Barlow 2011-06-16 16:12:02 UTC
$ cat /etc/conf.d/net | sed "s/real_ip_addresses/Xs"
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

config_eth0="null"

# Build a bridge on eth0, so our virtual hosts can get on the local network.
bridge_br0="eth0"
config_br0="192.168.25.1/24 2001:XXXX:XXXX:XXXX::1/64"

depend_br0() {
	need net.eth0
}

# We get a WAN IP address from Time Warner
config_eth1="dhcp"
dns_search_eth1="mydomain.com"

# Our he.net IPv6 tunnel!
# using IProute2 method, makes it easier :)
modules="iproute2"

iptunnel_he6="mode sit remote 216.66.22.2 local XXX.XXX.XXX.XXX ttl 255"
depend_he6="net.eth1"
config_he6="2001:XXXX:XXXX:XXXX::2/64"
routes_he6="default via 2001:XXXX:XXXX:XXXX::1 dev he6"
Comment 6 Randy Barlow 2011-06-16 16:14:42 UTC
Just to make it clear, this machine has two physical NICs. eth0 is my internal LAN interface, and eth1 is connected to my cable modem.

I do a bridge on eth0 with some virtual machines, and that bridge is the virtual LAN interface as well.

I use iptables to do NAT and a little packet forwarding, and ip6tables to do some packet filtering.

If any more information about my particular setup would be helpful, let me know!
Comment 7 Mike Pagano gentoo-dev 2011-11-01 14:56:35 UTC
This is really hard to debug with a full trace. Have you tried 3.1? This may have to go upstream
Comment 8 Mike Pagano gentoo-dev 2011-11-01 14:56:52 UTC
I meant "without", of course.
Comment 9 Randy Barlow 2011-11-01 15:35:55 UTC
I gave up on using this NIC in favor of a proper internal NIC (Intel based too!) a few months ago. I do still have it, though I am not using it for anything. If you would prefer to close this ticket, I wouldn't be sad (or you can keep it open in case anyone else has this problem…)
Comment 10 Mike Pagano gentoo-dev 2011-11-01 22:55:42 UTC
ok, thanks, closing for now, then. Hopefully this problem does not reappear for anyone else.