OrangePi_CM5/arch/m68k/kernel
Liam Howlett 58ee5a0de1 m68k: Add missing mmap_read_lock() to sys_cacheflush()
[ Upstream commit f829b4b212a315b912cb23fd10aaf30534bb5ce9 ]

When the superuser flushes the entire cache, the mmap_read_lock() is not
taken, but mmap_read_unlock() is called.  Add the missing
mmap_read_lock() call.

Fixes: cd2567b685 ("m68k: call find_vma with the mmap_sem held in sys_cacheflush()")
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://lore.kernel.org/r/20210407200032.764445-1-Liam.Howlett@Oracle.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:50:19 +02:00
..
syscalls mm/madvise: introduce process_madvise() syscall: an external memory hinting API 2020-10-18 09:27:10 -07:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile
…
asm-offsets.c
…
bootinfo_proc.c proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
dma.c dma-mapping: merge <linux/dma-noncoherent.h> into <linux/dma-map-ops.h> 2020-10-06 07:07:06 +02:00
early_printk.c
…
entry.S m68k: Wire up clone3() syscall 2020-01-12 16:49:20 +01:00
head.S m68k: Correct some typos in comments 2020-08-26 13:26:52 +02:00
ints.c
…
irq.c
…
machine_kexec.c
…
module.c
…
pcibios.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
process.c m68k: switch to kernel_clone() 2020-08-20 13:12:58 +02:00
ptrace.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
relocate_kernel.S
…
setup.c
…
setup_mm.c arch/m68k/setup: Drop dummy_con initialization 2020-01-14 15:29:16 +01:00
setup_no.c m68k: nommu: register start of the memory with memblock 2020-06-29 23:57:54 +10:00
signal.c arch-cleanup-2020-10-22 2020-10-23 10:06:38 -07:00
sun3-head.S
…
sys_m68k.c m68k: Add missing mmap_read_lock() to sys_cacheflush() 2021-05-14 09:50:19 +02:00
syscalltable.S
…
time.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
traps.c m68k: Use get_kernel_nofault() in show_registers() 2020-08-26 13:26:52 +02:00
uboot.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
vectors.c
…
vmlinux-nommu.lds vmlinux.lds.h: Replace RW_DATA_SECTION with RW_DATA 2019-11-04 15:57:41 +01:00
vmlinux-std.lds m68k: Convert missed RODATA to RO_DATA 2019-11-12 09:56:51 +01:00
vmlinux-sun3.lds m68k: Convert missed RODATA to RO_DATA 2019-11-12 09:56:51 +01:00
vmlinux.lds.S
…