diff mbox

[1/9] Fix leaking of kernel heap addresses in net/

Message ID 1289147499.3090.138.camel@Dan
State Rejected, archived
Delegated to: David Miller
Headers show

Commit Message

Dan Rosenberg Nov. 7, 2010, 4:31 p.m. UTC
Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com>





--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff -urp linux-2.6.37-rc1.orig/net/atm/proc.c linux-2.6.37-rc1/net/atm/proc.c
--- linux-2.6.37-rc1.orig/net/atm/proc.c	2010-11-01 07:54:12.000000000 -0400
+++ linux-2.6.37-rc1/net/atm/proc.c	2010-11-07 10:22:40.000000000 -0500
@@ -191,7 +191,7 @@  static void vcc_info(struct seq_file *se
 {
 	struct sock *sk = sk_atm(vcc);
 
-	seq_printf(seq, "%p ", vcc);
+	seq_printf(seq, "%lu ", sock_i_ino(sk));
 	if (!vcc->dev)
 		seq_printf(seq, "Unassigned    ");
 	else