All seems running fine, however dmesg report this: USB Mass Storage support registered. usb 3-1: new low speed USB device using uhci_hcd and address 2 usb 3-2: new low speed USB device using uhci_hcd and address 3 input: USB HID v1.10 Gamepad [Thrustmaster Thrustmaster analog gamepad] on usb-0000:00:10.1-1 usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.01:USB HID core driver Badness in kref_get at lib/kref.c:32 [<c02b8794>] kref_get+0x44/0x50 [<c02b7d0a>] kobject_get+0x1a/0x30 [<c032e81d>] get_bus+0x1d/0x30 [<c032e654>] bus_add_driver+0x24/0xe0 [<c03cf91e>] gameport_handle_events+0x4e/0xa0 [<c03cfa87>] gameport_thread+0x17/0x100 [<c03cfa70>] gameport_thread+0x0/0x100 [<c012d665>] kthread+0xa5/0xb0 [<c012d5c0>] kthread+0x0/0xb0 [<c0101381>] kernel_thread_helper+0x5/0x14 Badness in kref_get at lib/kref.c:32 [<c02b8794>] kref_get+0x44/0x50 [<c02b7d0a>] kobject_get+0x1a/0x30 [<c02b79b3>] kobject_init+0x33/0x50 [<c02b7b10>] kobject_register+0x20/0x70 [<c032e687>] bus_add_driver+0x57/0xe0 [<c03cf91e>] gameport_handle_events+0x4e/0xa0 [<c03cfa87>] gameport_thread+0x17/0x100 [<c03cfa70>] gameport_thread+0x0/0x100 [<c012d665>] kthread+0xa5/0xb0 [<c012d5c0>] kthread+0x0/0xb0 [<c0101381>] kernel_thread_helper+0x5/0x14 Unable to handle kernel NULL pointer dereference at virtual address 00000000 printing eip: c02b7a8c *pde = 00000000 Oops: 0002 [#1] PREEMPT Modules linked in: CPU: 0 EIP: 0060:[<c02b7a8c>] Not tainted VLI EFLAGS: 00010296 (2.6.13-gentoo) EIP is at kobject_add+0x5c/0xc0 eax: c0530ba0 ebx: c05262a8 ecx: 00000000 edx: c05262c4 esi: dfdf2000 edi: c0530ba8 ebp: 00000000 esp: dfdf3f10 ds: 007b es: 007b ss: 0068 Process kgameportd (pid: 853, threadinfo=dfdf2000 task=dfcaa5d0) Stack: c0530ba8 c05262a8 ffffffea c0526294 c02b7b18 c05262a8 c05262a8 c0530b40 c05262a8 c0530b40 c032e687 c05262a8 c0491be9 c048cba4 dfc8b940 dfdf2000 00000000 dfdf3f98 c03cf91e c0526294 dfdf2000 c03cfa87 dfdf3fb8 00000046 Call Trace: [<c02b7b18>] kobject_register+0x28/0x70 [<c032e687>] bus_add_driver+0x57/0xe0 [<c03cf91e>] gameport_handle_events+0x4e/0xa0 [<c03cfa87>] gameport_thread+0x17/0x100 [<c03cfa70>] gameport_thread+0x0/0x100 [<c012d665>] kthread+0xa5/0xb0 [<c012d5c0>] kthread+0x0/0xb0 [<c0101381>] kernel_thread_helper+0x5/0x14 Code: 00 00 8b 4b 28 89 c7 85 c9 74 2f be 00 e0 ff ff 21 e6 ff 46 14 85 c0 74 58 8b 43 28 8d 53 1c 83 c0 08 8b 48 04 89 43 1c 89 50 04 <89> 11 89 4a 04 8b 46 08 ff 4e 14 a8 08 75 30 89 7b 24 89 1c 24 <6>note: kgameportd[853] exited with preempt_count 1 No idea of what's happening. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Which was the last known working kernel? Please post "emerge --info" output like the bug report form asks.
Latest working (without this issue) kernel I used was gentoo-sources-2.6.12-r9. I'm not alone having this issue according to: http://forums.gentoo.org/viewtopic-p-2696237.html#2696237 my emerge infos: Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.5-r1, 2.6.13-gentoo i686) ================================================================= System uname: 2.6.13-gentoo i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.3.5-r1, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" 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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/" LANG="it_IT@euro" LINGUAS="it" MAKEOPTS="-j2" PKGDIR="/usr/portage/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 X aalib acl acpi acpi4linux alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl divx4linux dvb dvd dvdr dvdread eds emboss encode esd fam flac foomaticdb fortran gdbm gif gimp gnome gphoto2 gpm gstreamer gtk gtk2 guile hal imagemagick imlib java joystick jpeg kde libg++ libwww lirc mad mikmod mmx mmx2 mmxext motif mp3 mpeg ncurses nls nptl nptlonly offensive ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline scanner sdl spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb v4l v4l2 vorbis win32codecs wxgtk1 xine xml xml2 xmms xv xvid xvmc zlib zvbi linguas_it userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Ok, would you mind confirming this issue also exists on vanilla-sources-2.6.13?
No, vanilla kernel goes fine, from dmesg: ...... usb 3-2: new low speed USB device using uhci_hcd and address 3 input: USB HID v1.10 Gamepad [Thrustmaster Thrustmaster analog gamepad] on usb-0000:00:10.1-1 usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.01:USB HID core driver mice: PS/2 mouse device common for all mice .....
Thats odd, since Gentoo doesn't touch anything in that area. How much RAM do you have? Do you use vesafb-tng?
I have athlon-xp 2600, 512 Mb Ram, I use vesafb-tng (issue is both with and without splash, I've checked). The issue seems to me to be in usb_hid core driver or in kref , not in the gamepad driver, but I'm unexperienced (may be wrong).
Yes, and gentoo doesn't touch any of those areas. Also, someone on the forums says that the bug does also exist on vanilla-sources-2.6.13 (which would make more sense). Can you please confirm that you are using the same .config file over both kernels and that you are booting the right vanilla kernel to test?
the kernel was linux-2.6.13 the commands I typed: cd /usr/src cp linux/.config config rm linux ln -s linux-2.6.13 linux cp config linux/.config cd linux make oldconfig (0 requests) make menuconfig (to check that was the right config file, exited without saving) mount /boot make && make modules_install make install The only difference was that I didn't re-emerged cdemu and ati-drivers modules. (do these influence usb_hid???)
I just did the same exact things I did for vanilla-2.6.13 for gentoo-2.6.13-r1, without re-emerging cdemu or ati-drivers, error occurred again.(but different output...) Can this be cause one of the gentoo-patch modify some include file (in common with usb_hid, e.g.: input.h)? dmesg from unhacked "just installed" gentoo-sources-2.6.13-r1: -------------------------------------------------------------- usb 3-2: new low speed USB device using uhci_hcd and address 3 input: USB HID v1.10 Gamepad [Thrustmaster Thrustmaster analog gamepad] on usb-0000:00:10.1-1 usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.01:USB HID core driver Badness in kref_get at lib/kref.c:32 [<c02b8794>] kref_get+0x44/0x50 [<c02b7d0a>] kobject_get+0x1a/0x30 [<c032e85d>] get_bus+0x1d/0x30 [<c032e694>] bus_add_driver+0x24/0xe0 [<c03cf95e>] gameport_handle_events+0x4e/0xa0 [<c03cfac7>] gameport_thread+0x17/0x100 [<c03cfab0>] gameport_thread+0x0/0x100 [<c012d665>] kthread+0xa5/0xb0 [<c012d5c0>] kthread+0x0/0xb0 [<c0101381>] kernel_thread_helper+0x5/0x14 Badness in kref_get at lib/kref.c:32 [<c02b8794>] kref_get+0x44/0x50 [<c02b7d0a>] kobject_get+0x1a/0x30 [<c02b79b3>] kobject_init+0x33/0x50 [<c02b7b10>] kobject_register+0x20/0x70 [<c032e6c7>] bus_add_driver+0x57/0xe0 [<c03cf95e>] gameport_handle_events+0x4e/0xa0 [<c03cfac7>] gameport_thread+0x17/0x100 [<c03cfab0>] gameport_thread+0x0/0x100 [<c012d665>] kthread+0xa5/0xb0 [<c012d5c0>] kthread+0x0/0xb0 [<c0101381>] kernel_thread_helper+0x5/0x14 Unable to handle kernel paging request at virtual address f000e333 printing eip: c0195db6 *pde = 00000000 Oops: 0002 [#1] PREEMPT Modules linked in: CPU: 0 EIP: 0060:[<c0195db6>] Not tainted VLI EFLAGS: 00010292 (2.6.13-gentoo-r1) EIP is at create_dir+0x16/0x1c0 eax: 00000000 ebx: c05262ac ecx: 00000000 edx: f000e2c3 esi: c05262a8 edi: c0530ba8 ebp: dfcb5ef4 esp: dfcb5ebc ds: 007b es: 007b ss: 0068 Process kgameportd (pid: 844, threadinfo=dfcb4000 task=dfc2c5d0) Stack: 00000000 00000000 c0103755 00000000 c0101381 c05262a8 c05262a8 c0530ba8 00000000 c0195fcb c05262a8 00000000 c05262ac dfcb5ef4 00000000 00000000 c02b783f c05262a8 c05262a8 dfcb4000 c02b7aa6 c05262a8 c05262a8 ffffffea Call Trace: [<c0103755>] show_trace+0x35/0x90 [<c0101381>] kernel_thread_helper+0x5/0x14 [<c0195fcb>] sysfs_create_dir+0x3b/0x80 [<c02b783f>] create_dir+0x1f/0x50 [<c02b7aa6>] kobject_add+0x76/0xc0 [<c02b7b18>] kobject_register+0x28/0x70 [<c032e6c7>] bus_add_driver+0x57/0xe0 [<c03cf95e>] gameport_handle_events+0x4e/0xa0 [<c03cfac7>] gameport_thread+0x17/0x100 [<c03cfab0>] gameport_thread+0x0/0x100 [<c012d665>] kthread+0xa5/0xb0 [<c012d5c0>] kthread+0x0/0xb0 [<c0101381>] kernel_thread_helper+0x5/0x14 Code: c5 4c c0 31 c0 c3 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 90 55 57 56 53 83 ec 14 8b 44 24 2c 8b 5c 24 30 8b 6c 24 34 8b 50 08 <ff> 4a 70 0f 88 25 0d 00 00 89 df 31 c0 b9 ff ff ff ff f2 ae f7 <6>EISA: Probing bus 0 at eisa.0 wbsd: Winbond W83L51xD SD/MMC card interface driver, 1.3 wbsd: Copyright(c) Pierre Ossman oprofile: using timer interrupt. -----------------------------------------------------------------------------
Created attachment 68243 [details, diff] Patch Please apply this to gentoo-sources-2.6.13-r1, run "make clean", then rebuild/reinstall your kernel, reboot, and let us know if this fixes it.
Thank You Very Much!!!!! That fixed! Sometimes simplest things just do it! Please add this patch for standard r2+ releases.... new dmesg: ----------------------------------------------------- usb 3-2: new low speed USB device using uhci_hcd and address 3 input: USB HID v1.10 Gamepad [Thrustmaster Thrustmaster analog gamepad] on usb-0000:00:10.1-1 usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.01:USB HID core driver EISA: Probing bus 0 at eisa.0 wbsd: Winbond W83L51xD SD/MMC card interface driver, 1.3 ------------------------------------------------------
This is fixed in 2.6.13-r2