Bug 30471 - IPv6: if sitX tunnel enabled and take ethernet away, infinite errors
Summary: IPv6: if sitX tunnel enabled and take ethernet away, infinite errors
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 7.1
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: David Miller
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-03-03 15:56 UTC by Pekka Savola
Modified: 2007-04-18 16:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-03-16 22:01:25 UTC
Embargoed:


Attachments (Terms of Use)

Description Pekka Savola 2001-03-03 15:56:55 UTC
using 2.4.2.0.16

In short:

If using IPv6 tunneling, don't ever run 'ifdown eth0' unless you want to
reset your box.

To reproduce:

1. boot as normal
2. enable a sit ipv6 tunnel to somewhere, at this point eth0 will also have
ipv6 address configured automatically
3. take down ethernet interface with 'ifdown eth0'
4. rmmod eepro100 (or whatever your eth driver is)
[this is especially nasty because of /etc/cron.d/kmod..]

Now, your screen fills up with:

unregister_netdevice: waiting for eth0 to become free. Usage count = 2

'ifconfig', 'insmod' etc. will all freeze.  You can't reboot because at the
last stage of reboot the kernel
keeps hanging to that message.  The only thing you can do is reset.

FWIW, this also happens when I boot to single user-mode, ifup eth0, ifup
sit1 and do the steps above (no network daemons running already).

Comment 1 Pekka Savola 2001-03-05 18:01:08 UTC
I tried this in a very big hurry, so I might have been wrong, but:

1. reboot linux single
2. ifconfig eth0 up
3. ifconfig sit0 up
4. ifconfig eth0 down
5. rmmod eepro100

worked AFAIR.  On the other hand, if you replaced ifconfig with similar ifdown/ifup, no cookie.  

I'll try to test this more later, but nonetheless.. the other just doesn't seem to trigger the bug but
it'd appear to be still there.


Comment 2 David Miller 2001-03-16 22:01:20 UTC
Alexey Kuznetsov believes he has spotted the problem.  It is some issue with
specific routing radix tree splitting situations, leading to corrupt device
reference counts and corrupt ipv6 routing tree.

He hopes to have a fix on Monday or so.


Comment 3 Arjan van de Ven 2001-03-22 10:49:34 UTC
The mentioned fix will be in the next kernel we build.


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