Hi, I am the author if a kernel module that makes use of the netfilter hooks in the kernel and have come across a rather strange issue while running on the 64 bit kernel. On calling nf_reinject with an entry supplied via the input hook, the kernel panics resulting in a full system crash. This does not occur on 32 bit machines. Kernel Version: Linux version 2.6.32-trunk-amd64 (Debian 2.6.32-5) (ben@xxxxxxxxxxxxxxx) (gcc version 4.3.4 (Debian 4.3.4-6) ) #1 SMP Sun Jan 10 22:40:40 UTC 2010 Attached is a small test application that replicates the problem and the machine specs for my dev vm. Worth noting is that this bug is not independent to one specific machine. More information can be supplied as needed -- Michael Lawson
/proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Xeon(R) CPU W3520 @ 2.67GHz stepping : 5 cpu MHz : 2659.615 cache size : 8192 KB fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm ida bogomips : 5319.23 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Xeon(R) CPU W3520 @ 2.67GHz stepping : 5 cpu MHz : 2659.615 cache size : 8192 KB fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology tsc_reliable nonstop_tsc aperfmperf pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm ida bogomips : 5319.45 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: root@debian2:~# cat /proc/modules loop 11767 0 - Live 0xffffffffa02c5000 snd_ens1371 16170 0 - Live 0xffffffffa02ba000 gameport 7416 1 snd_ens1371, Live 0xffffffffa02b2000 snd_rawmidi 15291 1 snd_ens1371, Live 0xffffffffa02a7000 snd_seq_device 4477 1 snd_rawmidi, Live 0xffffffffa02a0000 snd_ac97_codec 99170 1 snd_ens1371, Live 0xffffffffa027c000 ac97_bus 1086 1 snd_ac97_codec, Live 0xffffffffa026e000 snd_pcm 60615 2 snd_ens1371,snd_ac97_codec, Live 0xffffffffa0253000 snd_timer 15502 1 snd_pcm, Live 0xffffffffa0248000 parport_pc 18839 0 - Live 0xffffffffa023c000 snd 44718 6 snd_ens1371,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer, Live 0xffffffffa0226000 soundcore 4598 1 snd, Live 0xffffffffa021e000 serio_raw 3752 0 - Live 0xffffffffa0218000 parport 27938 1 parport_pc, Live 0xffffffffa0209000 i2c_piix4 8328 0 - Live 0xffffffffa0201000 container 2389 0 - Live 0xffffffffa01fb000 snd_page_alloc 6217 1 snd_pcm, Live 0xffffffffa01f3000 ac 2192 0 - Live 0xffffffffa01ed000 shpchp 25928 0 - Live 0xffffffffa01df000 processor 29479 0 - Live 0xffffffffa01cf000 psmouse 49521 0 - Live 0xffffffffa01ba000 pcspkr 1699 0 - Live 0xffffffffa01b4000 evdev 7336 2 - Live 0xffffffffa008e000 i2c_core 15584 1 i2c_piix4, Live 0xffffffffa00fa000 pci_hotplug 21171 1 shpchp, Live 0xffffffffa011c000 ext3 106454 1 - Live 0xffffffffa0198000 jbd 37037 1 ext3, Live 0xffffffffa018c000 mbcache 4970 1 ext3, Live 0xffffffffa007f000 sd_mod 29673 3 - Live 0xffffffffa0182000 ide_cd_mod 24744 0 - Live 0xffffffffa00b1000 crc_t10dif 1276 1 sd_mod, Live 0xffffffffa005e000 cdrom 29399 1 ide_cd_mod, Live 0xffffffffa0030000 ide_pci_generic 2788 0 - Live 0xffffffffa0014000 ata_generic 2983 0 - Live 0xffffffffa0005000 libata 131655 1 ata_generic, Live 0xffffffffa014c000 uhci_hcd 18457 0 - Live 0xffffffffa0145000 mptspi 11169 2 - Live 0xffffffffa013c000 mptscsih 15832 1 mptspi, Live 0xffffffffa0131000 ehci_hcd 30578 0 - Live 0xffffffffa0123000 mptbase 48286 2 mptspi,mptscsih, Live 0xffffffffa010e000 intel_agp 25521 1 - Live 0xffffffffa0100000 floppy 49087 0 - Live 0xffffffffa00ec000 scsi_transport_spi 18774 1 mptspi, Live 0xffffffffa00e0000 e1000 85549 0 - Live 0xffffffffa00c1000 usbcore 121687 3 uhci_hcd,ehci_hcd, Live 0xffffffffa0091000 nls_base 6377 1 usbcore, Live 0xffffffffa008a000 piix 4568 0 - Live 0xffffffffa0083000 agpgart 24733 1 intel_agp, Live 0xffffffffa0073000 button 4634 0 - Live 0xffffffffa006b000 scsi_mod 121909 5 sd_mod,libata,mptspi,mptscsih,scsi_transport_spi, Live 0xffffffffa003a000 ide_core 76802 3 ide_cd_mod,ide_pci_generic,piix, Live 0xffffffffa0018000 thermal 11674 0 - Live 0xffffffffa000f000 fan 3346 0 - Live 0xffffffffa0009000 thermal_sys 11878 3 processor,thermal,fan, Live 0xffffffffa0000000 root@debian2:~# cat /proc/ioports 0000-001f : dma1 0020-0021 : pic1 0040-0043 : timer0 0050-0053 : timer1 0060-0060 : keyboard 0064-0064 : keyboard 0070-0071 : rtc0 0080-008f : dma page reg 00a0-00a1 : pic2 00c0-00df : dma2 00f0-00ff : fpu 0170-0177 : 0000:00:07.1 0170-0177 : piix 01f0-01f7 : 0000:00:07.1 01f0-01f7 : piix 02f8-02ff : serial 0376-0376 : 0000:00:07.1 0376-0376 : piix 0378-037a : parport0 03c0-03df : vga+ 03f2-03f2 : floppy 03f4-03f5 : floppy 03f6-03f6 : 0000:00:07.1 03f6-03f6 : piix 03f7-03f7 : floppy 03f8-03ff : serial 0cf0-0cf1 : pnp 00:01 0cf8-0cff : PCI conf1 1000-103f : 0000:00:07.3 1000-103f : pnp 00:01 1000-1003 : ACPI PM1a_EVT_BLK 1004-1005 : ACPI PM1a_CNT_BLK 1008-100b : ACPI PM_TMR 100c-100f : ACPI GPE0_BLK 1010-1015 : ACPI CPU throttle 1040-104f : 0000:00:07.3 1040-104f : pnp 00:01 1060-107f : pnp 00:0c 1080-10bf : 0000:00:07.7 10c0-10cf : 0000:00:07.1 10c0-10cf : piix 10d0-10df : 0000:00:0f.0 1400-14ff : 0000:00:10.0 2000-3fff : PCI Bus 0000:02 2000-203f : 0000:02:01.0 2000-203f : e1000 2040-207f : 0000:02:02.0 2040-207f : Ensoniq AudioPCI 2080-209f : 0000:02:00.0 2080-209f : uhci_hcd 4000-4fff : PCI Bus 0000:03 5000-5fff : PCI Bus 0000:0b 6000-6fff : PCI Bus 0000:13 7000-7fff : PCI Bus 0000:1b 8000-8fff : PCI Bus 0000:04 9000-9fff : PCI Bus 0000:0c a000-afff : PCI Bus 0000:14 b000-bfff : PCI Bus 0000:1c c000-cfff : PCI Bus 0000:05 d000-dfff : PCI Bus 0000:0d e000-efff : PCI Bus 0000:15 f000-ffff : PCI Bus 0000:1d proc/ioports 0000-001f : dma1 0020-0021 : pic1 0040-0043 : timer0 0050-0053 : timer1 0060-0060 : keyboard 0064-0064 : keyboard 0070-0071 : rtc0 0080-008f : dma page reg 00a0-00a1 : pic2 00c0-00df : dma2 00f0-00ff : fpu 0170-0177 : 0000:00:07.1 0170-0177 : piix 01f0-01f7 : 0000:00:07.1 01f0-01f7 : piix 02f8-02ff : serial 0376-0376 : 0000:00:07.1 0376-0376 : piix 0378-037a : parport0 03c0-03df : vga+ 03f2-03f2 : floppy 03f4-03f5 : floppy 03f6-03f6 : 0000:00:07.1 03f6-03f6 : piix 03f7-03f7 : floppy 03f8-03ff : serial 0cf0-0cf1 : pnp 00:01 0cf8-0cff : PCI conf1 1000-103f : 0000:00:07.3 1000-103f : pnp 00:01 1000-1003 : ACPI PM1a_EVT_BLK 1004-1005 : ACPI PM1a_CNT_BLK 1008-100b : ACPI PM_TMR 100c-100f : ACPI GPE0_BLK 1010-1015 : ACPI CPU throttle 1040-104f : 0000:00:07.3 1040-104f : pnp 00:01 1060-107f : pnp 00:0c 1080-10bf : 0000:00:07.7 10c0-10cf : 0000:00:07.1 10c0-10cf : piix 10d0-10df : 0000:00:0f.0 1400-14ff : 0000:00:10.0 2000-3fff : PCI Bus 0000:02 2000-203f : 0000:02:01.0 2000-203f : e1000 2040-207f : 0000:02:02.0 2040-207f : Ensoniq AudioPCI 2080-209f : 0000:02:00.0 2080-209f : uhci_hcd 4000-4fff : PCI Bus 0000:03 5000-5fff : PCI Bus 0000:0b 6000-6fff : PCI Bus 0000:13 7000-7fff : PCI Bus 0000:1b 8000-8fff : PCI Bus 0000:04 9000-9fff : PCI Bus 0000:0c a000-afff : PCI Bus 0000:14 b000-bfff : PCI Bus 0000:1c c000-cfff : PCI Bus 0000:05 d000-dfff : PCI Bus 0000:0d e000-efff : PCI Bus 0000:15 f000-ffff : PCI Bus 0000:1d root@debian2:~# cat /proc/iomem 00000000-0000ffff : reserved 00010000-0009f7ff : System RAM 0009f800-0009ffff : reserved 000ca000-000cbfff : reserved 000dc000-000e3fff : reserved 000e8000-000fffff : reserved 00100000-896effff : System RAM 01000000-012e94e8 : Kernel code 012e94e9-014b648f : Kernel data 01550000-0165d9d3 : Kernel bss 896f0000-896fefff : ACPI Tables 896ff000-896fffff : ACPI Non-volatile Storage 89700000-897fffff : System RAM 89800000-8bffffff : RAM buffer 8c000000-8c007fff : 0000:00:0f.0 8c008000-8c00bfff : 0000:00:10.0 d0000000-d7ffffff : 0000:00:0f.0 d8000000-d87fffff : 0000:00:0f.0 d8800000-d881ffff : 0000:00:10.0 d8800000-d881ffff : mpt d8820000-d883ffff : 0000:00:10.0 d8820000-d883ffff : mpt d8900000-d9cfffff : PCI Bus 0000:02 d8900000-d890ffff : 0000:02:01.0 d8900000-d890ffff : e1000 d8910000-d8910fff : 0000:02:03.0 d8910000-d8910fff : ehci_hcd d8920000-d893ffff : 0000:02:01.0 d8920000-d893ffff : e1000 d9d00000-d9dfffff : PCI Bus 0000:03 d9e00000-d9efffff : PCI Bus 0000:0b d9f00000-d9ffffff : PCI Bus 0000:13 da000000-da0fffff : PCI Bus 0000:1b da100000-da1fffff : PCI Bus 0000:04 da200000-da2fffff : PCI Bus 0000:0c da300000-da3fffff : PCI Bus 0000:14 da400000-da4fffff : PCI Bus 0000:1c da500000-da5fffff : PCI Bus 0000:05 da600000-da6fffff : PCI Bus 0000:0d da700000-da7fffff : PCI Bus 0000:15 da800000-da8fffff : PCI Bus 0000:1d da900000-da9fffff : PCI Bus 0000:06 daa00000-daafffff : PCI Bus 0000:0e dab00000-dabfffff : PCI Bus 0000:16 dac00000-dacfffff : PCI Bus 0000:1e dad00000-dadfffff : PCI Bus 0000:07 dae00000-daefffff : PCI Bus 0000:0f daf00000-daffffff : PCI Bus 0000:17 db000000-db0fffff : PCI Bus 0000:1f db100000-db1fffff : PCI Bus 0000:08 db200000-db2fffff : PCI Bus 0000:10 db300000-db3fffff : PCI Bus 0000:18 db400000-db4fffff : PCI Bus 0000:20 db500000-db5fffff : PCI Bus 0000:09 db600000-db6fffff : PCI Bus 0000:11 db700000-db7fffff : PCI Bus 0000:19 db800000-db8fffff : PCI Bus 0000:21 db900000-db9fffff : PCI Bus 0000:0a dba00000-dbafffff : PCI Bus 0000:12 dbb00000-dbbfffff : PCI Bus 0000:1a dbc00000-dbcfffff : PCI Bus 0000:22 dbe00000-dbffffff : pnp 00:0c dc400000-dc9fffff : PCI Bus 0000:02 dc400000-dc40ffff : 0000:02:01.0 dca00000-dcafffff : PCI Bus 0000:03 dcb00000-dcbfffff : PCI Bus 0000:0b dcc00000-dccfffff : PCI Bus 0000:13 dcd00000-dcdfffff : PCI Bus 0000:1b dce00000-dcefffff : PCI Bus 0000:04 dcf00000-dcffffff : PCI Bus 0000:0c dd000000-dd0fffff : PCI Bus 0000:14 dd100000-dd1fffff : PCI Bus 0000:1c dd200000-dd2fffff : PCI Bus 0000:05 dd300000-dd3fffff : PCI Bus 0000:0d dd400000-dd4fffff : PCI Bus 0000:15 dd500000-dd5fffff : PCI Bus 0000:1d dd600000-dd6fffff : PCI Bus 0000:06 dd700000-dd7fffff : PCI Bus 0000:0e dd800000-dd8fffff : PCI Bus 0000:16 dd900000-dd9fffff : PCI Bus 0000:1e dda00000-ddafffff : PCI Bus 0000:07 ddb00000-ddbfffff : PCI Bus 0000:0f ddc00000-ddcfffff : PCI Bus 0000:17 ddd00000-dddfffff : PCI Bus 0000:1f dde00000-ddefffff : PCI Bus 0000:08 ddf00000-ddffffff : PCI Bus 0000:10 de000000-de0fffff : PCI Bus 0000:18 de100000-de1fffff : PCI Bus 0000:20 de200000-de2fffff : PCI Bus 0000:09 de300000-de3fffff : PCI Bus 0000:11 de400000-de4fffff : PCI Bus 0000:19 de500000-de5fffff : PCI Bus 0000:21 de600000-de6fffff : PCI Bus 0000:0a de700000-de7fffff : PCI Bus 0000:12 de800000-de8fffff : PCI Bus 0000:1a de900000-de9fffff : PCI Bus 0000:22 e0000000-efffffff : PCI MMCONFIG 0 [00-ff] e0000000-efffffff : reserved e0000000-efffffff : pnp 00:0c fec00000-fec0ffff : reserved fec00000-fec00fff : IOAPIC 0 fee00000-fee00fff : Local APIC fee00000-fee00fff : reserved fffe0000-ffffffff : reserved
Attachment:
queue.c
Description: Binary data