Re: 2.6.7-rc3: waiting for eth0 to become free

From: Diego Calleja García
Date: Thu Jun 10 2004 - 14:36:28 EST


El Wed, 09 Jun 2004 17:18:02 +0200 Felipe Alfaro Solana <felipe_alfaro@xxxxxxxxxxxxx> escribió:

I'm seeing the same with a ppp link: pppd can't be killed even with SIGKILL (it
eats 100% of cpu - all in sys time, readprofile attached) and the kernel spits
out those messages:

unregister_netdevice: waiting for ppp0 to become free. Usage count = 1
unregister_netdevice: waiting for ppp0 to become free. Usage count = 1
unregister_netdevice: waiting for ppp0 to become free. Usage count = 1
etc...

It doesn't happen always. i've seen it a couple of times, right now
I'm trying to reproduce it with the patch felipe provided (this is plain
-rc3 too)


This is the trace of the looping pppd:

pppd S C140E820 0 721 1 18063 17268 (NOTLB)
004d8032 7a6e2f0b 00000f8c c140e820 00000001 ddce8170 dd749e18 dd749e18
00000000 00000001 c032bc08 0000000a dd749e64 c011f454 00000046 00000001
c03500a4 00000046 c03500a8 c0110f66 ddce8170 ddce8170 010bdf60 dd749eec
Call Trace:
[<c011f454>] __do_softirq+0xb4/0xc0
[<c0110f66>] smp_apic_timer_interrupt+0xe6/0x150
[<c0104b1a>] apic_timer_interrupt+0x1a/0x20
[<c02a42d1>] schedule+0x71/0x640
[<c0104b1a>] apic_timer_interrupt+0x1a/0x20
[<c0123ad0>] process_timeout+0x0/0x10
[<c0123218>] del_singleshot_timer_sync+0x8/0x30
[<c02a4f79>] schedule_timeout+0x69/0xc0
[<c0104a98>] common_interrupt+0x18/0x20
[<c0123ad0>] process_timeout+0x0/0x10
[<c0259d15>] netdev_wait_allrefs+0x55/0x110
[<c0259efc>] netdev_run_todo+0x12c/0x240
[<e08aa1a0>] ppp_asynctty_close+0x0/0x100 [ppp_async]
[<e08b4c5b>] ppp_shutdown_interface+0x8b/0xf0 [ppp_generic]
[<e08b2082>] ppp_release+0x52/0x60 [ppp_generic]
[<c0152a56>] __fput+0x106/0x120
[<c015129f>] filp_close+0x4f/0x80
[<c01040d9>] sysenter_past_esp+0x52/0x71


profile (it's a dual box, the bug only keeps 100% one cpu, i reseted the
profile and let it run 5-10 seconds before getting this)

23165 total 0,0134
11517 default_idle 179,9531
4099 schedule 2,5619
3572 __mod_timer 6,3786
1867 del_timer 11,6687
1202 sched_clock 8,3472
508 schedule_timeout 2,6458
194 netdev_wait_allrefs 0,7132
157 del_singleshot_timer_sync 3,2708
13 __copy_user_intel 0,0739


Diego Calleja
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/