All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] iptables-restore randomly crashes under UML
@ 2003-11-22 13:09 Henrik Nordstrom
  2003-11-23 23:37 ` Henrik Nordstrom
  0 siblings, 1 reply; 13+ messages in thread
From: Henrik Nordstrom @ 2003-11-22 13:09 UTC (permalink / raw)
  To: User-mode-linux-devel

We have found what looks like a UML-specific problem when running the 
iptables-restore command.

Environment:

Linux-2.4.22 + current UML from CVS. iptables compiled as modules.

iptables (tested with both 1.2.8 and current CVS)

Host: RedHat 7.1, 7.3 and 9 with current updates.


boot without any iptables loaded

load the iptables modules

iptables -t mangle -L
iptables -t nat -L
iptables -t filter -L

Try running iptables-restore

iptables-save | iptables-restore

If no problem seen, try adding a few rules or chains to the table and 
repeat the command or try loading additional iptables such as filter 
and/or nat. In our tests this very reliably makes the iptables-restore 
fail after at most a few attemtps. In many cases a cycle of 4 is seen 
where the command works three times and then fails once, or fails with one 
error three times and another error once.

This problem is only seen when using UML, not when running on "real" 
hardware. This makes me suspect the problem is to be found somewhere 
within UML.

We have also seen occations when the kernel copy of the iptables table 
(usually the nat table) gets corrupted in the few cases where 
iptables-restore runs without error, later causing a kernel panic inside 
iptables.

The problems does only seem to occur when using iptables-restore to load a
new iptables definition, not when using iptables to modify individual
rules. But I can not understand why as the kernel operations are almost
identical in both cases.. iptables reads the current table from the
kernel, modifies it and writes the new table, iptables-restore compiles a
new table from the source rules and writes it into the kernel.


Any hints on how to pinpoint if this is a UML or a iptables problem is 
preciated.

Regards
Henrik



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-12-02 21:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-22 13:09 [uml-devel] iptables-restore randomly crashes under UML Henrik Nordstrom
2003-11-23 23:37 ` Henrik Nordstrom
2003-11-26  0:48   ` Adam Heath
2003-11-26  1:42     ` Henrik Nordstrom
2003-11-26  4:11       ` Henrik Nordstrom
2003-12-01 10:43         ` Henrik Nordstrom
2003-12-01 23:47           ` Henrik Nordstrom
2003-12-02  0:55             ` Henrik Nordstrom
2003-12-02 16:42               ` Jeff Dike
2003-12-02 16:49                 ` Henrik Nordstrom
2003-12-02 18:58                   ` Jeff Dike
2003-12-02 21:37                     ` Henrik Nordstrom
2003-12-02 18:39                 ` Henrik Nordstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.