binder: avoid user addresses in debug logs
authorCarlos Llamas <cmllamas@google.com>
Fri, 1 Dec 2023 17:21:55 +0000 (17:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2023 00:23:40 +0000 (09:23 +0900)
commit162c79731448a5a052e93af7753df579dfe0bf7a
treed7f8aa2ec27f49810d6c0471f3612f9f4cd3ea71
parentf07b83a48e944c8a1cc1e9f6703fae5e34df2ba4
binder: avoid user addresses in debug logs

Prefer logging vma offsets instead of addresses or simply drop the debug
log altogether if not useful. Note this covers the instances affected by
the switch to store addresses as unsigned long. However, there are other
sections in the driver that could do the same.

Signed-off-by: Carlos Llamas <cmllamas@google.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20231201172212.1813387-27-cmllamas@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c
drivers/android/binder_alloc.c