linux-mainline/arch/m68k/include/asm
Michael Schmitz 6baaade155 m68k: Add kernel seccomp support
Add secure_computing() call to syscall_trace_enter to actually
filter system calls.

Add necessary arch Kconfig options, define TIF_SECCOMP trace
flag and provide basic seccomp filter support in asm/syscall.h

syscall_get_nr currently uses the syscall nr stored in orig_d0
because we change d0 to a default return code before starting a
syscall trace. This may be inconsistent with syscall_rollback
copying orig_d0 to d0 (which we never check upon return from
trace). We use d0 for the return code from syscall_trace_enter
in entry.S currently, and could perhaps expand that to store
a new syscall number returned by the seccomp filter before
executing the syscall. This clearly needs some discussion.

seccomp_bpf self test on ARAnyM passes 81 out of 94 tests.

Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20230112035529.13521-3-schmitzmic@gmail.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
2023-01-30 16:40:15 +01:00
..
adb_iop.h
amigahw.h
amigaints.h
amigayle.h
amipcmcia.h
apollohw.h
asm-offsets.h
asm-prototypes.h
atari_joystick.h
atari_stdma.h
atari_stram.h
atarihw.h
atariints.h
atarikb.h
atomic.h m68k: Fix asm register constraints for atomic ops 2021-08-23 13:23:57 +02:00
bitops.h provide arch_test_bit_acquire for architectures that define test_bit 2022-08-27 09:49:54 -07:00
blinken.h
bootinfo.h
bootstd.h
bug.h
bugs.h
bvme6000hw.h
cache.h
cacheflush_mm.h Add linux/cacheflush.h 2021-11-17 10:36:15 -05:00
cacheflush_no.h
cacheflush.h
checksum.h
cmpxchg.h m68k: cmpxchg: Dereference matching size 2022-02-13 16:48:04 -08:00
coldfire.h
config.h m68k: Introduce a virtual m68k machine 2022-04-11 11:48:01 +02:00
contregs.h
current.h m68k: Implement "current_stack_pointer" 2022-02-26 20:32:03 -08:00
delay.h
div64.h
dma.h PCI: Move isa_dma_bridge_buggy out of asm/dma.h 2022-07-22 17:24:47 -05:00
dsp56k.h
dvma.h
elf.h m68knommu: add definitions to support elf_fdpic program loader 2022-05-16 13:18:30 +10:00
entry.h
fb.h
fbio.h
flat.h
floppy.h
fpu.h
ftrace.h
gpio.h
hash.h
hp300hw.h
hwtest.h
ide.h
idprom.h
intersil.h
io_mm.h
io_no.h
io.h m68k: Introduce a virtual m68k machine 2022-04-11 11:48:01 +02:00
irq.h m68k: Introduce a virtual m68k machine 2022-04-11 11:48:01 +02:00
irqflags.h
Kbuild kbuild: link symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCS 2022-05-24 16:33:20 +09:00
kexec.h
kmap.h
linkage.h
m52xxacr.h
m53xxacr.h
m53xxsim.h
m54xxacr.h
m54xxgpt.h
m54xxpci.h
m54xxsim.h
m520xsim.h
m523xsim.h
m525xsim.h
m527xsim.h
m528xsim.h
m5206sim.h
m5272sim.h
m5307sim.h
m5407sim.h
m5441xsim.h m68k: m5441x: add flexcan support 2021-08-23 08:40:04 +10:00
mac_asc.h
mac_baboon.h
mac_iop.h
mac_oss.h
mac_psc.h
mac_via.h m68k: mac: Remove unused rbv_set_video_bpp() 2022-11-01 12:17:55 +01:00
machdep.h More power management updates for 5.19-rc1 2022-05-30 11:37:26 -07:00
machines.h
machw.h
macintosh.h
macints.h
math-emu.h
mc146818rtc.h
MC68EZ328.h
MC68VZ328.h
MC68328.h
mcf8390.h
mcf_pgalloc.h
mcf_pgtable.h m68k/mm: enable ARCH_HAS_VM_GET_PAGE_PROT 2022-07-17 17:14:40 -07:00
mcfclk.h
mcfdma.h
mcfgpio.h
mcfintc.h
mcfmmu.h
mcfpit.h
mcfqspi.h
mcfsim.h
mcfslt.h
mcftimer.h
mcfuart.h
mcfwdebug.h
mmu_context.h
mmu.h m68knommu: use asm-generic/mmu.h for nommu setups 2022-05-16 13:18:30 +10:00
module.h
module.lds.h
motorola_pgalloc.h
motorola_pgtable.h m68k/mm: enable ARCH_HAS_VM_GET_PAGE_PROT 2022-07-17 17:14:40 -07:00
movs.h
mvme16xhw.h
mvme147hw.h
natfeat.h
nettel.h
nubus.h
openprom.h
oplib.h
page_mm.h
page_no.h
page_offset.h
page.h
parport.h
pci.h PCI: Remove pci_get_legacy_ide_irq() and asm-generic/pci.h 2022-07-22 17:23:45 -05:00
pgalloc.h
pgtable_mm.h mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
pgtable_no.h mm: remove kern_addr_valid() completely 2022-11-08 17:37:18 -08:00
pgtable.h
processor.h kernel: exit: cleanup release_thread() 2022-09-11 21:55:07 -07:00
ptrace.h
q40_master.h
q40ints.h
quicc_simple.h
raw_io.h m68k: atari: Make Atari ROM port I/O write macros return void 2022-05-22 12:24:14 +02:00
seccomp.h m68k: Add kernel seccomp support 2023-01-30 16:40:15 +01:00
serial.h
setup.h m68k: Introduce a virtual m68k machine 2022-04-11 11:48:01 +02:00
signal.h
smp.h
string.h m68k: remove broken strcmp implementation 2022-12-21 08:56:43 -08:00
sun3_pgalloc.h
sun3_pgtable.h m68k/mm: enable ARCH_HAS_VM_GET_PAGE_PROT 2022-07-17 17:14:40 -07:00
sun3-head.h
sun3ints.h
sun3mmu.h
sun3x.h
sun3xflop.h
sun3xprom.h
switch_to.h
syscall.h m68k: Add kernel seccomp support 2023-01-30 16:40:15 +01:00
thread_info.h m68k: Add kernel seccomp support 2023-01-30 16:40:15 +01:00
timex.h m68k: use fallback for random_get_entropy() instead of zero 2022-05-13 23:59:23 +02:00
tlb.h
tlbflush.h m68k: Remove set_fs() 2021-09-24 13:35:07 +02:00
traps.h m68k: Leave stack mangling to asm wrapper of sigreturn() 2021-09-24 13:35:03 +02:00
uaccess.h uaccess: generalize access_ok() 2022-02-25 09:36:05 +01:00
ucontext.h
unistd.h
user.h asm/user.h: killed unused macros 2022-01-30 21:17:00 -05:00
vga.h
virt.h m68k: Introduce a virtual m68k machine 2022-04-11 11:48:01 +02:00
virtconvert.h arch/*/: remove CONFIG_VIRT_TO_BUS 2022-06-28 13:20:21 +02:00
vmalloc.h
zorro.h