Re: [PATCH v2 00/15] Prepare for PTRACE_GET_SYSCALL_INFO

From: Paul Moore
Date: Tue Nov 20 2018 - 15:27:10 EST


On Mon, Nov 19, 2018 at 7:11 PM Dmitry V. Levin <ldv@xxxxxxxxxxxx> wrote:
>
> syscall_get_arch() is required to be implemented on all architectures
> in order to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO
> request.
>
> The primary intent is that the triple (audit_arch, syscall_nr, arg1..arg6)
> should describe what system call is being called and what its arguments are.

No real comment from me, most of this is arch specific code so I'll
let the individual arch folks comment on that; they know far better
than I do what is correct.

That said, anything that gets us closer to being able to offer syscall
auditing for these arches gets a big thumbs up from me - thanks!

> Dmitry V. Levin (15):
> Move EM_HEXAGON to uapi/linux/elf-em.h
> Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h
> Move EM_UNICORE to uapi/linux/elf-em.h
> elf-em.h: add EM_NDS32
> elf-em.h: add EM_XTENSA
> m68k: define syscall_get_arch()
> arc: define syscall_get_arch()
> c6x: define syscall_get_arch()
> h8300: define syscall_get_arch()
> hexagon: define syscall_get_arch()
> nds32: define syscall_get_arch()
> nios2: define syscall_get_arch()
> riscv: define syscall_get_arch()
> unicore32: define syscall_get_arch()
> xtensa: define syscall_get_arch()
>
> arch/arc/include/asm/elf.h | 6 +-----
> arch/arc/include/asm/syscall.h | 10 ++++++++++
> arch/c6x/include/asm/syscall.h | 7 +++++++
> arch/h8300/include/asm/syscall.h | 5 +++++
> arch/hexagon/include/asm/elf.h | 6 +-----
> arch/hexagon/include/asm/syscall.h | 8 ++++++++
> arch/m68k/include/asm/syscall.h | 12 ++++++++++++
> arch/nds32/include/asm/syscall.h | 8 ++++++++
> arch/nios2/include/asm/syscall.h | 6 ++++++
> arch/riscv/include/asm/syscall.h | 10 ++++++++++
> arch/unicore32/include/asm/elf.h | 3 +--
> arch/unicore32/include/asm/syscall.h | 12 ++++++++++++
> arch/xtensa/include/asm/syscall.h | 7 +++++++
> include/uapi/linux/audit.h | 15 +++++++++++++++
> include/uapi/linux/elf-em.h | 7 +++++++
> 15 files changed, 110 insertions(+), 12 deletions(-)
> create mode 100644 arch/m68k/include/asm/syscall.h
> create mode 100644 arch/unicore32/include/asm/syscall.h

--
paul moore
www.paul-moore.com