All of lore.kernel.org
 help / color / mirror / Atom feed
From: Todd Kjos <tkjos@google.com>
To: Ramji Jiyani <ramjiyani@google.com>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Arve Hjønnevåg" <arve@android.com>,
	"Todd Kjos" <tkjos@android.com>,
	"Martijn Coenen" <maco@android.com>,
	"Joel Fernandes" <joel@joelfernandes.org>,
	"Christian Brauner" <christian@brauner.io>,
	"Hridya Valsaraju" <hridya@google.com>,
	"Suren Baghdasaryan" <surenb@google.com>,
	kernel-team@android.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] binder: Add invalid handle info in user error log
Date: Mon, 2 Aug 2021 11:22:01 -0700	[thread overview]
Message-ID: <CAHRSSEzUcSpWxQzjhGoDsk3uTm=anFri2jHVKDoLrCXVY8i0WA@mail.gmail.com> (raw)
In-Reply-To: <20210802174139.1908760-1-ramjiyani@google.com>

On Mon, Aug 2, 2021 at 10:41 AM 'Ramji Jiyani' via kernel-team
<kernel-team@android.com> wrote:
>
> In case of a fail transaction to the target node; user error log currently

nit: I'd rephrase this to something like  "In the case of a failed
transaction, only the thread and process id are logged. Add the handle
info..."

> only prints the thread and process id. Add handle info for the reference
> to the target node in user error log to aid debugging.
>
> Signed-off-by: Ramji Jiyani <ramjiyani@google.com>

Acked-by: Todd Kjos <tkjos@google.com>

> ---
>  drivers/android/binder.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/android/binder.c b/drivers/android/binder.c
> index bcec598b89f2..d9030cb6b1e4 100644
> --- a/drivers/android/binder.c
> +++ b/drivers/android/binder.c
> @@ -2547,8 +2547,8 @@ static void binder_transaction(struct binder_proc *proc,
>                                                 ref->node, &target_proc,
>                                                 &return_error);
>                         } else {
> -                               binder_user_error("%d:%d got transaction to invalid handle\n",
> -                                                 proc->pid, thread->pid);
> +                               binder_user_error("%d:%d got transaction to invalid handle, %u\n",
> +                                                 proc->pid, thread->pid, tr->target.handle);
>                                 return_error = BR_FAILED_REPLY;
>                         }
>                         binder_proc_unlock(proc);
> --
> 2.32.0.554.ge1b32706d8-goog
>
> --
> To unsubscribe from this group and stop receiving emails from it, send an email to kernel-team+unsubscribe@android.com.
>

  reply	other threads:[~2021-08-02 18:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-02 17:41 [PATCH] binder: Add invalid handle info in user error log Ramji Jiyani
2021-08-02 18:22 ` Todd Kjos [this message]
2021-08-02 22:08   ` Ramji Jiyani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHRSSEzUcSpWxQzjhGoDsk3uTm=anFri2jHVKDoLrCXVY8i0WA@mail.gmail.com' \
    --to=tkjos@google.com \
    --cc=arve@android.com \
    --cc=christian@brauner.io \
    --cc=gregkh@linuxfoundation.org \
    --cc=hridya@google.com \
    --cc=joel@joelfernandes.org \
    --cc=kernel-team@android.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maco@android.com \
    --cc=ramjiyani@google.com \
    --cc=surenb@google.com \
    --cc=tkjos@android.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.