linux-uconsole/drivers/android
Sherry Yang a455dfd674 FROMLIST: android: binder: Don't get mm from task
(from https://patchwork.kernel.org/patch/9954125/)

Use binder_alloc struct's mm_struct rather than getting
a reference to the mm struct through get_task_mm to
avoid a potential deadlock between lru lock, task lock and
dentry lock, since a thread can be holding the task lock
and the dentry lock while trying to acquire the lru lock.

Test: ran binderLibTest, throughputtest, interfacetest and
mempressure w/lockdep
Bug: 63926541
Change-Id: Icc661404eb7a4a2ecc5234b1bf8f0104665f9b45
Acked-by: Arve Hjønnevåg <arve@android.com>
Signed-off-by: Sherry Yang <sherryy@android.com>
2017-10-15 23:21:09 +05:30
..
binder.c FROMLIST: binder: fix an ret value override 2017-09-18 21:14:35 +01:00
binder_alloc.c FROMLIST: android: binder: Don't get mm from task 2017-10-15 23:21:09 +05:30
binder_alloc.h FROMLIST: android: binder: Don't get mm from task 2017-10-15 23:21:09 +05:30
binder_alloc_selftest.c FROMLIST: android: binder: Add global lru shrinker to binder 2017-09-18 21:14:31 +01:00
binder_trace.h FROMLIST: android: binder: Add shrinker tracepoints 2017-09-18 21:14:32 +01:00
Kconfig FROMLIST: android: binder: Add allocator selftest 2017-09-18 21:14:31 +01:00
Makefile FROMLIST: android: binder: Add allocator selftest 2017-09-18 21:14:31 +01:00