Skip to content

RFC X32: fix syscall_get_nr while not breaking seccomp BPF

Richard Guy Briggs linux-audit lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3audit: add AUDIT_ARCH_X86_X32 arch definitioninclude/uapi/linux/audit.h+1 -01 reply
2/3seccomp: give BPF x32 bit when restoring x32 filterarch/x86/include/asm/syscall.h kernel/seccomp.c+10 -017 replies
3/3Revert "x86: remove the x32 syscall bitmask from syscall_get_nr()"arch/x86/include/asm/syscall.h+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] [RFC] X32: fix syscall_get_nr while not breaking seccomp BPF

This set reverts commit 8b4b9f2 which broke audit and potentially other users of syscall_get_nr() which depend on that call as named without being overloaded by architecture bits. It will satisfy other regular users of syscall_get_nr() and syscall_get_arch() without changing the seccomp interface to BPF.

A new ARCH definition, AUDIT_ARCH_X86_X32, was added for syscall_get_arch().

Richard Guy Briggs (3):
audit: add AUDIT_ARCH_X86_X32 arch definition
seccomp: give BPF x32 bit when restoring x32 filter Revert "x86: remove the x32 syscall bitmask from syscall_get_nr()"

 arch/x86/include/asm/syscall.h |    8 ++++++--
 include/uapi/linux/audit.h     |    1 +
 kernel/seccomp.c               |    6 ++++++
 3 files changed, 13 insertions(+), 2 deletions(-)