]> git.baikalelectronics.ru Git - kernel.git/commit
android: binder: Move buffer out of area shared with user space
authorSherry Yang <sherryy@android.com>
Wed, 23 Aug 2017 15:46:41 +0000 (08:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:47:17 +0000 (16:47 +0200)
commit11f594eac3fb0e40d40f678ee6a7bc130b1363d2
tree57be21314e48f8b30bdd9831eb6a0bb252808bc9
parentc17133c47fac396b038f6c62e2b4078302c355f3
android: binder: Move buffer out of area shared with user space

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.

Signed-off-by: Sherry Yang <sherryy@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder_alloc.c
drivers/android/binder_alloc.h
drivers/android/binder_alloc_selftest.c