Permalink
Browse files

Replace %p with %pK to prevent leaking kernel address

BUG: 27532522
Change-Id: Ic0710a9a8cfc682acd88ecf3bbfeece2d798c4a4
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
  • Loading branch information...
mkayyash authored and andi34 committed May 24, 2016
1 parent 9915087 commit 603a60e03194aae89d07208d9632c4b23bcfe877
Showing with 1 addition and 1 deletion.
  1. +1 −1 net/netfilter/xt_qtaguid.c
@@ -1970,7 +1970,7 @@ static int qtaguid_ctrl_proc_read(char *page, char **num_items_returned,
f_count = atomic_long_read(
&sock_tag_entry->socket->file->f_count);
len = snprintf(outp, char_count,
"sock=%p tag=0x%llx (uid=%u) pid=%u "
"sock=%pK tag=0x%llx (uid=%u) pid=%u "
"f_count=%lu\n",
sock_tag_entry->sk,
sock_tag_entry->tag, uid,

0 comments on commit 603a60e

Please sign in to comment.