Take mmap lock in cacheflush syscall
stable inclusion from stable-5.10.20 commit 9dfb367a23827e4b85872d09f6c57e79b33fa2fd bugzilla: 50608 -------------------------------- [ Upstream commit c26958cb ] 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:Jann Horn <jannh@google.com> Signed-off-by:
Ley Foon Tan <ley.foon.tan@intel.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Xie XiuQi <xiexiuqi@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment