* [PATCH 5/9] Fix leaking of kernel heap addresses in net/
@ 2010-11-07 16:31 Dan Rosenberg
0 siblings, 0 replies; only message in thread
From: Dan Rosenberg @ 2010-11-07 16:31 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>
--- linux-2.6.37-rc1.orig/net/key/af_key.c 2010-11-01 07:54:12.000000000 -0400
+++ linux-2.6.37-rc1/net/key/af_key.c 2010-11-07 11:28:13.000000000 -0500
@@ -99,7 +99,8 @@ static void pfkey_sock_destruct(struct s
skb_queue_purge(&sk->sk_receive_queue);
if (!sock_flag(sk, SOCK_DEAD)) {
- pr_err("Attempt to release alive pfkey socket: %p\n", sk);
+ pr_err("Attempt to release alive pfkey socket: %lu\n",
+ sock_i_ino(sk));
return;
}
@@ -3643,8 +3644,8 @@ static int pfkey_seq_show(struct seq_fil
if (v == SEQ_START_TOKEN)
seq_printf(f ,"sk RefCnt Rmem Wmem User Inode\n");
else
- seq_printf(f ,"%p %-6d %-6u %-6u %-6u %-6lu\n",
- s,
+ seq_printf(f ,"%d %-6d %-6u %-6u %-6u %-6lu\n",
+ 0,
atomic_read(&s->sk_refcnt),
sk_rmem_alloc_get(s),
sk_wmem_alloc_get(s),
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-07 16:32 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:31 [PATCH 5/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).