Skip to contentSkip to conversation

kernel panics with net_rx_action on kernels >2.6.26

DISCUSSION David Miller 3 participants 7 messages Dec 15, 2008 – Dec 16, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

David Miller

author maintainer
#1 lore raw

From: Alexander Huemer <[email protected]>
Date: Sun, 14 Dec 2008 15:17:32 +0100

Networking developers generally don't read the linux-net list, it is for user configuration and basic questions only, not bug reports or technical discussions.

netdev is the place to report such things, and I've added that to the CC:

Quoted 17 lines

one of my machines (x86) crashes under heavy network load with kernels

Quoted 1 line

2.6.26, i tried quite everything possible between 2.6.27 and 2.6.28-rc8.

lspci -vv: http://xx.vu/~ahuemer/lspci_vv.txt <http://xx.vu/%7Eahuemer/lspci_vv.txt>
of the quad nic 2 ports are used, the machine is acting as a iptables firewall/router.

kernel config (2.6.26) http://xx.vu/~ahuemer/config <http://xx.vu/%7Eahuemer/config>
screenshot of the panic:
http://xx.vu/~ahuemer/kernel_panic_net_rx_action.jpg <http://xx.vu/%7Eahuemer/kernel_panic_net_rx_action.jpg>

as i do not have any problems with kernels <=2.6.26, i doubt that this is a hardware problem.
in case of the panic, nothing is written to the system log.

any hints welcome.
please CC me on replies, i am not subscribed to the mailing list.

#2 lore raw
Quoted 26 lines · David Miller

From: Alexander Huemer <[email protected]>
Date: Sun, 14 Dec 2008 15:17:32 +0100

Networking developers generally don't read the linux-net list, it is for user configuration and basic questions only, not bug reports or technical discussions.

netdev is the place to report such things, and I've added that to the CC:

Quoted 16 lines

one of my machines (x86) crashes under heavy network load with kernels

Quoted 1 line

2.6.26, i tried quite everything possible between 2.6.27 and 2.6.28-rc8.

lspci -vv: http://xx.vu/~ahuemer/lspci_vv.txt <http://xx.vu/%7Eahuemer/lspci_vv.txt>
of the quad nic 2 ports are used, the machine is acting as a iptables firewall/router.

kernel config (2.6.26) http://xx.vu/~ahuemer/config <http://xx.vu/%7Eahuemer/config>
screenshot of the panic:
http://xx.vu/~ahuemer/kernel_panic_net_rx_action.jpg <http://xx.vu/%7Eahuemer/kernel_panic_net_rx_action.jpg>

as i do not have any problems with kernels <=2.6.26, i doubt that this is a hardware problem.
in case of the panic, nothing is written to the system log.

any hints welcome.
please CC me on replies, i am not subscribed to the mailing list.

Could you try this patch, please?

Jarek P.
---

 drivers/net/starfire.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/net/starfire.c +5 -0
index 0358809..f86d6bb 100644
@@ -1503,6 +1503,11 @@ static int __netdev_rx(struct net_device *dev, int *quota)
 		desc->status = 0;
 		np->rx_done = (np->rx_done + 1) % DONE_Q_SIZE;
 	}
+
+	if (*quota == 0) {	/* out of rx quota */
+		retcode = 1;
+		goto out;
+	}
 	writew(np->rx_done, np->base + CompletionQConsumerIdx);
 
  out:
#3 lore raw
Quoted 48 lines · Jarek Poplawski
Quoted 30 lines · David Miller

From: Alexander Huemer <[email protected]>
Date: Sun, 14 Dec 2008 15:17:32 +0100

Networking developers generally don't read the linux-net list, it is for user configuration and basic questions only, not bug reports or technical discussions.

netdev is the place to report such things, and I've added that to the CC:

Quoted 19 lines

one of my machines (x86) crashes under heavy network load with kernels

Quoted 2 lines

2.6.26, i tried quite everything possible between 2.6.27 and 2.6.28-rc8.

lspci -vv: http://xx.vu/~ahuemer/lspci_vv.txt <http://xx.vu/%7Eahuemer/lspci_vv.txt>
of the quad nic 2 ports are used, the machine is acting as a iptables firewall/router.

kernel config (2.6.26) http://xx.vu/~ahuemer/config <http://xx.vu/%7Eahuemer/config>
screenshot of the panic:
http://xx.vu/~ahuemer/kernel_panic_net_rx_action.jpg <http://xx.vu/%7Eahuemer/kernel_panic_net_rx_action.jpg>

