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

Bug 97006

Summary: loading netfilter modules produces error and drives system unstable
Product: Gentoo Linux Reporter: Dairsigh <dairsigh>
Component: [OLD] DevelopmentAssignee: Daniel Drake (RETIRED) <dsd>
Status: RESOLVED FIXED    
Severity: critical CC: kernel
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=842bbaaa7394820c8f1fe0629cd15478653caf86;hp=561fb765b97f287211a2c73a844c5edb12f44f1d
Whiteboard:
Package list:
Runtime testing required: ---

Description Dairsigh 2005-06-24 19:40:46 UTC
Loading any of this netfilter modules causes a crash:
iptable_filter
ipt-state
ip_conntrack

module ip_tables does not crash (visually).

Crash produces following error:
Jun 24 05:08:42 earth ------------[ cut here ]------------
Jun 24 05:08:42 earth kernel BUG at <bad filename>:11425!
Jun 24 05:08:42 earth invalid operand: 0000 [#1]
Jun 24 05:08:42 earth SMP 
Jun 24 05:08:42 earth Modules linked in: ipv6 ipt_limit iptable_mangle ipt_LOG
ipt_TOS ipt_REJECT iptable_filter snd_pcm_oss snd_mixer_oss snd_seq_oss
snd_seq_midi_event snd_seq snd_seq_device parport_pc parport floppy rtc e100 mii
yenta_socket rsrc_nonstatic pcmcia_core snd_maestro3 snd_ac97_codec snd_pcm
snd_timer snd_page_alloc snd evdev ip_tables ahci sata_qstor sata_uli sata_sis
sata_sx4 sata_nv sata_via sata_svw sata_sil sata_promise libata dm_mirror
dm_snapshot dm_mod sbp2 ohci1394 ieee1394 sl811_hcd ohci_hcd uhci_hcd
usb_storage usbhid ehci_hcd usbcore
Jun 24 05:08:42 earth CPU:    0
Jun 24 05:08:42 earth EIP:    0060:[<c0127e3f>]    Not tainted VLI
Jun 24 05:08:42 earth EFLAGS: 00010202   (2.6.11-gentoo-r11) 
Jun 24 05:08:42 earth eax: 00000000   ebx: d0a10c6c   ecx: c03b0054   edx: d0a1072c
Jun 24 05:08:42 earth esi: 00000460   edi: 00000000   ebp: 00000020   esp: c4b1bf14
Jun 24 05:08:42 earth ds: 007b   es: 007b   ss: 0068
Jun 24 05:08:42 earth Process modprobe (pid: 16631, threadinfo=c4b1a000
task=cd9a6080)
Jun 24 05:08:42 earth Stack: d0a10c6c d0a10c6c d0a10c6c 00000460 00000000
080586e0 c01293fe 0000003c 
Jun 24 05:08:42 earth 00000020 ce2c8cc0 00000000 00000000 d0a10720 0000001c
00000019 00000013 
Jun 24 05:08:42 earth 0000000e 00000015 00000009 00000000 0000001d 00000011
00000000 00000017 
Jun 24 05:08:42 earth Call Trace:
Jun 24 05:08:42 earth [<c01293fe>]
Jun 24 05:08:42 earth [<c0129937>]
Jun 24 05:08:42 earth [<c0102157>]
Jun 24 05:08:42 earth Code: 45 c0 29 54 a8 04 a1 34 95 45 c0 89 14 a8 83 c4 0c
b8 01 00 00 00 5d 5b 5e 5f 5d c3 55 57 56 53 53 53 8b 6c 24 20 83 fd 10 76 02
<0f> 0b a1 2c 95 45 c0 31 f6 39 c6 bf 20 27 44 c0 89 44 24 04 0f

System gets unstable, impossible to shutdown or reboot by command.
System freezes at:

* Unloading ALSA ...
* Unloading ALSA modules ...

Reproducible: Always
Steps to Reproduce:
1. modprobe any of the above kernel modules (or loaded at boottime)
:or:
1. Starting firestarter (which loads the modules)
Actual Results:  
System shows message shown above and gets unstable.

Expected Results:  
load the modules and add functionality to the firewall

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686)
=================================================================
System uname: 2.6.11-gentoo-r11 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 17 2005, 05:36:11)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp.easynet.nl/mirror/gentoo/ ftp://194.117.143.70/mirrors/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
LANG="de_DE@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 SVGA X a52 aac alsa apm arts avi berkdb bidi bitmap-fonts cdda cdio
crypt cups dts dvd emboss encode esd fam ffmpeg flac foomaticdb fortran freetype
gd gdbm gif gnome gnutls gpm gtk gtk2 hal howl httpd imlib ipv6 java jpeg kde
libg++ libwww live mad matroska mikmod motif mp3 mpeg ncurses nls ogg oggvorbis
opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl stream
tcpd theora tiff truetype truetype-fonts type1-fonts vcd vlm vorbis wxwindows
xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-06-24 20:09:01 UTC
is this reproduceble on a gentoo-sources-2.6.12 or vanilla-sources-2.6.12 
kernel? 
Comment 2 Dairsigh 2005-06-25 16:39:13 UTC
(In reply to comment #1)
> is this reproduceble on a gentoo-sources-2.6.12 or vanilla-sources-2.6.12 
> kernel? 

Sorry for the late answer, I had to read the documentation how to emerge a
testing package. I'm a girl and usually don't mess with the kernel :-D

Yes, I can reproduce it with gentoo-sources-2.6.12-r1
Comment 3 Daniel Black (RETIRED) gentoo-dev 2005-06-26 04:39:52 UTC
and vanilla-2.6.12?  
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-06-26 05:02:54 UTC
Please compile your kernel with CONFIG_KALLSYMS

General setup -->
[*] Configure standard kernel features (for small systems)  --->
[*]   Load all symbols for debugging/kksymoops (NEW)

This is usually on by default and its not a great idea to turn it off.

Once you have done that, please post the error again. It will include slightly
more information.
Comment 5 Dairsigh 2005-06-26 19:31:59 UTC
(In reply to comment #3)
> and vanilla-2.6.12?  
I'll try if I have some more time. Compiling usually takes about an hour on my
notebook :(


(In reply to comment #4)
> Please compile your kernel with CONFIG_KALLSYMS
> This is usually on by default and its not a great idea to turn it off.
I've done what you said. But as I said... I don't mess with the kernel. I never
switched a setting (except that firewall thingie :( )

Here's the post of the error with some more Information in it:

Jun 27 04:15:13 earth ------------[ cut here ]------------
Jun 27 04:15:13 earth kernel BUG at <bad filename>:11425!
Jun 27 04:15:13 earth invalid operand: 0000 [#1]
Jun 27 04:15:13 earth SMP 
Jun 27 04:15:13 earth Modules linked in: iptable_filter ipv6 parport_pc parport
floppy rtc e100 mii yenta_socket rsrc_nonstatic pcmcia_core evdev ip_tables ahci
sata_qstor sata_uli sata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil
sata_promise libata dm_mirror dm_snapshot dm_mod sbp2 ohci1394 ieee1394
sl811_hcd ohci_hcd uhci_hcd usb_storage usbhid ehci_hcd usbcore
Jun 27 04:15:13 earth CPU:    0
Jun 27 04:15:13 earth EIP:    0060:[<c0127e5f>]    Not tainted VLI
Jun 27 04:15:13 earth EFLAGS: 00210202   (2.6.11-gentoo-r11) 
Jun 27 04:15:13 earth EIP is at percpu_modalloc+0xf/0xd6
Jun 27 04:15:13 earth eax: 00000000   ebx: d0c12b0c   ecx: d0c125cc   edx: 00000000
Jun 27 04:15:13 earth esi: 00000460   edi: 00000000   ebp: 00000020   esp: c4bfdf14
Jun 27 04:15:13 earth ds: 007b   es: 007b   ss: 0068
Jun 27 04:15:13 earth Process modprobe (pid: 11032, threadinfo=c4bfc000
task=c4bb9590)
Jun 27 04:15:13 earth Stack: d0c12b0c d0c12b0c d0c12b0c 00000460 00000000
000000d0 c0129797 0000003c 
Jun 27 04:15:13 earth 00000020 c90bd8c0 00000000 00000000 d0c125c0 0000001c
00000019 00000013 
Jun 27 04:15:13 earth 0000000e 00000015 00000009 00000000 0000001d 00000011
00000000 00000017 
Jun 27 04:15:13 earth Call Trace:
Jun 27 04:15:13 earth [<c0129797>] load_module+0x463/0x977
Jun 27 04:15:13 earth [<c0129cfc>] sys_init_module+0x51/0x1cd
Jun 27 04:15:13 earth [<c0102157>] syscall_call+0x7/0xb
Jun 27 04:15:13 earth Code: 4c c0 29 54 a8 04 a1 34 95 4c c0 89 14 a8 83 c4 0c
b8 01 00 00 00 5d 5b 5e 5f 5d c3 55 57 56 53 53 53 8b 6c 24 20 83 fd 10 76 02
<0f> 0b a1 2c 95 4c c0 31 f6 39 c6 bf 20 27 4b c0 89 44 24 04 0f 
Comment 6 Craig Keogh 2005-08-02 17:55:28 UTC
Patch by Rusty Russell may be of interest.

commit 842bbaaa7394820c8f1fe0629cd15478653caf86
Author: Rusty Russell <rusty@...>
Date:   Mon Aug 1 21:11:47 2005 -0700

http://kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.13-rc5
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2005-08-03 01:46:43 UTC
Yes, that was in response to my mail, and its already been placed in the URL
field here :)
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-08-09 16:44:58 UTC
Fixed in gentoo-sources-2.6.12-r8
Fixed in genpatches-2.6.12-12