Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 99057 - modprobe -r fails to unload modules, causes hang on reboot or iptables stop/restart
Summary: modprobe -r fails to unload modules, causes hang on reboot or iptables stop/r...
Keywords:
Status: CLOSED DUPLICATE of bug 103177
Alias: None
Product: Red Hat Linux Beta
Classification: Retired
Component: kernel
Version: beta1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Miller
QA Contact: Brian Brock
URL:
Whiteboard:
: 103094 (view as bug list)
Depends On:
Blocks: CambridgeBlocker
TreeView+ depends on / blocked
 
Reported: 2003-07-13 12:49 UTC by Nils Philippsen
Modified: 2007-04-18 16:55 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-02-21 18:57:02 UTC
Embargoed:


Attachments (Terms of Use)
gzipped strace of /etc/rc.d/initd.d/iptables stop (deleted)
2003-07-14 06:22 UTC, Nils Philippsen
no flags Details
lsmod output after trying to stop iptables (deleted)
2003-07-14 06:23 UTC, Nils Philippsen
no flags Details
dmesg output after trying to stop iptables (deleted)
2003-07-14 06:24 UTC, Nils Philippsen
no flags Details

Description Nils Philippsen 2003-07-13 12:49:40 UTC
Description of problem:

The new iptables init script calls modprobe -r to unload modules when stopping.
Unfortunately this causes a hang at "modprobe -r" (with e.g. the ipt_state
module) after e.g. "service iptables restart":

nils@wombat:~> sudo service iptables restart
Flushing firewall rules:                                   [  OK  ]
Setting chains to ACCEPT policy:                           [  OK  ]
Unloading iptables modules:Terminated [<-- had to kill script here]
nils@wombat:~> sudo su -
root@wombat:~> lsmod |grep ipt
iptable_filter          2444   0  (autoclean)
ip_tables              15264   1  [iptable_filter]
root@wombat:~> ps auxw|grep mod
nils      2336  0.0  1.3 17732 7032 ?        S    14:34   0:00
/usr/libexec/modemlights_applet2
--oaf-activate-iid=OAFIID:GNOME_ModemLightsApplet_Factory --oaf-ior-fd=26
root      2847 91.0  0.1  3348  824 pts/3    R    14:36   4:38 modprobe -r ipt_state
root      3370  0.0  0.1  4660  668 pts/3    S    14:41   0:00 grep mod
root@wombat:~> lsmod|grep ipt_stat

As you can see, modprobe apparently goes into an endless loop even after
successfully removing the module as per "lsmod" (I also had it looping with the
module to be removed listed as "(deleted)", but that was with a kernel from RHL9).

Version-Release number of selected component (if applicable):

modutils-2.4.25-8
kernel-2.4.21-20.1.2024.2.1.nptl   (module gets removed in "lsmod")
kernel-2.4.20-18.9                 (module is "(deleted)" in "lsmod")
iptables-1.2.8-6.1

How reproducible:

Easy.

Steps to Reproduce:
1. Boot system
2. Start iptables
3. Stop iptables
    
Actual results:

See above

Expected results:

Modules get unloaded, iptables script doesn't hang.

Comment 1 Nils Philippsen 2003-07-13 12:55:13 UTC
Forget about differences between the two kernels, in fact with both of them the
"ip_conntrack" module is marked as "(deleted)" (not "ipt_state").

Comment 2 Bill Nottingham 2003-07-14 04:18:11 UTC
lsmod output? Anything in dmesg?

What does strace of modprobe show?

Comment 3 Nils Philippsen 2003-07-14 06:20:44 UTC
I thought the problem had vanished because shutting down the machine worked
yesterday evening (with iptables-1.2.8-7.1), but I managed to do it again...

I'll attach strace, dmesg, lsmod output (dmesg doesn't reveal anything to me,
just the occasional cipe messages, iptables log lines...).

Comment 4 Nils Philippsen 2003-07-14 06:22:47 UTC
Created attachment 92904 [details]
gzipped strace of /etc/rc.d/initd.d/iptables stop

made it with:

strace -o $file -Ff -s 512 /etc/init.d/iptables stop

Comment 5 Nils Philippsen 2003-07-14 06:23:58 UTC
Created attachment 92905 [details]
lsmod output after trying to stop iptables

Comment 6 Nils Philippsen 2003-07-14 06:24:51 UTC
Created attachment 92906 [details]
dmesg output after trying to stop iptables

Comment 7 Nils Philippsen 2003-07-14 06:27:35 UTC
the PID of the "guilty" modprobe process ("modprobe -r ip_conntrack_ftp") is
6281, it seems to hang/loop in "delete_module".

Comment 8 Bill Nottingham 2003-07-14 15:28:04 UTC
Hanging in delete_module sounds like a kernel problem.

Comment 9 Need Real Name 2003-08-25 14:28:48 UTC
I've seen the same symptoms in 2.4.20-18.7smp.

Comment 10 Bill Nottingham 2003-08-26 15:39:57 UTC
*** Bug 103094 has been marked as a duplicate of this bug. ***

Comment 11 Nils Philippsen 2003-09-19 09:49:32 UTC
The problem doesn't show in kernel-2.4.22-1.2051.nptl -- shall I close the bug
or push this back to RHL9 -- it still shows with its kernels.

Comment 12 Dave Jones 2003-09-19 11:03:03 UTC

*** This bug has been marked as a duplicate of 103177 ***

Comment 13 mediaforest 2006-01-31 12:36:41 UTC
I've got exactly the same problem on a fedora 3, so I think it's not resolved yet

Comment 14 Red Hat Bugzilla 2006-02-21 18:57:02 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.


Note You need to log in before you can comment on or make changes to this bug.