]> Git Repo - linux.git/commit
binder_alloc: add missing mmap_lock calls when using the VMA
authorLiam Howlett <[email protected]>
Wed, 10 Aug 2022 16:02:25 +0000 (16:02 +0000)
committerAndrew Morton <[email protected]>
Sun, 28 Aug 2022 21:02:44 +0000 (14:02 -0700)
commit44e602b4e52f70f04620bbbf4fe46ecb40170bde
tree03f2ad041070e97afa57e373b6125767ace66460
parentfcab34b433e2c13e333b2f53c4a8409eadc432c7
binder_alloc: add missing mmap_lock calls when using the VMA

Take the mmap_read_lock() when using the VMA in binder_alloc_print_pages()
and when checking for a VMA in binder_alloc_new_buf_locked().

It is worth noting binder_alloc_new_buf_locked() drops the VMA read lock
after it verifies a VMA exists, but may be taken again deeper in the call
stack, if necessary.

Link: https://lkml.kernel.org/r/[email protected]
Fixes: a43cfc87caaf (android: binder: stop saving a pointer to the VMA)
Signed-off-by: Liam R. Howlett <[email protected]>
Reported-by: Ondrej Mosnacek <[email protected]>
Reported-by: <[email protected]>
Acked-by: Carlos Llamas <[email protected]>
Tested-by: Ondrej Mosnacek <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Christian Brauner (Microsoft) <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Hridya Valsaraju <[email protected]>
Cc: Joel Fernandes <[email protected]>
Cc: Martijn Coenen <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Todd Kjos <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: "Arve Hjønnevåg" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
drivers/android/binder_alloc.c
This page took 0.049245 seconds and 4 git commands to generate.