lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080929123036.GA16954@ff.dom.local>
Date:	Mon, 29 Sep 2008 12:30:36 +0000
From:	Jarek Poplawski <jarkao2@...il.com>
To:	Bernard Pidoux F6BVP <f6bvp@...e.fr>
Cc:	Linux Netdev List <netdev@...r.kernel.org>
Subject: ax25 rose Re: kernel panic linux-2.6.27-rc7

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);
 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