summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorCarlos Llamas <cmllamas@google.com>2024-12-10 17:31:01 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-24 11:35:23 +0300
commit072010abc3ad98bc20198dbe60ef13233a0a357c (patch)
tree767cacda44b98f3044b3eaf850aeb18ed64a6108 /include/linux
parentf909f0308267dc49fbf122f60e1ec7ddcd1b92c7 (diff)
downloadlinux-072010abc3ad98bc20198dbe60ef13233a0a357c.tar.xz
binder: replace alloc->vma with alloc->mapped
It is unsafe to use alloc->vma outside of the mmap_sem. Instead, add a new boolean alloc->mapped to save the vma state (mapped or unmmaped) and use this as a replacement for alloc->vma to validate several paths. Using the alloc->vma caused several performance and security issues in the past. Now that it has been replaced with either vm_lookup() or the alloc->mapped state, we can finally remove it. Cc: Minchan Kim <minchan@kernel.org> Cc: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Suren Baghdasaryan <surenb@google.com> Reviewed-by: Suren Baghdasaryan <surenb@google.com> Signed-off-by: Carlos Llamas <cmllamas@google.com> Link: https://lore.kernel.org/r/20241210143114.661252-6-cmllamas@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions