Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#4834 closed defect (fixed)

lsmod hangs after installing iptables-mod-ipopt on 8.09 brcm-2.4

Reported by: it@… Owned by: developers
Priority: high Milestone: Kamikaze 8.09.1
Component: kernel Version: Kamikaze 8.09
Keywords: Cc:

Description

After installation of iptables-mod-ipopt lsmod will hang.

See http://forum.openwrt.org/viewtopic.php?id=19055 for lsmod output right after installation of 8.09 and after installation of iptables-mod-ipopt.

I tested a WRT54GL and WRT54G and both had the same problem.

Someone else also reported the same issue on the forum and did an strace. See http://forum.openwrt.org/viewtopic.php?id=19151
(initially reported the problem with x-wrt, but later also got the same issue with stock openwrt)

Attachments (1)

lsmod-infinite-loop.patch (422 bytes) - added by dannybaumann@… 9 years ago.
Obvious fix

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by dannybaumann@…

The strace shows pretty clearly this is a bug in busybox. Have a look at http://sources.busybox.net/index.py/trunk/busybox/modutils/lsmod.c?annotate=22907 - lines 104 and following. depsize starts out at 256 bytes, count is returned as 385 bytes:

query_module("ip_tables", QM_INFO, {address=0xc01eb000, size=16960, flags=MOD_RUNNING|MOD_VISITED|MOD_USED_ONCE, usecount=38}, 16) = 0
query_module("ip_tables", QM_REFS, 0x4c8ff0, 256, 385) = -1 ENOSPC (No space left on device)
query_module("ip_tables", QM_REFS, 0x4c8ff0, 256, 385) = -1 ENOSPC (No space left on device)

After that, the deps buffer is increased, but the depsize variable is not updated accordingly, so lsmod keeps looping indefinitely.

Changed 9 years ago by dannybaumann@…

Obvious fix

comment:2 Changed 9 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

see r15071 - thanks!

comment:3 Changed 9 years ago by nico

  • Version set to Kamikaze 8.09

comment:4 Changed 9 years ago by nico

  • Milestone changed from Kamikaze to Kamikaze 8.09.1

Applied to 8.09 in [15163]

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.