diff options
author | Liam Howlett <liam.howlett@oracle.com> | 2022-08-10 16:02:25 +0000 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-08-28 14:02:44 -0700 |
commit | 44e602b4e52f70f04620bbbf4fe46ecb40170bde (patch) | |
tree | 03f2ad041070e97afa57e373b6125767ace66460 /mm | |
parent | fcab34b433e2c13e333b2f53c4a8409eadc432c7 (diff) | |
download | linux-rpi-44e602b4e52f70f04620bbbf4fe46ecb40170bde.tar.gz linux-rpi-44e602b4e52f70f04620bbbf4fe46ecb40170bde.tar.bz2 linux-rpi-44e602b4e52f70f04620bbbf4fe46ecb40170bde.zip |
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/20220810160209.1630707-1-Liam.Howlett@oracle.com
Fixes: a43cfc87caaf (android: binder: stop saving a pointer to the VMA)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Reported-by: Ondrej Mosnacek <omosnace@redhat.com>
Reported-by: <syzbot+a7b60a176ec13cafb793@syzkaller.appspotmail.com>
Acked-by: Carlos Llamas <cmllamas@google.com>
Tested-by: Ondrej Mosnacek <omosnace@redhat.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Christian Brauner (Microsoft) <brauner@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Hridya Valsaraju <hridya@google.com>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Martijn Coenen <maco@android.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Todd Kjos <tkjos@android.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: "Arve Hjønnevåg" <arve@android.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions