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

2017-08-30 Thread Todd Kjos
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 wrote: > On Wed, Aug 30, 2017 at 01:04:31PM -0700,

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

2017-08-30 Thread Todd Kjos
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 wrote: > On Wed, Aug 30, 2017 at 01:04:31PM -0700, Arve Hjønnevåg wrote: >>

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

2017-08-30 Thread Dan Carpenter
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 > 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

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

2017-08-30 Thread Dan Carpenter
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 > 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

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

2017-08-30 Thread Arve Hjønnevåg
On Wed, Aug 30, 2017 at 2:29 AM, Dan Carpenter 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

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

2017-08-30 Thread Arve Hjønnevåg
On Wed, Aug 30, 2017 at 2:29 AM, Dan Carpenter 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

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

2017-08-30 Thread Dan Carpenter
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

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

2017-08-30 Thread Dan Carpenter
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

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

2017-08-29 Thread Sherry Yang
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

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

2017-08-29 Thread Sherry Yang
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