linux/arch/parisc
Helge Deller 2c98a8fbd6 parisc: Flush correct cache in cacheflush() syscall
The assembly flush instructions were swapped for I- and D-cache flags:

SYSCALL_DEFINE3(cacheflush, ...)
{
	if (cache & DCACHE) {
			"fic ...\n"
	}
	if (cache & ICACHE && error == 0) {
			"fdc ...\n"
	}

Fix it by using fdc for DCACHE, and fic for ICACHE flushing.

Reported-by: Felix Lechner <felix.lechner@lease-up.com>
Fixes: c6d96328fe ("parisc: Add cacheflush() syscall")
Cc: <stable@vger.kernel.org> # v6.5+
Signed-off-by: Helge Deller <deller@gmx.de>
2026-03-15 09:28:49 +01:00
..
boot kbuild: Split .modinfo out from ELF_DETAILS 2026-02-26 11:50:19 -07:00
configs serial: drop SERIAL_8250_DEPRECATED_OPTIONS 2025-11-21 18:31:27 +01:00
include parisc: Increase initial mapping to 64 MB with KALLSYMS 2026-03-06 11:33:13 +01:00
kernel parisc: Flush correct cache in cacheflush() syscall 2026-03-15 09:28:49 +01:00
lib parisc: Remove spurious if statement from raw_copy_from_user() 2025-10-07 16:44:29 +02:00
math-emu parisc: Fix double SIGFPE crash 2025-05-04 17:30:03 +02:00
mm arch, mm: consolidate initialization of SPARSE memory model 2026-01-26 20:02:18 -08:00
net Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
video arch: Rename fbdev header and source files 2024-05-03 17:07:50 +02:00
Kbuild parisc: Wire up eBPF JIT compiler 2023-08-22 10:24:47 +02:00
Kconfig parisc: mm: enable MMU_GATHER_RCU_TABLE_FREE 2026-02-06 15:47:18 -08:00
Kconfig.debug parisc: Use page table locks only if DEBUG_KERNEL is enabled 2023-08-20 20:23:46 +02:00
Makefile parisc: Makefile: explain that 64BIT requires both 32-bit and 64-bit compilers 2025-07-25 22:45:23 +02:00
defpalo.conf
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00