Hi Laurent, Few patches I'v been writting while trying to figure out this issue: http://lists.nongnu.org/archive/html/qemu-arm/2018-01/msg00514.html
As usual with linux-user files, this series will trigger some checkpatch benign warnings. Regards, Phil. Since v2: - display invalid pointer in print_timeval() and print_timezone() - do not display gettimeofday() arguments Since v1: - addressed Laurent comments - added 'last' argument to print_sockaddr() - reordered series, so patches already correct can get applied directly - dropped "linux-user/syscall: simplify recvfrom()" for now v1: http://lists.nongnu.org/archive/html/qemu-devel/2018-01/msg05855.html v2: http://lists.nongnu.org/archive/html/qemu-devel/2018-06/msg08216.html $ git backport-diff [----] : patches are identical [####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively 001/13:[----] [--] 'linux-user/syscall: Verify recvfrom(addr) is user-writable' 002/13:[----] [--] 'linux-user/strace: Improve capget()/capset() output' 003/13:[down] 'linux-user/strace: Display invalid pointer in print_timeval()' 004/13:[0001] [FC] 'linux-user/strace: Add print_timezone()' 005/13:[down] 'linux-user/strace: Improve settimeofday()' 006/13:[----] [--] 'linux-user/strace: Dump AF_NETLINK sockaddr content' 007/13:[----] [--] 'linux-user/strace: Improve recvmsg() output' 008/13:[----] [--] 'linux-user/strace: Improve bind() output' 009/13:[----] [--] 'linux-user/strace: improve sendto() output' 010/13:[----] [--] 'linux-user/strace: Let print_sockaddr() have a 'last' argument' 011/13:[----] [--] 'linux-user/strace: Add print_sockaddr_ptr() to handle plain/pointer addrlen' 012/13:[----] [--] 'linux-user/strace: Improve getsockname() output' 013/13:[----] [--] 'linux-user/strace: Improve recvfrom() output' Philippe Mathieu-Daudé (13): linux-user/syscall: Verify recvfrom(addr) is user-writable linux-user/strace: Improve capget()/capset() output linux-user/strace: Display invalid pointer in print_timeval() linux-user/strace: Add print_timezone() linux-user/strace: Improve settimeofday() linux-user/strace: Dump AF_NETLINK sockaddr content linux-user/strace: Improve recvmsg() output linux-user/strace: Improve bind() output linux-user/strace: improve sendto() output linux-user/strace: Let print_sockaddr() have a 'last' argument linux-user/strace: Add print_sockaddr_ptr() to handle plain/pointer addrlen linux-user/strace: Improve getsockname() output linux-user/strace: Improve recvfrom() output linux-user/syscall_defs.h | 7 ++ linux-user/strace.c | 164 ++++++++++++++++++++++++++++++++++++-- linux-user/syscall.c | 11 ++- linux-user/strace.list | 16 ++-- 4 files changed, 182 insertions(+), 16 deletions(-) -- 2.18.0