netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 7/9] Fix leaking of kernel heap addresses in net/
@ 2010-11-07 16:32 Dan Rosenberg
  0 siblings, 0 replies; only message in thread
From: Dan Rosenberg @ 2010-11-07 16:32 UTC (permalink / raw)
  To: chas, davem, kuznet, pekkas, jmorris, yoshfuji, kaber,
	remi.denis-courmont
  Cc: netdev, security, stable

Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>

diff -urp linux-2.6.37-rc1.orig/net/packet/af_packet.c linux-2.6.37-rc1/net/packet/af_packet.c
--- linux-2.6.37-rc1.orig/net/packet/af_packet.c	2010-11-01 07:54:12.000000000 -0400
+++ linux-2.6.37-rc1/net/packet/af_packet.c	2010-11-07 10:32:01.000000000 -0500
@@ -324,7 +324,8 @@ static void packet_sock_destruct(struct 
 	WARN_ON(atomic_read(&sk->sk_wmem_alloc));
 
 	if (!sock_flag(sk, SOCK_DEAD)) {
-		pr_err("Attempt to release alive packet socket: %p\n", sk);
+		pr_err("Attempt to release alive packet socket: %lu\n",
+			sock_i_ino(sk));
 		return;
 	}
 
@@ -2636,8 +2637,8 @@ static int packet_seq_show(struct seq_fi
 		const struct packet_sock *po = pkt_sk(s);
 
 		seq_printf(seq,
-			   "%p %-6d %-4d %04x   %-5d %1d %-6u %-6u %-6lu\n",
-			   s,
+			   "%d %-6d %-4d %04x   %-5d %1d %-6u %-6u %-6lu\n",
+			   0,
 			   atomic_read(&s->sk_refcnt),
 			   s->sk_type,
 			   ntohs(po->num),




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-07 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-07 16:32 [PATCH 7/9] Fix leaking of kernel heap addresses in net/ Dan Rosenberg

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).