[PATCH 0/2] arm64: Unimplemented syscall kernel message

Michael Weiser michael.weiser at gmx.de
Mon Jan 22 13:20:24 PST 2018


Hi Will,

I'm not pretending to fully understand the semantics of what I've done
but I've tried to make a start on implementing both changes anyway.

The first is straightforward in dropping the offending log message from
do_ni_syscall().

The second mirrors arm behaviour in compat_arm_syscall() in raising
SIGILL for (most) unimplemented syscalls. I've intentionally kept the
arm message format in case anyone has a script filtering for it.

Syncing __dump_instr() with arm to support thumb instructions was done
on the assumption that arm-eabi code may obviously contain thumb
instructions.

Both are compile-tested as well as manually prodded with some randomly
chosen syscall numbers from aarch64 and arm-eabi binaries while running
under qemu-system-aarch64.

Thanks,
Michael

Michael Weiser (2):
  arm64: Remove unimplemented syscall log message
  arm64: Mirror arm for unimplemented compat syscalls

 arch/arm64/include/asm/system_misc.h |  1 +
 arch/arm64/kernel/sys_compat.c       | 27 ++++++++++++++++++++++++++-
 arch/arm64/kernel/traps.c            | 22 ++++++++++------------
 3 files changed, 37 insertions(+), 13 deletions(-)

-- 
2.16.0




More information about the linux-arm-kernel mailing list