d35df493b4e7684c50d2d2fa032ee3a7ac228009 |
|
16-Feb-2017 |
Elliott Hughes <enh@google.com> |
Upgrade strace to 4.16 from 4.14. Noteworthy changes in release 4.16 (2017-02-14) * Improvements * Implemented syscall return value injection (-e inject=SET:retval= option). * Implemented signal injection (-e inject=SET:signal= option). * Implemented decoding of SUID_DUMP_* constants in PR_[GS]ET_DUMPABLE. * Implemented decoding of all SG_* ioctl commands. * Implemented decoding of ustat syscall. * Implemented decoding of BPF_OBJ_PIN, BPF_OBJ_GET, BPF_PROG_ATTACH, and BPF_PROG_DETACH commands of bpf syscall. * Enhanced decoding of sg_io_hdr and sg_io_v4 structures. * Enhanced decoding of get_robust_list, getrandom, io_submit, set_robust_list syscalls. * Enhanced decoding of entities of kernel long type on x32 and mips n32 ABIs. * Updated lists of IP_*, IPV6_*, and LOOP_* constants. * Updated lists of ioctl commands from Linux 4.10. * Added decoding of recently added syscalls on avr32, microblaze, ppc, and ppc64. * Bug fixes * Fixed pathmatch of oldselect syscall on 64-bit architectures. * Fixed decoding of mmap2 syscall on s390 when arguments are not available. * Fixed decoding of kexec_file_load, mprotect, pkey_mprotect, prctl, preadv*, and pwritev* syscalls on x32. * Fixed printing of string arguments of getxattr and setxattr syscalls when -s option is used to limit the printed string size. * Fixed decoding of ifconf, ifreq, and loop_info structures on non-native personalities. * Fixed decoding of SG_* and LOOP_* ioctl commands. * Fixed build on mips with musl libc. * Fixed cross-building of ioctlsort. * Applied minor formatting fixes to the manual page. Noteworthy changes in release 4.15 (2016-12-14) * Changes in behavior * Time stamps are now printed according to ISO 8601. * Changed output format of val3 parameter of futex FUTEX_WAKE_OP operation. * The last argument of mincore, sched_getaffinity, and sched_setaffinity syscalls is now formatted as an array. * Improvements * Implemented syscall fault injection (-e fault=... option). * Implemented decoding of DM_* ioctl commands. * Implemented decoding of attr parameter of perf_event_open syscall. * Implemented decoding of pkey_alloc, pkey_free, and pkey_mprotect syscalls. * Implemented dumping of mq_timedsend and mq_timedreceive syscalls. * Implemented decoding of PR_SET_FP_MODE and PR_GET_FP_MODE operations of prctl syscall. * Implemented PTRACE_GETREGS API support on m68k. * Updated lists of ARCH_*, BPF_*, BTRFS_*, FALLOC_*, MS_*, *_MAGIC, and V4L2_* constants. * Updated lists of ioctl commands from Linux 4.9. * Added decoding of recently added syscalls on arc, x32, and xtensa. * Enhanced manual page. * Bug fixes * Fixed corner cases in decoding of exit, exit_group, futimesat, getgroups, getresuid, init_module, inotify_init1, kcmp, kexec_load, lookup_dcookie, mq_getsetattr, mq_notify, mq_open, mq_timedreceive, mq_timedsend, name_to_handle_at, prctl, process_vm_readv, process_vm_writev, setfsuid, setgroups, setns, unshare, and utimes syscalls. * Fixed handling of verbose flag in printing of controls array of struct v4l2_ext_controls. * Fixed omission of field names in the output of capability, sigaction, sigevent, statfs, timespec, timeval, and utimbuf structures. * Fixed printing of unknown syscalls in siginfo structure. * Fixed decoding of ioctl constants on m68k. * Fixed cris architecture support. * Fixed cross build when host compiler does not support the same set of warning flags as the cross compiler. * Fixed build on SLE10 and SLE11. Bug: N/A Test: manual Change-Id: I590bf5db1652aa1dfdc0eb16e30fd97c82af2261
/external/strace/fcntl.c
|
c560c80aa0f9dbe684c4aaca02b110ad8b6af4b5 |
|
17-May-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix printing of invalid 3rd argument of fcntl/fcntl64 syscall * fcntl.c (print_fcntl): Print 3rd argument of F_NOTIFY, F_SETLEASE, and F_ADD_SEALS operations using printflags_long.
/external/strace/fcntl.c
|
a734a97d0e02bfea3625a60d8d1d114555a925ed |
|
16-May-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix printing of invalid l_type and l_whence in fcntl/fcntl64 syscalls * fcntl.c (print_struct_flock64): Explicitly cast l_type and l_whence fields to unsigned short to avoid potential sign-extension bug when printing invalid l_type or l_whence fields.
/external/strace/fcntl.c
|
77086594ce4ff74a6afa5d4570d2a1dfbc5ae3c5 |
|
16-May-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix decoding of fcntl/fcntl64 operation argument Consistently treat operation argument of fcntl/fcntl64 syscalls as int to match the kernel behaviour. * fcntl.c (print_fcntl, SYS_FUNC(fcntl), SYS_FUNC(fcntl64)): Assign 2nd argument of syscall to a variable of type unsigned int and use it in all subsequent checks and lookups. * tests/struct_flock.c (invoke_test_syscall): New function. (test_flock_einval, test_flock): Use it. * tests/fcntl.c (test_flock64_einval): Use it. * tests/fcntl64.c (test_flock64_einval, test_flock64): Use it.
/external/strace/fcntl.c
|
6274ecc75223ea05abe838b3936b0616210f3a23 |
|
15-May-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Prepare for transition from sprintflags64 to sprintflags * fcntl.c (print_fcntl): Cast 3rd argument of sprintflags to unsigned long. * membarrier.c (SYS_FUNC(membarrier)): Likewise. * prctl.c (SYS_FUNC(prctl)): Likewise. * poll.c (decode_poll_exiting): Cast 3rd argument of sprintflags to unsigned short.
/external/strace/fcntl.c
|
9134aab4073a8be6bb529aeb05e8c5f4be69540f |
|
14-May-2016 |
Dmitry V. Levin <ldv@altlinux.org> |
Prepare for transition from xlookup64 to xlookup * fcntl.c (print_fcntl, SYS_FUNC(fcntl), SYS_FUNC(fcntl64)): Cast 2nd argument of xlookup to unsigned long. * prctl.c (SYS_FUNC(prctl)): Likewise. * sched.c (SYS_FUNC(sched_getscheduler)): Likewise. * time.c (do_adjtimex): Likewise. * ioprio.c (sprint_ioprio): Change type of the argument and local variables from int to unsigned int. * keyctl.c (print_keyring_serial_number): Cast 2nd argument of xlookup to unsigned int. * net.c (tprint_sock_type): Change type of the argument to unsigned int. * printmode.c (sprintmode): Likewise. * printsiginfo.c (printsigval): Change type of si_code argument to unsigned int.
/external/strace/fcntl.c
|
e67c8e44db0918ed0bbffafa5829b0022b7a34dd |
|
16-Dec-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Replace %Ld/%Lu printf format specifiers with %lld/%llu As %Ld and %Lu printf format specifiers are not quite portable, replace them with %lld and %llu, respectively. * desc.c (SYS_FUNC(pselect6)): Replace %Lu with %llu. * dirent.c (print_old_dirent, SYS_FUNC(getdents)): Likewise. * times.c (SYS_FUNC(times)): Likewise. * fcntl.c (print_struct_flock64): Replace %Ld with %lld. * tests/ftruncate.c (main): Replace %Lu with %llu. * tests/ftruncate64.c (main): Likewise. * tests/getdents.c (print_dirent): Likewise. * tests/llseek.c (main): Likewise. * tests/lseek.c (main): Likewise. * tests/truncate.c (main): Likewise. * tests/truncate64.c (main): Likewise. * tests/xstatx.c (main): Likewise. * tests/pselect6.c (main): Replace %Ld with %lld. * tests/xselect.c(main): Likewise. Reported-by: Szabolcs Nagy <nsz@port70.net>
/external/strace/fcntl.c
|
2154702865b489cfb14a649f6a3217ded32bf5f9 |
|
05-Dec-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
fcntl: skip F_GETLK64, F_SETLK64, and F_SETLKW64 in fcntl syscall parser As the kernel recognizes F_GETLK64, F_SETLK64, and F_SETLKW64 commands in fcntl64 syscall only, do not parse their structures in fcntl parser. * xlat/fcntlcmds.in: Move F_GETLK64, F_SETLK64, and F_SETLKW64 ... * xlat/fcntl64cmds.in: ... here. * fcntl.c: Include "xlat/fcntl64cmds.h". (print_fcntl): Move printing of first two syscall arguments and handling of F_GETLK64, F_SETLK64, and F_SETLKW64 commands ... (SYS_FUNC(fcntl), SYS_FUNC(fcntl64)): ... here. * tests/fcntl.c: New file, based on struct_flock.c. * tests/fcntl64.c: Likewise. * tests/struct_flock.c (test_flock_einval, create_sample): New functions. (test_flock): Use test_flock_einval. (test_flock64, main): Remove. * tests/fcntl.test: New test. * tests/fcntl64.test: Likewise. * tests/struct_flock.test: Remove. * tests/Makefile.am (check_PROGRAMS): Add fcntl and fcntl64, remove struct_flock. (TESTS): Add fcntl.test and fcntl64.test, remove struct_flock.test. (EXTRA_DIST) Add struct_flock.c. * tests/.gitignore: Add fcntl and fcntl64, remove struct_flock.
/external/strace/fcntl.c
|
03202dac48b6b086649e19993b70b0a243396988 |
|
05-Dec-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
print_fcntl: finish with unrecognized commands on entering syscall * fcntl.c (print_fcntl): Merge two switch statements.
/external/strace/fcntl.c
|
211d6ef4b673673fe24060b18ca582b9e68fffbb |
|
04-Dec-2015 |
Elvira Khabirova <lineprinter0@gmail.com> |
fcntl: create a separate parser for fcntl64 syscall * fcntl.c(print_fcntl): New function, made from SYS_FUNC(fcntl). (SYS_FUNC(fcntl), SYS_FUNC(fcntl64)): Use it. * linux/32/syscallent.h: Change parser of fcntl64 to SEN(fcntl64). * linux/arm/syscallent.h: Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise.
/external/strace/fcntl.c
|
1a713d9c8e83a037fc8e7d18059d6cc06cccd545 |
|
20-Sep-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Convert parsers of flock structures to new mpers infrastructure * fetch_struct_flock.c: New file. * Makefile.am (strace_SOURCES): Add it. * fcntl.c (print_struct_flock64): New function. (printflock64): Use fetch_struct_flock64 and print_struct_flock64. (printflock): Use fetch_struct_flock and print_struct_flock64.
/external/strace/fcntl.c
|
c7c5270966c4193d19ad4236ac0f33fba7499805 |
|
09-Oct-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
fcntl.c: implement decoding for all known operations * xlat/f_owner_types.in: New file. * xlat/f_seals.in: Likewise. * fcntl.c: Include "xlat/f_owner_types.h" and "xlat/f_seals.h". (print_f_owner_ex): New function. (SYS_FUNC(fcntl)): Use it. Handle F_SETPIPE_SZ, F_GETPIPE_SZ, F_OFD_SETLKW, F_OFD_SETLK, F_SETOWN_EX, F_ADD_SEALS, F_SETSIG, F_OFD_GETLK, F_GETOWN_EX, F_GET_SEALS, F_GETSIG.
/external/strace/fcntl.c
|
46129c998a1ee7900e5108156ee2f37554f77e33 |
|
09-Oct-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
fcntl.c: mark F_DUPFD and F_DUPFD_CLOEXEC return code with RVAL_FD flag * fcntl.c (SYS_FUNC(fcntl)): Set RVAL_FD flag in the return code for F_DUPFD and F_DUPFD_CLOEXEC operations.
/external/strace/fcntl.c
|
5cad8464074eb725ee7271adafcdc1356e8a949c |
|
09-Oct-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
fcntl.c: remove redundant ifdefs * fcntl.c (USE_PRINTFLOCK64): Remove macro. (printflock64): Define unconditionally. (SYS_FUNC(fcntl)): Do not check for USE_PRINTFLOCK64, F_DUPFD_CLOEXEC, F_NOTIFY, F_SETLEASE, and F_GETLEASE macros.
/external/strace/fcntl.c
|
6250e6c5ed2bbb4c65f7998df8d0064aec3cf8d3 |
|
09-Oct-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
fcntl.c: use <linux/fcntl.h> instead of <fcntl.h> Include <linux/fcntl.h> for proper definitions of F_* constants and flock structures. * configure.ac (AC_CHECK_TYPES): Check for struct flock, struct flock64, struct __kernel_flock, and struct __kernel_flock64 in <linux/fcntl.h>. * flock.h: New file. * Makefile.am (strace_SOURCES): Add it. * fcntl.c: Include it instead of <fcntl.h>. (struct flock64): Remove. (printflock): Use struct_kernel_flock instead of struct flock. (printflock64): Use struct_kernel_flock64 instead of struct flock64.
/external/strace/fcntl.c
|
c3410ba54362db912775b045569383199037b9cb |
|
09-Oct-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
fcntl.c: make use of RVAL_DECODED * fcntl.c (SYS_FUNC(fcntl)): Return RVAL_DECODED for write-only operations.
/external/strace/fcntl.c
|
2512003cea5e8dfa0a1c8e245ef3d7e481357122 |
|
01-Oct-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
desc.c: move parser of fcntl syscall to a separate file * fcntl.c: New file. * Makefile.am (strace_SOURCES): Add it. * desc.c (printflock64, printflock, SYS_FUNC(fcntl)): Move to fcntl.c.
/external/strace/fcntl.c
|