All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [2.6.7-bk] NFS-related kernel panic
  2004-06-23 13:58 walt
@ 2004-06-21 18:39 ` Grzegorz Kulewski
  0 siblings, 0 replies; 9+ messages in thread
From: Grzegorz Kulewski @ 2004-06-21 18:39 UTC (permalink / raw)
  To: walt; +Cc: linux-kernel

On Wed, 23 Jun 2004, walt wrote:

> Starting just today with the latest bk changesets I get a kernel
> panic when starting the rpc.statd daemon (NFS):
> 
> Kernel panic:  Aiee, killing interrupt handler
> In interrupt handler - not syncing
> 
> Anyone else seeing problems with NFS?

This is probably not NFS problem since I have no NFS and I get the same. 
Look at my report. I sent it minute ago to this list.


Thanks,

Grzegorz Kulewski


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [2.6.7-bk] NFS-related kernel panic
@ 2004-06-22  2:50 Bob Gill
  2004-06-22  3:35 ` Chris Wright
  0 siblings, 1 reply; 9+ messages in thread
From: Bob Gill @ 2004-06-22  2:50 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Ok.  I get (a very similar) error with 2.6.7-bk4.
The error message I get is:
Starting portmapper:                            [OK]
Starting NFS statd: Kernel panic: Aiee, killing interrupt handler!
bad: scheduling while atomic!
 [<c02a2c37>] schedule+0x483/0x488
 [<c0133298>] __get_free_pages+0x33/0x3f
 [<c026974c>] tcp_poll+0x34/0x15a
 [<c02a30b5>] schedule_timeout+0xb5/0xb7
 [<c0248fb3>] sock_poll+0x29/0x31
 [<c015da2e>] do_pollfd+0x4f/0x90
 [<c015db10>] do_poll+0xa1/0xc0
 [<c016dc7e>] sys_poll+0x14f/0x211
 [<c015d09d>] __pollwait+0x0/0xc6
 [<c014afd2>] sys_close+0x63/0x96
 [<c0103eb1>] sysenter_past_esp+0x52/0x71
In interrupt handler - not syncing

And that's where it dies.
I don't have NFS as part of the build either. My build script shows the
following:
# CONFIG_NFS_FS is not set
# CONFIG_NFSD is not set

Something is borken.

Bob


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [2.6.7-bk] NFS-related kernel panic
  2004-06-22  2:50 Bob Gill
@ 2004-06-22  3:35 ` Chris Wright
  2004-06-22 13:37   ` Stewart Smith
  2004-06-22 16:11   ` Arthur Kepner
  0 siblings, 2 replies; 9+ messages in thread
From: Chris Wright @ 2004-06-22  3:35 UTC (permalink / raw)
  To: Bob Gill; +Cc: Linux Kernel Mailing List, akepner

* Bob Gill (gillb4@telusplanet.net) wrote:
> Ok.  I get (a very similar) error with 2.6.7-bk4.
> The error message I get is:
> Starting portmapper:                            [OK]
> Starting NFS statd: Kernel panic: Aiee, killing interrupt handler!
> bad: scheduling while atomic!
>  [<c02a2c37>] schedule+0x483/0x488
>  [<c0133298>] __get_free_pages+0x33/0x3f
>  [<c026974c>] tcp_poll+0x34/0x15a
>  [<c02a30b5>] schedule_timeout+0xb5/0xb7
>  [<c0248fb3>] sock_poll+0x29/0x31
>  [<c015da2e>] do_pollfd+0x4f/0x90
>  [<c015db10>] do_poll+0xa1/0xc0
>  [<c016dc7e>] sys_poll+0x14f/0x211
>  [<c015d09d>] __pollwait+0x0/0xc6
>  [<c014afd2>] sys_close+0x63/0x96
>  [<c0103eb1>] sysenter_past_esp+0x52/0x71
> In interrupt handler - not syncing

The lockless loopback transmission patch mucks up the preempt count.
Can you give this patch a try?

thanks,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

===== loopback.c 1.15 vs edited =====
--- 1.15/drivers/net/loopback.c	2004-06-20 17:35:52 -07:00
+++ edited/loopback.c	2004-06-21 20:23:06 -07:00
@@ -143,10 +143,11 @@
 
 	dev->last_rx = jiffies;
 	if (likely(loopback_stats)) {
-		get_cpu_ptr(loopback_stats)->rx_bytes += skb->len;
-		get_cpu_ptr(loopback_stats)->tx_bytes += skb->len;
-		get_cpu_ptr(loopback_stats)->rx_packets++;
-		get_cpu_ptr(loopback_stats)->tx_packets++;
+		struct net_device_stats *stats = get_cpu_ptr(loopback_stats);
+		stats->rx_bytes += skb->len;
+		stats->tx_bytes += skb->len;
+		stats->rx_packets++;
+		stats->tx_packets++;
 		put_cpu_ptr(loopback_stats);
 	}
 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [2.6.7-bk] NFS-related kernel panic
  2004-06-22  3:35 ` Chris Wright
