strace/linux
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
..
32 Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
64 Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
aarch64 aarch64: make arm registers unsigned 2015-12-11 10:52:42 +00:00
alpha alpha: enhance decoding of getxpid, getxuid, and getxgid syscalls 2016-01-09 00:09:04 +00:00
arc arc, metag, nios2, or1k, tile: fix build 2015-12-24 17:36:58 +00:00
arm Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
avr32 avr32: wire up accept4 syscall 2016-01-10 21:38:03 +00:00
bfin Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
crisv10 Cleanup print_pc 2015-11-30 03:30:51 +00:00
crisv32 Cleanup print_pc 2015-11-30 03:30:51 +00:00
hppa Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
i386 Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
ia64 Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
m68k Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
metag Cleanup print_pc 2015-11-30 03:30:51 +00:00
microblaze Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
mips Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
nios2 alpha, ia64, mips, nios2, powerpc, sparc: always check for syscall error 2015-12-27 01:02:53 +00:00
or1k arc, metag, nios2, or1k, tile: fix build 2015-12-24 17:36:58 +00:00
powerpc Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
powerpc64 Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
s390 s390, s390x: fix printing of syscalls unknown to the kernel 2016-01-13 21:27:48 +00:00
s390x s390, s390x: print all syscall arguments for syscall number 0 2016-01-13 21:26:26 +00:00
sh Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
sh64 Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
sparc sparc: remove sparc64 syscall entries 2016-01-09 22:47:25 +00:00
sparc64 sparc64: fix names of {s,g}etres{u,g}id syscalls 2016-01-09 22:54:53 +00:00
tile arc, metag, nios2, or1k, tile: fix build 2015-12-24 17:36:58 +00:00
x32 Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
x86_64 Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
xtensa Set SYSCALL_NEVER_FAILS flag for getpid, getppid and gettid syscall 2015-12-29 01:15:20 +00:00
arch_regs.h Move regs-related macros and declarations from defs.h to regs.h 2015-02-13 18:28:08 +00:00
arch_sigreturn.c Fix build on architectures for which arch_sigreturn is not implemented 2015-12-09 11:46:43 +00:00
asm_stat.h Add a wrapper around <asm/stat.h> 2015-12-04 15:03:12 +00:00
dummy_check.sh Remove stray sys_swapon() declaration 2012-02-28 16:39:44 +01:00
dummy.h mips o32: alias sys_syscall to printargs 2016-01-13 21:26:26 +00:00
errnoent.h Change errnoent.h files to use designated initializers 2015-02-23 13:29:17 +00:00
inet_diag.h Add -yy option: print ip and port associated with socket descriptors 2014-09-17 20:03:38 +00:00
mtd-abi.h Whitespace fix, no code changes 2013-02-14 13:39:53 +01:00
personality.h Use prepared editions of recently imported linux headers 2014-02-05 12:56:26 +00:00
ptp_clock.h Decode ptp ioctls 2014-02-04 00:03:08 +00:00
signalent.h Regenerated 2001-08-03 21:51:48 +00:00
sock_diag.h Add -yy option: print ip and port associated with socket descriptors 2014-09-17 20:03:38 +00:00
subcall.h Add copyright headers to some files which lack them 2015-12-17 17:56:48 +00:00
syscall.h Add unique syscall entry numbers (SENs) 2015-07-12 22:31:49 +00:00
ubi-user.h Use macros for gcc attributes 2015-03-30 00:33:06 +00:00
unix_diag.h Support unix domain sockets in -yy option 2014-12-25 01:00:48 +00:00
userent0.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