OpenWrt Forum Archive

Topic: 8.09 iptables-mod-ipopt hangs lsmod

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I'm having this issue on multiple WRT54G(L) hardware versions with the brcm-2.4 image: After installation of iptables-mod-ipopt lsmod will hang.

lsmod after fresh install:

BusyBox v1.11.2 (2009-01-06 07:18:07 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (8.09, r14511) ----------------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@OpenWrt:~# lsmod
Module                  Size  Used by    Tainted: P  
wlcompat                9504   0 (unused)
ip_conntrack_tftp       1724   0 (unused)
ip_nat_irc              2360   0 (unused)
ip_conntrack_irc        3140   1
ip_nat_ftp              2984   0 (unused)
ip_conntrack_ftp        4284   1
ipt_MASQUERADE          1316   0 (unused)
iptable_nat            21000   2 [ip_nat_irc ip_nat_ftp ipt_MASQUERADE]
ipt_state                408   0 (unused)
ip_conntrack           22640   3 [ip_conntrack_tftp ip_nat_irc ip_conntrack_irc ip_nat_ftp ip_conntrack_ftp ipt_MASQUERADE iptable_nat ipt_state]
ipt_REJECT              3932   0 (unused)
ipt_TCPMSS              2316   0 (unused)
ipt_LOG                 3804   0 (unused)
ipt_multiport            748   0 (unused)
ipt_mac                  556   0 (unused)
ipt_limit                892   0 (unused)
iptable_mangle          2156   0 (unused)
iptable_filter          1676   0 (unused)
ip_tables              16960  13 [ipt_MASQUERADE iptable_nat ipt_state ipt_REJECT ipt_TCPMSS ipt_LOG ipt_multiport ipt_mac ipt_limit iptable_mangle iptable_filter]
ppp_async               8044   0 (unused)
ppp_generic            22380   0 [ppp_async]
slhc                    6064   0 [ppp_generic]
wl                    666560   0 (unused)
switch-robo             5084   0 (unused)
switch-core             5104   0 [switch-robo]
diag                   48752   0 (unused)
root@OpenWrt:~#

lsmod after iptables-mod-ipopt install:

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/kamikaze/8.09/brcm-2.4/packages/Packages.gz
Connecting to downloads.openwrt.org (195.56.146.238:80)
Packages.gz          100% |*******************************|   132k 00:00:00 ETA
Inflating http://downloads.openwrt.org/kamikaze/8.09/brcm-2.4/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/snapshots
root@OpenWrt:~# opkg install iptables-mod-ipopt
Installing iptables-mod-ipopt (1.3.8-4) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/brcm-2.4/packages/./iptables-mod-ipopt_1.3.8-4_mipsel.ipk
Connecting to downloads.openwrt.org (195.56.146.238:80)
iptables-mod-ipopt_1 100% |*******************************| 16427  --:--:-- ETA
Installing kmod-ipt-ipopt (2.4.35.4-brcm-2.4-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/8.09/brcm-2.4/packages/./kmod-ipt-ipopt_2.4.35.4-brcm-2.4-1_mipsel.ipk
Connecting to downloads.openwrt.org (195.56.146.238:80)
kmod-ipt-ipopt_2.4.3 100% |*******************************| 13369  --:--:-- ETA
Configuring iptables-mod-ipopt
Configuring kmod-ipt-ipopt
root@OpenWrt:~# 
root@OpenWrt:~# lsmod
Module                  Size  Used by    Tainted: P  
ipt_TOS                  988   0 (unused)
ipt_tos                  316   0 (unused)
ipt_TTL                  956   0 (unused)
ipt_MARK                 604   0 (unused)
ipt_ECN                 1628   0 (unused)
ipt_DSCP                 972   0 (unused)
ipt_CLASSIFY             716   0 (unused)
ipt_unclean             6844   0 (unused)
ipt_ttl                  508   0 (unused)
ipt_time                1556   0 (unused)
ipt_tcpmss               668   0 (unused)
ipt_mark                 316   0 (unused)
ipt_length               348   0 (unused)
ipt_ecn                  668   0 (unused)
ipt_dscp                 316   0 (unused)
wlcompat                9504   0 (unused)
ip_conntrack_tftp       1724   0 (unused)
ip_nat_irc              2360   0 (unused)
ip_conntrack_irc        3140   1
ip_nat_ftp              2984   0 (unused)
ip_conntrack_ftp        4284   1
ipt_MASQUERADE          1316   0 (unused)
iptable_nat            21000   2 [ip_nat_irc ip_nat_ftp ipt_MASQUERADE]
ipt_state                408   0 (unused)
ip_conntrack           22640   3 [ip_conntrack_tftp ip_nat_irc ip_conntrack_irc ip_nat_ftp ip_conntrack_ftp ipt_MASQUERADE iptable_nat ipt_state]
ipt_REJECT              3932   0 (unused)
ipt_TCPMSS              2316   0 (unused)
ipt_LOG                 3804   0 (unused)
ipt_multiport            748   0 (unused)
ipt_mac                  556   0 (unused)
ipt_limit                892   0 (unused)
iptable_mangle          2156   0 (unused)
iptable_filter          1676   0 (unused)

And it will hang at that point. ip_tables should be next but it is never displayed. Also lsmod starts using 99% CPU:

Mem: 11600K used, 2744K free, 0K shrd, 1264K buff, 4412K cached
CPU:   8% usr  91% sys   0% nice   0% idle   0% io   0% irq   0% softirq
Load average: 0.85 0.57 0.24
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
  570   500 root     R     1924  13%  99% lsmod 
  571   564 root     R     1924  13%   1% top 
  563   463 root     S     1932  13%   0% /usr/sbin/dropbear -p 22 
   92     1 root     S     1936  13%   0% syslogd -C16 
  453     1 root     S     1936  13%   0% udhcpc -t 0 -i eth0.1 -b -p /var/run/
  486   463 root     S     1932  13%   0% /usr/sbin/dropbear -p 22 
  500   486 root     S     1928  13%   0% -ash 
  564   563 root     S     1928  13%   0% -ash 
    1     0 root     S     1920  13%   0% init       
   67     1 root     S     1920  13%   0% init       
  466     1 root     S     1920  13%   0% /usr/sbin/httpd -p 80 -h /www -r Open
   94     1 root     S     1916  13%   0% klogd 
  463     1 root     S     1872  13%   0% /usr/sbin/dropbear -p 22 
  494     1 nobody   S     1212   8%   0% /usr/sbin/dnsmasq -K -D -y -Z -b -E -
    8     1 root     SW       0   0%   0% [mtdblockd]
    2     1 root     SW       0   0%   0% [keventd]
    3     1 root     SWN      0   0%   0% [ksoftirqd_CPU0]
    4     1 root     SW       0   0%   0% [kswapd]
    5     1 root     SW       0   0%   0% [bdflush]
    6     1 root     SW       0   0%   0% [kupdated]

I tried to let it run for a long time, but it never finishes.
This makes the installation of any shorewall package rather hard as it uses lsmod to detect modules.

(Last edited by pcperfect on 24 Feb 2009, 22:13)

I also have this problem with 8.09 brcm-2.4
Maybe someone should add a ticket for this?

(Last edited by knox on 24 Feb 2009, 10:47)

knox wrote:

Maybe someone should add a ticket for this?

Why not do it by yourself?

I guess i should do it then, and i will.

I'm just not very used to this community. Did use a lot of whiterussian a while ago and only just got around to kamikaze friday. Didn't even notice that 8.09 was just released the day before.

Just wanted to know that i'm not alone smile Now that i do i'll wait a few days and then i'll report a bug.

(Last edited by pcperfect on 24 Feb 2009, 13:52)

The discussion might have continued from here.