as i do not have any problems with kernels <=2.6.26, i doubt that this is a hardware problem.
in case of the panic, nothing is written to the system log.

any hints welcome.
please CC me on replies, i am not subscribed to the mailing list.

Could you try this patch, please?

Jarek P.
---

 drivers/net/starfire.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/net/starfire.c +0 -0
index 0358809..f86d6bb 100644
@@ -1503,6 +1503,11 @@ static int __netdev_rx(struct net_device *dev, int *quota)
 		desc->status = 0;

drivers/net/starfire.c static int __netdev_rx(struct net_device *dev, int *quota) · line 1513

Quoted 10 lines
drivers/net/starfire.c +5 -0
 		np->rx_done = (np->rx_done + 1) % DONE_Q_SIZE;
 	}
+
+	if (*quota == 0) {	/* out of rx quota */
+		retcode = 1;
+		goto out;
+	}
 	writew(np->rx_done, np->base + CompletionQConsumerIdx);
 
  out:

thanks for the patch, jarek.
i applied it to 2.6.28-rc8.
the machine is already running under heavy network load, as before, when the panics occur.
heavy load means high packets/second values, not high byte/second values. if you find that necessary for testing i will find a way to pump some gigs through the machine.
let's see what happens.
i will get back to you after a new panic or 2 days without panic.

Signature · 2 lines
kind regards
alex.
#4 lore raw

On Mon, Dec 15, 2008 at 09:11:09PM +0100, Alexander Huemer wrote:
...

Quoted 7 lines

i applied it to 2.6.28-rc8.
the machine is already running under heavy network load, as before, when the panics occur.
heavy load means high packets/second values, not high byte/second values. if you find that necessary for testing i will find a way to pump some gigs through the machine.
let's see what happens.

Actually, the bug I trie to fix in this patch doesn't depend on heavy load directly, but on counting: it should trigger after receiving 20 packets (or max_interrupt_work driver parameter if you use this), and then some break.

Quoted 1 line

i will get back to you after a new panic or 2 days without panic.

Regards,
Jarek P.

author maintainer
#5 lore raw
In reply to Jarek Poplawski

From: Jarek Poplawski <[email protected]>
Date: Mon, 15 Dec 2008 13:35:21 +0000

Quoted 1 line

Could you try this patch, please?

...

drivers/net/starfire.c static int __netdev_rx(struct net_device *dev, int *quota) · line 1513

Quoted 12 lines
drivers/net/starfire.c +5 -0
@@ -1503,6 +1503,11 @@ static int __netdev_rx(struct net_device *dev, int *quota)
 		desc->status = 0;
 		np->rx_done = (np->rx_done + 1) % DONE_Q_SIZE;
 	}
+
+	if (*quota == 0) {	/* out of rx quota */
+		retcode = 1;
+		goto out;
+	}
 	writew(np->rx_done, np->base + CompletionQConsumerIdx);
 
  out:

Jarek this looks good and it looks to be tested as well.

Could you formally submit this?

Thanks.

Tested-by Alexander Huemer
#6 lore raw

On Tue, Dec 16, 2008 at 01:22:47AM -0800, David Miller wrote:
...

Quoted 3 lines

Jarek this looks good and it looks to be tested as well.

Could you formally submit this?

------------------->

drivers/net: starfire: Fix napi ->poll() weight handling

starfire napi ->poll() handler can return work == weight after calling netif_rx_complete() (if there is no more work). It is illegal and this patch fixes it.

---

 drivers/net/starfire.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/net/starfire.c +5 -0
index 0358809..f86d6bb 100644
@@ -1503,6 +1503,11 @@ static int __netdev_rx(struct net_device *dev, int *quota)
 		desc->status = 0;
 		np->rx_done = (np->rx_done + 1) % DONE_Q_SIZE;
 	}
+
+	if (*quota == 0) {	/* out of rx quota */
+		retcode = 1;
+		goto out;
+	}
 	writew(np->rx_done, np->base + CompletionQConsumerIdx);
 
  out:
author maintainer Applied
#7 lore raw

From: Jarek Poplawski <[email protected]>
Date: Tue, 16 Dec 2008 14:06:51 +0000

Quoted 9 lines

drivers/net: starfire: Fix napi ->poll() weight handling

starfire napi ->poll() handler can return work == weight after calling netif_rx_complete() (if there is no more work). It is illegal and this patch fixes it.

Applied, thanks everyone.