New: Test server hang while running rhr (network) test on RHEL4 with kernel 2.6.12-rc1-mm4
Subsystems (2)
Might be a bug in the e100 driver, might not be.
I assume this is the
BUG_ON(skb->list != NULL);
in __kfree_skb(), although the line number is off-by-one, and the .__kfree_skb+0x188/0x240 would tend to contradict that. Anton, can you help work out where we went splat please?
tx timeouts are fairly rare events, so this might not be a recently-added bug.
Do we know if it is repeatable?
Begin forwarded message:
Date: Mon, 16 May 2005 02:44:04 -0700
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 4628] New: Test server hang while running rhr (network) test on RHEL4 with kernel 2.6.12-rc1-mm4
http://bugme.osdl.org/show_bug.cgi?id=4628
Summary: Test server hang while running rhr (network) test on
RHEL4 with kernel 2.6.12-rc1-mm4
Kernel Version: 2.6.12-rc1 with mm4 patch
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]
CC: [email protected],[email protected],[email protected],wa
[email protected]
Distribution:
RHEL4 with kernel 2.6.12-rc1-mm4
Hardware Environment:
IBM OpenPower( CHRP IBM,9124-720 )
Software Environment:
RHEL4
RHR: rhr2-rhel4-1.0-14a.noarch.rpm
Problem Description:
The test server hang while running rhr (network) test on RHEL4 with kernel 2.6.12-rc1-mm4.
Steps to reproduce:
1. Download kernel 2.6.12-rc1 and 2.6.12-rc1-mm4 patch from kernel.org, then build the kernel on OpenPower 720
2. Download rhr2-rhel4-1.0-14a.noarch.rpm from rhn.redhat.com and install it on the test machine.
3. Configure and run the rhr test via invoking redhat-ready.
Additional information:
Here is the backtrace from xmon.
3:mon> e
cpu 0x3: Vector: 700 (Program Check) at [c00000000ffe7920]
pc: c00000000029632c: .__kfree_skb+0x188/0x240
lr: c000000000296328: .__kfree_skb+0x184/0x240
sp: c00000000ffe7ba0 msr: 8000000000029032
current = 0xc000000107f94040
paca = 0xc000000000431c00
pid = 0, comm = swapper
kernel BUG in __kfree_skb at net/core/skbuff.c:282!
3:mon> t
[c00000000ffe7c40] d0000000000ebac4 .e100_rx_clean_list+0xa0/0x144 [e100] [c00000000ffe7ce0] d0000000000ed6dc .e100_tx_timeout+0x7c/0xb0 [e100] [c00000000ffe7d70] c0000000002b87bc .dev_watchdog+0xc8/0x154 [c00000000ffe7e00] c00000000006d6b4 .run_timer_softirq+0x180/0x298 [c00000000ffe7ed0] c0000000000667d8 .__do_softirq+0xdc/0x1b8 [c00000000ffe7f90] c000000000014bf0 .call_do_softirq+0x14/0x24 [c000000086b43860] c0000000000102c4 .do_softirq+0x98/0xac [c000000086b438f0] c0000000000669cc .irq_exit+0x70/0x8c [c000000086b43970] c000000000011fb8 .timer_interrupt+0x398/0x47c [c000000086b43a90] c00000000000a2b4 decrementer_common+0xb4/0x100 --- Exception: 901 (Decrementer) at c000000000010554 .dedicated_idle+0x114/0x280 [c000000086b43e80] c0000000000108c8 .cpu_idle+0x3c/0x54 [c000000086b43f00] c00000000003cc8c .start_secondary+0x108/0x148 [c000000086b43f90] c00000000000bd84 .enable_64b_mode+0x0/0x28
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
This is a reproducible defect.
At first, I can't believe that the server will suspend. But I retested the rhr and the server hung up again. So I captured the backtrace from xmon.
BTW, the e100 driver version is 3.3.6-k2.
To Andrew:
Re-send the mail with CC list. Thanks.
Best Regards!
Jian Jun He
CSDL, Beijing
Email: [email protected]
Andrew Morton
<[email protected]>
To
2005-05-16 17:59 [email protected]
cc
Jian Jun He/China/Contr/IBM@IBMCN, [email protected], Anton Blanchard <[email protected]>
Subject
Fw: [Bugme-new] [Bug 4628] New:
Test server hang while running rhr (network) test on RHEL4 with kernel 2.6.12-rc1-mm4
Might be a bug in the e100 driver, might not be.
I assume this is the
BUG_ON(skb->list != NULL);
in __kfree_skb(), although the line number is off-by-one, and the .__kfree_skb+0x188/0x240 would tend to contradict that. Anton, can you help work out where we went splat please?
tx timeouts are fairly rare events, so this might not be a recently-added bug.
Do we know if it is repeatable?
Begin forwarded message:
Date: Mon, 16 May 2005 02:44:04 -0700
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 4628] New: Test server hang while running rhr (network) test on RHEL4 with kernel 2.6.12-rc1-mm4
http://bugme.osdl.org/show_bug.cgi?id=4628
Summary: Test server hang while running rhr (network) test on
RHEL4 with kernel 2.6.12-rc1-mm4
Kernel Version: 2.6.12-rc1 with mm4 patch
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]
CC:
[email protected],[email protected],[email protected],wa
[email protected]
Distribution:
RHEL4 with kernel 2.6.12-rc1-mm4
Hardware Environment:
IBM OpenPower( CHRP IBM,9124-720 )
Software Environment:
RHEL4
RHR: rhr2-rhel4-1.0-14a.noarch.rpm
Problem Description:
The test server hang while running rhr (network) test on RHEL4 with kernel 2.6.12-rc1-mm4.
Steps to reproduce:
1. Download kernel 2.6.12-rc1 and 2.6.12-rc1-mm4 patch from kernel.org, then
build the kernel on OpenPower 720
2. Download rhr2-rhel4-1.0-14a.noarch.rpm from rhn.redhat.com and install it on
the test machine.
3. Configure and run the rhr test via invoking redhat-ready.
Additional information:
Here is the backtrace from xmon.
3:mon> e
cpu 0x3: Vector: 700 (Program Check) at [c00000000ffe7920]
pc: c00000000029632c: .__kfree_skb+0x188/0x240
lr: c000000000296328: .__kfree_skb+0x184/0x240
sp: c00000000ffe7ba0 msr: 8000000000029032
current = 0xc000000107f94040
paca = 0xc000000000431c00
pid = 0, comm = swapper
kernel BUG in __kfree_skb at net/core/skbuff.c:282!
3:mon> t
[c00000000ffe7c40] d0000000000ebac4 .e100_rx_clean_list+0xa0/0x144 [e100] [c00000000ffe7ce0] d0000000000ed6dc .e100_tx_timeout+0x7c/0xb0 [e100] [c00000000ffe7d70] c0000000002b87bc .dev_watchdog+0xc8/0x154 [c00000000ffe7e00] c00000000006d6b4 .run_timer_softirq+0x180/0x298 [c00000000ffe7ed0] c0000000000667d8 .__do_softirq+0xdc/0x1b8 [c00000000ffe7f90] c000000000014bf0 .call_do_softirq+0x14/0x24 [c000000086b43860] c0000000000102c4 .do_softirq+0x98/0xac [c000000086b438f0] c0000000000669cc .irq_exit+0x70/0x8c [c000000086b43970] c000000000011fb8 .timer_interrupt+0x398/0x47c [c000000086b43a90] c00000000000a2b4 decrementer_common+0xb4/0x100 --- Exception: 901 (Decrementer) at c000000000010554
.dedicated_idle+0x114/0x280 [c000000086b43e80] c0000000000108c8 .cpu_idle+0x3c/0x54 [c000000086b43f00] c00000000003cc8c .start_secondary+0x108/0x148 [c000000086b43f90] c00000000000bd84 .enable_64b_mode+0x0/0x28
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Quoted 6 lines · Andrew Morton
Might be a bug in the e100 driver, might not be.
I assume this is the
BUG_ON(skb->list != NULL);
It certainly is a bug in e100.
e100_tx_timeout -> e100_down -> e100_rx_clean_list
is racing against
e100_poll -> e100_rx_clean -> e100_rx_indicate
e100_rx_clean/e100_rx_indicate takes an skb off the RX ring and while it's being processed e100_rx_clean_list comes along and frees it.
Quoted 1 line
From a quick check similar problems may exist in other drivers that
have lockless ->poll() functions with RX rings.
Cheers,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txtJian:
Could you try the e100 from
http://prdownloads.sourceforge.net/e1000/e100-3.4.8.tar.gz?download?
This (e100 3.4.8) has a fix for the problem you've encountered. Specifically this driver uses netif_poll_{enable|disable} to avoid the race.
static int e100_up(struct nic *nic)
{
@@ -1688,13 +1753,18 @@ static int e100_up(struct nic *nic)
if((err = e100_hw_init(nic)))
goto err_clean_cbs;
e100_set_multicast_list(nic->netdev);
- e100_start_receiver(nic);
+ e100_start_receiver(nic, 0);
mod_timer(&nic->watchdog, jiffies);
if((err = request_irq(nic->pdev->irq, e100_intr, SA_SHIRQ,
nic->netdev->name, nic->netdev)))
goto err_no_irq;
- e100_enable_irq(nic);
netif_wake_queue(nic->netdev);+#ifdef CONFIG_E100_NAPI
+ netif_poll_enable(nic->netdev);
+ /* enable ints _after_ enabling poll, preventing a race between
+ * disable ints+schedule */
+#endif
+ e100_enable_irq(nic);
return 0; err_no_irq:
@@ -1708,11 +1778,15 @@ err_rx_clean_list:
static void e100_down(struct nic *nic)
{
+#ifdef CONFIG_E100_NAPI
+ /* wait here for poll to complete */
+ netif_poll_disable(nic->netdev);
+#endif
+ netif_stop_queue(nic->netdev);
e100_hw_reset(nic);
free_irq(nic->pdev->irq, nic->netdev);
del_timer_sync(&nic->watchdog);
netif_carrier_off(nic->netdev);
- netif_stop_queue(nic->netdev);
e100_clean_cbs(nic);
e100_rx_clean_list(nic);ganesh.
Quoted 31 lines · Herbert Xu
Quoted 6 lines · Andrew Morton
Might be a bug in the e100 driver, might not be.
I assume this is the
BUG_ON(skb->list != NULL);It certainly is a bug in e100.
e100_tx_timeout->e100_down->e100_rx_clean_listis racing against
e100_poll->e100_rx_clean->e100_rx_indicatee100_rx_clean/e100_rx_indicate takes an skb off the RX ring and while it's being processed
e100_rx_clean_listcomes along and frees it.From a quick check similar problems may exist in other drivers that have lockless ->poll() functions with RX rings.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Review err_rx_clean_list: · line 1784
Quoted 9 lines · Ganesh Venkatesan
(quoted diff) +4
-0@@ -1708,11 +1778,15 @@ err_rx_clean_list: static void e100_down(struct nic *nic) { +#ifdef CONFIG_E100_NAPI + /* wait here for poll to complete */ + netif_poll_disable(nic->netdev); +#endif
Sorry, you can't do that here since you're in softirq context and netif_poll_disable may sleep.
Cheers,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txtQuoted 4 lines · Herbert Xu
Quoted 2 lines · Ganesh Venkatesan
(quoted diff) +0
-0@@ -1708,11 +1778,15 @@ err_rx_clean_list:
Quoted 10 lines
Review err_rx_clean_list: · line 1784
Quoted 6 lines
(quoted diff) +4
-0static void e100_down(struct nic *nic) { +#ifdef CONFIG_E100_NAPI + /* wait here for poll to complete */ + netif_poll_disable(nic->netdev); +#endifSorry, you can't do that here since you're in softirq context and
netif_poll_disablemay sleep.
I think the intention is that e100_down() may sleep, from looking at all the callsites.
Only e100_tx_timeout() calls it in a context that prevents sleep.
Jeff
Could you tell me what the rhr test is? Is this an IBM internal test tool?
Quoted 94 lines · Andrew Morton
Might be a bug in the e100 driver, might not be.
I assume this is the
BUG_ON(skb->list != NULL);in
__kfree_skb(), although the line number is off-by-one, and the .__kfree_skb+0x188/0x240 would tend to contradict that. Anton, can you help work out where we went splat please?tx timeouts are fairly rare events, so this might not be a recently-added bug.
Do we know if it is repeatable?
Begin forwarded message:
Date: Mon, 16 May 2005 02:44:04 -0700
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 4628] New: Test server hang while running rhr (network) test on RHEL4 with kernel 2.6.12-rc1-mm4http://bugme.osdl.org/show_bug.cgi?id=4628
Summary: Test server hang while running rhr (network) test on
RHEL4 with kernel 2.6.12-rc1-mm4
Kernel Version: 2.6.12-rc1 with mm4 patch
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]
CC: [email protected],[email protected],[email protected],wa
[email protected]Distribution:
RHEL4 with kernel 2.6.12-rc1-mm4Hardware Environment:
IBMOpenPower( CHRP IBM,9124-720 )Software Environment:
RHEL4
RHR: rhr2-rhel4-1.0-14a.noarch.rpmProblem Description:
The test server hang while running rhr (network) test on RHEL4 with kernel 2.6.12-rc1-mm4.Steps to reproduce:
1. Download kernel 2.6.12-rc1 and 2.6.12-rc1-mm4 patch from kernel.org, then build the kernel on OpenPower 720
2. Download rhr2-rhel4-1.0-14a.noarch.rpm from rhn.redhat.com and install it on the test machine.
3. Configure and run the rhr test via invoking redhat-ready.Additional information:
Here is the backtrace from xmon.3:mon> e
cpu0x3: Vector: 700 (Program Check) at [c00000000ffe7920]pc: c00000000029632c: .__kfree_skb+0x188/0x240 lr: c000000000296328: .__kfree_skb+0x184/0x240 sp: c00000000ffe7ba0msr: 8000000000029032
current =0xc000000107f94040
paca =0xc000000000431c00
pid = 0, comm = swapper
kernel BUG in__kfree_skbatnet/core/skbuff.c:282!3:mon> t
[c00000000ffe7c40]d0000000000ebac4.e100_rx_clean_list+0xa0/0x144 [e100] [c00000000ffe7ce0]d0000000000ed6dc.e100_tx_timeout+0x7c/0xb0 [e100] [c00000000ffe7d70]c0000000002b87bc.dev_watchdog+0xc8/0x154 [c00000000ffe7e00]c00000000006d6b4.run_timer_softirq+0x180/0x298 [c00000000ffe7ed0]c0000000000667d8.__do_softirq+0xdc/0x1b8 [c00000000ffe7f90]c000000000014bf0.call_do_softirq+0x14/0x24 [c000000086b43860]c0000000000102c4.do_softirq+0x98/0xac [c000000086b438f0]c0000000000669cc.irq_exit+0x70/0x8c [c000000086b43970]c000000000011fb8.timer_interrupt+0x398/0x47c [c000000086b43a90]c00000000000a2b4decrementer_common+0xb4/0x100--- Exception: 901 (Decrementer) atc000000000010554.dedicated_idle+0x114/0x280 [c000000086b43e80]c0000000000108c8.cpu_idle+0x3c/0x54 [c000000086b43f00]c00000000003cc8c.start_secondary+0x108/0x148 [c000000086b43f90]c00000000000bd84.enable_64b_mode+0x0/0x28------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
"rhr" is a "Red Hat Certification Testing Suite". You can download it from redhat.com.
Best Regards!
Jian Jun He
CSDL, Beijing
Email: [email protected]
Ganesh Venkatesan
<ganesh.venkatesa
[email protected]> To
Andrew Morton <[email protected]>
2005-05-25 02:36 cc
[email protected], Jian Jun He/China/Contr/IBM@IBMCN,
Please respond to [email protected]
Ganesh Venkatesan gi.com, Anton Blanchard
<[email protected]>
Subject
Re: Fw: [Bugme-new] [Bug 4628] New:
Test server hang while running rhr (network) test on RHEL4 with kernel 2.6.12-rc1-mm4
Could you tell me what the rhr test is? Is this an IBM internal test tool?
Quoted 18 lines · Andrew Morton
Might be a bug in the e100 driver, might not be.
I assume this is the
BUG_ON(skb->list != NULL);in
__kfree_skb(), although the line number is off-by-one, and the .__kfree_skb+0x188/0x240 would tend to contradict that. Anton, can you help work out where we went splat please?tx timeouts are fairly rare events, so this might not be a recently-added bug.
Do we know if it is repeatable?
Quoted 6 lines
Begin forwarded message:
Date: Mon, 16 May 2005 02:44:04 -0700
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 4628] New: Test server hang while running rhr
(network) test on RHEL4 with kernel 2.6.12-rc1-mm4
Quoted 4 lines
Quoted 8 lines
Summary: Test server hang while running rhr (network) test on
RHEL4 with kernel 2.6.12-rc1-mm4
Kernel Version: 2.6.12-rc1 with mm4 patch
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]
CC:
[email protected],[email protected],[email protected],wa
Quoted 9 lines
Distribution:
RHEL4 with kernel 2.6.12-rc1-mm4Hardware Environment:
IBMOpenPower( CHRP IBM,9124-720 )
Quoted 6 lines
Software Environment:
RHEL4
RHR: rhr2-rhel4-1.0-14a.noarch.rpmProblem Description:
The test server hang while running rhr (network) test on RHEL4 with
kernel
Quoted 4 lines
2.6.12-rc1-mm4.
Steps to reproduce:
1. Download kernel 2.6.12-rc1 and 2.6.12-rc1-mm4 patch from kernel.org,
then
Quoted 2 lines
build the kernel on OpenPower 720
2. Download rhr2-rhel4-1.0-14a.noarch.rpm from rhn.redhat.com and install
it on
Quoted 17 lines
the test machine.
3. Configure and run the rhr test via invoking redhat-ready.Additional information:
Here is the backtrace from xmon.3:mon> e
cpu0x3: Vector: 700 (Program Check) at [c00000000ffe7920]pc: c00000000029632c: .__kfree_skb+0x188/0x240 lr: c000000000296328: .__kfree_skb+0x184/0x240 sp: c00000000ffe7ba0msr: 8000000000029032
current =0xc000000107f94040
paca =0xc000000000431c00
pid = 0, comm = swapper
kernel BUG in__kfree_skbatnet/core/skbuff.c:282!
Quoted 12 lines
3:mon> t
[c00000000ffe7c40]d0000000000ebac4.e100_rx_clean_list+0xa0/0x144 [e100] [c00000000ffe7ce0]d0000000000ed6dc.e100_tx_timeout+0x7c/0xb0 [e100] [c00000000ffe7d70]c0000000002b87bc.dev_watchdog+0xc8/0x154 [c00000000ffe7e00]c00000000006d6b4.run_timer_softirq+0x180/0x298 [c00000000ffe7ed0]c0000000000667d8.__do_softirq+0xdc/0x1b8 [c00000000ffe7f90]c000000000014bf0.call_do_softirq+0x14/0x24 [c000000086b43860]c0000000000102c4.do_softirq+0x98/0xac [c000000086b438f0]c0000000000669cc.irq_exit+0x70/0x8c [c000000086b43970]c000000000011fb8.timer_interrupt+0x398/0x47c [c000000086b43a90]c00000000000a2b4decrementer_common+0xb4/0x100--- Exception: 901 (Decrementer) atc000000000010554
.dedicated_idle+0x114/0x280 > [c000000086b43e80] c0000000000108c8 .cpu_idle+0x3c/0x54 > [c000000086b43f00] c00000000003cc8c .start_secondary+0x108/0x148 > [c000000086b43f90] c00000000000bd84 .enable_64b_mode+0x0/0x28
Quoted 5 lines
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Quoted 3 lines · Jian Jun He
I download e100-3.4.8 and installed in the test machine (both client and
server). But the server still hang while running rhr (network) test. :(
e100 is one of those drivers which we'd rather like to have working properly.
Can we please confirm that a) this bug is not fixed in 2.6.12-rc5 and b) nobody has seen a patch which fixes it?
For reference:
Quoted 23 lines · Herbert Xu
Quoted 6 lines · Andrew Morton
Might be a bug in the e100 driver, might not be.
I assume this is the
BUG_ON(skb->list != NULL);It certainly is a bug in e100.
e100_tx_timeout->e100_down->e100_rx_clean_listis racing against
e100_poll->e100_rx_clean->e100_rx_indicatee100_rx_clean/e100_rx_indicate takes an skb off the RX ring and while it's being processed
e100_rx_clean_listcomes along and frees it.Quoted 1 line
From a quick check similar problems may exist in other drivers that
have lockless ->poll() functions with RX rings.
Quoted 10 lines · Andrew Morton
Quoted 2 lines · Jian Jun He
I download e100-3.4.8 and installed in the test machine (both client and server). But the server still hang while running rhr (network) test. :(
e100 is one of those drivers which we'd rather like to have working properly.
Can we please confirm that a) this bug is not fixed in 2.6.12-rc5 and b) nobody has seen a patch which fixes it?
2.6.12-rc5-git1 should have an e100 update in it, too...