Skip to content
Commit c26958cb authored by Jann Horn's avatar Jann Horn Committed by Ley Foon Tan
Browse files

Take mmap lock in cacheflush syscall



We need to take the mmap lock around find_vma() and subsequent use of the
VMA. Otherwise, we can race with concurrent operations like munmap(), which
can lead to use-after-free accesses to freed VMAs.

Fixes: 1000197d ("nios2: System calls handling")
Signed-off-by: default avatarJann Horn <jannh@google.com>
Signed-off-by: default avatarLey Foon Tan <ley.foon.tan@intel.com>
parent f40ddce8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment