* Re: shutdown oops in xt_compat_calc_jump [not found] <20110404194856.GA3720@dannf.org> @ 2011-04-04 20:02 ` Patrick McHardy 2011-04-04 20:37 ` Eric Dumazet 0 siblings, 1 reply; 16+ messages in thread From: Patrick McHardy @ 2011-04-04 20:02 UTC (permalink / raw) To: dann frazier; +Cc: netdev, netfilter-devel@vger.kernel.org CCed netfilter-devel. Am 04.04.2011 21:48, schrieb dann frazier: > fyi, noticed this oops when shutting down a system running top of git > (@ 78fca1be) > > [ 1169.794644] cfg80211: Calling CRDA to update world regulatory domain > [ 1170.490646] bluetoothd[2029]: segfault at f8ad9944 ip 00000000f77045e0 sp 00000000ffcb14e0 error 4 in bluetoothd[f76bf000+8b000] > [ 1170.543817] BUG: unable to handle kernel paging request at 00000001dc1be9f8 > [ 1170.543875] IP: [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > [ 1170.543927] PGD 1215b3067 PUD 0 > [ 1170.543955] Oops: 0000 [#1] SMP > [ 1170.543982] last sysfs file: /sys/module/bridge/initstate > [ 1170.544017] CPU 3 > [ 1170.544031] Modules linked in: ebtable_broute ebtable_filter vfat msdos fat ext3 jbd ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc acpi_cpufreq mperf cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_stats binfmt_misc kvm(-) fuse ext2 loop snd_hda_codec_hdmi snd_hda_codec_conexant arc4 ecb snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_seq_midi_event snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_rawmidi i915 drm_kms_helper thinkpad_acpi snd_seq iwlagn snd_timer snd_seq_device drm snd mac80211 psmouse btusb serio_raw bluetooth evdev tpm_tis snd_page_alloc tpm i2c_i801 i2c_algo_bit cfg80211 battery soundcore n vram tpm_bios i2c_core rfkill wmi ac power_supply video button processor ext4 mbcache jbd2 crc16 sha256_generic aesni_intel cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod sd_mod crc_t10di f > usbhid > hid usb_storage ahci libahci libata ehci_hcd scsi_mod usbcore e1000e thermal thermal_sys [last unloaded: kvm_intel] > [ 1170.544836] > [ 1170.544849] Pid: 4901, comm: ebtables Not tainted 2.6.39-rc1+ #9 LENOVO 2516CTO/2516CTO > [ 1170.544902] RIP: 0010:[<ffffffffa051e7b0>] [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > [ 1170.544958] RSP: 0018:ffff880121473cf8 EFLAGS: 00010217 > [ 1170.544989] RAX: 000000003b837d3f RBX: 0000000000000090 RCX: 000000007706fa7f > [ 1170.545029] RDX: 0000000000000000 RSI: 0000000000000090 RDI: 000000003b837d3f > [ 1170.545067] RBP: ffffc900111a3000 R08: 0000000000000000 R09: dead000000200200 > [ 1170.545104] R10: dead000000100100 R11: 0000000000001311 R12: ffff880121473d88 > [ 1170.545147] R13: ffffc900111a6000 R14: ffffffff817de300 R15: 0000000000000000 > [ 1170.545185] FS: 0000000000000000(0000) GS:ffff880137d80000(0063) knlGS:00000000f761b6c0 > [ 1170.545227] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 > [ 1170.545258] CR2: 00000001dc1be9f8 CR3: 0000000125868000 CR4: 00000000000006e0 > [ 1170.545297] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > [ 1170.545334] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > [ 1170.545375] Process ebtables (pid: 4901, threadinfo ffff880121472000, task ffff8801322d1ac0) > [ 1170.545418] Stack: > [ 1170.545433] 0000000000000090 ffffffffa0576d46 f7007265746c6966 0000000000000054 > [ 1170.545479] 0000000000000000 0000000000000000 000000000000000e 0000000000000090 > [ 1170.545529] 0000000000000000 0000000008af2180 0000000008af21b0 0000000008af21e0 > [ 1170.545579] Call Trace: > [ 1170.545600] [<ffffffffa0576d46>] ? compat_do_replace+0x117/0x221 [ebtables] > [ 1170.545639] [<ffffffffa0577392>] ? compat_do_ebt_set_ctl+0x55/0xbb [ebtables] > [ 1170.545688] [<ffffffff810337e3>] ? need_resched+0x1a/0x23 > [ 1170.545723] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > [ 1170.545730] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > [ 1170.545733] [<ffffffff813152fe>] ? mutex_lock_interruptible+0x18/0x32 > [ 1170.545738] [<ffffffff8128490b>] ? nf_sockopt_find.clone.1+0xda/0xec > [ 1170.545742] [<ffffffff81284996>] ? compat_nf_sockopt+0x79/0xa5 > [ 1170.545744] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > [ 1170.545747] [<ffffffff812849f3>] ? compat_nf_setsockopt+0x1a/0x1f > [ 1170.545751] [<ffffffff8128fb35>] ? compat_ip_setsockopt+0x80/0xa0 > [ 1170.545756] [<ffffffff812784a2>] ? compat_sys_setsockopt+0x1d5/0x204 > [ 1170.545759] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > [ 1170.545761] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > [ 1170.545764] [<ffffffff812788a5>] ? compat_sys_socketcall+0x148/0x1a7 > [ 1170.545768] [<ffffffff8131d2c0>] ? sysenter_dispatch+0x7/0x2e > [ 1170.545769] Code: 5d 41 5e 41 5f c3 40 0f b6 ff 53 31 d2 48 6b ff 70 48 03 3d 03 1b 00 00 8b 4f 6c 4c 8b 47 60 ff c9 eb 27 8d 04 11 d1 f8 48 63 f8 > [ 1170.545787] RIP [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > [ 1170.545792] RSP <ffff880121473cf8> > [ 1170.545794] CR2: 00000001dc1be9f8 > [ 1170.654269] ---[ end trace d44667d90dcbd115 ]--- > [ 1170.662411] fuse exit > Kernel logging (proc) stopped. > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-04 20:02 ` shutdown oops in xt_compat_calc_jump Patrick McHardy @ 2011-04-04 20:37 ` Eric Dumazet 2011-04-04 21:17 ` dann frazier 2011-04-04 22:48 ` Eric Dumazet 0 siblings, 2 replies; 16+ messages in thread From: Eric Dumazet @ 2011-04-04 20:37 UTC (permalink / raw) To: Patrick McHardy; +Cc: dann frazier, netdev, netfilter-devel@vger.kernel.org Le lundi 04 avril 2011 à 22:02 +0200, Patrick McHardy a écrit : > CCed netfilter-devel. > > Am 04.04.2011 21:48, schrieb dann frazier: > > fyi, noticed this oops when shutting down a system running top of git > > (@ 78fca1be) > > > > [ 1169.794644] cfg80211: Calling CRDA to update world regulatory domain > > [ 1170.490646] bluetoothd[2029]: segfault at f8ad9944 ip 00000000f77045e0 sp 00000000ffcb14e0 error 4 in bluetoothd[f76bf000+8b000] > > [ 1170.543817] BUG: unable to handle kernel paging request at 00000001dc1be9f8 > > [ 1170.543875] IP: [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > [ 1170.543927] PGD 1215b3067 PUD 0 > > [ 1170.543955] Oops: 0000 [#1] SMP > > [ 1170.543982] last sysfs file: /sys/module/bridge/initstate > > [ 1170.544017] CPU 3 > > [ 1170.544031] Modules linked in: ebtable_broute ebtable_filter vfat msdos fat ext3 jbd ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc acpi_cpufreq mperf cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_stats binfmt_misc kvm(-) fuse ext2 loop snd_hda_codec_hdmi snd_hda_codec_conexant arc4 ecb snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_seq_midi_event snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_rawmidi i915 drm_kms_helper thinkpad_acpi snd_seq iwlagn snd_timer snd_seq_device drm snd mac80211 psmouse btusb serio_raw bluetooth evdev tpm_tis snd_page_alloc tpm i2c_i801 i2c_algo_bit cfg80211 battery soundcore nvram tpm_bios i2c_core rfkill wmi ac power_supply video button processor ext4 mbcache jbd2 crc16 sha256_generic aesni_intel cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod sd_mod crc_t10di > f > > usbhid > > hid usb_storage ahci libahci libata ehci_hcd scsi_mod usbcore e1000e thermal thermal_sys [last unloaded: kvm_intel] > > [ 1170.544836] > > [ 1170.544849] Pid: 4901, comm: ebtables Not tainted 2.6.39-rc1+ #9 LENOVO 2516CTO/2516CTO > > [ 1170.544902] RIP: 0010:[<ffffffffa051e7b0>] [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > [ 1170.544958] RSP: 0018:ffff880121473cf8 EFLAGS: 00010217 > > [ 1170.544989] RAX: 000000003b837d3f RBX: 0000000000000090 RCX: 000000007706fa7f > > [ 1170.545029] RDX: 0000000000000000 RSI: 0000000000000090 RDI: 000000003b837d3f > > [ 1170.545067] RBP: ffffc900111a3000 R08: 0000000000000000 R09: dead000000200200 > > [ 1170.545104] R10: dead000000100100 R11: 0000000000001311 R12: ffff880121473d88 > > [ 1170.545147] R13: ffffc900111a6000 R14: ffffffff817de300 R15: 0000000000000000 > > [ 1170.545185] FS: 0000000000000000(0000) GS:ffff880137d80000(0063) knlGS:00000000f761b6c0 > > [ 1170.545227] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 > > [ 1170.545258] CR2: 00000001dc1be9f8 CR3: 0000000125868000 CR4: 00000000000006e0 > > [ 1170.545297] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > [ 1170.545334] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > > [ 1170.545375] Process ebtables (pid: 4901, threadinfo ffff880121472000, task ffff8801322d1ac0) > > [ 1170.545418] Stack: > > [ 1170.545433] 0000000000000090 ffffffffa0576d46 f7007265746c6966 0000000000000054 > > [ 1170.545479] 0000000000000000 0000000000000000 000000000000000e 0000000000000090 > > [ 1170.545529] 0000000000000000 0000000008af2180 0000000008af21b0 0000000008af21e0 > > [ 1170.545579] Call Trace: > > [ 1170.545600] [<ffffffffa0576d46>] ? compat_do_replace+0x117/0x221 [ebtables] > > [ 1170.545639] [<ffffffffa0577392>] ? compat_do_ebt_set_ctl+0x55/0xbb [ebtables] > > [ 1170.545688] [<ffffffff810337e3>] ? need_resched+0x1a/0x23 > > [ 1170.545723] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > [ 1170.545730] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > [ 1170.545733] [<ffffffff813152fe>] ? mutex_lock_interruptible+0x18/0x32 > > [ 1170.545738] [<ffffffff8128490b>] ? nf_sockopt_find.clone.1+0xda/0xec > > [ 1170.545742] [<ffffffff81284996>] ? compat_nf_sockopt+0x79/0xa5 > > [ 1170.545744] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > [ 1170.545747] [<ffffffff812849f3>] ? compat_nf_setsockopt+0x1a/0x1f > > [ 1170.545751] [<ffffffff8128fb35>] ? compat_ip_setsockopt+0x80/0xa0 > > [ 1170.545756] [<ffffffff812784a2>] ? compat_sys_setsockopt+0x1d5/0x204 > > [ 1170.545759] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > [ 1170.545761] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > [ 1170.545764] [<ffffffff812788a5>] ? compat_sys_socketcall+0x148/0x1a7 > > [ 1170.545768] [<ffffffff8131d2c0>] ? sysenter_dispatch+0x7/0x2e > > [ 1170.545769] Code: 5d 41 5e 41 5f c3 40 0f b6 ff 53 31 d2 48 6b ff 70 48 03 3d 03 1b 00 00 8b 4f 6c 4c 8b 47 60 ff c9 eb 27 8d 04 11 d1 f8 48 63 f8 > > [ 1170.545787] RIP [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > [ 1170.545792] RSP <ffff880121473cf8> > > [ 1170.545794] CR2: 00000001dc1be9f8 > > [ 1170.654269] ---[ end trace d44667d90dcbd115 ]--- > > [ 1170.662411] fuse exit > > Kernel logging (proc) stopped. > > -- Hmm, commit 255d0dc34068a976550ce555e must have a problem for ebtables ? Dann, could you give us what you do with ebtables ? Thanks ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-04 20:37 ` Eric Dumazet @ 2011-04-04 21:17 ` dann frazier 2011-04-04 22:48 ` Eric Dumazet 1 sibling, 0 replies; 16+ messages in thread From: dann frazier @ 2011-04-04 21:17 UTC (permalink / raw) To: Eric Dumazet; +Cc: Patrick McHardy, netdev, netfilter-devel@vger.kernel.org On Mon, Apr 04, 2011 at 10:37:57PM +0200, Eric Dumazet wrote: > Le lundi 04 avril 2011 à 22:02 +0200, Patrick McHardy a écrit : > > CCed netfilter-devel. > > > > Am 04.04.2011 21:48, schrieb dann frazier: > > > fyi, noticed this oops when shutting down a system running top of git > > > (@ 78fca1be) > > > > > > [ 1169.794644] cfg80211: Calling CRDA to update world regulatory domain > > > [ 1170.490646] bluetoothd[2029]: segfault at f8ad9944 ip 00000000f77045e0 sp 00000000ffcb14e0 error 4 in bluetoothd[f76bf000+8b000] > > > [ 1170.543817] BUG: unable to handle kernel paging request at 00000001dc1be9f8 > > > [ 1170.543875] IP: [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > [ 1170.543927] PGD 1215b3067 PUD 0 > > > [ 1170.543955] Oops: 0000 [#1] SMP > > > [ 1170.543982] last sysfs file: /sys/module/bridge/initstate > > > [ 1170.544017] CPU 3 > > > [ 1170.544031] Modules linked in: ebtable_broute ebtable_filter vfat msdos fat ext3 jbd ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc acpi_cpufreq mperf cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_stats binfmt_misc kvm(-) fuse ext2 loop snd_hda_codec_hdmi snd_hda_codec_conexant arc4 ecb snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_seq_midi_event snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_rawmidi i915 drm_kms_helper thinkpad_acpi snd_seq iwlagn snd_timer snd_seq_device drm snd mac80211 psmouse btusb serio_raw bluetooth evdev tpm_tis snd_page_alloc tpm i2c_i801 i2c_algo_bit cfg80211 battery soundcore nvram tpm_bios i2c_core rfkill wmi ac power_supply video button processor ext4 mbcache jbd2 crc16 sha256_generic aesni_intel cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod sd_mod crc_t10 > di > > f > > > usbhid > > > hid usb_storage ahci libahci libata ehci_hcd scsi_mod usbcore e1000e thermal thermal_sys [last unloaded: kvm_intel] > > > [ 1170.544836] > > > [ 1170.544849] Pid: 4901, comm: ebtables Not tainted 2.6.39-rc1+ #9 LENOVO 2516CTO/2516CTO > > > [ 1170.544902] RIP: 0010:[<ffffffffa051e7b0>] [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > [ 1170.544958] RSP: 0018:ffff880121473cf8 EFLAGS: 00010217 > > > [ 1170.544989] RAX: 000000003b837d3f RBX: 0000000000000090 RCX: 000000007706fa7f > > > [ 1170.545029] RDX: 0000000000000000 RSI: 0000000000000090 RDI: 000000003b837d3f > > > [ 1170.545067] RBP: ffffc900111a3000 R08: 0000000000000000 R09: dead000000200200 > > > [ 1170.545104] R10: dead000000100100 R11: 0000000000001311 R12: ffff880121473d88 > > > [ 1170.545147] R13: ffffc900111a6000 R14: ffffffff817de300 R15: 0000000000000000 > > > [ 1170.545185] FS: 0000000000000000(0000) GS:ffff880137d80000(0063) knlGS:00000000f761b6c0 > > > [ 1170.545227] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 > > > [ 1170.545258] CR2: 00000001dc1be9f8 CR3: 0000000125868000 CR4: 00000000000006e0 > > > [ 1170.545297] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > > [ 1170.545334] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > > > [ 1170.545375] Process ebtables (pid: 4901, threadinfo ffff880121472000, task ffff8801322d1ac0) > > > [ 1170.545418] Stack: > > > [ 1170.545433] 0000000000000090 ffffffffa0576d46 f7007265746c6966 0000000000000054 > > > [ 1170.545479] 0000000000000000 0000000000000000 000000000000000e 0000000000000090 > > > [ 1170.545529] 0000000000000000 0000000008af2180 0000000008af21b0 0000000008af21e0 > > > [ 1170.545579] Call Trace: > > > [ 1170.545600] [<ffffffffa0576d46>] ? compat_do_replace+0x117/0x221 [ebtables] > > > [ 1170.545639] [<ffffffffa0577392>] ? compat_do_ebt_set_ctl+0x55/0xbb [ebtables] > > > [ 1170.545688] [<ffffffff810337e3>] ? need_resched+0x1a/0x23 > > > [ 1170.545723] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > [ 1170.545730] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > > [ 1170.545733] [<ffffffff813152fe>] ? mutex_lock_interruptible+0x18/0x32 > > > [ 1170.545738] [<ffffffff8128490b>] ? nf_sockopt_find.clone.1+0xda/0xec > > > [ 1170.545742] [<ffffffff81284996>] ? compat_nf_sockopt+0x79/0xa5 > > > [ 1170.545744] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > [ 1170.545747] [<ffffffff812849f3>] ? compat_nf_setsockopt+0x1a/0x1f > > > [ 1170.545751] [<ffffffff8128fb35>] ? compat_ip_setsockopt+0x80/0xa0 > > > [ 1170.545756] [<ffffffff812784a2>] ? compat_sys_setsockopt+0x1d5/0x204 > > > [ 1170.545759] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > [ 1170.545761] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > > [ 1170.545764] [<ffffffff812788a5>] ? compat_sys_socketcall+0x148/0x1a7 > > > [ 1170.545768] [<ffffffff8131d2c0>] ? sysenter_dispatch+0x7/0x2e > > > [ 1170.545769] Code: 5d 41 5e 41 5f c3 40 0f b6 ff 53 31 d2 48 6b ff 70 48 03 3d 03 1b 00 00 8b 4f 6c 4c 8b 47 60 ff c9 eb 27 8d 04 11 d1 f8 48 63 f8 > > > [ 1170.545787] RIP [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > [ 1170.545792] RSP <ffff880121473cf8> > > > [ 1170.545794] CR2: 00000001dc1be9f8 > > > [ 1170.654269] ---[ end trace d44667d90dcbd115 ]--- > > > [ 1170.662411] fuse exit > > > Kernel logging (proc) stopped. > > > -- > > > Hmm, commit 255d0dc34068a976550ce555e must have a problem for ebtables ? > > Dann, could you give us what you do with ebtables ? I don't do anything explicitly with ebtables, I just happen to have it installed. The only place I know of that calls ebtables on shutdown is the ebtables initscript itself: dannf@fluid:~$ sudo rm /tmp/ebtables.log dannf@fluid:~$ cat /sbin/ebtables #!/bin/sh echo "$*" >> /tmp/ebtables.log /sbin/ebtables.real $* dannf@fluid:~$ sudo /etc/init.d/ebtables stop Clearing ebtables rulesets: filter nat broute done. dannf@fluid:~$ sudo cat /tmp/ebtables.log -t filter -L -t filter -L -t nat -L -t broute -L -t filter --init-table -t nat --init-table -t broute --init-table ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-04 20:37 ` Eric Dumazet 2011-04-04 21:17 ` dann frazier @ 2011-04-04 22:48 ` Eric Dumazet 2011-04-05 6:24 ` Eric Dumazet 1 sibling, 1 reply; 16+ messages in thread From: Eric Dumazet @ 2011-04-04 22:48 UTC (permalink / raw) To: Patrick McHardy; +Cc: dann frazier, netdev, netfilter-devel@vger.kernel.org Le lundi 04 avril 2011 à 22:37 +0200, Eric Dumazet a écrit : > Le lundi 04 avril 2011 à 22:02 +0200, Patrick McHardy a écrit : > > CCed netfilter-devel. > > > > Am 04.04.2011 21:48, schrieb dann frazier: > > > fyi, noticed this oops when shutting down a system running top of git > > > (@ 78fca1be) > > > > > > [ 1169.794644] cfg80211: Calling CRDA to update world regulatory domain > > > [ 1170.490646] bluetoothd[2029]: segfault at f8ad9944 ip 00000000f77045e0 sp 00000000ffcb14e0 error 4 in bluetoothd[f76bf000+8b000] > > > [ 1170.543817] BUG: unable to handle kernel paging request at 00000001dc1be9f8 > > > [ 1170.543875] IP: [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > [ 1170.543927] PGD 1215b3067 PUD 0 > > > [ 1170.543955] Oops: 0000 [#1] SMP > > > [ 1170.543982] last sysfs file: /sys/module/bridge/initstate > > > [ 1170.544017] CPU 3 > > > [ 1170.544031] Modules linked in: ebtable_broute ebtable_filter vfat msdos fat ext3 jbd ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc acpi_cpufreq mperf cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_stats binfmt_misc kvm(-) fuse ext2 loop snd_hda_codec_hdmi snd_hda_codec_conexant arc4 ecb snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_seq_midi_event snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_rawmidi i915 drm_kms_helper thinkpad_acpi snd_seq iwlagn snd_timer snd_seq_device drm snd mac80211 psmouse btusb serio_raw bluetooth evdev tpm_tis snd_page_alloc tpm i2c_i801 i2c_algo_bit cfg80211 battery soundcore nvram tpm_bios i2c_core rfkill wmi ac power_supply video button processor ext4 mbcache jbd2 crc16 sha256_generic aesni_intel cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod sd_mod crc_t10di > > f > > > usbhid > > > hid usb_storage ahci libahci libata ehci_hcd scsi_mod usbcore e1000e thermal thermal_sys [last unloaded: kvm_intel] > > > [ 1170.544836] > > > [ 1170.544849] Pid: 4901, comm: ebtables Not tainted 2.6.39-rc1+ #9 LENOVO 2516CTO/2516CTO > > > [ 1170.544902] RIP: 0010:[<ffffffffa051e7b0>] [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > [ 1170.544958] RSP: 0018:ffff880121473cf8 EFLAGS: 00010217 > > > [ 1170.544989] RAX: 000000003b837d3f RBX: 0000000000000090 RCX: 000000007706fa7f > > > [ 1170.545029] RDX: 0000000000000000 RSI: 0000000000000090 RDI: 000000003b837d3f > > > [ 1170.545067] RBP: ffffc900111a3000 R08: 0000000000000000 R09: dead000000200200 > > > [ 1170.545104] R10: dead000000100100 R11: 0000000000001311 R12: ffff880121473d88 > > > [ 1170.545147] R13: ffffc900111a6000 R14: ffffffff817de300 R15: 0000000000000000 > > > [ 1170.545185] FS: 0000000000000000(0000) GS:ffff880137d80000(0063) knlGS:00000000f761b6c0 > > > [ 1170.545227] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 > > > [ 1170.545258] CR2: 00000001dc1be9f8 CR3: 0000000125868000 CR4: 00000000000006e0 > > > [ 1170.545297] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > > [ 1170.545334] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > > > [ 1170.545375] Process ebtables (pid: 4901, threadinfo ffff880121472000, task ffff8801322d1ac0) > > > [ 1170.545418] Stack: > > > [ 1170.545433] 0000000000000090 ffffffffa0576d46 f7007265746c6966 0000000000000054 > > > [ 1170.545479] 0000000000000000 0000000000000000 000000000000000e 0000000000000090 > > > [ 1170.545529] 0000000000000000 0000000008af2180 0000000008af21b0 0000000008af21e0 > > > [ 1170.545579] Call Trace: > > > [ 1170.545600] [<ffffffffa0576d46>] ? compat_do_replace+0x117/0x221 [ebtables] > > > [ 1170.545639] [<ffffffffa0577392>] ? compat_do_ebt_set_ctl+0x55/0xbb [ebtables] > > > [ 1170.545688] [<ffffffff810337e3>] ? need_resched+0x1a/0x23 > > > [ 1170.545723] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > [ 1170.545730] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > > [ 1170.545733] [<ffffffff813152fe>] ? mutex_lock_interruptible+0x18/0x32 > > > [ 1170.545738] [<ffffffff8128490b>] ? nf_sockopt_find.clone.1+0xda/0xec > > > [ 1170.545742] [<ffffffff81284996>] ? compat_nf_sockopt+0x79/0xa5 > > > [ 1170.545744] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > [ 1170.545747] [<ffffffff812849f3>] ? compat_nf_setsockopt+0x1a/0x1f > > > [ 1170.545751] [<ffffffff8128fb35>] ? compat_ip_setsockopt+0x80/0xa0 > > > [ 1170.545756] [<ffffffff812784a2>] ? compat_sys_setsockopt+0x1d5/0x204 > > > [ 1170.545759] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > [ 1170.545761] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > > [ 1170.545764] [<ffffffff812788a5>] ? compat_sys_socketcall+0x148/0x1a7 > > > [ 1170.545768] [<ffffffff8131d2c0>] ? sysenter_dispatch+0x7/0x2e > > > [ 1170.545769] Code: 5d 41 5e 41 5f c3 40 0f b6 ff 53 31 d2 48 6b ff 70 48 03 3d 03 1b 00 00 8b 4f 6c 4c 8b 47 60 ff c9 eb 27 8d 04 11 d1 f8 48 63 f8 > > > [ 1170.545787] RIP [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > [ 1170.545792] RSP <ffff880121473cf8> > > > [ 1170.545794] CR2: 00000001dc1be9f8 > > > [ 1170.654269] ---[ end trace d44667d90dcbd115 ]--- > > > [ 1170.662411] fuse exit > > > Kernel logging (proc) stopped. > > > -- > > > Hmm, commit 255d0dc34068a976550ce555e must have a problem for ebtables ? > > Dann, could you give us what you do with ebtables ? > > Thanks > For sure, there was a typo in above commit, but this is not enough to make ebtables work in COMPAT mode. Hmm... [PATCH] netfilter: fix a typo in ebtables commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations) added a typo in compat_table_info() Reported-by: dann frazier <dannf@dannf.org> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 893669c..b5d0d1f 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c @@ -1766,7 +1766,7 @@ static int compat_table_info(const struct ebt_table_info *info, newinfo->entries_size = size; - xt_compat_init_offsets(AF_INET, info->nentries); + xt_compat_init_offsets(NFPROTO_BRIDGE, info->nentries); return EBT_ENTRY_ITERATE(entries, size, compat_calc_entry, info, entries, newinfo); } -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-04 22:48 ` Eric Dumazet @ 2011-04-05 6:24 ` Eric Dumazet 2011-04-05 7:17 ` Eric Dumazet 0 siblings, 1 reply; 16+ messages in thread From: Eric Dumazet @ 2011-04-05 6:24 UTC (permalink / raw) To: Patrick McHardy; +Cc: dann frazier, netdev, netfilter-devel@vger.kernel.org Le mardi 05 avril 2011 à 00:48 +0200, Eric Dumazet a écrit : > Le lundi 04 avril 2011 à 22:37 +0200, Eric Dumazet a écrit : > > Le lundi 04 avril 2011 à 22:02 +0200, Patrick McHardy a écrit : > > > CCed netfilter-devel. > > > > > > Am 04.04.2011 21:48, schrieb dann frazier: > > > > fyi, noticed this oops when shutting down a system running top of git > > > > (@ 78fca1be) > > > > > > > > [ 1169.794644] cfg80211: Calling CRDA to update world regulatory domain > > > > [ 1170.490646] bluetoothd[2029]: segfault at f8ad9944 ip 00000000f77045e0 sp 00000000ffcb14e0 error 4 in bluetoothd[f76bf000+8b000] > > > > [ 1170.543817] BUG: unable to handle kernel paging request at 00000001dc1be9f8 > > > > [ 1170.543875] IP: [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > > [ 1170.543927] PGD 1215b3067 PUD 0 > > > > [ 1170.543955] Oops: 0000 [#1] SMP > > > > [ 1170.543982] last sysfs file: /sys/module/bridge/initstate > > > > [ 1170.544017] CPU 3 > > > > [ 1170.544031] Modules linked in: ebtable_broute ebtable_filter vfat msdos fat ext3 jbd ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc acpi_cpufreq mperf cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_stats binfmt_misc kvm(-) fuse ext2 loop snd_hda_codec_hdmi snd_hda_codec_conexant arc4 ecb snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_seq_midi_event snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_rawmidi i915 drm_kms_helper thinkpad_acpi snd_seq iwlagn snd_timer snd_seq_device drm snd mac80211 psmouse btusb serio_raw bluetooth evdev tpm_tis snd_page_alloc tpm i2c_i801 i2c_algo_bit cfg80211 battery soundcore nvram tpm_bios i2c_core rfkill wmi ac power_supply video button processor ext4 mbcache jbd2 crc16 sha256_generic aesni_intel cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod sd_mod crc_t10di > > > f > > > > usbhid > > > > hid usb_storage ahci libahci libata ehci_hcd scsi_mod usbcore e1000e thermal thermal_sys [last unloaded: kvm_intel] > > > > [ 1170.544836] > > > > [ 1170.544849] Pid: 4901, comm: ebtables Not tainted 2.6.39-rc1+ #9 LENOVO 2516CTO/2516CTO > > > > [ 1170.544902] RIP: 0010:[<ffffffffa051e7b0>] [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > > [ 1170.544958] RSP: 0018:ffff880121473cf8 EFLAGS: 00010217 > > > > [ 1170.544989] RAX: 000000003b837d3f RBX: 0000000000000090 RCX: 000000007706fa7f > > > > [ 1170.545029] RDX: 0000000000000000 RSI: 0000000000000090 RDI: 000000003b837d3f > > > > [ 1170.545067] RBP: ffffc900111a3000 R08: 0000000000000000 R09: dead000000200200 > > > > [ 1170.545104] R10: dead000000100100 R11: 0000000000001311 R12: ffff880121473d88 > > > > [ 1170.545147] R13: ffffc900111a6000 R14: ffffffff817de300 R15: 0000000000000000 > > > > [ 1170.545185] FS: 0000000000000000(0000) GS:ffff880137d80000(0063) knlGS:00000000f761b6c0 > > > > [ 1170.545227] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 > > > > [ 1170.545258] CR2: 00000001dc1be9f8 CR3: 0000000125868000 CR4: 00000000000006e0 > > > > [ 1170.545297] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > > > [ 1170.545334] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > > > > [ 1170.545375] Process ebtables (pid: 4901, threadinfo ffff880121472000, task ffff8801322d1ac0) > > > > [ 1170.545418] Stack: > > > > [ 1170.545433] 0000000000000090 ffffffffa0576d46 f7007265746c6966 0000000000000054 > > > > [ 1170.545479] 0000000000000000 0000000000000000 000000000000000e 0000000000000090 > > > > [ 1170.545529] 0000000000000000 0000000008af2180 0000000008af21b0 0000000008af21e0 > > > > [ 1170.545579] Call Trace: > > > > [ 1170.545600] [<ffffffffa0576d46>] ? compat_do_replace+0x117/0x221 [ebtables] > > > > [ 1170.545639] [<ffffffffa0577392>] ? compat_do_ebt_set_ctl+0x55/0xbb [ebtables] > > > > [ 1170.545688] [<ffffffff810337e3>] ? need_resched+0x1a/0x23 > > > > [ 1170.545723] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > > [ 1170.545730] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > > > [ 1170.545733] [<ffffffff813152fe>] ? mutex_lock_interruptible+0x18/0x32 > > > > [ 1170.545738] [<ffffffff8128490b>] ? nf_sockopt_find.clone.1+0xda/0xec > > > > [ 1170.545742] [<ffffffff81284996>] ? compat_nf_sockopt+0x79/0xa5 > > > > [ 1170.545744] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > > [ 1170.545747] [<ffffffff812849f3>] ? compat_nf_setsockopt+0x1a/0x1f > > > > [ 1170.545751] [<ffffffff8128fb35>] ? compat_ip_setsockopt+0x80/0xa0 > > > > [ 1170.545756] [<ffffffff812784a2>] ? compat_sys_setsockopt+0x1d5/0x204 > > > > [ 1170.545759] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > > [ 1170.545761] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > > > [ 1170.545764] [<ffffffff812788a5>] ? compat_sys_socketcall+0x148/0x1a7 > > > > [ 1170.545768] [<ffffffff8131d2c0>] ? sysenter_dispatch+0x7/0x2e > > > > [ 1170.545769] Code: 5d 41 5e 41 5f c3 40 0f b6 ff 53 31 d2 48 6b ff 70 48 03 3d 03 1b 00 00 8b 4f 6c 4c 8b 47 60 ff c9 eb 27 8d 04 11 d1 f8 48 63 f8 > > > > [ 1170.545787] RIP [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > > [ 1170.545792] RSP <ffff880121473cf8> > > > > [ 1170.545794] CR2: 00000001dc1be9f8 > > > > [ 1170.654269] ---[ end trace d44667d90dcbd115 ]--- > > > > [ 1170.662411] fuse exit > > > > Kernel logging (proc) stopped. > > > > -- > > > > > > Hmm, commit 255d0dc34068a976550ce555e must have a problem for ebtables ? > > > > Dann, could you give us what you do with ebtables ? > > > > Thanks > > > > For sure, there was a typo in above commit, but this is not enough to > make ebtables work in COMPAT mode. > > Hmm... > Update : xt_compat_calc_jump() misses this bit, and I still have to find the ebtables problem. I'll provide a cumulative patch once done diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index a9adf4c..1acda09 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c @@ -473,6 +473,8 @@ int xt_compat_calc_jump(u_int8_t af, unsigned int offset) else return mid ? tmp[mid - 1].delta : 0; } + if (left) + return tmp[left - 1].delta; WARN_ON_ONCE(1); return 0; } -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-05 6:24 ` Eric Dumazet @ 2011-04-05 7:17 ` Eric Dumazet 2011-04-05 10:41 ` Patrick McHardy ` (2 more replies) 0 siblings, 3 replies; 16+ messages in thread From: Eric Dumazet @ 2011-04-05 7:17 UTC (permalink / raw) To: Patrick McHardy; +Cc: dann frazier, netdev, netfilter-devel@vger.kernel.org Le mardi 05 avril 2011 à 08:24 +0200, Eric Dumazet a écrit : > Le mardi 05 avril 2011 à 00:48 +0200, Eric Dumazet a écrit : > > Le lundi 04 avril 2011 à 22:37 +0200, Eric Dumazet a écrit : > > > Le lundi 04 avril 2011 à 22:02 +0200, Patrick McHardy a écrit : > > > > CCed netfilter-devel. > > > > > > > > Am 04.04.2011 21:48, schrieb dann frazier: > > > > > fyi, noticed this oops when shutting down a system running top of git > > > > > (@ 78fca1be) > > > > > > > > > > [ 1169.794644] cfg80211: Calling CRDA to update world regulatory domain > > > > > [ 1170.490646] bluetoothd[2029]: segfault at f8ad9944 ip 00000000f77045e0 sp 00000000ffcb14e0 error 4 in bluetoothd[f76bf000+8b000] > > > > > [ 1170.543817] BUG: unable to handle kernel paging request at 00000001dc1be9f8 > > > > > [ 1170.543875] IP: [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > > > [ 1170.543927] PGD 1215b3067 PUD 0 > > > > > [ 1170.543955] Oops: 0000 [#1] SMP > > > > > [ 1170.543982] last sysfs file: /sys/module/bridge/initstate > > > > > [ 1170.544017] CPU 3 > > > > > [ 1170.544031] Modules linked in: ebtable_broute ebtable_filter vfat msdos fat ext3 jbd ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc acpi_cpufreq mperf cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_stats binfmt_misc kvm(-) fuse ext2 loop snd_hda_codec_hdmi snd_hda_codec_conexant arc4 ecb snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_seq_midi_event snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_rawmidi i915 drm_kms_helper thinkpad_acpi snd_seq iwlagn snd_timer snd_seq_device drm snd mac80211 psmouse btusb serio_raw bluetooth evdev tpm_tis snd_page_alloc tpm i2c_i801 i2c_algo_bit cfg80211 battery soundcore nvram tpm_bios i2c_core rfkill wmi ac power_supply video button processor ext4 mbcache jbd2 crc16 sha256_generic aesni_intel cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod sd_mod crc_t10di > > > > f > > > > > usbhid > > > > > hid usb_storage ahci libahci libata ehci_hcd scsi_mod usbcore e1000e thermal thermal_sys [last unloaded: kvm_intel] > > > > > [ 1170.544836] > > > > > [ 1170.544849] Pid: 4901, comm: ebtables Not tainted 2.6.39-rc1+ #9 LENOVO 2516CTO/2516CTO > > > > > [ 1170.544902] RIP: 0010:[<ffffffffa051e7b0>] [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > > > [ 1170.544958] RSP: 0018:ffff880121473cf8 EFLAGS: 00010217 > > > > > [ 1170.544989] RAX: 000000003b837d3f RBX: 0000000000000090 RCX: 000000007706fa7f > > > > > [ 1170.545029] RDX: 0000000000000000 RSI: 0000000000000090 RDI: 000000003b837d3f > > > > > [ 1170.545067] RBP: ffffc900111a3000 R08: 0000000000000000 R09: dead000000200200 > > > > > [ 1170.545104] R10: dead000000100100 R11: 0000000000001311 R12: ffff880121473d88 > > > > > [ 1170.545147] R13: ffffc900111a6000 R14: ffffffff817de300 R15: 0000000000000000 > > > > > [ 1170.545185] FS: 0000000000000000(0000) GS:ffff880137d80000(0063) knlGS:00000000f761b6c0 > > > > > [ 1170.545227] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 > > > > > [ 1170.545258] CR2: 00000001dc1be9f8 CR3: 0000000125868000 CR4: 00000000000006e0 > > > > > [ 1170.545297] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > > > > [ 1170.545334] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > > > > > [ 1170.545375] Process ebtables (pid: 4901, threadinfo ffff880121472000, task ffff8801322d1ac0) > > > > > [ 1170.545418] Stack: > > > > > [ 1170.545433] 0000000000000090 ffffffffa0576d46 f7007265746c6966 0000000000000054 > > > > > [ 1170.545479] 0000000000000000 0000000000000000 000000000000000e 0000000000000090 > > > > > [ 1170.545529] 0000000000000000 0000000008af2180 0000000008af21b0 0000000008af21e0 > > > > > [ 1170.545579] Call Trace: > > > > > [ 1170.545600] [<ffffffffa0576d46>] ? compat_do_replace+0x117/0x221 [ebtables] > > > > > [ 1170.545639] [<ffffffffa0577392>] ? compat_do_ebt_set_ctl+0x55/0xbb [ebtables] > > > > > [ 1170.545688] [<ffffffff810337e3>] ? need_resched+0x1a/0x23 > > > > > [ 1170.545723] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > > > [ 1170.545730] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > > > > [ 1170.545733] [<ffffffff813152fe>] ? mutex_lock_interruptible+0x18/0x32 > > > > > [ 1170.545738] [<ffffffff8128490b>] ? nf_sockopt_find.clone.1+0xda/0xec > > > > > [ 1170.545742] [<ffffffff81284996>] ? compat_nf_sockopt+0x79/0xa5 > > > > > [ 1170.545744] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > > > [ 1170.545747] [<ffffffff812849f3>] ? compat_nf_setsockopt+0x1a/0x1f > > > > > [ 1170.545751] [<ffffffff8128fb35>] ? compat_ip_setsockopt+0x80/0xa0 > > > > > [ 1170.545756] [<ffffffff812784a2>] ? compat_sys_setsockopt+0x1d5/0x204 > > > > > [ 1170.545759] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > > > [ 1170.545761] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > > > > [ 1170.545764] [<ffffffff812788a5>] ? compat_sys_socketcall+0x148/0x1a7 > > > > > [ 1170.545768] [<ffffffff8131d2c0>] ? sysenter_dispatch+0x7/0x2e > > > > > [ 1170.545769] Code: 5d 41 5e 41 5f c3 40 0f b6 ff 53 31 d2 48 6b ff 70 48 03 3d 03 1b 00 00 8b 4f 6c 4c 8b 47 60 ff c9 eb 27 8d 04 11 d1 f8 48 63 f8 > > > > > [ 1170.545787] RIP [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > > > [ 1170.545792] RSP <ffff880121473cf8> > > > > > [ 1170.545794] CR2: 00000001dc1be9f8 > > > > > [ 1170.654269] ---[ end trace d44667d90dcbd115 ]--- > > > > > [ 1170.662411] fuse exit > > > > > Kernel logging (proc) stopped. > > > > > -- > > > > > > > > > Hmm, commit 255d0dc34068a976550ce555e must have a problem for ebtables ? > > > > > > Dann, could you give us what you do with ebtables ? > > > > > > Thanks > > > > > > > For sure, there was a typo in above commit, but this is not enough to > > make ebtables work in COMPAT mode. > > > > Hmm... > > > > Update : xt_compat_calc_jump() misses this bit, and I still have to find > the ebtables problem. > > I'll provide a cumulative patch once done > Here is the cumulative patch Thanks [PATCH] netfilter: fix ebtables commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations) made ebtables not working anymore. 1) xt_compat_calc_jump() is not an exact match lookup, and 2) compat_table_info() has a typo in xt_compat_init_offsets() call 3) compat_do_replace() misses a xt_compat_init_offsets() call Reported-by: dann frazier <dannf@dannf.org> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- net/bridge/netfilter/ebtables.c | 3 ++- net/netfilter/x_tables.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 893669c..c66aa80 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c @@ -1766,7 +1766,7 @@ static int compat_table_info(const struct ebt_table_info *info, newinfo->entries_size = size; - xt_compat_init_offsets(AF_INET, info->nentries); + xt_compat_init_offsets(NFPROTO_BRIDGE, info->nentries /* + 4*/); return EBT_ENTRY_ITERATE(entries, size, compat_calc_entry, info, entries, newinfo); } @@ -2240,6 +2240,7 @@ static int compat_do_replace(struct net *net, void __user *user, xt_compat_lock(NFPROTO_BRIDGE); + xt_compat_init_offsets(NFPROTO_BRIDGE, tmp.nentries); ret = compat_copy_entries(entries_tmp, tmp.entries_size, &state); if (ret < 0) goto out_unlock; diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index a9adf4c..e6dbec5 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c @@ -455,6 +455,7 @@ void xt_compat_flush_offsets(u_int8_t af) vfree(xt[af].compat_tab); xt[af].compat_tab = NULL; xt[af].number = 0; + xt[af].cur = 0; } } EXPORT_SYMBOL_GPL(xt_compat_flush_offsets); @@ -473,6 +474,8 @@ int xt_compat_calc_jump(u_int8_t af, unsigned int offset) else return mid ? tmp[mid - 1].delta : 0; } + if (left) + return tmp[left - 1].delta; WARN_ON_ONCE(1); return 0; } -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-05 7:17 ` Eric Dumazet @ 2011-04-05 10:41 ` Patrick McHardy 2011-04-05 21:08 ` dann frazier 2011-04-05 23:42 ` Florian Westphal 2011-04-06 16:25 ` dann frazier 2 siblings, 1 reply; 16+ messages in thread From: Patrick McHardy @ 2011-04-05 10:41 UTC (permalink / raw) To: Eric Dumazet; +Cc: dann frazier, netdev, netfilter-devel@vger.kernel.org On 05.04.2011 09:17, Eric Dumazet wrote: > Here is the cumulative patch Thanks Eric. I'll wait for confirmation from Dann before applying this. > [PATCH] netfilter: fix ebtables > > commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations) > made ebtables not working anymore. > > 1) xt_compat_calc_jump() is not an exact match lookup, and > 2) compat_table_info() has a typo in xt_compat_init_offsets() call > 3) compat_do_replace() misses a xt_compat_init_offsets() call > > Reported-by: dann frazier <dannf@dannf.org> > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > --- > net/bridge/netfilter/ebtables.c | 3 ++- > net/netfilter/x_tables.c | 3 +++ > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c > index 893669c..c66aa80 100644 > --- a/net/bridge/netfilter/ebtables.c > +++ b/net/bridge/netfilter/ebtables.c > @@ -1766,7 +1766,7 @@ static int compat_table_info(const struct ebt_table_info *info, > > newinfo->entries_size = size; > > - xt_compat_init_offsets(AF_INET, info->nentries); > + xt_compat_init_offsets(NFPROTO_BRIDGE, info->nentries /* + 4*/); I assume the /* + 4 */ is left over from debugging, I'll remove it before applying. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-05 10:41 ` Patrick McHardy @ 2011-04-05 21:08 ` dann frazier 0 siblings, 0 replies; 16+ messages in thread From: dann frazier @ 2011-04-05 21:08 UTC (permalink / raw) To: Patrick McHardy; +Cc: Eric Dumazet, netdev, netfilter-devel@vger.kernel.org On Tue, Apr 05, 2011 at 12:41:10PM +0200, Patrick McHardy wrote: > On 05.04.2011 09:17, Eric Dumazet wrote: > > Here is the cumulative patch > > > Thanks Eric. I'll wait for confirmation from Dann before applying > this. Yes, thanks Eric! I'll test as soon as I can take my laptop down.. -dann > > > [PATCH] netfilter: fix ebtables > > > > commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations) > > made ebtables not working anymore. > > > > 1) xt_compat_calc_jump() is not an exact match lookup, and > > 2) compat_table_info() has a typo in xt_compat_init_offsets() call > > 3) compat_do_replace() misses a xt_compat_init_offsets() call > > > > Reported-by: dann frazier <dannf@dannf.org> > > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > > --- > > net/bridge/netfilter/ebtables.c | 3 ++- > > net/netfilter/x_tables.c | 3 +++ > > 2 files changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c > > index 893669c..c66aa80 100644 > > --- a/net/bridge/netfilter/ebtables.c > > +++ b/net/bridge/netfilter/ebtables.c > > @@ -1766,7 +1766,7 @@ static int compat_table_info(const struct ebt_table_info *info, > > > > newinfo->entries_size = size; > > > > - xt_compat_init_offsets(AF_INET, info->nentries); > > + xt_compat_init_offsets(NFPROTO_BRIDGE, info->nentries /* + 4*/); > > I assume the /* + 4 */ is left over from debugging, I'll remove it > before applying. > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-05 7:17 ` Eric Dumazet 2011-04-05 10:41 ` Patrick McHardy @ 2011-04-05 23:42 ` Florian Westphal 2011-04-06 4:42 ` Eric Dumazet 2011-04-06 16:25 ` dann frazier 2 siblings, 1 reply; 16+ messages in thread From: Florian Westphal @ 2011-04-05 23:42 UTC (permalink / raw) To: Eric Dumazet Cc: Patrick McHardy, dann frazier, netdev, netfilter-devel@vger.kernel.org Eric Dumazet <eric.dumazet@gmail.com> wrote: > [PATCH] netfilter: fix ebtables > > commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations) > made ebtables not working anymore. > > 1) xt_compat_calc_jump() is not an exact match lookup, and > 2) compat_table_info() has a typo in xt_compat_init_offsets() call > 3) compat_do_replace() misses a xt_compat_init_offsets() call Looks good, but > diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c > index 893669c..c66aa80 100644 > --- a/net/bridge/netfilter/ebtables.c > +++ b/net/bridge/netfilter/ebtables.c > @@ -1766,7 +1766,7 @@ static int compat_table_info(const struct ebt_table_info *info, > > newinfo->entries_size = size; > > - xt_compat_init_offsets(AF_INET, info->nentries); > + xt_compat_init_offsets(NFPROTO_BRIDGE, info->nentries /* + 4*/); using ninfo->nentries does not always work because ebtables compat can call xt_compat_add_offset() more than once per entry. That is of course not necessary; the ebt compat code should do better. I plan to look at this in the evening. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-05 23:42 ` Florian Westphal @ 2011-04-06 4:42 ` Eric Dumazet 2011-04-06 7:40 ` Florian Westphal 0 siblings, 1 reply; 16+ messages in thread From: Eric Dumazet @ 2011-04-06 4:42 UTC (permalink / raw) To: Florian Westphal Cc: Patrick McHardy, dann frazier, netdev, netfilter-devel@vger.kernel.org Le mercredi 06 avril 2011 à 01:42 +0200, Florian Westphal a écrit : > using ninfo->nentries does not always work because ebtables compat > can call xt_compat_add_offset() more than once per entry. > With same offset ? Maybe we should tweak xt_compat_add_offset() to detect this and add delta to previous delta in this case > That is of course not necessary; the ebt compat code should do better. > I plan to look at this in the evening. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-06 4:42 ` Eric Dumazet @ 2011-04-06 7:40 ` Florian Westphal 0 siblings, 0 replies; 16+ messages in thread From: Florian Westphal @ 2011-04-06 7:40 UTC (permalink / raw) To: Eric Dumazet Cc: Florian Westphal, Patrick McHardy, dann frazier, netdev, netfilter-devel@vger.kernel.org Eric Dumazet <eric.dumazet@gmail.com> wrote: > Le mercredi 06 avril 2011 à 01:42 +0200, Florian Westphal a écrit : > > > using ninfo->nentries does not always work because ebtables compat > > can call xt_compat_add_offset() more than once per entry. > > > > With same offset ? Maybe we should tweak xt_compat_add_offset() to > detect this and add delta to previous delta in this case No, different offset (it calls it per match/watcher/target instead of summing up the match/target deltas and using that in a single add_offset call). -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-05 7:17 ` Eric Dumazet 2011-04-05 10:41 ` Patrick McHardy 2011-04-05 23:42 ` Florian Westphal @ 2011-04-06 16:25 ` dann frazier 2011-04-06 16:44 ` Eric Dumazet 2 siblings, 1 reply; 16+ messages in thread From: dann frazier @ 2011-04-06 16:25 UTC (permalink / raw) To: Eric Dumazet; +Cc: Patrick McHardy, netdev, netfilter-devel@vger.kernel.org On Tue, Apr 05, 2011 at 09:17:59AM +0200, Eric Dumazet wrote: > Le mardi 05 avril 2011 à 08:24 +0200, Eric Dumazet a écrit : > > Le mardi 05 avril 2011 à 00:48 +0200, Eric Dumazet a écrit : > > > Le lundi 04 avril 2011 à 22:37 +0200, Eric Dumazet a écrit : > > > > Le lundi 04 avril 2011 à 22:02 +0200, Patrick McHardy a écrit : > > > > > CCed netfilter-devel. > > > > > > > > > > Am 04.04.2011 21:48, schrieb dann frazier: > > > > > > fyi, noticed this oops when shutting down a system running top of git > > > > > > (@ 78fca1be) > > > > > > > > > > > > [ 1169.794644] cfg80211: Calling CRDA to update world regulatory domain > > > > > > [ 1170.490646] bluetoothd[2029]: segfault at f8ad9944 ip 00000000f77045e0 sp 00000000ffcb14e0 error 4 in bluetoothd[f76bf000+8b000] > > > > > > [ 1170.543817] BUG: unable to handle kernel paging request at 00000001dc1be9f8 > > > > > > [ 1170.543875] IP: [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > > > > [ 1170.543927] PGD 1215b3067 PUD 0 > > > > > > [ 1170.543955] Oops: 0000 [#1] SMP > > > > > > [ 1170.543982] last sysfs file: /sys/module/bridge/initstate > > > > > > [ 1170.544017] CPU 3 > > > > > > [ 1170.544031] Modules linked in: ebtable_broute ebtable_filter vfat msdos fat ext3 jbd ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc acpi_cpufreq mperf cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_stats binfmt_misc kvm(-) fuse ext2 loop snd_hda_codec_hdmi snd_hda_codec_conexant arc4 ecb snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_seq_midi_event snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_rawmidi i915 drm_kms_helper thinkpad_acpi snd_seq iwlagn snd_timer snd_seq_device drm snd mac80211 psmouse btusb serio_raw bluetooth evdev tpm_tis snd_page_alloc tpm i2c_i801 i2c_algo_bit cfg80211 battery soundcore nvram tpm_bios i2c_core rfkill wmi ac power_supply video button processor ext4 mbcache jbd2 crc16 sha256_generic aesni_intel cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod sd_mod crc_t10di > > > > > f > > > > > > usbhid > > > > > > hid usb_storage ahci libahci libata ehci_hcd scsi_mod usbcore e1000e thermal thermal_sys [last unloaded: kvm_intel] > > > > > > [ 1170.544836] > > > > > > [ 1170.544849] Pid: 4901, comm: ebtables Not tainted 2.6.39-rc1+ #9 LENOVO 2516CTO/2516CTO > > > > > > [ 1170.544902] RIP: 0010:[<ffffffffa051e7b0>] [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > > > > [ 1170.544958] RSP: 0018:ffff880121473cf8 EFLAGS: 00010217 > > > > > > [ 1170.544989] RAX: 000000003b837d3f RBX: 0000000000000090 RCX: 000000007706fa7f > > > > > > [ 1170.545029] RDX: 0000000000000000 RSI: 0000000000000090 RDI: 000000003b837d3f > > > > > > [ 1170.545067] RBP: ffffc900111a3000 R08: 0000000000000000 R09: dead000000200200 > > > > > > [ 1170.545104] R10: dead000000100100 R11: 0000000000001311 R12: ffff880121473d88 > > > > > > [ 1170.545147] R13: ffffc900111a6000 R14: ffffffff817de300 R15: 0000000000000000 > > > > > > [ 1170.545185] FS: 0000000000000000(0000) GS:ffff880137d80000(0063) knlGS:00000000f761b6c0 > > > > > > [ 1170.545227] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 > > > > > > [ 1170.545258] CR2: 00000001dc1be9f8 CR3: 0000000125868000 CR4: 00000000000006e0 > > > > > > [ 1170.545297] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > > > > > > [ 1170.545334] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > > > > > > [ 1170.545375] Process ebtables (pid: 4901, threadinfo ffff880121472000, task ffff8801322d1ac0) > > > > > > [ 1170.545418] Stack: > > > > > > [ 1170.545433] 0000000000000090 ffffffffa0576d46 f7007265746c6966 0000000000000054 > > > > > > [ 1170.545479] 0000000000000000 0000000000000000 000000000000000e 0000000000000090 > > > > > > [ 1170.545529] 0000000000000000 0000000008af2180 0000000008af21b0 0000000008af21e0 > > > > > > [ 1170.545579] Call Trace: > > > > > > [ 1170.545600] [<ffffffffa0576d46>] ? compat_do_replace+0x117/0x221 [ebtables] > > > > > > [ 1170.545639] [<ffffffffa0577392>] ? compat_do_ebt_set_ctl+0x55/0xbb [ebtables] > > > > > > [ 1170.545688] [<ffffffff810337e3>] ? need_resched+0x1a/0x23 > > > > > > [ 1170.545723] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > > > > [ 1170.545730] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > > > > > [ 1170.545733] [<ffffffff813152fe>] ? mutex_lock_interruptible+0x18/0x32 > > > > > > [ 1170.545738] [<ffffffff8128490b>] ? nf_sockopt_find.clone.1+0xda/0xec > > > > > > [ 1170.545742] [<ffffffff81284996>] ? compat_nf_sockopt+0x79/0xa5 > > > > > > [ 1170.545744] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > > > > [ 1170.545747] [<ffffffff812849f3>] ? compat_nf_setsockopt+0x1a/0x1f > > > > > > [ 1170.545751] [<ffffffff8128fb35>] ? compat_ip_setsockopt+0x80/0xa0 > > > > > > [ 1170.545756] [<ffffffff812784a2>] ? compat_sys_setsockopt+0x1d5/0x204 > > > > > > [ 1170.545759] [<ffffffff810337f1>] ? should_resched+0x5/0x24 > > > > > > [ 1170.545761] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 > > > > > > [ 1170.545764] [<ffffffff812788a5>] ? compat_sys_socketcall+0x148/0x1a7 > > > > > > [ 1170.545768] [<ffffffff8131d2c0>] ? sysenter_dispatch+0x7/0x2e > > > > > > [ 1170.545769] Code: 5d 41 5e 41 5f c3 40 0f b6 ff 53 31 d2 48 6b ff 70 48 03 3d 03 1b 00 00 8b 4f 6c 4c 8b 47 60 ff c9 eb 27 8d 04 11 d1 f8 48 63 f8 > > > > > > [ 1170.545787] RIP [<ffffffffa051e7b0>] xt_compat_calc_jump+0x25/0x6f [x_tables] > > > > > > [ 1170.545792] RSP <ffff880121473cf8> > > > > > > [ 1170.545794] CR2: 00000001dc1be9f8 > > > > > > [ 1170.654269] ---[ end trace d44667d90dcbd115 ]--- > > > > > > [ 1170.662411] fuse exit > > > > > > Kernel logging (proc) stopped. > > > > > > -- > > > > > > > > > > > > Hmm, commit 255d0dc34068a976550ce555e must have a problem for ebtables ? > > > > > > > > Dann, could you give us what you do with ebtables ? > > > > > > > > Thanks > > > > > > > > > > For sure, there was a typo in above commit, but this is not enough to > > > make ebtables work in COMPAT mode. > > > > > > Hmm... > > > > > > > Update : xt_compat_calc_jump() misses this bit, and I still have to find > > the ebtables problem. > > > > I'll provide a cumulative patch once done > > > > Here is the cumulative patch Thanks Eric. Unfortunately that didn't solve the problem I am seeing. I rebaselined (same kernel build as before), and found that I'm able to reproduce this 100% of the time by running only: sudo ebtables -t filter --init-table The backtrace I received was this: [ 73.393223] ------------[ cut here ]------------ [ 73.394944] WARNING: at net/netfilter/x_tables.c:476 xt_compat_calc_jump+0x64/0x6f [x_tables]() [ 73.396427] Hardware name: 2516CTO [ 73.398079] Modules linked in: ebtable_broute ebtable_filter ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc acpi_cpufreq mperf cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_stats kvm_intel kvm binfmt_misc fuse ext2 loop snd_hda_codec_hdmi snd_hda_codec_conexant arc4 ecb snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_seq_midi_event snd_hda_intel snd_hda_codec iwlagn snd_hwdep snd_pcm snd_seq i915 snd_rawmidi thinkpad_acpi mac80211 snd_timer snd_seq_device btusb bluetooth psmouse battery tpm_tis cfg80211 drm_kms_helper drm serio_raw nvram evdev ac tpm tpm_bios i2c_algo_bit i2c_i801 snd power_supply soundcore rfkill wmi snd_page_alloc button i2c_core video processor ext4 mbcache jbd2 crc16 sha256_generic aesni_intel cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod sd_mod crc_t10dif usbhid hid usb_storage ahci libahci libata ehci_hcd scsi_mod usbcore e1000e thermal thermal_sys [last unloaded: scsi_wait_scan] [ 73.412341] Pid: 2891, comm: ebtables.orig Not tainted 2.6.39-rc1+ #9 [ 73.414396] Call Trace: [ 73.416525] [<ffffffff81041b99>] ? warn_slowpath_common+0x78/0x8c [ 73.418631] [<ffffffffa05227ef>] ? xt_compat_calc_jump+0x64/0x6f [x_tables] [ 73.420758] [<ffffffffa0571d46>] ? compat_do_replace+0x117/0x221 [ebtables] [ 73.422859] [<ffffffffa0572392>] ? compat_do_ebt_set_ctl+0x55/0xbb [ebtables] [ 73.425030] [<ffffffff810337e3>] ? need_resched+0x1a/0x23 [ 73.427110] [<ffffffff810337f1>] ? should_resched+0x5/0x24 [ 73.429183] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 [ 73.431290] [<ffffffff813152fe>] ? mutex_lock_interruptible+0x18/0x32 [ 73.433418] [<ffffffff8128490b>] ? nf_sockopt_find.clone.1+0xda/0xec [ 73.435520] [<ffffffff81284996>] ? compat_nf_sockopt+0x79/0xa5 [ 73.437565] [<ffffffff810337f1>] ? should_resched+0x5/0x24 [ 73.439612] [<ffffffff812849f3>] ? compat_nf_setsockopt+0x1a/0x1f [ 73.441666] [<ffffffff8128fb35>] ? compat_ip_setsockopt+0x80/0xa0 [ 73.443697] [<ffffffff812784a2>] ? compat_sys_setsockopt+0x1d5/0x204 [ 73.445705] [<ffffffff810337f1>] ? should_resched+0x5/0x24 [ 73.447739] [<ffffffff81314cc5>] ? _cond_resched+0x9/0x20 [ 73.449813] [<ffffffff812788a5>] ? compat_sys_socketcall+0x148/0x1a7 [ 73.451873] [<ffffffff8131d2c0>] ? sysenter_dispatch+0x7/0x2e [ 73.453894] ---[ end trace 2285ecdee0e743d3 ]--- [ 73.745725] Ebtables v2.0 unregistered I reliably get the same backtrace, which is slightly different than the one I originally submitted. I've only seen that original backtrace once. I then applied your patch, but I'm still seeing a similar backtrace: [ 33.143939] ------------[ cut here ]------------ [ 33.146063] WARNING: at net/netfilter/x_tables.c:479 xt_compat_calc_jump+0x6f/0x7a [x_tables]() [ 33.148360] Hardware name: 2516CTO [ 33.150654] Modules linked in: ebtable_filter ip6table_filter ip6_tables ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_state nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge stp llc acpi_cpufreq mperf cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_stats kvm_intel kvm binfmt_misc fuse ext2 loop snd_hda_codec_hdmi snd_hda_codec_conexant arc4 ecb thinkpad_acpi i915 snd_hda_intel iwlagn snd_hda_codec snd_hwdep snd_pcm mac80211 drm_kms_helper drm snd_seq snd_timer psmouse i2c_i801 btusb snd_seq_device bluetooth ac cfg80211 evdev tpm_tis snd serio_raw rfkill i2c_algo_bit tpm battery power_supply nvram wmi i2c_core tpm_bios soundcore snd_page_alloc button processor video ext4 mbcache jbd2 crc16 sha256_generic aesni_intel cryptd aes_x86_64 aes_generic cbc dm_crypt dm_mod sd_mod crc_t10dif ahci libahci ehci_hcd libata usbcore scsi_mod e1000e thermal thermal_sys [last unloaded: scsi_wait_scan] [ 33.167207] Pid: 2279, comm: ebtables Not tainted 2.6.39-rc1+ #11 [ 33.169998] Call Trace: [ 33.172814] [<ffffffff81041be9>] ? warn_slowpath_common+0x78/0x8c [ 33.175723] [<ffffffffa04d7801>] ? xt_compat_calc_jump+0x6f/0x7a [x_tables] [ 33.178549] [<ffffffffa0526d54>] ? compat_do_replace+0x125/0x22f [ebtables] [ 33.181370] [<ffffffffa05273a0>] ? compat_do_ebt_set_ctl+0x55/0xb9 [ebtables] [ 33.184240] [<ffffffff810337e3>] ? need_resched+0x1a/0x23 [ 33.187055] [<ffffffff810337f1>] ? should_resched+0x5/0x24 [ 33.189805] [<ffffffff81314d25>] ? _cond_resched+0x9/0x20 [ 33.192578] [<ffffffff8131535e>] ? mutex_lock_interruptible+0x18/0x32 [ 33.195385] [<ffffffff8128496b>] ? nf_sockopt_find.clone.1+0xda/0xec [ 33.198093] [<ffffffff812849f6>] ? compat_nf_sockopt+0x79/0xa5 [ 33.200852] [<ffffffff810337f1>] ? should_resched+0x5/0x24 [ 33.203618] [<ffffffff81284a53>] ? compat_nf_setsockopt+0x1a/0x1f [ 33.206291] [<ffffffff8128fb95>] ? compat_ip_setsockopt+0x80/0xa0 [ 33.209001] [<ffffffff81278502>] ? compat_sys_setsockopt+0x1d5/0x204 [ 33.211726] [<ffffffff810337f1>] ? should_resched+0x5/0x24 [ 33.214374] [<ffffffff81314d25>] ? _cond_resched+0x9/0x20 [ 33.217083] [<ffffffff81278905>] ? compat_sys_socketcall+0x148/0x1a7 [ 33.219811] [<ffffffff8131d340>] ? sysenter_dispatch+0x7/0x2e [ 33.222433] ---[ end trace 96f8ae34f1f5ad81 ]--- -dann > Thanks > > [PATCH] netfilter: fix ebtables > > commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations) > made ebtables not working anymore. > > 1) xt_compat_calc_jump() is not an exact match lookup, and > 2) compat_table_info() has a typo in xt_compat_init_offsets() call > 3) compat_do_replace() misses a xt_compat_init_offsets() call > > Reported-by: dann frazier <dannf@dannf.org> > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > --- > net/bridge/netfilter/ebtables.c | 3 ++- > net/netfilter/x_tables.c | 3 +++ > 2 files changed, 5 insertions(+), 1 deletion(-) > > diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c > index 893669c..c66aa80 100644 > --- a/net/bridge/netfilter/ebtables.c > +++ b/net/bridge/netfilter/ebtables.c > @@ -1766,7 +1766,7 @@ static int compat_table_info(const struct ebt_table_info *info, > > newinfo->entries_size = size; > > - xt_compat_init_offsets(AF_INET, info->nentries); > + xt_compat_init_offsets(NFPROTO_BRIDGE, info->nentries /* + 4*/); > return EBT_ENTRY_ITERATE(entries, size, compat_calc_entry, info, > entries, newinfo); > } > @@ -2240,6 +2240,7 @@ static int compat_do_replace(struct net *net, void __user *user, > > xt_compat_lock(NFPROTO_BRIDGE); > > + xt_compat_init_offsets(NFPROTO_BRIDGE, tmp.nentries); > ret = compat_copy_entries(entries_tmp, tmp.entries_size, &state); > if (ret < 0) > goto out_unlock; > diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c > index a9adf4c..e6dbec5 100644 > --- a/net/netfilter/x_tables.c > +++ b/net/netfilter/x_tables.c > @@ -455,6 +455,7 @@ void xt_compat_flush_offsets(u_int8_t af) > vfree(xt[af].compat_tab); > xt[af].compat_tab = NULL; > xt[af].number = 0; > + xt[af].cur = 0; > } > } > EXPORT_SYMBOL_GPL(xt_compat_flush_offsets); > @@ -473,6 +474,8 @@ int xt_compat_calc_jump(u_int8_t af, unsigned int offset) > else > return mid ? tmp[mid - 1].delta : 0; > } > + if (left) > + return tmp[left - 1].delta; > WARN_ON_ONCE(1); > return 0; > } > > -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-06 16:25 ` dann frazier @ 2011-04-06 16:44 ` Eric Dumazet 2011-04-06 16:49 ` Eric Dumazet 0 siblings, 1 reply; 16+ messages in thread From: Eric Dumazet @ 2011-04-06 16:44 UTC (permalink / raw) To: dann frazier; +Cc: Patrick McHardy, netdev, netfilter-devel@vger.kernel.org Le mercredi 06 avril 2011 à 10:25 -0600, dann frazier a écrit : > Thanks Eric. Unfortunately that didn't solve the problem I am seeing. > I rebaselined (same kernel build as before), and found that I'm able > to reproduce this 100% of the time by running only: > > sudo ebtables -t filter --init-table > > The backtrace I received was this: Oh yeah, I forgot to remove the WARN_ON_ONCE(1) at the end of xt_compat_calc_jump() I focused on restoring ebtables (for example ebtables -A INPUT ...) Just ignore the warning for the time being ;) # ebtables -A INPUT -p arp -s 00:01:02:03:04:05 -j ACCEPT # ebtables -A INPUT -p arp -s 00:01:02:03:04:06 -j ACCEPT # ebtables -L Bridge table: filter Bridge chain: INPUT, entries: 2, policy: ACCEPT -p ARP -s 0:1:2:3:4:5 -j ACCEPT -p ARP -s 0:1:2:3:4:6 -j ACCEPT Bridge chain: FORWARD, entries: 0, policy: ACCEPT Bridge chain: OUTPUT, entries: 0, policy: ACCEPT -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-06 16:44 ` Eric Dumazet @ 2011-04-06 16:49 ` Eric Dumazet 2011-04-06 18:45 ` dann frazier 2011-04-21 8:57 ` Patrick McHardy 0 siblings, 2 replies; 16+ messages in thread From: Eric Dumazet @ 2011-04-06 16:49 UTC (permalink / raw) To: dann frazier; +Cc: Patrick McHardy, netdev, netfilter-devel@vger.kernel.org Le mercredi 06 avril 2011 à 18:44 +0200, Eric Dumazet a écrit : > Le mercredi 06 avril 2011 à 10:25 -0600, dann frazier a écrit : > > > Thanks Eric. Unfortunately that didn't solve the problem I am seeing. > > I rebaselined (same kernel build as before), and found that I'm able > > to reproduce this 100% of the time by running only: > > > > sudo ebtables -t filter --init-table > > > > The backtrace I received was this: > > > Oh yeah, I forgot to remove the WARN_ON_ONCE(1) at the end of > xt_compat_calc_jump() > > I focused on restoring ebtables (for example ebtables -A INPUT ...) > > Just ignore the warning for the time being ;) > > > # ebtables -A INPUT -p arp -s 00:01:02:03:04:05 -j ACCEPT > # ebtables -A INPUT -p arp -s 00:01:02:03:04:06 -j ACCEPT > # ebtables -L > Bridge table: filter > > Bridge chain: INPUT, entries: 2, policy: ACCEPT > -p ARP -s 0:1:2:3:4:5 -j ACCEPT > -p ARP -s 0:1:2:3:4:6 -j ACCEPT > > Bridge chain: FORWARD, entries: 0, policy: ACCEPT > > Bridge chain: OUTPUT, entries: 0, policy: ACCEPT > [PATCH] netfilter: fix ebtables commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations) made ebtables not working anymore. 1) xt_compat_calc_jump() is not an exact match lookup 2) compat_table_info() has a typo in xt_compat_init_offsets() call 3) compat_do_replace() misses a xt_compat_init_offsets() call Reported-by: dann frazier <dannf@dannf.org> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- V2: remove a comment from V1 (as Patrick suggested) remove the WARN_ON_ONCE() in xt_compat_calc_jump() net/bridge/netfilter/ebtables.c | 3 ++- net/netfilter/x_tables.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 893669c..c66aa80 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c @@ -1766,7 +1766,7 @@ static int compat_table_info(const struct ebt_table_info *info, newinfo->entries_size = size; - xt_compat_init_offsets(AF_INET, info->nentries); + xt_compat_init_offsets(NFPROTO_BRIDGE, info->nentries); return EBT_ENTRY_ITERATE(entries, size, compat_calc_entry, info, entries, newinfo); } @@ -2240,6 +2240,7 @@ static int compat_do_replace(struct net *net, void __user *user, xt_compat_lock(NFPROTO_BRIDGE); + xt_compat_init_offsets(NFPROTO_BRIDGE, tmp.nentries); ret = compat_copy_entries(entries_tmp, tmp.entries_size, &state); if (ret < 0) goto out_unlock; diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c index a9adf4c..8a025a5 100644 --- a/net/netfilter/x_tables.c +++ b/net/netfilter/x_tables.c @@ -455,6 +455,7 @@ void xt_compat_flush_offsets(u_int8_t af) vfree(xt[af].compat_tab); xt[af].compat_tab = NULL; xt[af].number = 0; + xt[af].cur = 0; } } EXPORT_SYMBOL_GPL(xt_compat_flush_offsets); @@ -473,8 +474,7 @@ int xt_compat_calc_jump(u_int8_t af, unsigned int offset) else return mid ? tmp[mid - 1].delta : 0; } - WARN_ON_ONCE(1); - return 0; + return left ? tmp[left - 1].delta : 0; } EXPORT_SYMBOL_GPL(xt_compat_calc_jump); -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-06 16:49 ` Eric Dumazet @ 2011-04-06 18:45 ` dann frazier 2011-04-21 8:57 ` Patrick McHardy 1 sibling, 0 replies; 16+ messages in thread From: dann frazier @ 2011-04-06 18:45 UTC (permalink / raw) To: Eric Dumazet; +Cc: Patrick McHardy, netdev, netfilter-devel@vger.kernel.org On Wed, Apr 06, 2011 at 06:49:27PM +0200, Eric Dumazet wrote: > Le mercredi 06 avril 2011 à 18:44 +0200, Eric Dumazet a écrit : > > Le mercredi 06 avril 2011 à 10:25 -0600, dann frazier a écrit : > > > > > Thanks Eric. Unfortunately that didn't solve the problem I am seeing. > > > I rebaselined (same kernel build as before), and found that I'm able > > > to reproduce this 100% of the time by running only: > > > > > > sudo ebtables -t filter --init-table > > > > > > The backtrace I received was this: > > > > > > Oh yeah, I forgot to remove the WARN_ON_ONCE(1) at the end of > > xt_compat_calc_jump() > > > > I focused on restoring ebtables (for example ebtables -A INPUT ...) > > > > Just ignore the warning for the time being ;) > > > > > > # ebtables -A INPUT -p arp -s 00:01:02:03:04:05 -j ACCEPT > > # ebtables -A INPUT -p arp -s 00:01:02:03:04:06 -j ACCEPT > > # ebtables -L > > Bridge table: filter > > > > Bridge chain: INPUT, entries: 2, policy: ACCEPT > > -p ARP -s 0:1:2:3:4:5 -j ACCEPT > > -p ARP -s 0:1:2:3:4:6 -j ACCEPT > > > > Bridge chain: FORWARD, entries: 0, policy: ACCEPT > > > > Bridge chain: OUTPUT, entries: 0, policy: ACCEPT > > Tested-by: dann frazier <dannf@dannf.org> Thanks! > [PATCH] netfilter: fix ebtables > > commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations) > made ebtables not working anymore. > > 1) xt_compat_calc_jump() is not an exact match lookup > 2) compat_table_info() has a typo in xt_compat_init_offsets() call > 3) compat_do_replace() misses a xt_compat_init_offsets() call > > Reported-by: dann frazier <dannf@dannf.org> > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > --- > V2: remove a comment from V1 (as Patrick suggested) > remove the WARN_ON_ONCE() in xt_compat_calc_jump() > > > net/bridge/netfilter/ebtables.c | 3 ++- > net/netfilter/x_tables.c | 4 ++-- > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c > index 893669c..c66aa80 100644 > --- a/net/bridge/netfilter/ebtables.c > +++ b/net/bridge/netfilter/ebtables.c > @@ -1766,7 +1766,7 @@ static int compat_table_info(const struct ebt_table_info *info, > > newinfo->entries_size = size; > > - xt_compat_init_offsets(AF_INET, info->nentries); > + xt_compat_init_offsets(NFPROTO_BRIDGE, info->nentries); > return EBT_ENTRY_ITERATE(entries, size, compat_calc_entry, info, > entries, newinfo); > } > @@ -2240,6 +2240,7 @@ static int compat_do_replace(struct net *net, void __user *user, > > xt_compat_lock(NFPROTO_BRIDGE); > > + xt_compat_init_offsets(NFPROTO_BRIDGE, tmp.nentries); > ret = compat_copy_entries(entries_tmp, tmp.entries_size, &state); > if (ret < 0) > goto out_unlock; > diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c > index a9adf4c..8a025a5 100644 > --- a/net/netfilter/x_tables.c > +++ b/net/netfilter/x_tables.c > @@ -455,6 +455,7 @@ void xt_compat_flush_offsets(u_int8_t af) > vfree(xt[af].compat_tab); > xt[af].compat_tab = NULL; > xt[af].number = 0; > + xt[af].cur = 0; > } > } > EXPORT_SYMBOL_GPL(xt_compat_flush_offsets); > @@ -473,8 +474,7 @@ int xt_compat_calc_jump(u_int8_t af, unsigned int offset) > else > return mid ? tmp[mid - 1].delta : 0; > } > - WARN_ON_ONCE(1); > - return 0; > + return left ? tmp[left - 1].delta : 0; > } > EXPORT_SYMBOL_GPL(xt_compat_calc_jump); > > > -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: shutdown oops in xt_compat_calc_jump 2011-04-06 16:49 ` Eric Dumazet 2011-04-06 18:45 ` dann frazier @ 2011-04-21 8:57 ` Patrick McHardy 1 sibling, 0 replies; 16+ messages in thread From: Patrick McHardy @ 2011-04-21 8:57 UTC (permalink / raw) To: Eric Dumazet; +Cc: dann frazier, netdev, netfilter-devel@vger.kernel.org On 06.04.2011 18:49, Eric Dumazet wrote: > [PATCH] netfilter: fix ebtables > > commit 255d0dc34068a976 (netfilter: x_table: speedup compat operations) > made ebtables not working anymore. > > 1) xt_compat_calc_jump() is not an exact match lookup > 2) compat_table_info() has a typo in xt_compat_init_offsets() call > 3) compat_do_replace() misses a xt_compat_init_offsets() call Applied, thanks Eric. ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2011-04-21 8:57 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20110404194856.GA3720@dannf.org> 2011-04-04 20:02 ` shutdown oops in xt_compat_calc_jump Patrick McHardy 2011-04-04 20:37 ` Eric Dumazet 2011-04-04 21:17 ` dann frazier 2011-04-04 22:48 ` Eric Dumazet 2011-04-05 6:24 ` Eric Dumazet 2011-04-05 7:17 ` Eric Dumazet 2011-04-05 10:41 ` Patrick McHardy 2011-04-05 21:08 ` dann frazier 2011-04-05 23:42 ` Florian Westphal 2011-04-06 4:42 ` Eric Dumazet 2011-04-06 7:40 ` Florian Westphal 2011-04-06 16:25 ` dann frazier 2011-04-06 16:44 ` Eric Dumazet 2011-04-06 16:49 ` Eric Dumazet 2011-04-06 18:45 ` dann frazier 2011-04-21 8:57 ` Patrick McHardy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).