@ 2004-06-22 13:37   ` Stewart Smith
  2004-06-22 14:01     ` Grzegorz Kulewski
  2004-06-22 16:11   ` Arthur Kepner
  1 sibling, 1 reply; 9+ messages in thread
From: Stewart Smith @ 2004-06-22 13:37 UTC (permalink / raw)
  To: Chris Wright; +Cc: Bob Gill, Linux Kernel Mailing List, akepner

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

On Tue, 2004-06-22 at 13:35, Chris Wright wrote:
> > bad: scheduling while atomic!
> The lockless loopback transmission patch mucks up the preempt count.
> Can you give this patch a try?

This seems to fix the problem, thanks.

-- 
Stewart Smith (stewart@flamingspork.com)
http://www.flamingspork.com/


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [2.6.7-bk] NFS-related kernel panic
  2004-06-22 13:37   ` Stewart Smith
@ 2004-06-22 14:01     ` Grzegorz Kulewski
  0 siblings, 0 replies; 9+ messages in thread
From: Grzegorz Kulewski @ 2004-06-22 14:01 UTC (permalink / raw)
  To: Stewart Smith; +Cc: Chris Wright, Bob Gill, Linux Kernel Mailing List, akepner

Unfortunatelly this does not fix my (similar?) problem described in 
"Network related(?) kernel panic (2.6.7-bk4)".


Thanks,

Grzegorz Kulewski


On Tue, 22 Jun 2004, Stewart Smith wrote:

> On Tue, 2004-06-22 at 13:35, Chris Wright wrote:
> > > bad: scheduling while atomic!
> > The lockless loopback transmission patch mucks up the preempt count.
> > Can you give this patch a try?
> 
> This seems to fix the problem, thanks.
> 
> -- 
> Stewart Smith (stewart@flamingspork.com)
> http://www.flamingspork.com/
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [2.6.7-bk] NFS-related kernel panic
  2004-06-22  3:35 ` Chris Wright
  2004-06-22 13:37   ` Stewart Smith
@ 2004-06-22 16:11   ` Arthur Kepner
  1 sibling, 0 replies; 9+ messages in thread
From: Arthur Kepner @ 2004-06-22 16:11 UTC (permalink / raw)
  To: Chris Wright; +Cc: Bob Gill, Linux Kernel Mailing List


On Mon, 21 Jun 2004, Chris Wright wrote:

>
> The lockless loopback transmission patch mucks up the preempt count.
> Can you give this patch a try?
>
> thanks,
> -chris
> --
> Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net
>

Yes, there's a problem with preempt count. And this patch is
the minimal fix for it.

However, Andrew Morton noted this problem already and posted
a patch to be tested yesterday. I'd like to suggest that we go
with his patch (very slightly modified) which I'll post in a few
minutes to netdev. (I will cc Chris and Bob on this too.)

