netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [OOPS] less /proc/net/igmp
       [not found] <20030825163206.GA1340@penguin.penguin>
@ 2003-08-26  6:03 ` YOSHIFUJI Hideaki / 吉藤英明
  2003-08-26  6:23   ` Owen Ford
                     ` (2 more replies)
  2003-08-26  6:41 ` Christian Axelsson
       [not found] ` <3F4B011B.6080300@lanil.mine.nu>
  2 siblings, 3 replies; 10+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2003-08-26  6:03 UTC (permalink / raw)
  To: sebek64; +Cc: linux-kernel, netdev

Hello.

In article <20030825163206.GA1340@penguin.penguin> (at Mon, 25 Aug 2003 18:32:06 +0200), Marcel Sebek <sebek64@post.cz> says:

> This Oops appears on 2.5.74+ kernels (including 2.6.0-test4) when
> I'm trying to read /proc/net/igmp with 'less', 'cat' displays
> the file content without oops:
:
> [snip]
>  ...
> bash# mount /proc
> bash# cat /proc/net/igmp
> Idx	Device    : Count Querier	Group    Users Timer	Reporter
> bash# less /proc/net/igmp
> Idx	Device    : Count Querier	Group    Users Timer	Reporter
> bash# ifup -a
> bash# cat /proc/net/igmp
> Idx	Device    : Count Querier	Group    Users Timer	Reporter
> 1	lo        :     0      V2
> 				010000E0     1 0:FFFA22F0		0
> bash# less /proc/net/igmp
> Unable to handle kernel paging request at virtual address 08051be0
>  printing eip:
> 08051be0
> *pde = 0fb66067
> *pfe = 00000000
> Oops: 0004 [#1]
> CPU:    0
> EIP:    0073:[<08051be0>]    Not tainted
> EFLAGS: 00010246
> EIP is at 0x8051be0
> eax: 0805fb68   ebx: 00000001   ecx: 00000000   edx: 00000019
> esi: 08060649   edi: 08057543   ebp: bffffd8c   esp: bfffda50
> ds: 007b   es: 007b   ss: 007b
> Process less (pid 20, threadinfo = cfab6000 task = c13560cd)
>  <0>Kernel panic: Fatal exception in interrupt
> In interrupt handler - not syncing

I could not reproduce this issue.  anyone?

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

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

* Re: [OOPS] less /proc/net/igmp
  2003-08-26  6:03 ` [OOPS] less /proc/net/igmp YOSHIFUJI Hideaki / 吉藤英明
@ 2003-08-26  6:23   ` Owen Ford
       [not found]   ` <1061878985.3463.2.camel@spider.hotmonkeyporn.com>
  2003-08-26 10:29   ` James Morris
  2 siblings, 0 replies; 10+ messages in thread
From: Owen Ford @ 2003-08-26  6:23 UTC (permalink / raw)
  To: linux-kernel

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

On Tue, 2003-08-26 at 01:03, YOSHIFUJI Hideaki / 吉藤英明 wrote:
> Hello.
> 
> In article <20030825163206.GA1340@penguin.penguin> (at Mon, 25 Aug 2003 18:32:06 +0200), Marcel Sebek <sebek64@post.cz> says:
> 
> > This Oops appears on 2.5.74+ kernels (including 2.6.0-test4) when
> > I'm trying to read /proc/net/igmp with 'less', 'cat' displays
> > the file content without oops:
> :
> > [snip]
> >  ...
> > bash# mount /proc
> > bash# cat /proc/net/igmp
> > Idx	Device    : Count Querier	Group    Users Timer	Reporter
> > bash# less /proc/net/igmp
> > Idx	Device    : Count Querier	Group    Users Timer	Reporter
> > bash# ifup -a
> > bash# cat /proc/net/igmp
> > Idx	Device    : Count Querier	Group    Users Timer	Reporter
> > 1	lo        :     0      V2
> > 				010000E0     1 0:FFFA22F0		0
> > bash# less /proc/net/igmp
> > Unable to handle kernel paging request at virtual address 08051be0
> >  printing eip:
> > 08051be0
> > *pde = 0fb66067
> > *pfe = 00000000
> > Oops: 0004 [#1]
> > CPU:    0
> > EIP:    0073:[<08051be0>]    Not tainted
> > EFLAGS: 00010246
> > EIP is at 0x8051be0
> > eax: 0805fb68   ebx: 00000001   ecx: 00000000   edx: 00000019
> > esi: 08060649   edi: 08057543   ebp: bffffd8c   esp: bfffda50
> > ds: 007b   es: 007b   ss: 007b
> > Process less (pid 20, threadinfo = cfab6000 task = c13560cd)
> >  <0>Kernel panic: Fatal exception in interrupt
> > In interrupt handler - not syncing
> 
> I could not reproduce this issue.  anyone?

I can confirm. I have it with 2.6.0-test4.

Let me know what useful info I can provide.  The oops is the same.

-- 
Owen Ford <oford@arghblech.com>

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

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

* Re: [OOPS] less /proc/net/igmp
       [not found] <20030825163206.GA1340@penguin.penguin>
  2003-08-26  6:03 ` [OOPS] less /proc/net/igmp YOSHIFUJI Hideaki / 吉藤英明
@ 2003-08-26  6:41 ` Christian Axelsson
       [not found] ` <3F4B011B.6080300@lanil.mine.nu>
  2 siblings, 0 replies; 10+ messages in thread
From: Christian Axelsson @ 2003-08-26  6:41 UTC (permalink / raw)
  To: Marcel Sebek; +Cc: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I can verify this on 2.6.0-test4-mm1 and 2.6.0-test3-mm4

- --
Christan Axelsson
smiler@lanil.mine.nu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/SwEbyqbmAWw8VdkRAg6SAJ98RVCbWmsVTH/vtg0McK7vSshn4QCffiI9
q7B10AWRBqYC64JD0UHG6LQ=
=lpLs
-----END PGP SIGNATURE-----



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

* Re: [OOPS] less /proc/net/igmp
       [not found] ` <3F4B011B.6080300@lanil.mine.nu>
@ 2003-08-26  7:10   ` Owen Ford
  0 siblings, 0 replies; 10+ messages in thread
From: Owen Ford @ 2003-08-26  7:10 UTC (permalink / raw)
  To: lkml

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

On Tue, 2003-08-26 at 01:41, Christian Axelsson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I can verify this on 2.6.0-test4-mm1 and 2.6.0-test3-mm4
> 
> - --
> Christan Axelsson
> smiler@lanil.mine.nu
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQE/SwEbyqbmAWw8VdkRAg6SAJ98RVCbWmsVTH/vtg0McK7vSshn4QCffiI9
> q7B10AWRBqYC64JD0UHG6LQ=
> =lpLs
> -----END PGP SIGNATURE-----
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

It goes back even farther.  I have it with all of the 2.6 series.
-- 
Owen Ford <oford@arghblech.com>

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

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

* Re: [OOPS] less /proc/net/igmp
       [not found]   ` <1061878985.3463.2.camel@spider.hotmonkeyporn.com>
@ 2003-08-26  8:32     ` YOSHIFUJI Hideaki / 吉藤英明
  2003-08-26 16:54       ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 1 reply; 10+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2003-08-26  8:32 UTC (permalink / raw)
  To: oford; +Cc: linux-kernel, netdev

Please CC: netdev.

In article <1061878985.3463.2.camel@spider.hotmonkeyporn.com> (at 26 Aug 2003 01:23:06 -0500), Owen Ford <oford@arghblech.com> says:

> > I could not reproduce this issue.  anyone?
> 
> I can confirm. I have it with 2.6.0-test4.
> 
> Let me know what useful info I can provide.  The oops is the same.

Okay, everyone. I'll try to fix this.

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

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

* Re: [OOPS] less /proc/net/igmp
  2003-08-26  6:03 ` [OOPS] less /proc/net/igmp YOSHIFUJI Hideaki / 吉藤英明
  2003-08-26  6:23   ` Owen Ford
       [not found]   ` <1061878985.3463.2.camel@spider.hotmonkeyporn.com>
@ 2003-08-26 10:29   ` James Morris
  2 siblings, 0 replies; 10+ messages in thread
From: James Morris @ 2003-08-26 10:29 UTC (permalink / raw)
  To: YOSHIFUJI Hideaki / 吉藤英明
  Cc: sebek64, linux-kernel, netdev

