Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1723663

Re: [PATCH v3 3/6] android: binder: Move buffer out of area shared with user space

From Todd Kjos <tkjos@google.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 3/6] android: binder: Move buffer out of area shared with user space
Date 2017-08-30 23:10 +0200
Message-ID <ukipk-50S-3@gated-at.bofh.it> (permalink)
References <ujZmF-1iX-1@gated-at.bofh.it> <ujZmF-1iX-17@gated-at.bofh.it> <uk7Dz-6yY-1@gated-at.bofh.it> <ukhtg-4rH-19@gated-at.bofh.it> <ukhMC-4yE-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


I just went back through it -- turns out my email bounced back from
linux-kernel@vger.kernel.org (reason was "may contain a virus"). Sorry
I didn't notice that and resend.

On Wed, Aug 30, 2017 at 1:20 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> On Wed, Aug 30, 2017 at 01:04:31PM -0700, Arve Hjønnevåg wrote:
>> On Wed, Aug 30, 2017 at 2:29 AM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
>> > On Tue, Aug 29, 2017 at 05:46:59PM -0700, Sherry Yang wrote:
>> >> Binder driver allocates buffer meta data in a region that is mapped
>> >> in user space. These meta data contain pointers in the kernel.
>> >>
>> >> This patch allocates buffer meta data on the kernel heap that is
>> >> not mapped in user space, and uses a pointer to refer to the data mapped.
>> >>
>> >> Also move alloc->buffers initialization from mmap to init since it's
>> >> now used even when mmap failed or was not called.
>> >>
>> >> Signed-off-by: Sherry Yang <sherryy@android.com>
>> >> ---
>> >
>> > The difference between v2 and v3 is that we've shifted some
>> > initialization around to fix the crashing bug that kbuild found.  You
>> > should not that difference here under the --- cut off.
>> >
>> >>  drivers/android/binder_alloc.c          | 146 +++++++++++++++++++-------------
>> >>  drivers/android/binder_alloc.h          |   2 +-
>> >>  drivers/android/binder_alloc_selftest.c |  11 ++-
>> >>  3 files changed, 91 insertions(+), 68 deletions(-)
>> >
>> > But really we still need to have some answers or discussion about the
>> > questions that Greg and I raised.  Greg asked if the other Android devs
>> > had Acked this.  Please ping Arve to Ack this.
>> >
>> tkjos@google.com replied and ack'ed v2. The changes have been reviewed
>> on android-review.googlesource.com. Do you want and ack or review tag
>> included in the patchset or do you want separate ack emails on each
>> patchset (or on each patch)?
>
> Just acking it once is fine.  I don't see that email from Todd in my
> inbox and can't find it on the web archive either...  Something must
> have gone wrong but I don't know what.
>
> regards,
> dan carpenter
>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] android: binder: move allocator metadata and add shrinker Sherry Yang <sherryy@android.com> - 2017-08-30 02:50 +0200
  [PATCH v3 2/6] android: binder: Add allocator selftest Sherry Yang <sherryy@android.com> - 2017-08-30 02:50 +0200
  [PATCH v3 1/6] android: binder: Refactor prev and next buffer into a helper function Sherry Yang <sherryy@android.com> - 2017-08-30 02:50 +0200
    Re: [PATCH v3 1/6] android: binder: Refactor prev and next buffer  into a helper function Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-08-30 08:20 +0200
      Re: [PATCH v3 1/6] android: binder: Refactor prev and next buffer  into a helper function Sherry Yang <sherryy@android.com> - 2017-08-30 21:50 +0200
        Re: [PATCH v3 1/6] android: binder: Refactor prev and next buffer  into a helper function Dan Carpenter <dan.carpenter@oracle.com> - 2017-08-30 22:10 +0200
        Re: [PATCH v3 1/6] android: binder: Refactor prev and next buffer  into a helper function Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-08-31 06:30 +0200
          [PATCH] android: binder: fixup crash introduced by moving buffer hdr Sherry Yang <sherryy@android.com> - 2017-08-31 19:30 +0200
            Re: [PATCH] android: binder: fixup crash introduced by moving buffer  hdr Greg KH <gregkh@linuxfoundation.org> - 2017-09-01 09:00 +0200
          Re: [PATCH v3 1/6] android: binder: Refactor prev and next buffer  into a helper function Sherry Yang <sherryy@android.com> - 2017-08-31 19:40 +0200
            Re: [PATCH v3 1/6] android: binder: Refactor prev and next buffer  into a helper function Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-08-31 20:50 +0200
              [PATCH] android: binder: Add page usage in binder stats Sherry Yang <sherryy@android.com> - 2017-08-31 21:00 +0200
  [PATCH v3 6/6] android: binder: Add page usage in binder stats Sherry Yang <sherryy@android.com> - 2017-08-30 02:50 +0200
  [PATCH v3 3/6] android: binder: Move buffer out of area shared with user space Sherry Yang <sherryy@android.com> - 2017-08-30 02:50 +0200
    Re: [PATCH v3 3/6] android: binder: Move buffer out of area shared  with user space Dan Carpenter <dan.carpenter@oracle.com> - 2017-08-30 11:40 +0200
      Re: [PATCH v3 3/6] android: binder: Move buffer out of area shared  with user space Arve Hjønnevåg <arve@android.com> - 2017-08-30 22:10 +0200
        Re: [PATCH v3 3/6] android: binder: Move buffer out of area shared  with user space Dan Carpenter <dan.carpenter@oracle.com> - 2017-08-30 22:30 +0200
          Re: [PATCH v3 3/6] android: binder: Move buffer out of area shared  with user space Todd Kjos <tkjos@google.com> - 2017-08-30 23:10 +0200
  [PATCH v3 4/6] android: binder: Add global lru shrinker to binder Sherry Yang <sherryy@android.com> - 2017-08-30 02:50 +0200
  [PATCH v3 5/6] android: binder: Add shrinker tracepoints Sherry Yang <sherryy@android.com> - 2017-08-30 02:50 +0200

csiph-web