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: NJann Horn <jannh@google.com> Signed-off-by: NLey Foon Tan <ley.foon.tan@intel.com>
Showing
想要评论请 注册 或 登录