ipset list, panic on 3.2.0-3-686-pae
Hi,
I've been experiencing a problem with ipset causing the kernel to panic.
Steps to reproduce:
1) create an ipset (script attached),
2) add some addresses:
# for i in $(seq 1 200); do ipset add wifi-registered 192.168.20.$i; done
3) run:
# ipset -L
a couple of times and voilà.
Kernel messages dumped via netconsole attached.
--
Marcin Szewczyk http://wodny.org
mailto:Marcin.Szewczyk@wodny.borg <- remove b / usuń b
xmpp:wodny@ubuntu.pl xmpp:wodny@jabster.pl
#!/bin/sh
WIFIREGISTERED_SET=wifi-registered
REGISTRATION_TIMEOUT=300
ipset destroy "$WIFIREGISTERED_SET"
ipset create "$WIFIREGISTERED_SET" bitmap:ip,mac range "192.168.20.1/24" timeout "$REGISTRATION_TIMEOUT"
[ 77.048515] ------------[ cut here ]------------
[ 77.052023] kernel BUG at /build/buildd-linux_3.2.21-3-i386-vEohn4/linux-3.2.21/net/netfilter/ipset/ip_set_core.c:317!
[ 77.052023] invalid opcode: 0000 [#1] SMP
[ 77.052023] Modules linked in: netconsole configfs 8021q garp stp iptable_raw iptable_mangle ipt_REDIRECT ipt_MASQUERADE ipt_REJECT xt_tcpudp xt_set xt_conntrack ip_set_bitmap_ipmac ip_set nfnetlink ip6table_filter ip6_tables iptable_filter iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ip_tables x_tables loop snd_hda_codec_realtek powernow_k8 mperf arc4 snd_hda_codec_hdmi pcspkr evdev k10temp radeon ath9k mac80211 snd_hda_intel ttm ath9k_common snd_hda_codec button processor drm_kms_helper ath9k_hw snd_hwdep drm thermal_sys ath snd_pcm snd_timer i2c_algo_bit sp5100_tco cfg80211 snd i2c_piix4 soundcore snd_page_alloc rfkill i2c_core power_supply ext4 mbcache jbd2 crc16 aufs(C) sd_mod crc_t10dif ata_generic ohci_hcd ahci libahci pata_atiixp r8169 libata ehci_hcd mii scsi_mod usbcore usb_common [last unloaded: scsi_wait_scan]
[ 77.052023]
[ 77.052023] Pid: 1529, comm: ipset Tainted: G C 3.2.0-3-686-pae #1 To Be Filled By O.E.M. To Be Filled By O.E.M./E350M1
[ 77.052023] EIP: 0060:[<f0bb9e40>] EFLAGS: 00010246 CPU: 0
[ 77.052023] EIP is at ip_set_put_byindex+0x28/0x3b [ip_set]
[ 77.052023] EAX: ed22a900 EBX: 00000000 ECX: 00020001 EDX: 00000000
[ 77.052023] ESI: ef495400 EDI: ef4d4480 EBP: 00000f40 ESP: ed271c7c
[ 77.052023] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[ 77.052023] Process ipset (pid: 1529, ti=ed270000 task=ef999a00 task.ti=ed270000)
[ 77.052023] Stack:
[ 77.052023] edcd9380 f0bb9e62 c1235aa0 ffffffa6 edcd9380 ef495400 efbada00 ef403180
[ 77.052023] c1236312 00000000 efbada00 00000000 ecf97e40 ed271d68 f0bb93f2 f0bb9e65
[ 77.052023] f0bb9e53 00000000 f0bbd024 ef403180 f0bbb200 ef403180 ed271ce0 f0b17250
[ 77.052023] Call Trace:
[ 77.052023] [<f0bb9e62>] ? ip_set_dump_done+0xf/0x12 [ip_set]
[ 77.052023] [<c1235aa0>] ? netlink_dump+0x132/0x182
[ 77.052023] [<c1236312>] ? netlink_dump_start+0xcf/0xf0
[ 77.052023] [<f0bb93f2>] ? ip_set_dump+0x3d/0x47 [ip_set]
[ 77.052023] [<f0bb9e65>] ? ip_set_dump_done+0x12/0x12 [ip_set]
[ 77.052023] [<f0bb9e53>] ? ip_set_put_byindex+0x3b/0x3b [ip_set]
[ 77.052023] [<f0b17250>] ? nfnetlink_rcv_msg+0x17b/0x1b7 [nfnetlink]
[ 77.052023] [<c112036b>] ? security_netlink_recv+0xc/0xd
[ 77.052023] [<f0b17107>] ? nfnetlink_rcv_msg+0x32/0x1b7 [nfnetlink]
[ 77.052023] [<f0b170d5>] ? nfnl_lock+0xa/0xa [nfnetlink]
[ 77.052023] [<c1237561>] ? netlink_rcv_skb+0x2f/0x6f
[ 77.052023] [<c123719c>] ? netlink_unicast+0xc0/0x115
[ 77.052023] [<c12373cf>] ? netlink_sendmsg+0x1de/0x20a
[ 77.052023] [<c120f355>] ? sock_sendmsg+0xa8/0xc2
[ 77.052023] [<c109a552>] ? get_page_from_freelist+0x304/0x36a
[ 77.052023] [<c109704a>] ? filemap_fault+0x1bb/0x2dd
[ 77.052023] [<c1028de8>] ? kmap_atomic_prot+0x2f/0xe0
[ 77.052023] [<c10c5590>] ? mem_cgroup_update_page_stat+0x10/0x9b
[ 77.052023] [<c10aabe6>] ? __do_fault+0x371/0x3a3
[ 77.052023] [<c1029ee0>] ? should_resched+0x5/0x1e
[ 77.052023] [<c12be8b1>] ? _cond_resched+0x5/0x18
[ 77.052023] [<c116450c>] ? _copy_from_user+0x28/0x47
[ 77.052023] [<c1210a87>] ? sys_sendto+0xed/0x121
[ 77.052023] [<c1028de8>] ? kmap_atomic_prot+0x2f/0xe0
[ 77.052023] [<c10ad615>] ? handle_mm_fault+0x1ee/0x1fd
[ 77.052023] [<c12c274f>] ? do_page_fault+0x2e0/0x2fc
[ 77.052023] [<c12c273c>] ? do_page_fault+0x2cd/0x2fc
[ 77.052023] [<c12111fb>] ? sys_socketcall+0x10e/0x1da
[ 77.052023] [<c12c409f>] ? sysenter_do_call+0x12/0x28
[ 77.052023] Code: 0f 0b c3 53 0f b7 d8 a1 c8 d1 bb f0 83 3c 98 00 74 2a b8 20 d0 bb f0 e8 ea 5a 70 d0 a1 c8 d1 bb f0 8b 04 98 8b 50 24 85 d2 75 02 <0f> 0b 4a 89 50 24 b8 20 d0 bb f0 5b e9 a6 5a 70 d0 5b c3 83 78
[ 77.052023] EIP: [<f0bb9e40>] ip_set_put_byindex+0x28/0x3b [ip_set] SS:ESP 0068:ed271c7c
[ 77.417958] ---[ end trace e8ba3bb84134a9e5 ]---
[ 77.425169] Kernel panic - not syncing: Fatal exception in interrupt
[ 77.432466] Pid: 1529, comm: ipset Tainted: G D C 3.2.0-3-686-pae #1
[ 77.439780] Call Trace:
[ 77.447010] [<c12bb01f>] ? panic+0x4d/0x144
[ 77.454298] [<c12c0c32>] ? oops_end+0x8e/0x99
[ 77.461612] [<c100baa9>] ? do_bounds+0x4c/0x4c
[ 77.468922] [<c100bb12>] ? do_invalid_op+0x69/0x72
[ 77.476179] [<f0bb9e40>] ? ip_set_put_byindex+0x28/0x3b [ip_set]
[ 77.483464] [<c116ec3f>] ? __nla_put+0xe/0x1b
[ 77.490735] [<c116ec7d>] ? nla_put+0x31/0x38
[ 77.497866] [<f0b206a4>] ? bitmap_ipmac_tlist+0x167/0x1d4 [ip_set_bitmap_ipmac]
[ 77.504978] [<f0b206f5>] ? bitmap_ipmac_tlist+0x1b8/0x1d4 [ip_set_bitmap_ipmac]
[ 77.511858] [<c12bf924>] ? _raw_write_lock_bh+0x9/0x12
[ 77.518555] [<c103c971>] ? _local_bh_enable_ip.isra.9+0x15/0x6d
[ 77.525070] [<f0bba13f>] ? ip_set_dump_start+0x2da/0x337 [ip_set]
[ 77.531415] [<c12c0607>] ? error_code+0x67/0x6c
[ 77.537543] [<f0bb9e40>] ? ip_set_put_byindex+0x28/0x3b [ip_set]
[ 77.543523] [<f0bb9e62>] ? ip_set_dump_done+0xf/0x12 [ip_set]
[ 77.549453] [<c1235aa0>] ? netlink_dump+0x132/0x182
[ 77.555275] [<c1236312>] ? netlink_dump_start+0xcf/0xf0
[ 77.560949] [<f0bb93f2>] ? ip_set_dump+0x3d/0x47 [ip_set]
[ 77.566635] [<f0bb9e65>] ? ip_set_dump_done+0x12/0x12 [ip_set]
[ 77.572280] [<f0bb9e53>] ? ip_set_put_byindex+0x3b/0x3b [ip_set]
[ 77.577940] [<f0b17250>] ? nfnetlink_rcv_msg+0x17b/0x1b7 [nfnetlink]
[ 77.583589] [<c112036b>] ? security_netlink_recv+0xc/0xd
[ 77.589198] [<f0b17107>] ? nfnetlink_rcv_msg+0x32/0x1b7 [nfnetlink]
[ 77.594801] [<f0b170d5>] ? nfnl_lock+0xa/0xa [nfnetlink]
[ 77.600343] [<c1237561>] ? netlink_rcv_skb+0x2f/0x6f
[ 77.605832] [<c123719c>] ? netlink_unicast+0xc0/0x115
[ 77.611277] [<c12373cf>] ? netlink_sendmsg+0x1de/0x20a
[ 77.616643] [<c120f355>] ? sock_sendmsg+0xa8/0xc2
[ 77.621981] [<c109a552>] ? get_page_from_freelist+0x304/0x36a
[ 77.627340] [<c109704a>] ? filemap_fault+0x1bb/0x2dd
[ 77.632730] [<c1028de8>] ? kmap_atomic_prot+0x2f/0xe0
[ 77.638115] [<c10c5590>] ? mem_cgroup_update_page_stat+0x10/0x9b
[ 77.643560] [<c10aabe6>] ? __do_fault+0x371/0x3a3
[ 77.649005] [<c1029ee0>] ? should_resched+0x5/0x1e
[ 77.654441] [<c12be8b1>] ? _cond_resched+0x5/0x18
[ 77.659844] [<c116450c>] ? _copy_from_user+0x28/0x47
[ 77.665229] [<c1210a87>] ? sys_sendto+0xed/0x121
[ 77.670597] [<c1028de8>] ? kmap_atomic_prot+0x2f/0xe0
[ 77.675985] [<c10ad615>] ? handle_mm_fault+0x1ee/0x1fd
[ 77.681400] [<c12c274f>] ? do_page_fault+0x2e0/0x2fc
[ 77.686851] [<c12c273c>] ? do_page_fault+0x2cd/0x2fc
[ 77.692253] [<c12111fb>] ? sys_socketcall+0x10e/0x1da
[ 77.697662] [<c12c409f>] ? sysenter_do_call+0x12/0x28
[ 77.703060] panic occurred, switching back to text console
[ 77.707037] BUG: scheduling while atomic: ipset/1529/0x10000200
[ 77.707037] Modules linked in: netconsole configfs 8021q garp stp iptable_raw iptable_mangle ipt_REDIRECT ipt_MASQUERADE ipt_REJECT xt_tcpudp xt_set xt_conntrack ip_set_bitmap_ipmac ip_set nfnetlink ip6table_filter ip6_tables iptable_filter iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ip_tables x_tables loop snd_hda_codec_realtek powernow_k8 mperf arc4 snd_hda_codec_hdmi pcspkr evdev k10temp radeon ath9k mac80211 snd_hda_intel ttm ath9k_common snd_hda_codec button processor drm_kms_helper ath9k_hw snd_hwdep drm thermal_sys ath snd_pcm snd_timer i2c_algo_bit sp5100_tco cfg80211 snd i2c_piix4 soundcore snd_page_alloc rfkill i2c_core power_supply ext4 mbcache jbd2 crc16 aufs(C) sd_mod crc_t10dif ata_generic ohci_hcd ahci libahci pata_atiixp r8169 libata ehci_hcd mii scsi_mod usbcore usb_common [last unloaded: scsi_wait_scan]
[ 77.707037] Pid: 1529, comm: ipset Tainted: G D C 3.2.0-3-686-pae #1
[ 77.707037] Call Trace:
[ 77.707037] [<c12be374>] ? __schedule+0x57/0x55b
[ 77.707037] [<c122b8e0>] ? netpoll_send_skb_on_dev+0x137/0x1a9
[ 77.707037] [<f0c4b209>] ? write_msg+0x82/0xba [netconsole]
[ 77.707037] [<c1034315>] ? __cond_resched+0x13/0x22
[ 77.707037] [<c12be8bc>] ? _cond_resched+0x10/0x18
[ 77.707037] [<c10c0a98>] ? __kmalloc+0x52/0xab
[ 77.707037] [<f07e8594>] ? drm_crtc_helper_set_config+0x9f/0x7e3 [drm_kms_helper]
[ 77.707037] [<f07e8594>] ? drm_crtc_helper_set_config+0x9f/0x7e3 [drm_kms_helper]
[ 77.707037] [<c1038b7f>] ? vprintk+0x3ae/0x3df
[ 77.707037] [<f07e696e>] ? drm_fb_helper_restore_fbdev_mode+0x1f/0x31 [drm_kms_helper]
[ 77.707037] [<f07e7942>] ? drm_fb_helper_force_kernel_mode+0x30/0x49 [drm_kms_helper]
[ 77.707037] [<f07e798a>] ? drm_fb_helper_panic+0xf/0x15 [drm_kms_helper]
[ 77.707037] [<c12c278c>] ? notifier_call_chain+0x21/0x44
[ 77.707037] [<c12c27c2>] ? atomic_notifier_call_chain+0xc/0xf
[ 77.707037] [<c12bb049>] ? panic+0x77/0x144
[ 77.707037] [<c12c0c32>] ? oops_end+0x8e/0x99
[ 77.707037] [<c100baa9>] ? do_bounds+0x4c/0x4c
[ 77.707037] [<c100bb12>] ? do_invalid_op+0x69/0x72
[ 77.707037] [<f0bb9e40>] ? ip_set_put_byindex+0x28/0x3b [ip_set]
[ 77.707037] [<c116ec3f>] ? __nla_put+0xe/0x1b
[ 77.707037] [<c116ec7d>] ? nla_put+0x31/0x38
[ 77.707037] [<f0b206a4>] ? bitmap_ipmac_tlist+0x167/0x1d4 [ip_set_bitmap_ipmac]
[ 77.707037] [<f0b206f5>] ? bitmap_ipmac_tlist+0x1b8/0x1d4 [ip_set_bitmap_ipmac]
[ 77.707037] [<c12bf924>] ? _raw_write_lock_bh+0x9/0x12
[ 77.707037] [<c103c971>] ? _local_bh_enable_ip.isra.9+0x15/0x6d
[ 77.707037] [<f0bba13f>] ? ip_set_dump_start+0x2da/0x337 [ip_set]
[ 77.707037] [<c12c0607>] ? error_code+0x67/0x6c
[ 77.707037] [<f0bb9e40>] ? ip_set_put_byindex+0x28/0x3b [ip_set]
[ 77.707037] [<f0bb9e62>] ? ip_set_dump_done+0xf/0x12 [ip_set]
[ 77.707037] [<c1235aa0>] ? netlink_dump+0x132/0x182
[ 77.707037] [<c1236312>] ? netlink_dump_start+0xcf/0xf0
[ 77.707037] [<f0bb93f2>] ? ip_set_dump+0x3d/0x47 [ip_set]
[ 77.707037] [<f0bb9e65>] ? ip_set_dump_done+0x12/0x12 [ip_set]
[ 77.707037] [<f0bb9e53>] ? ip_set_put_byindex+0x3b/0x3b [ip_set]
[ 77.707037] [<f0b17250>] ? nfnetlink_rcv_msg+0x17b/0x1b7 [nfnetlink]
[ 77.707037] [<c112036b>] ? security_netlink_recv+0xc/0xd
[ 77.707037] [<f0b17107>] ? nfnetlink_rcv_msg+0x32/0x1b7 [nfnetlink]
[ 77.707037] [<f0b170d5>] ? nfnl_lock+0xa/0xa [nfnetlink]
[ 77.707037] [<c1237561>] ? netlink_rcv_skb+0x2f/0x6f
[ 77.707037] [<c123719c>] ? netlink_unicast+0xc0/0x115
[ 77.707037] [<c12373cf>] ? netlink_sendmsg+0x1de/0x20a
[ 77.707037] [<c120f355>] ? sock_sendmsg+0xa8/0xc2
[ 77.707037] [<c109a552>] ? get_page_from_freelist+0x304/0x36a
[ 77.707037] [<c109704a>] ? filemap_fault+0x1bb/0x2dd
[ 77.707037] [<c1028de8>] ? kmap_atomic_prot+0x2f/0xe0
[ 77.707037] [<c10c5590>] ? mem_cgroup_update_page_stat+0x10/0x9b
[ 77.707037] [<c10aabe6>] ? __do_fault+0x371/0x3a3
[ 77.707037] [<c1029ee0>] ? should_resched+0x5/0x1e
[ 77.707037] [<c12be8b1>] ? _cond_resched+0x5/0x18
[ 77.707037] [<c116450c>] ? _copy_from_user+0x28/0x47
[ 77.707037] [<c1210a87>] ? sys_sendto+0xed/0x121
[ 77.707037] [<c1028de8>] ? kmap_atomic_prot+0x2f/0xe0
[ 77.707037] [<c10ad615>] ? handle_mm_fault+0x1ee/0x1fd
[ 77.707037] [<c12c274f>] ? do_page_fault+0x2e0/0x2fc
[ 77.707037] [<c12c273c>] ? do_page_fault+0x2cd/0x2fc
[ 77.707037] [<c12111fb>] ? sys_socketcall+0x10e/0x1da
[ 77.707037] [<c12c409f>] ? sysenter_do_call+0x12/0x28
[ 77.707037] Rebooting in 5 seconds..
Reply to: