netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jarek Poplawski <jarkao2@gmail.com>
To: Bernard Pidoux F6BVP <f6bvp@free.fr>
Cc: Linux Netdev List <netdev@vger.kernel.org>
Subject: ax25 rose Re: kernel panic linux-2.6.27-rc7
Date: Mon, 29 Sep 2008 12:30:36 +0000	[thread overview]
Message-ID: <20080929123036.GA16954@ff.dom.local> (raw)
In-Reply-To: <48DF7D51.1010507@free.fr>

On Sun, Sep 28, 2008 at 02:49:21PM +0200, Bernard Pidoux F6BVP wrote:
> Hi,
>
> Here is another report catched via netconsole.
> Kernel is linux-2.6.27-rc7
> kernel panic occurs within less than a minute after boot.
>
>
> ------------------------------
> dim sep 28 14:38:59 CEST 2008
> ------------------------------
> BUG: unable to handle kernel paging request at 6b6b6b73
> IP: [<c0254689>] datagram_poll+0xd9/0xf0
> *pde = 00000000
> Oops: 0002 [#1]

Looks like some socket is used after kfree. Is it vanilla kernel?
I think ax25/rose folks should rather be Cc-ed... Anyway, below
is my poor try to get more debugging.

Cheers,
Jarek P.

---

 net/core/datagram.c |    1 +
 net/core/sock.c     |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/core/datagram.c b/net/core/datagram.c
index 52f577a..ab3d3dc 100644
--- a/net/core/datagram.c
+++ b/net/core/datagram.c
@@ -635,6 +635,7 @@ unsigned int datagram_poll(struct file *file, struct socket *sock,
 			return mask;
 	}
 
+	BUG_ON((long) sk->sk_socket == 0x6b6b6b6b);
 	/* writable? */
 	if (sock_writeable(sk))
 		mask |= POLLOUT | POLLWRNORM | POLLWRBAND;
diff --git a/net/core/sock.c b/net/core/sock.c
index 2d358dd..bf5465b 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -960,6 +960,8 @@ void sk_free(struct sock *sk)
 {
 	struct sk_filter *filter;
 
+	printk("AX25_DBG: %p, %p, %u, %u, %u\n", sk, sk->sk_socket,
+				 sk->sk_family, sk->sk_type, sk->sk_protocol);
 	if (sk->sk_destruct)
 		sk->sk_destruct(sk);
 

  reply	other threads:[~2008-09-29 12:30 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-28 12:49 kernel panic linux-2.6.27-rc7 Bernard Pidoux F6BVP
2008-09-29 12:30 ` Jarek Poplawski [this message]
2008-09-30  9:40   ` ax25 rose " Bernard Pidoux F6BVP
2008-09-30 10:10     ` Jarek Poplawski
2008-09-30 11:17       ` Jarek Poplawski
2008-09-30 20:59         ` Bernard Pidoux F6BVP
2008-09-30 21:30           ` Jarek Poplawski
2008-09-30 22:49             ` Bernard Pidoux F6BVP
2008-10-01  5:58               ` Jarek Poplawski
2008-10-02 18:20                 ` Bernard, f6bvp
2008-10-02 19:48                   ` Jarek Poplawski
2008-10-03  7:34                     ` Jarek Poplawski
2008-10-03  7:43                       ` Jarek Poplawski
2008-10-04 18:30                         ` Bernard, f6bvp
2008-10-04 19:11                           ` Jarek Poplawski
2008-10-04 20:09                             ` Jarek Poplawski
2008-10-05 15:40                               ` Bernard, f6bvp
2008-10-05 20:33                                 ` Jarek Poplawski
2008-10-05 21:09                                   ` Jarek Poplawski
2008-10-05 18:31                               ` Bernard, f6bvp
2008-10-05 20:40                                 ` Jarek Poplawski
2008-10-05 21:18                                   ` Bernard, f6bvp
2008-10-05 22:05                                     ` [PATCH to REVERT] " Jarek Poplawski
2008-10-06 20:05                                       ` David Miller
2008-10-05 22:16                                     ` [PATCH] netrom: Fix sock_orphan() use in nr_release Jarek Poplawski
2008-10-05 13:04                           ` ax25 rose Re: kernel panic linux-2.6.27-rc7 Jarek Poplawski
2008-10-01  6:58       ` [PATCH] lib8390: Fix locking in ei_poll (poll controller) Jarek Poplawski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080929123036.GA16954@ff.dom.local \
    --to=jarkao2@gmail.com \
    --cc=f6bvp@free.fr \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).