diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2016-08-17 16:00:08 -0700 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-10-29 01:33:59 +0200 |
commit | 336d81d6287bfd00cd353049f8ae9f3ee41636ad (patch) | |
tree | d0ff8feabf527fc8104d3ac9f6a526c6873d6f70 | |
parent | d0f61033883f012e28a69c522fa8441192488a82 (diff) | |
download | kernel_samsung_tuna-336d81d6287bfd00cd353049f8ae9f3ee41636ad.zip kernel_samsung_tuna-336d81d6287bfd00cd353049f8ae9f3ee41636ad.tar.gz kernel_samsung_tuna-336d81d6287bfd00cd353049f8ae9f3ee41636ad.tar.bz2 |
binder: prevent kptr leak by using %pK format specifier
Works in conjunction with kptr_restrict.
Bug: 30143283
Change-Id: I2b3ce22f4e206e74614d51453a1d59b7080ab05a
-rw-r--r-- | drivers/staging/android/binder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index fed3f15..414e4c6 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c @@ -3369,7 +3369,7 @@ static void print_binder_node(struct seq_file *m, struct binder_node *node) static void print_binder_ref(struct seq_file *m, struct binder_ref *ref) { - seq_printf(m, " ref %d: desc %d %snode %d s %d w %d d %p\n", + seq_printf(m, " ref %d: desc %d %snode %d s %d w %d d %pK\n", ref->debug_id, ref->desc, ref->node->proc ? "" : "dead ", ref->node->debug_id, ref->strong, ref->weak, ref->death); } |