From: Carlos Llamas <cmllamas@google.com>
To: "Tiffany Y. Yang" <ynaffit@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" <brauner@kernel.org>,
"Suren Baghdasaryan" <surenb@google.com>,
linux-kernel@vger.kernel.org, kernel-team@android.com
Subject: Re: [PATCH v3] binder: use buffer offsets in debug logs
Date: Tue, 1 Apr 2025 02:18:49 +0000 [thread overview]
Message-ID: <Z-tNCasDwqtVZQOJ@google.com> (raw)
In-Reply-To: <20250327231722.3204898-2-ynaffit@google.com>
On Thu, Mar 27, 2025 at 11:17:09PM +0000, Tiffany Y. Yang wrote:
> Identify buffer addresses using vma offsets instead of full user
> addresses in debug logs or drop them if they are not useful.
>
> Signed-off-by: Tiffany Y. Yang <ynaffit@google.com>
> ---
This looks good but there is one problem...
> @@ -4223,20 +4219,21 @@ static int binder_thread_write(struct binder_proc *proc,
> if (IS_ERR_OR_NULL(buffer)) {
> if (PTR_ERR(buffer) == -EPERM) {
> binder_user_error(
> - "%d:%d BC_FREE_BUFFER u%016llx matched unreturned or currently freeing buffer\n",
> + "%d:%d BC_FREE_BUFFER matched unreturned or currently freeing buffer at offset %lx\n",
> proc->pid, thread->pid,
> - (u64)data_ptr);
> + (unsigned long)data_ptr - proc->alloc.buffer);
The alloc.buffer should be alloc.vm_start, this was recently renamed. I
think you would need to rebase your tree.
--
Carlos Llamas
prev parent reply other threads:[~2025-04-01 2:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-27 23:17 [PATCH v3] binder: use buffer offsets in debug logs Tiffany Y. Yang
2025-04-01 2:18 ` Carlos Llamas [this message]
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=Z-tNCasDwqtVZQOJ@google.com \
--to=cmllamas@google.com \
--cc=arve@android.com \
--cc=brauner@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=joel@joelfernandes.org \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maco@android.com \
--cc=surenb@google.com \
--cc=tkjos@android.com \
--cc=ynaffit@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox