linux-kernel-test/drivers/staging/android
Arve Hjønnevåg bd1eff9741 Staging: android: binder: Fix crashes when sharing a binder file between processes
Opening the binder driver and sharing the file returned with
other processes (e.g. by calling fork) can crash the kernel.
Prevent these crashes with the following changes:
- Add a mutex to protect against two processes mmapping the
  same binder_proc.
- After locking mmap_sem, check that the vma we want to access
  (still) points to the same mm_struct.
- Use proc->tsk instead of current to get the files struct since
  this is where we get the rlimit from.

Signed-off-by: Arve Hjønnevåg <arve@android.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-08 14:14:13 -08:00
..
switch staging: android: switch: minor code formatting cleanups 2011-12-16 13:41:37 -08:00
ashmem.c ashmem: Whitespace cleanups 2011-12-21 13:40:25 -08:00
ashmem.h ashmem: Anonymous shared memory subsystem 2011-12-21 13:38:28 -08:00
binder.c Staging: android: binder: Fix crashes when sharing a binder file between processes 2012-02-08 14:14:13 -08:00
binder.h Staging: android: fixed a space warning in binder.h 2011-12-22 13:33:57 -08:00
Kconfig Staging: android: Remove pmem driver 2012-02-08 14:14:13 -08:00
logger.c Staging: android: fixed white spaces coding style issue in logger.c 2011-12-16 10:54:14 -08:00
logger.h android: logger: Add new system log for framework/system log messages 2011-11-30 20:40:06 +09:00
lowmemorykiller.c Staging: android: fixed 80 characters warnings in lowmemorykiller.c 2011-12-22 13:33:57 -08:00
Makefile Staging: android: Remove pmem driver 2012-02-08 14:14:13 -08:00
ram_console.c staging: android: ram_console: pass in a boot info string 2011-11-30 21:23:37 +09:00
ram_console.h staging: android: ram_console: pass in a boot info string 2011-11-30 21:23:37 +09:00
timed_gpio.c Staging: android: timed_gpio: Request gpios. 2011-11-30 20:40:05 +09:00
timed_gpio.h Revert "Staging: android: delete android drivers" 2011-11-30 20:18:14 +09:00
timed_output.c Staging: android: timed_gpio: Properly discard invalid timeout values. 2011-11-30 20:51:36 +09:00
timed_output.h Revert "Staging: android: delete android drivers" 2011-11-30 20:18:14 +09:00
TODO Revert "Staging: android: delete android drivers" 2011-11-30 20:18:14 +09:00