--

Arthur


> ===== loopback.c 1.15 vs edited =====
> --- 1.15/drivers/net/loopback.c	2004-06-20 17:35:52 -07:00
> +++ edited/loopback.c	2004-06-21 20:23:06 -07:00
> @@ -143,10 +143,11 @@
>
>  	dev->last_rx = jiffies;
>  	if (likely(loopback_stats)) {
> -		get_cpu_ptr(loopback_stats)->rx_bytes += skb->len;
> -		get_cpu_ptr(loopback_stats)->tx_bytes += skb->len;
> -		get_cpu_ptr(loopback_stats)->rx_packets++;
> -		get_cpu_ptr(loopback_stats)->tx_packets++;
> +		struct net_device_stats *stats = get_cpu_ptr(loopback_stats);
> +		stats->rx_bytes += skb->len;
> +		stats->tx_bytes += skb->len;
> +		stats->rx_packets++;
> +		stats->tx_packets++;
>  		put_cpu_ptr(loopback_stats);
>  	}
>
>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [2.6.7-bk] NFS-related kernel panic
       [not found] ` <fa.gh5h9hv.b2sm3v@ifi.uio.no>
@ 2004-06-22 21:14   ` walt
  2004-06-22 21:27     ` Chris Wright
  0 siblings, 1 reply; 9+ messages in thread
From: walt @ 2004-06-22 21:14 UTC (permalink / raw)
  To: Chris Wright; +Cc: Linux Kernel Mailing List

Chris Wright wrote:

> The lockless loopback transmission patch mucks up the preempt count.
> Can you give this patch a try?

I saw an update to loopback.c from linus which I assume was yours --
anyway my panic is fixed.  Thanks.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [2.6.7-bk] NFS-related kernel panic
  2004-06-22 21:14   ` [2.6.7-bk] NFS-related kernel panic walt
@ 2004-06-22 21:27     ` Chris Wright
  0 siblings, 0 replies; 9+ messages in thread
From: Chris Wright @ 2004-06-22 21:27 UTC (permalink / raw)
  To: walt; +Cc: Chris Wright, Linux Kernel Mailing List

* walt (wa1ter@hotmail.com) wrote:
> Chris Wright wrote:
> 
> > The lockless loopback transmission patch mucks up the preempt count.
> > Can you give this patch a try?
> 
> I saw an update to loopback.c from linus which I assume was yours --
> anyway my panic is fixed.  Thanks.

Actually that's from Andrew, and Arthur sent in a minor tweak which has
yet to hit mainline.  Glad it's working.

thanks,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [2.6.7-bk] NFS-related kernel panic
@ 2004-06-23 13:58 walt
  2004-06-21 18:39 ` Grzegorz Kulewski
  0 siblings, 1 reply; 9+ messages in thread
From: walt @ 2004-06-23 13:58 UTC (permalink / raw)
  To: linux-kernel

Starting just today with the latest bk changesets I get a kernel
panic when starting the rpc.statd daemon (NFS):

Kernel panic:  Aiee, killing interrupt handler
In interrupt handler - not syncing

Anyone else seeing problems with NFS?

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-06-22 21:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.l7nhc0k.1k1oepm@ifi.uio.no>
     [not found] ` <fa.gh5h9hv.b2sm3v@ifi.uio.no>
2004-06-22 21:14   ` [2.6.7-bk] NFS-related kernel panic walt
2004-06-22 21:27     ` Chris Wright
2004-06-23 13:58 walt
2004-06-21 18:39 ` Grzegorz Kulewski
  -- strict thread matches above, loose matches on Subject: below --
2004-06-22  2:50 Bob Gill
2004-06-22  3:35 ` Chris Wright
2004-06-22 13:37   ` Stewart Smith
2004-06-22 14:01     ` Grzegorz Kulewski
2004-06-22 16:11   ` Arthur Kepner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.