2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00
linux-next/drivers/staging/android
Tetsuo Handa ecd182cbf4 staging: android: ashmem: Avoid range_alloc() allocation with ashmem_mutex held.
ashmem_pin() is calling range_shrink() without checking whether
range_alloc() succeeded. Also, doing memory allocation with ashmem_mutex
held should be avoided because ashmem_shrink_scan() tries to hold it.

Therefore, move memory allocation for range_alloc() to ashmem_pin_unpin()
and make range_alloc() not to fail.

This patch is mostly meant for backporting purpose for fuzz testing on
stable/distributor kernels, for there is a plan to remove this code in
near future.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: stable@vger.kernel.org
Reviewed-by: Joel Fernandes <joel@joelfernandes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-26 11:50:17 +01:00
..
ion staging: android: ion: fix sys heap pool's gfp_flags 2019-02-19 11:12:08 +01:00
uapi staging: android: ion: Add the GPL exception for syscalls 2019-02-14 10:47:20 +01:00
ashmem.c staging: android: ashmem: Avoid range_alloc() allocation with ashmem_mutex held. 2019-02-26 11:50:17 +01:00
ashmem.h staging: android: Clean up license identifiers 2018-05-08 13:24:15 +02:00
Kconfig staging: android: Kconfig; Remove excessive hyphens 2018-05-08 13:24:15 +02:00
Makefile staging: Android: Add 'vsoc' driver for cuttlefish. 2018-04-23 14:51:37 +02:00
TODO staging: Android: vsoc: Create wc kernel mapping for region shm. 2018-05-03 13:53:03 -07:00
vsoc.c staging/android/vsoc: Remove duplicate header 2019-01-15 16:07:41 +01:00