On Tue, 26 Aug 2003, YOSHIFUJI Hideaki / [iso-2022-jp] ^[$B5HF#1QL@^[(B wrote:

> I could not reproduce this issue.  anyone?

'less /proc/net/igmp' does it for me.


- James
-- 
James Morris
<jmorris@intercode.com.au>

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

* Re: [OOPS] less /proc/net/igmp
  2003-08-26  8:32     ` YOSHIFUJI Hideaki / 吉藤英明
@ 2003-08-26 16:54       ` YOSHIFUJI Hideaki / 吉藤英明
  2003-08-26 20:18         ` Owen Ford
  0 siblings, 1 reply; 10+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2003-08-26 16:54 UTC (permalink / raw)
  To: sebek64, oford, smiler, jmorris; +Cc: linux-kernel, netdev, yoshfuji

Hello.

In article <20030826.173226.114994096.yoshfuji@linux-ipv6.org> (at Tue, 26 Aug 2003 17:32:26 +0900 (JST)), YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> says:

> > I can confirm. I have it with 2.6.0-test4.
> > 
> > Let me know what useful info I can provide.  The oops is the same.
> 
> Okay, everyone. I'll try to fix this.

Please try this patch.

Index: linux-2.6/net/ipv4/igmp.c
===================================================================
RCS file: /home/cvs/linux-2.5/net/ipv4/igmp.c,v
retrieving revision 1.33
diff -u -r1.33 igmp.c
--- linux-2.6/net/ipv4/igmp.c	21 Aug 2003 17:47:23 -0000	1.33
+++ linux-2.6/net/ipv4/igmp.c	26 Aug 2003 15:18:03 -0000
@@ -2122,6 +2122,7 @@
 			break;
 		}
 		read_unlock(&in_dev->lock);
+		in_dev_put(in_dev);
 	}
 	return im;
 }
@@ -2181,7 +2182,9 @@
 	if (likely(state->in_dev != NULL)) {
 		read_unlock(&state->in_dev->lock);
 		in_dev_put(state->in_dev);
+		state->in_dev = NULL;
 	}
+	state->dev = NULL;
 	read_unlock(&dev_base_lock);
 }
 
@@ -2284,6 +2287,7 @@
 			spin_unlock_bh(&im->lock);
 		}
 		read_unlock_bh(&idev->lock);
+		in_dev_put(idev);
 	}
 	return psf;
 }
@@ -2350,12 +2354,16 @@
 static void igmp_mcf_seq_stop(struct seq_file *seq, void *v)
 {
 	struct igmp_mcf_iter_state *state = igmp_mcf_seq_private(seq);
-	if (likely(state->im != NULL))
+	if (likely(state->im != NULL)) {
 		spin_unlock_bh(&state->im->lock);
+		state->im = NULL;
+	}
 	if (likely(state->idev != NULL)) {
 		read_unlock_bh(&state->idev->lock);
 		in_dev_put(state->idev);
+		state->idev = NULL;
 	}
+	state->dev = NULL;
 	read_unlock(&dev_base_lock);
 }
 
Index: linux-2.6/net/ipv6/mcast.c
===================================================================
RCS file: /home/cvs/linux-2.5/net/ipv6/mcast.c,v
retrieving revision 1.30
diff -u -r1.30 mcast.c
--- linux-2.6/net/ipv6/mcast.c	21 Aug 2003 23:44:54 -0000	1.30
+++ linux-2.6/net/ipv6/mcast.c	26 Aug 2003 15:18:03 -0000
@@ -2078,6 +2078,7 @@
 			break;
 		}
 		read_unlock_bh(&idev->lock);
+		in6_dev_put(idev);
 	}
 	return im;
 }
@@ -2135,7 +2136,9 @@
 	if (likely(state->idev != NULL)) {
 		read_unlock_bh(&state->idev->lock);
 		in6_dev_put(state->idev);
+		state->idev = NULL;
 	}
+	state->dev = NULL;
 	read_unlock(&dev_base_lock);
 }
 
@@ -2225,6 +2228,7 @@
 			spin_unlock_bh(&im->mca_lock);
 		}
 		read_unlock_bh(&idev->lock);
+		in6_dev_put(idev);
 	}
 	return psf;
 }
@@ -2291,12 +2295,16 @@
 static void igmp6_mcf_seq_stop(struct seq_file *seq, void *v)
 {
 	struct igmp6_mcf_iter_state *state = igmp6_mcf_seq_private(seq);
-	if (likely(state->im != NULL))
+	if (likely(state->im != NULL)) {
 		spin_unlock_bh(&state->im->mca_lock);
+		state->im = NULL;
+	}
 	if (likely(state->idev != NULL)) {
 		read_unlock_bh(&state->idev->lock);
 		in6_dev_put(state->idev);
+		state->idev = NULL;
 	}
+	state->dev = NULL;
 	read_unlock(&dev_base_lock);
 }
 


-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

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

* Re: [OOPS] less /proc/net/igmp
  2003-08-26 16:54       ` YOSHIFUJI Hideaki / 吉藤英明
@ 2003-08-26 20:18         ` Owen Ford
  2003-08-26 23:39           ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 1 reply; 10+ messages in thread
From: Owen Ford @ 2003-08-26 20:18 UTC (permalink / raw)
  To: YOSHIFUJI Hideaki / 吉藤英明
  Cc: sebek64, smiler, jmorris, lkml, netdev

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

On Tue, 2003-08-26 at 11:54, YOSHIFUJI Hideaki / 吉藤英明 wrote:
> Hello.
> 
> In article <20030826.173226.114994096.yoshfuji@linux-ipv6.org> (at Tue, 26 Aug 2003 17:32:26 +0900 (JST)), YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> says:
> 
> > > I can confirm. I have it with 2.6.0-test4.
> > > 
> > > Let me know what useful info I can provide.  The oops is the same.
> > 
> > Okay, everyone. I'll try to fix this.
> 
> Please try this patch.

That seems to have done the job nicely.  Thanks.
 
-- 
Owen Ford <oford@arghblech.com>

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

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

* Re: [OOPS] less /proc/net/igmp
  2003-08-26 20:18         ` Owen Ford
@ 2003-08-26 23:39           ` YOSHIFUJI Hideaki / 吉藤英明
  2003-08-28  6:40             ` David S. Miller
  0 siblings, 1 reply; 10+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2003-08-26 23:39 UTC (permalink / raw)
  To: davem; +Cc: netdev, yoshfuji

In article <1061929108.3946.1.camel@spider.hotmonkeyporn.com> (at 26 Aug 2003 15:18:28 -0500), Owen Ford <oford@arghblech.com> says:

> > > Okay, everyone. I'll try to fix this.
> > 
> > Please try this patch.
> 
> That seems to have done the job nicely.  Thanks.

Thanks.  David, please apply.

D: Fixing several refcnt mistakes in seq_file handlers for 
D: /proc/net/{igmp,igmp6,msfilter,msfilter6}.

Thanks in advance.

--yoshfuji

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

* Re: [OOPS] less /proc/net/igmp
  2003-08-26 23:39           ` YOSHIFUJI Hideaki / 吉藤英明
@ 2003-08-28  6:40             ` David S. Miller
  0 siblings, 0 replies; 10+ messages in thread
From: David S. Miller @ 2003-08-28  6:40 UTC (permalink / raw)
  To: YOSHIFUJI Hideaki / _$B5HF#1QL@; +Cc: netdev, yoshfuji

On Wed, 27 Aug 2003 08:39:26 +0900 (JST)
YOSHIFUJI Hideaki / _$B5HF#1QL@ <yoshfuji@linux-ipv6.org> wrote:

> In article <1061929108.3946.1.camel@spider.hotmonkeyporn.com> (at 26 Aug 2003 15:18:28 -0500), Owen Ford <oford@arghblech.com> says:
> 
> Thanks.  David, please apply.
> 
> D: Fixing several refcnt mistakes in seq_file handlers for 
> D: /proc/net/{igmp,igmp6,msfilter,msfilter6}.

Applied, thank you.

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

end of thread, other threads:[~2003-08-28  6:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20030825163206.GA1340@penguin.penguin>
2003-08-26  6:03 ` [OOPS] less /proc/net/igmp YOSHIFUJI Hideaki / 吉藤英明
2003-08-26  6:23   ` Owen Ford
     [not found]   ` <1061878985.3463.2.camel@spider.hotmonkeyporn.com>
2003-08-26  8:32     ` YOSHIFUJI Hideaki / 吉藤英明
2003-08-26 16:54       ` YOSHIFUJI Hideaki / 吉藤英明
2003-08-26 20:18         ` Owen Ford
2003-08-26 23:39           ` YOSHIFUJI Hideaki / 吉藤英明
2003-08-28  6:40             ` David S. Miller
2003-08-26 10:29   ` James Morris
2003-08-26  6:41 ` Christian Axelsson
     [not found] ` <3F4B011B.6080300@lanil.mine.nu>
2003-08-26  7:10   ` Owen Ford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).