]> 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)
commite9ab17a4f1040acc98df34973915434f4f8821bc
tree57be21314e48f8b30bdd9831eb6a0bb252808bc9
parent9294b5583bf052a10feb778d38721172d5f90e1b
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