linux/arch/m68k/kernel
Sohil Mehta 2fd0ebad27 arch: Reserve map_shadow_stack() syscall number for all architectures
commit c35559f94e ("x86/shstk: Introduce map_shadow_stack syscall")
recently added support for map_shadow_stack() but it is limited to x86
only for now. There is a possibility that other architectures (namely,
arm64 and RISC-V), that are implementing equivalent support for shadow
stacks, might need to add support for it.

Independent of that, reserving arch-specific syscall numbers in the
syscall tables of all architectures is good practice and would help
avoid future conflicts. map_shadow_stack() is marked as a conditional
syscall in sys_ni.c. Adding it to the syscall tables of other
architectures is harmless and would return ENOSYS when exercised.

Note, map_shadow_stack() was assigned #453 during the merge process
since #452 was taken by fchmodat2().

For Powerpc, map it to sys_ni_syscall() as is the norm for Powerpc
syscall tables.

For Alpha, map_shadow_stack() takes up #563 as Alpha still diverges from
the common syscall numbering system in the other architectures.

Link: https://lore.kernel.org/lkml/20230515212255.GA562920@debug.ba.rivosinc.com/
Link: https://lore.kernel.org/lkml/b402b80b-a7c6-4ef0-b977-c0f5f582b78a@sirena.org.uk/

Signed-off-by: Sohil Mehta <sohil.mehta@intel.com>
Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2023-10-06 22:26:51 +02:00
..
syscalls arch: Reserve map_shadow_stack() syscall number for all architectures 2023-10-06 22:26:51 +02:00
.gitignore
asm-offsets.c
bootinfo_proc.c
dma.c
early_printk.c
entry.S m68k: Add kernel seccomp support 2023-01-30 16:40:15 +01:00
head.S
ints.c
irq.c
machine_kexec.c m68k: kexec: Include <linux/reboot.h> 2023-04-21 09:53:54 +02:00
Makefile
module.c
pcibios.c m68k/pci: Drop useless pcibios_setup() 2023-08-21 08:45:36 +10:00
process.c [elf][non-regset] uninline elf_core_copy_task_fpregs() (and lose pt_regs argument) 2022-11-24 23:24:23 -05:00
ptrace.c m68k: Add kernel seccomp support 2023-01-30 16:40:15 +01:00
relocate_kernel.S m68k: Fix invalid .section syntax 2023-07-24 14:50:02 +02:00
setup.c
setup_mm.c m68k/cpu: Switch to arch_cpu_finalize_init() 2023-06-16 10:15:59 +02:00
setup_no.c m68k: use strscpy() to instead of strncpy() 2022-12-05 09:07:21 +10:00
signal.c m68k: Move signal frame following exception on 68020/030 2023-05-22 13:51:20 +02:00
sun3-head.S
sys_m68k.c m68k: allow pte_offset_map[_lock]() to fail 2023-06-19 16:19:06 -07:00
syscalltable.S
time.c
traps.c m68k: Only force 030 bus error if PC not in exception table 2023-03-06 14:09:42 +01:00
uboot.c
vectors.c
vmlinux-nommu.lds objtool/idle: Validate __cpuidle code as noinstr 2023-01-13 11:48:15 +01:00
vmlinux-std.lds objtool/idle: Validate __cpuidle code as noinstr 2023-01-13 11:48:15 +01:00
vmlinux-sun3.lds objtool/idle: Validate __cpuidle code as noinstr 2023-01-13 11:48:15 +01:00
vmlinux.lds.S