strace/linux/s390
Dmitry V. Levin 1763fa5f62 s390, s390x: fix printing of syscalls unknown to the kernel
On s390/s390x, syscalls with NR up to 255 can be implemented
directly using "svc NR", for NR >= 256 "svc 0" with %r1=NR is used.
The latter method is allowed for NR < 256, too.

When the syscall number specified directly or indirectly is recognized
by the kernel, i.e. it is less than its NR_syscalls value, it is stored
in %r2 and is available to arch_get_scno via s390_regset.gprs[2].
For syscall numbers >= NR_syscalls this register is set to 0,
but %r1 remains unchanged and could be used by arch_get_scno
via s390_regset.gprs[1] to decide what the syscall number is.

* linux/s390/get_scno.c (arch_get_scno): If s390_regset.gprs[2] is zero,
take syscall number from s390_regset.gprs[1].
* NEWS: Mention this fix.

This fixes Debian bug #485979 and Fedora bug #1298294.
2016-01-13 21:27:48 +00:00
..
arch_regs.c Cleanup print_pc 2015-11-30 03:30:51 +00:00
arch_regs.h s390, s390x: use PTRACE_GETREGSET to fetch registers 2015-03-05 22:10:15 +00:00
arch_sigreturn.c s390: fix sigreturn decoding on recent kernels 2016-01-12 03:07:39 +00:00
get_error.c cleanup: make get_error.c files more readable 2015-11-29 00:06:45 +00:00
get_scno.c s390, s390x: fix printing of syscalls unknown to the kernel 2016-01-13 21:27:48 +00:00
get_syscall_args.c cleanup: make get_syscall_args.c files more readable 2015-11-30 00:57:14 +00:00
ioctls_arch0.h ioctl: take all 32 bits of ioctl commands into account 2015-01-22 00:27:38 +00:00
ioctls_inc0.h ioctl: take all 32 bits of ioctl commands into account 2015-01-22 00:27:38 +00:00
syscallent.h s390, s390x: print all syscall arguments for syscall number 0 2016-01-13 21:26:26 +00:00
userent0.h process.c: split struct_user_offsets into architecture-specific include files 2014-12-11 19:25:02 +00:00
userent1.h process.c: split struct_user_offsets into architecture-specific include files 2014-12-11 19:25:02 +00:00
userent.h process.c: split struct_user_offsets into architecture-specific include files 2014-12-11 19:25:02 +00:00