Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

binder: Add invalid handle info in user error log

In the case of a failed transaction, only the thread and process id are
logged. Add the handle info for the reference to the target node in user
error log to aid debugging.

Acked-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Ramji Jiyani <ramjiyani@google.com>
Link: https://lore.kernel.org/r/20210802220446.1938347-1-ramjiyani@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ramji Jiyani and committed by
Greg Kroah-Hartman
1ae14df5 0fc7ca62

+2 -2
+2 -2
drivers/android/binder.c
··· 2547 2547 ref->node, &target_proc, 2548 2548 &return_error); 2549 2549 } else { 2550 - binder_user_error("%d:%d got transaction to invalid handle\n", 2551 - proc->pid, thread->pid); 2550 + binder_user_error("%d:%d got transaction to invalid handle, %u\n", 2551 + proc->pid, thread->pid, tr->target.handle); 2552 2552 return_error = BR_FAILED_REPLY; 2553 2553 } 2554 2554 binder_proc_unlock(proc);