aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorLiam Howlett <[email protected]>2022-08-10 16:02:25 +0000
committerGreg Kroah-Hartman <[email protected]>2022-08-18 16:31:02 +0200
commitd6f35446d0769a98e9d761593d267cdd24f09ecd (patch)
treebd7a0bd371d9087d9022bb7fa7af255f8d9ba21c /lib/test_fortify/write_overflow-strncpy-src.c
parenta0e44c64b6061dda7e00b7c458e4523e2331b739 (diff)
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. Fixes: a43cfc87caaf (android: binder: stop saving a pointer to the VMA) Cc: stable <[email protected]> Reported-by: Ondrej Mosnacek <[email protected]> Reported-by: [email protected] Tested-by: Ondrej Mosnacek <[email protected]> Acked-by: Carlos Llamas <[email protected]> Signed-off-by: Liam R. Howlett <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions