Centos-kernel-stream-9/arch/m68k/kernel
Štěpán Horáček cc947bb390 arch: Reserve map_shadow_stack() syscall number for all architectures
JIRA: https://issues.redhat.com/browse/RHEL-15599

Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Conflicts: Context difference due to ec732a6c2d, 04a061fd44, 99861cf1f6

commit 2fd0ebad27bcd4c8fc61c61a98d4283c47054bcf
Author: Sohil Mehta <sohil.mehta@intel.com>
Date:   Thu Sep 14 18:58:03 2023 +0000

    arch: Reserve map_shadow_stack() syscall number for all architectures

    commit c35559f94ebc ("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>

Signed-off-by: Štěpán Horáček <shoracek@redhat.com>
2025-03-18 17:09:46 +01:00
..
syscalls arch: Reserve map_shadow_stack() syscall number for all architectures 2025-03-18 17:09:46 +01:00
.gitignore
Makefile
asm-offsets.c
bootinfo_proc.c
dma.c
early_printk.c
entry.S
head.S
ints.c
irq.c
machine_kexec.c
module.c
pcibios.c
process.c fork: Generalize PF_IO_WORKER handling 2024-03-20 09:43:04 -04:00
ptrace.c
relocate_kernel.S
setup.c
setup_mm.c block: remove genhd.h 2022-06-22 08:53:32 +08:00
setup_no.c
signal.c resume_user_mode: Move to resume_user_mode.h 2022-10-12 07:27:47 -04:00
sun3-head.S
sys_m68k.c
syscalltable.S
time.c
traps.c exit: Add and use make_task_dead. 2022-10-12 07:27:33 -04:00
uboot.c
vectors.c
vmlinux-nommu.lds objtool/idle: Validate __cpuidle code as noinstr 2023-06-09 15:48:40 -04:00
vmlinux-std.lds objtool/idle: Validate __cpuidle code as noinstr 2023-06-09 15:48:40 -04:00
vmlinux-sun3.lds objtool/idle: Validate __cpuidle code as noinstr 2023-06-09 15:48:40 -04:00
vmlinux.lds.S