diff options
author | 2019-02-22 20:03:55 +0900 | |
---|---|---|
committer | 2019-02-26 11:50:17 +0100 | |
commit | ecd182cbf4e107928077866399100228d2359c60 (patch) | |
tree | 53f9b17670a335aab7b63b8f039609158f5ab416 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: wilc1000: fix incorrent type assignment (diff) | |
download | wireguard-linux-ecd182cbf4e107928077866399100228d2359c60.tar.xz wireguard-linux-ecd182cbf4e107928077866399100228d2359c60.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions