• Home
  • Raw
  • Download

Lines Matching +full:ipv4 +full:- +full:second +full:- +full:language +full:- +full:is +full:- +full:cpp

1 2018-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10 2018-10-25 Dmitry V. Levin <ldv@altlinux.org>
14 2018-10-25 Elvira Khabirova <lineprinter@altlinux.org>
28 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
30 2018-10-25 Dmitry V. Levin <ldv@altlinux.org>
33 Linux commit v4.19-rc2-5-g2ecefa0a15fd0ef88b9cd5d15ceb813008136431
40 2018-10-24 Dmitry V. Levin <ldv@altlinux.org>
44 introduced by Linux commit v4.19-rc7~24^2~1.
51 2018-10-24 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
54 * linux/32/ioctls_inc_align16.h: Update from linux v4.19-rc8
64 maint: update for linux 4.19-rc8.
67 2018-10-24 Dmitry V. Levin <ldv@altlinux.org>
73 Linux kernel commit v4.19-rc1~137^2~248 introduced more of such
91 2018-09-27 Dmitry V. Levin <ldv@altlinux.org>
96 2018-09-23 Dmitry V. Levin <ldv@altlinux.org>
98 xlat: print _IOC_NONE in symbolic form even if it is equal to 0.
99 On some architectures _IOC_NONE equals to 1, on others it is 0.
101 _IOC_NONE is printed in symbolic form even if it is equal to 0.
109 2018-09-18 Dmitry V. Levin <ldv@altlinux.org>
111 Disable git-archive.
112 Since configure uses git-version-gen which in turn depends
113 on "git describe" or a .tarball-version file, raw archives
117 * README-github_gitlab-autogenerated-archives.txt: Likewise.
119 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
121 Workaround signedness bugs in system NLMSG_OK reported by -Wsign-compare
134 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
138 warning reported by clang -Wtautological-constant-out-of-range-compare.
140 build: enable gcc -Woverride-init and clang -Winitializer-overrides.
141 * m4/st_warn_cflags.m4 (gl_WARN_ADD): Add -Winitializer-overrides
142 and -Woverride-init.
144 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
147 arm_sync_file_range is better known as sync_file_range2.
151 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
154 As hwaddr_sizes array is explicitly initialized this way,
155 ignore potential warnings reported by gcc -Woverride-init
156 and clang -Winitializer-overrides.
160 macros non-trivially defined for gcc >= 4.2 and clang >= 2.8.
166 2018-09-16 Dmitry V. Levin <ldv@altlinux.org>
168 tests: workaround clang -Wunneeded-internal-declaration bug.
170 to workaround clang -Wunneeded-internal-declaration bug.
173 to workaround clang -Wunneeded-internal-declaration bug.
177 2018-09-04 Eugene Syromyatnikov <evgsyr@gmail.com>
191 2018-09-03 Eugene Syromyatnikov <evgsyr@gmail.com>
194 * tests/stack-fcall-3.c: Include <signal.h>.
196 * tests/stack-fcall.c (main): Remove arguments, call f0(0) and f0(1).
197 * tests/strace-k-demangle.expected: Update expected output.
198 * tests/strace-k.expected: Likewise.
199 * tests/strace-k.test: Rewrite pattern matching code.
201 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
203 2018-09-03 Eugene Syromyatnikov <evgsyr@gmail.com>
209 if stack trace printing is enabled.
211 2018-09-03 Eugene Syromyatnikov <evgsyr@gmail.com>
224 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
235 (decode_packet_diag_msg): Decode pdiag_num as an low-level protocol.
243 * tests/net-sockaddr.c (check_x25): New function.
262 * tests/net-sockaddr.c (AX25_ADDR): New macro.
269 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
278 Closes: Linux commit v4.16-rc1~166^2^2~2
280 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
291 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
303 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
312 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
323 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
333 (get_sockaddr_by_inode_uncached): Update protocols->get calls.
335 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
342 * tests/utimensat-Xabbrev.c: New file.
343 * tests/utimensat-Xraw.c: Likewise.
344 * tests/utimensat-Xverbose.c: Likewise.
346 * tests/pure_executables.list: Add utimensat-Xabbrev, utimensat-Xraw,
347 and utimensat-Xverbose.
349 * tests/gen_tests.in (utimensat-Xabbrev, utimensat-Xraw, utimensat-Xverbose): New
356 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
369 2018-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
377 constant (introduced by Linux commit v4.16-rc1~3^2~3).
389 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
399 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
402 It is available on all supported kernel versions.
407 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
420 2018-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
431 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
441 commit v4.18-rc1~114^2~304^2~4^2~14.
445 v4.18-rc1~114^2~304^2~4^2~14.
458 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
466 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
469 There's no need to check whether non-NULL value is being assigned to
473 xlookup to auxstr if syserror(tcp) is false.
475 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
479 introduced by Linux commit v4.19-rc1~140^2~24^2~2^2~5.
484 introduced by Linux commit v4.19-rc1~140^2~128^2~2.
488 introduced by Linux commit v4.19-rc1~140^2~108^2~3^2~12.
490 commit v4.19-rc1~140^2~24^2~2^2~6.
493 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
496 Introduced by Linux commit v4.19-rc1~140^2~205^2~1.
502 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
504 xlat: add IPV4_DEVCONF_BC_FORWARDING-1 to inet_devconf_indices.in.
505 * xlat/inet_devconf_indices.in (IPV4_DEVCONF_BC_FORWARDING-1): New
506 constant, introduced by Linux commit v4.19-rc1~140^2~208^2~1.
508 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
511 Introduced by Linux commit v4.19-rc1~140^2~208^2~1.
517 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
520 Introduced by Linux commit v4.19-rc1~140^2~253^2~1.
533 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
536 It is identical to printxval_search otherwise.
540 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
544 Linux commit v4.19-rc1~137^2~221.
547 v4.19-rc1~137^2~97.
549 v4.19-rc1~137^2~95.
551 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
554 Introduced by Linux commit v4.19-rc1~140^2~285^2~4.
563 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
566 Introduced by Linux commit v4.19-rc1~140^2~288^2.
573 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
577 introduced by Linux commit v4.18-rc1~114^2~252^2~2.
579 v4.19-rc1~42^2~63.
581 v4.19-rc1~42^2~62.
585 introduced by Linux commit v4.19-rc1~124^2~5.
595 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
598 Introduced by Linux commit v4.19-rc1~140^2~364^2~6^2~6.
606 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
610 from V4L2_CID_MPEG_VIDEO_VPX_PROFILE (the latter is now a synonym),
611 by Linux commit v4.19-rc1~137^2~270.
613 commit v4.19-rc1~137^2~269.
617 commit v4.19-rc1~140^2~465^2~12.
619 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
622 The message has been added by Linux commit v4.19-rc1~140^2~507^2~1.
633 2018-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
637 by Linux commit v4.19-rc1~140^2~518.
641 Linux commit v4.19-rc1~115^2.
644 2018-08-22 Dmitry V. Levin <ldv@altlinux.org>
646 tests: workaround systemd-nspawn habit of disabling unimplemented syscalls
650 tests: workaround systemd-nspawn habit of disabling mlockall syscall.
654 tests: workaround systemd-nspawn habit of disabling munlockall syscall.
658 2018-08-21 Eugene Syromyatnikov <evgsyr@gmail.com>
661 As smc_diag.h is bundled, there is little sense to build AF_SMC support
672 2018-08-19 Dmitry V. Levin <ldv@altlinux.org>
678 This is going to be used by a subsequent change of next_event().
691 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
693 2018-08-19 Eugene Syromyatnikov <evgsyr@gmail.com>
698 2018-08-19 Dmitry V. Levin <ldv@altlinux.org>
701 * .gitlab-ci.yml (gcc-x86_64-libdw-mainline): New entry.
702 * .travis.yml (CC=gcc-8, KHEADERS=torvalds/linux): Likewise.
705 * .gitlab-ci.yml (image): Replace "ubuntu:17.10" with "ubuntu:18.04".
708 * ci/install-dependencies.sh: Install kernel headers after compiler
712 * ci/run-build-and-tests.sh: Honor $CPPFLAGS when printing
715 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
721 * tests/ioctl_evdev-success.c: New file.
722 * tests/ioctl_evdev-success-v.c: Likewise.
723 * tests/ioctl_evdev-success.test: New test.
724 * tests/ioctl_evdev-success-v.test: Likewise.
725 * tests/.gitignore: Add ioctl_evdev-success and ioctl_evdev-success-v.
729 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
732 There is a comment in drivers/input/evdev.c which says:
733 /* EV_SYN==0 is EV_CNT, _not_ SYN_CNT, see EVIOCGBIT */
735 That is, EVIOCGBIT(0, ...) should return a bit mask with supported
748 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
751 2018-08-19 Zhibin Li <08826794brmt@gmail.com>
760 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
763 2018-08-19 Pierre Marsais <pierre.marsais@lse.epita.fr>
769 sed -E -e 's/^#define\s+([^ \t]+)\s*([0-9]+).*$/printf "%-40s%s\n" \1 \2/e' \
770 -e 's/ {8}/\t/g; s/ +/\t/g'
779 2018-08-19 Dmitry V. Levin <ldv@altlinux.org>
787 2018-08-19 Dmitry V. Levin <ldv@altlinux.org>
790 Linux kernel commit v4.18-rc2-106-g421860b9d47053badce4b247576fa48df9ab4c48
792 by commit v4.13-rc1~141^2~121 because the old value was already used
795 This is of course an ABI breakage that affects Linux kernels starting
799 it looks like the best way to handle this situation is to pretend that
804 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
806 2018-08-14 Dmitry V. Levin <ldv@altlinux.org>
808 Post-release administrivia.
810 * debian/changelog.in: Add a changelog entry for 4.24-1.
816 2018-08-12 Dmitry V. Levin <ldv@altlinux.org>
822 2018-08-12 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
825 * linux/32/ioctls_inc_align16.h: Update from linux v4.18-rc8
837 2018-08-12 Dmitry V. Levin <ldv@altlinux.org>
840 Linux kernel commit v4.18-rc1~37^2~66 introduced FS_IOC_[GS]ETFSLABEL
855 2018-08-08 Eugene Syromyatnikov <evgsyr@gmail.com>
858 As it is the flag kernel actually checks against,
859 and it is now guaranteed to have a fallback definition.
864 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
870 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
876 Co-Authored-by: Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
878 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
880 xlat: remove non-Linux flags from open_mode_flags.
885 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
887 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
893 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
895 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
901 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
903 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
906 This script is going to be used to generate xlat fallback values.
910 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
912 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
916 $RPM_OPT_FLAGS is honored when building auxiliary programs like
919 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
924 * strace.spec.in: Compress ChangeLog and ChangeLog-CVS using gzip -9n.
926 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
928 strace.spec.in: use a SUSE-specific group name for SUSE.
934 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
936 strace.spec.in: use a SUSE-specific license name for SUSE.
939 * strace.spec.in (License): Add %{?suse_version:-3-Clause}.
941 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
943 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
948 in some exotic environments where EPERM is returned instead of EINVAL
949 (e.g. mock that uses systemd-nspawn).
956 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
958 2018-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
962 are provided by kernel. Before Linux commit v3.10-rc1~201^2~11,
970 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
972 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
977 Add output of ld --version to the build environment information.
978 Use printf instead of echo -e.
980 2018-08-05 Dmitry V. Levin <ldv@altlinux.org>
984 userspace running by a 64-bit kernel to trace 64-bit processes.
986 As simultaneous decoding of processes running both in 64-bit and 32-bit
987 personality is fully supported on every architecture with compat kernel
988 support for quite some time, one can just install a 64-bit strace and
989 there is no more need for that strace64 kludge.
994 2018-08-04 Dmitry V. Levin <ldv@altlinux.org>
1006 * constants introduced by Linux kernel commit v4.18-rc1~114^2~165^2~2.
1015 constant introduced by Linux kernel commit v4.15-rc1~84^2~607.
1017 commit v4.15-rc1~84^2~523^2~2.
1019 v4.18-rc1~114^2~142.
1023 by Linux kernel commit v4.18-rc1~114^2~108^2~3
1028 v4.18-rc1~114^2~90.
1030 2018-08-01 Dmitry V. Levin <ldv@altlinux.org>
1035 2018-08-01 Zhibin Li <08826794brmt@gmail.com>
1038 * tests/net-tpacket_stats.c: New file.
1039 * tests/net-tpacket_stats-success.c: Likewise.
1040 * tests/gen_tests.in (net-tpacket_stats): New test.
1041 * tests/net-tpacket_stats-success.test: Likewise.
1042 * tests/.gitignore: Add net-tpacket_stats and net-tpacket_stats-success.
1043 * tests/Makefile.am (check_PROGRAMS): Add net-tpacket_stats-success.
1044 (DECODER_TESTS): Add net-tpacket_stats-success.test.
1045 * tests/pure_executables.list: Add net-tpacket_stats.
1048 * tests/net-tpacket_req.c: New file.
1049 * tests/.gitignore: Add net-tpacket_req.
1051 * tests/gen_tests.in (net-tpacket_req): New test.
1054 * tests/net-packet_mreq.c: New file.
1055 * tests/.gitignore: Add net-packet_mreq.
1057 * tests/gen_tests.in (net-packet_mreq): New test.
1059 2018-07-20 Dmitry V. Levin <ldv@altlinux.org>
1067 2018-07-20 Zhibin Li <08826794brmt@gmail.com>
1070 * tests/quotactl-success.c: New file.
1071 * tests/quotactl-success-v.c: Likewise.
1072 * tests/quotactl-xfs-success.c: Likewise.
1073 * tests/quotactl-xfs-success-v.c: Likewise.
1074 * tests/quotactl-success.test: New test.
1075 * tests/quotactl-success-v.test: Likewise.
1076 * tests/quotactl-xfs-success.test: Likewise.
1077 * tests/quotactl-xfs-success-v.test: Likewise.
1078 * tests/.gitignore: Add quotactl-success, quotactl-success-v,
1079 quotactl-xfs-success and quotactl-xfs-success-v.
1083 sprintrc; check that returned value is equivalent to the injected one;
1088 * tests/quotactl-xfs.c: Likewise.
1090 2018-07-18 Dmitry V. Levin <ldv@altlinux.org>
1094 behaviour: getsockopt syscall accepts any non-negative *optlen and
1106 non-negative *optlen and writes MIN(sizeof(struct ucred), *optlen)
1114 behaviour: getsockopt syscall accepts any non-negative *optlen
1126 2018-07-15 Dmitry V. Levin <ldv@altlinux.org>
1130 <asm/stat.h> introduced by glibc-2.27.9000-566-gfd70af4.
1136 2018-07-15 Eugene Syromyatnikov <evgsyr@gmail.com>
1142 2018-07-15 Zhibin Li <08826794brmt@gmail.com>
1144 tests/quotactl-xfs.c: fix indentation.
1146 2018-07-15 Zhibin Li <08826794brmt@gmail.com>
1159 2018-07-15 Zhibin Li <08826794brmt@gmail.com>
1165 * tests/quotactl-xfs.c: Improve existing tests and add more tests for
1168 tests/quotactl-xfs.c: fix typos in QCMD.
1169 * tests/quotactl-xfs.c (main): fix typos of sub-commands in QCMD.
1183 2018-07-12 Zhibin Li <08826794brmt@gmail.com>
1186 * tests/fcntl-common.c: Include <assert.h>.
1193 2018-07-11 Dmitry V. Levin <ldv@altlinux.org>
1195 Implement -e kvm= option on all architectures.
1196 Make -e kvm= interface available on all architectures by adding a stub
1201 * strace.c (usage): Mention kvm argument of -e option unconditionally.
1203 2018-07-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1205 xlat: update bpf(2)-related constants.
1208 v4.18-rc1~114^2~9^2~20^2~4.
1210 v4.18-rc1~114^2~9^2~15^2~1.
1212 commit v4.18-rc1~114^2~417^2~1^2~5.
1214 v4.18-rc1~114^2~223^2~21^2~4.
1216 v4.18-rc1~114^2~148^2~1^2~5.
1218 by Linux commit v4.18-rc1~114^2~304^2~4^2~8.
1220 v4.18-rc1~114^2~223^2~5^2~2.
1222 introduced by Linux commit v4.18-rc1~114^2~148^2~2^2~1.
1224 v4.18-rc1~114^2~9^2~15^2~1.
1227 2018-07-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1231 introduced by Linux commit v4.18-rc3~7^2~2.
1233 and rseq syscalls introduced by Linux commit v4.18-rc3~33^2~2.
1234 * linux/mips/syscallent-n32.h ([6331], [6332]): Wire up rseq and
1235 io_pgetevents syscalls introduced by Linux commits v4.18-rc2~11^2~2
1236 and v4.18-rc2~11^2, respectively.
1237 * linux/mips/syscallent-n64.h ([5327], [5328]): Likewise.
1238 * linux/mips/syscallent-o32.h ([4367], [4368]): Likewise.
1240 introduced by Linux commit v4.18-rc3~14^2~2.
1243 and rseq syscalls introduced by Linux commits v4.18-rc4~18^2~1
1244 and v4.18-rc4~18^2, respectively.
1247 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1249 2018-07-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1252 * maint/gen-tag-message.sh: Align the wording of the changes section
1256 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1258 2018-07-10 Dmitry V. Levin <ldv@altlinux.org>
1260 Upgrade invalid -e kvm= argument to a fatal error.
1262 error_msg in case of invalid -e kvm= argument.
1263 * tests/options-syntax.test: Check it.
1265 Mention -e inject option in "strace -h" output.
1266 * strace.c (usage): Mention inject argument of -e option.
1268 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1275 behavior is detected.
1284 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1286 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1288 strace.1.in: document -e kvm=vcpu option.
1289 * strace.1.in (-e kvm=vcpu): Document new option.
1290 * NEWS: Mention -e kvm=vcpu option.
1292 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1294 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1298 via ioctl. KVM_RUN is an ioctl command to enter vcpu. The command
1304 change prints the reason as auxstr if "-e kvm=vcpu" option is given,
1309 The way to get the reason is a bit complicated because the ioctl does
1312 vcpu is mmap'ed. strace must peek the area to know the reason.
1319 The change is complicated because there is a case that strace
1320 does not have a chance to do (1) if -p option is used.
1329 * strace.c (usage): Add "kvm" as a new expression for -e option.
1339 (vcpu_info): New struct definition representing the 3-tuple: vcpu file
1352 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1354 2018-07-07 Masatake YAMATO <yamato@redhat.com>
1361 2018-07-07 Pierre Marsais <pierre.marsais@lse.epita.fr>
1364 * tests/ioctl_kvm_run-v.c: New file.
1369 * tests/gen_tests.in (ioctl_kvm_run-v): New entry.
1370 * tests/pure_executables.list: Add ioctl_kvm_run-v.
1379 2018-07-07 Pierre Marsais <pierre.marsais@lse.epita.fr>
1390 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1392 2018-07-07 Zhibin Li <08826794brmt@gmail.com>
1396 2018-07-03 Dmitry V. Levin <ldv@altlinux.org>
1402 2018-07-03 Dmitry V. Levin <ldv@altlinux.org>
1404 ci: robustify network-related operations.
1405 Reduce false positives by wrapping network-related operations into a loop.
1407 * ci/install-dependencies.sh (retry_if_failed): New function.
1408 Use it to invoke apt-get update, apt-get install, git clone,
1409 add-apt-repository, and pip install.
1411 2018-06-29 Zhibin Li <08826794brmt@gmail.com>
1415 v4.23-11-g15003d4.
1419 2018-06-18 Dmitry V. Levin <ldv@altlinux.org>
1435 Reported-by: Elliott Hughes <enh@google.com>
1438 2018-06-18 Eugene Syromyatnikov <evgsyr@gmail.com>
1442 introduced by Linux commit v4.18-rc1~100^2~9.
1446 Linux commit v4.18-rc1~114^2~377^2~8.
1448 2018-06-17 Dmitry V. Levin <ldv@altlinux.org>
1454 2018-06-17 Chen Jingpiao <chenjingpiao@gmail.com>
1457 As rseq syscall is not x32-specific, move it after the previous one
1458 that is not x32-specific. Fix the unused syscall number range.
1463 2018-06-17 Eugene Syromyatnikov <evgsyr@gmail.com>
1484 introduced by Linux commit v4.18-rc1~114^2~351^2~1.
1485 (TCP_INQ): New constant, introduced by Linux commit v4.18-rc1~114^2~330.
1489 commit v4.17-rc1-15-gdb78e6a.
1491 2018-06-15 Dmitry V. Levin <ldv@altlinux.org>
1493 Post-release administrivia.
1495 * debian/changelog.in: Add a changelog entry for 4.23-1.
1498 2018-06-14 Dmitry V. Levin <ldv@altlinux.org>
1508 * tests/prctl-spec-inject.test: Add copyright header.
1512 * maint/README-release: New file.
1513 * maint/gen-release-notes.sh: Likewise.
1514 * maint/gen-release-github.sh: Likewise.
1515 * maint/gen-release-gitlab.sh: Likewise.
1518 * maint/gen-tag-message.sh: Prepend every line of
1519 gen-contributors-list.sh output with an asterisk.
1521 2018-06-14 Eugene Syromyatnikov <evgsyr@gmail.com>
1525 2018-06-13 Dmitry V. Levin <ldv@altlinux.org>
1528 This new syscall was introduced by Linux commit v4.17-1308-gd7822b1.
1538 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1548 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1550 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1553 Introduced by Linux commit v4.17-rc3-7-g7a074e9.
1558 has_usig flag, print user sigset on exiting if has_usig is set to true.
1568 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1570 2018-06-13 Dmitry V. Levin <ldv@altlinux.org>
1572 travis: re-enable testing with the latest mainline kernel headers.
1573 As <linux/signal.h> is out of the game now, the Linux commit
1574 v4.17-rc3-7-g7a074e9 should not cause harm anymore, so let's enable
1579 2018-06-13 Dmitry V. Levin <ldv@altlinux.org>
1589 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1592 * tests/options-syntax.test: Add personality specification syntax
1609 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1619 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1638 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1641 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1644 * tests/qual_fault-syscall.test: New test.
1645 * tests/qual_inject-error-signal-syscall.test: Likewise.
1646 * tests/qual_inject-retval-syscall.test: Likewise.
1647 * tests/qual_inject-signal-syscall.test: Likewise.
1649 * tests/qual_fault-syntax.test: Add checks for inject=SET:syscall=
1651 * tests/qual_inject-syntax.test: Likewise.
1652 * tests/qual_fault.test: Append $suffix to -e fault arguments, override
1653 $NAME with $name_override if the latter is set.
1654 * tests/qual_inject-error-signal.test: Append $suffix to -e inject
1655 arguments, override $NAME with $name_override if the latter is set.
1656 * tests/qual_inject-retval.test: Likewise.
1657 * tests/qual_inject-signal.test: Likewise.
1659 2018-06-13 Eugene Syromyatnikov <evgsyr@gmail.com>
1661 Implement injection of syscalls with no side effects as an alternative to -1
1672 if INJECT_F_SYSCALL is set.
1679 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1682 2018-06-13 Dmitry V. Levin <ldv@altlinux.org>
1685 Remove the last piece of IA-32 mode support. Besides being obsolete,
1690 Complements: v4.21~17 "linux/ia64: remove IA-32 mode support"
1692 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1702 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1710 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1712 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1715 This is similar to print_quoted_cstring, but not quite the same.
1720 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1732 opening square bracket if add_data is set to true.
1735 if nla_total_len_ is greater than nla_data_len_.
1738 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1741 Since it is relatively simple.
1748 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1756 Fixes: v4.22-321-gfd0cd65 "nlattr: add ethernet protocol decoder"
1758 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1770 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1779 Fixes: v4.22-328-g1e6d5a8 "rtnl_link: implement IFLA_INFO_DATA for bridges"
1780 Fixes: v4.22-329-g4eab3a4 "rtnl_link: implement IFLA_INFO_DATA for tun devices"
1782 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1785 * linux/mips/syscallent-n32.h ([6038], [6100], [6102], [6105], [6106],
1788 * linux/mips/syscallent-n64.h ([5038], [5100], [5102], [5105], [5106],
1790 * linux/mips/syscallent-o32.h ([4020], [4024], [4047], [4049], [4050],
1795 2018-06-11 Eugene Syromyatnikov <evgsyr@gmail.com>
1798 * linux/mips/syscallent-n32.h ([6109]): Add NF flag.
1799 * linux/mips/syscallent-n64.h ([5109]): Likewise.
1800 * linux/mips/syscallent-o32.h ([4065]): Likewise.
1804 2018-06-07 Eugene Syromyatnikov <evgsyr@gmail.com>
1807 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1812 2018-06-07 Dmitry V. Levin <ldv@altlinux.org>
1817 headers without v2.6.29-rc4~77^2~26 fix.
1819 2018-06-06 Dmitry V. Levin <ldv@altlinux.org>
1822 There is too much noise when using unreleased kernel uapi.
1824 * ci/install-dependencies.sh (clone_repo): Add optional "branch"
1830 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1841 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1844 An ability to specify custom depth is going to be needed later to check
1857 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1859 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1896 is
1908 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1918 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1931 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1957 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1960 If the field size is known, do not print as valid numbers those
1967 * nlattr.c (decode_nla_xval, decode_nla_flags): Check that len is at
1968 least opts->size, limit len to opts->size.
1971 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
1973 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1991 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
1994 Needed for upcoming decoder of ethernet proto which is stored in the
2005 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
2013 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
2018 a combination of zero decoder list size and non-zero decoder pointer
2021 This is going to be used later in IFLA_AF_SPEC decoding.
2023 * nlattr.c (decode_nlattr_with_data): Handle zero size and non-NULL
2026 argument when zero size and non-NULL decoders are provided.
2029 2018-06-06 Dmitry V. Levin <ldv@altlinux.org>
2032 Remove _STR which is essentially the same as STRINGIFY but from
2040 2018-06-06 Eugene Syromyatnikov <evgsyr@gmail.com>
2046 2018-06-05 Dmitry V. Levin <ldv@altlinux.org>
2050 IPV4_DEVCONF_FORWARDING-1 0
2052 This is going to be used later in IFLA_AF_SPEC decoding.
2054 * xlat/gen.sh (cond_def): If the xlat value is not an identifier name,
2057 2018-06-05 Eugene Syromyatnikov <evgsyr@gmail.com>
2060 This is going to be used later in IFLA_AF_SPEC decoding.
2062 * xlat.c (xlookup): Add static variable pos, store xlat there when it is
2063 non-NULL, use pos for lookup.
2065 xlat and nmemb there when xlat is non-NULL, use them for lookup.
2066 (printxvals_ex): Store the last non-NULL xlat in static variable "last".
2067 If the first xlat argument is NULL, use "last" instead.
2069 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2071 2018-06-05 Eugene Syromyatnikov <evgsyr@gmail.com>
2078 Leverage the fact that inet_protocols xlat is sorted.
2084 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2096 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2099 For those cases when array definition is not readily available
2104 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2107 There is no need to invoke grep using run_prog.
2111 2018-06-04 Eugene Syromyatnikov <evgsyr@gmail.com>
2114 * tests/bpf-obj_get_info_by_fd-prog-v.c: New file.
2115 * tests/bpf-obj_get_info_by_fd-prog.c: Likewise.
2116 * tests/bpf-obj_get_info_by_fd-v.c: Likewise.
2117 * tests/bpf-obj_get_info_by_fd.c: Likewise.
2120 * tests/pure_executables.list: Add bpf-obj_get_info_by_fd,
2121 bpf-obj_get_info_by_fd-v, bpf-obj_get_info_by_fd-prog, and
2122 bpf-obj_get_info_by_fd-prog-v.
2124 * tests/gen_tests.in (bpf-obj_get_info_by_fd,
2125 bpf-obj_get_info_by_fd-v, bpf-obj_get_info_by_fd-prog,
2126 bpf-obj_get_info_by_fd-prog-v): New tests.
2128 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2130 2018-06-04 Dmitry V. Levin <ldv@altlinux.org>
2139 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2147 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2149 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2152 As it is needed for proper info_len printing on exiting.
2166 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2168 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2175 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2177 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2180 If xlated_prog_len is zero on entering syscall and non-zero on exiting,
2181 the program itself is not written into xlated_prog_insns.
2184 if decode is false.
2190 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2192 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2201 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2203 2018-06-02 Dmitry V. Levin <ldv@altlinux.org>
2206 Our policy is that all fields of type uint64_t in this header file
2210 unless the latter is buggy.
2213 v4.16-rc1~123^2~109^2~5^2~4.
2220 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2222 tests: cast printf arguments to short when %h format qualifier is used.
2227 * tests/net-sockaddr.c (main): Cast printf argument for %hu format
2231 2018-06-02 Eugene Syromyatnikov <evgsyr@gmail.com>
2242 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2245 This is needed for old Linux UAPI headers that do no contain commit
2246 v3.1-rc2~19^2~29.
2251 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2260 in checks for interface netlink attributes-related declarations
2263 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2266 As it turns out, old versions of gawk do not support -e option.
2271 2018-06-01 Eugene Syromyatnikov <evgsyr@gmail.com>
2277 2018-06-01 Zhibin Li <08826794brmt@gmail.com>
2280 * tests/fcntl-common.c (test_flock_einval): Check short read
2284 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2287 * tests/fcntl-common.c (test_flock_einval, test_flock): Create
2293 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2296 Check that non-faulty F_OFD_* fcntl operations are decoded properly.
2298 * tests/fcntl-common.c: Include <string.h>.
2302 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2304 tests/fcntl-common.c: define and initialize errstr.
2308 * tests/fcntl-common.c (errstr): New variable.
2315 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2317 tests/fcntl-common.c: add fd argument to invoke_test_syscall.
2321 * tests/fcntl-common.c (invoke_test_syscall): Add fd argument, pass it
2324 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2326 tests: move F_OFD_SETLK* checks from fcntl64.c to fcntl-common.c.
2332 * tests/fcntl-common.c: ... here.
2340 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2342 tests: move F_OWNER_* tests to fcntl-common.c.
2347 * tests/fcntl-common.c: ... here.
2351 2018-06-01 Dmitry V. Levin <ldv@altlinux.org>
2353 tests: rename struct_flock.c to fcntl-common.c.
2354 It is not limited to struct flock, more fcntl tests are going to land
2357 * tests/struct_flock.c: Rename to fcntl-common.c.
2359 to fcntl-common.c.
2363 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2375 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2377 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2385 by Linux commit v4.17-rc1~148^2~371.
2388 v4.17-rc1~148^2~328^2~4.
2392 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2394 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2402 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2404 2018-05-30 Dmitry V. Levin <ldv@altlinux.org>
2412 travis: switch from gcc-7 to gcc-8.
2413 * .travis.yml (matrix): Change gcc-7 to gcc-8.
2415 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2423 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2433 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2441 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2450 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2458 2018-05-30 Eugene Syromyatnikov <evgsyr@gmail.com>
2472 is set.
2474 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2483 is true, print the address of unfetchable object using
2493 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2499 by print_func, e.g. when the data is printed in a numeric form like
2505 - tfetch_mem_func never prints anything;
2506 - tfetch_mem_func returns true if the fetch succeeded,
2555 * tests/ioctl_perf-success.c (main): Likewise.
2561 * tests/preadv-pwritev.c (main): Likewise.
2562 * tests/preadv2-pwritev2.c (dumpio): Likewise.
2566 * tests/seccomp-filter-v.c
2572 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
2574 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2590 2018-05-29 Dmitry V. Levin <ldv@altlinux.org>
2600 2018-05-29 Eugene Syromyatnikov <evgsyr@gmail.com>
2607 2018-05-28 Dmitry V. Levin <ldv@altlinux.org>
2618 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2622 [BPF_TAG_SIZE]: Check that BPF_TAG_SIZE is 8.
2636 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2638 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2650 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2652 2018-05-28 Dmitry V. Levin <ldv@altlinux.org>
2665 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2668 * tests/bpf-success-v.c: New file.
2669 * tests/bpf-success.c: Likewise.
2670 * tests/bpf-success-v.test: New test.
2671 * tests/bpf-success.test: Likewise.
2672 * tests/.gitignore: Add bpf-success and bpf-success-v.
2674 (DECODER_TESTS): Add bpf-success.test and bpf-success-v.test.
2676 is equivalent to the injected one; append "(INJECTED)" string to errstr.
2686 uint64_t to uint32_t), as they are 32-bit; use common trick with
2698 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2703 * tests/ioctl_perf-success.c: New file.
2704 * tests/ioctl_perf-success.test: New test.
2706 (check_PROGRAMS): Add ioctl_perf-success.
2710 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2712 2018-05-28 Eugene Syromyatnikov <evgsyr@gmail.com>
2731 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
2733 2018-05-28 Dmitry V. Levin <ldv@altlinux.org>
2736 * tests/ipc_msgbuf.test: Fix -a argument.
2738 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
2744 v2.6.19-rc1~33^2.
2746 v2.6.35-rc1~473^2~594.
2748 v2.6.19-rc1~1272^2~157.
2756 constant, introduced by Linux commit v4.17-rc3-24-g00a02d0.
2757 * tests/seccomp-filter.c: Update expected output.
2758 * tests/seccomp-filter-v.c: Likewise.
2766 v4.17-rc3-15-gb617cfc.
2769 * tests/Makefile.am (check_PROGRAMS): Add prctl-spec-inject.
2770 (DECODER_TESTS): Add prctl-spec-inject.test.
2771 * tests/prctl-spec-inject.c: New file.
2772 * tests/prctl-spec-inject.test: New test.
2773 * tests/.gitignore: Add prctl-spec-inject.
2776 * tests/keyctl-Xabbrev.c: New file.
2777 * tests/keyctl-Xraw.c: Likewise.
2778 * tests/keyctl-Xverbose.c: Likewise.
2782 * tests/pure_executables.list: Add keyctl-Xabbrev, keyctl-Xraw,
2783 and keyctl-Xverbose.
2785 * tests/gen_tests.in (keyctl-Xabbrev, keyctl-Xraw, keyctl-Xverbose): New
2798 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
2805 were printed as "... = -1 1234 (Unknown error 1234)" which looked kinda
2809 (syscall_exiting_trace): Remove u_error variable, use tcp->u_error
2812 is non-zero.
2813 (syscall_exiting_trace) <if (!(sys_res & RVAL_NONE) && tcp->u_error)>:
2820 2018-05-25 Eugene Syromyatnikov <evgsyr@gmail.com>
2845 2018-05-24 Dmitry V. Levin <ldv@altlinux.org>
2856 2018-05-23 Dmitry V. Levin <ldv@altlinux.org>
2865 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2873 introduced by Linux commit v4.17-rc1~148^2~19^2~4^2~3.
2896 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2898 nlattr: do not assume that SK_MEMINFO_VARS is constant.
2900 v4.7-rc1~154^2~354^2~4, for example), so we cannot use it
2908 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2911 Analogous to print_int32_array_member, this helper is going to be used
2918 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2921 Analogous to print_uint64_array_member, this helper is going to be used
2927 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2932 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2940 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2944 field was added only by commit v3.5-rc1~35^2~3^2~18^2^2~39.
2952 l2_bdaddr_type field only if the provided sockaddr is big enough.
2953 * tests/net-sockaddr.c (check_l2): Put l2_bdaddr_type usage/printing
2957 2018-05-23 Eugene Syromyatnikov <evgsyr@gmail.com>
2967 2018-05-22 Dmitry V. Levin <ldv@altlinux.org>
2971 there is nothing personality-specific in these files.
3006 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3008 strace.1.in: mention -Xraw in -eraw description.
3009 * strace.1.in (\fB\-e\ raw\fR=\,\fIset\fR): Mention -X raw.
3011 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3013 strace.1.in: display -k option description only if it is enabled.
3014 Leverage the fact that manpage is generated and add condition statements
3015 around mentions of -k option.
3019 condition; add a second list of options without -k and put it inside
3022 (.SS Output format) <-k>: Put it inside
3024 condition, remove the mention of --enable-stacktrace configuration
3027 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3033 tests/qual_fault.test: add -efu arguments to the interpreter.
3034 * tests/qual_fault.test (#!/bin/sh): Add -efu arguments.
3036 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3039 match_diff expects the first argument as strace output and the second
3045 2018-05-21 Dmitry V. Levin <ldv@altlinux.org>
3053 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3063 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3065 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3073 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3082 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3085 This macro is going to be used in inline checks.
3089 2018-05-21 Eugene Syromyatnikov <evgsyr@gmail.com>
3101 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3103 2018-05-19 Eugene Syromyatnikov <evgsyr@gmail.com>
3105 strace.1.in: fix -A description.
3106 * strace.1.in (.SS Output format) <-A>: Add missing .B.
3108 strace.1.in: document x32 64-bit syscall peculiarity.
3109 * strace.1.in (.SH NOTES): Document "#64" suffix for 64-bit syscalls on
3112 2018-05-19 Eugene Syromyatnikov <evgsyr@gmail.com>
3114 linux/x32/syscallent.h: change 64-bit syscall designation.
3115 The current way of designation of 64-bit specific syscalls in x32
3118 (since everything that starts from a digit is considered a syscall
3130 2018-05-19 Eugene Syromyatnikov <evgsyr@gmail.com>
3134 introduced by Linux commit v4.17-rc1~148^2~156^2~1^2~13.
3139 introduced by Linux commit v4.17-rc1~148^2~156^2~1^2~13.
3141 introduced by Linux commit v4.17-rc1~148^2~19^2^2~6.
3143 introduced by Linux commit v4.17-rc1~148^2~19^2^2~3.
3145 introduced by Linux commit v4.17-rc1~148^2~19^2^2~1.
3148 2018-05-19 Eugene Syromyatnikov <evgsyr@gmail.com>
3151 Define SO_TIMESTAMP twice, for PA-RISC and all the other architectures.
3158 2018-05-17 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
3161 * linux/32/ioctls_inc_align16.h: Update from linux v4.17-rc5
3171 maint: update for linux 4.17-rc5.
3174 2018-05-16 Dmitry V. Levin <ldv@altlinux.org>
3189 2018-05-15 Dmitry V. Levin <ldv@altlinux.org>
3209 2018-05-15 Andre McCurdy <armccurdy@gmail.com>
3212 If Thumb code is being generated and frame pointers are enabled, the
3219 strace-4.22/tests/inject-nf.c:86:1: error: r7 cannot be used in asm here
3238 2018-05-15 Dmitry V. Levin <ldv@altlinux.org>
3247 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3250 This xlat table is quite big.
3255 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3270 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3272 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3280 * tests/net-sockaddr.c (check_l2): Update expected output.
3282 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3284 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3292 * tests/net-sockaddr.c (check_l2): Update expected output.
3299 * tests/net-sockaddr.c (check_l2): Check decoding
3302 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3315 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3317 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3326 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3328 2018-05-15 Eugene Syromyatnikov <evgsyr@gmail.com>
3339 (MSG_SENDPAGE_NOTLAST, MSG_NO_SHARED_FRAGS): New constants. It is
3344 (MSG_EOF): Commented out, as it is a synonym for MSG_FIN.
3346 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3348 2018-05-14 Dmitry V. Levin <ldv@altlinux.org>
3352 when kernel version is 4.4.4 or later, initialize udiag_cookie
3357 2018-05-14 Eugene Syromyatnikov <evgsyr@gmail.com>
3360 This information is not used and it looks like it negatively affects
3367 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3369 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3374 because tail_malloc is marked with ATTRIBUTE_MALLOC.
3375 For example, glibc in -D_FORTIFY_SOURCE=2 mode and gcc 8 with
3376 -Warray-bounds enabled complain about negative offsets out of bounds.
3416 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3418 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3426 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3434 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3436 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3440 by Linux commit v4.17-rc1~52^2~21.
3443 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3445 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3449 by Linux commit v4.17-rc1~52^2~22.
3452 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3454 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3458 by Linux commit v4.17-rc1~52^2~23.
3461 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3463 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3467 constant is intended for use in setsockopt, and the latter is for
3479 * tests/sock_filter-v.c: Update expected output.
3481 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3483 2018-05-09 Eugene Syromyatnikov <evgsyr@gmail.com>
3485 tests: add sock_filtrer-v variants with different xlat verbosity levels.
3486 * tests/sock_filter-v-Xabbrev.c: New file.
3487 * tests/sock_filter-v-Xraw.c: Likewise.
3488 * tests/sock_filter-v-Xverbose.c: Likewise.
3489 * tests/sock_filter-v.c (PRINT_STMT_SYM, PRINT_STMT_SYM_,
3496 * tests/pure_executables.list: Add sock_filter-v-Xabbrev,
3497 sock_filter-v-Xraw, and sock_filter-v-Xverbose.
3499 * tests/gen_tests.in (sock_filter-v-Xabbrev, sock_filter-v-Xraw,
3500 sock_filter-v-Xverbose): New tests.
3502 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3504 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3513 2018-05-08 Dmitry V. Levin <ldv@altlinux.org>
3549 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3580 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3582 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3600 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3602 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3605 There is no need to provide duplicate fallback definitions anymore,
3610 Remove, a fallback definition is already provided by included
3618 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3620 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3630 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3632 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3635 As it is an interface index.
3640 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3642 ci: install libbluetooth-dev.
3643 * ci/install-dependencies.sh (common_packages): Add libbluetooth-dev.
3648 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3651 As the header with command definitions is now a part of UAPI (since
3652 Linux commit v4.16-rc1~21^2~11), there's no need for a very special
3659 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3665 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3668 * tests/so_peercred-Xabbrev.c: New file.
3669 * tests/so_peercred-Xraw.c: Likewise.
3670 * tests/so_peercred-Xverbose.c: Likewise.
3671 * tests/pure_executables.list: Add so_peercred-Xabbrev,
3672 so_peercred-Xraw, and so_peercred-Xverbose.
3675 * tests/gen_tests.in (so_peercred-Xabbrev, so_peercred-Xraw,
3676 so_peercred-Xverbose): New tests.
3678 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3680 2018-05-08 Eugene Syromyatnikov <evgsyr@gmail.com>
3683 * tests/personality-Xabbrev.c: New file.
3684 * tests/personality-Xraw.c: Likewise.
3685 * tests/personality-Xverbose.c: Likewise.
3686 * tests/pure_executables.list: Add personality-Xabbrev,
3687 personality-Xraw, and personality-Xverbose.
3691 * tests/gen_tests.in (personality-Xabbrev, personality-Xraw,
3692 personality-Xverbose): New tests.
3695 * tests/fanotify_mark-Xabbrev.c: New file.
3696 * tests/fanotify_mark-Xraw.c: Likewise.
3697 * tests/fanotify_mark-Xverbose.c: Likewise.
3698 * tests/pure_executables.list: Add fanotify_mark-Xabbev,
3699 fanotify_mark-Xraw, and fanotify_mark-Xverbose.
3703 * tests/gen_tests.in (fanotify_mark-Xabbev, fanotify_mark-Xraw,
3704 fanotify_mark-Xverbose): New tests.
3706 2018-05-07 Eugene Syromyatnikov <evgsyr@gmail.com>
3710 the array is sorted.
3716 v2.6.17-rc1~1175^2~206.
3718 v2.6.25-rc1~1162^2~1415.
3727 * tests/.gitignore: Add ipc_msg-Xabbrev, ipc_msg-Xraw, ipc_msg-Xverbose,
3728 ipc_msgbuf-Xabbrev, ipc_msgbuf-Xraw, ipc_msgbuf-Xverbose,
3729 ipc_sem-Xabbrev, ipc_sem-Xraw, ipc_sem-Xverbose, ipc_shm-Xabbrev,
3730 ipc_shm-Xraw, and ipc_shm-Xverbose.
3732 * tests/gen_tests.in (ipc_msg-Xabbrev, ipc_msg-Xraw, ipc_msg-Xverbose,
3733 ipc_msgbuf-Xabbrev, ipc_msgbuf-Xraw, ipc_msgbuf-Xverbose,
3734 ipc_sem-Xabbrev, ipc_sem-Xraw, ipc_sem-Xverbose, ipc_shm-Xabbrev,
3735 ipc_shm-Xraw, ipc_shm-Xverbose): New tests.
3736 * tests/ipc_msg-Xabbrev.c: New file.
3737 * tests/ipc_msg-Xraw.c: Likewise.
3738 * tests/ipc_msg-Xverbose.c: Likewise.
3739 * tests/ipc_msgbuf-Xabbrev.c: Likewise.
3740 * tests/ipc_msgbuf-Xraw.c: Likewise.
3741 * tests/ipc_msgbuf-Xverbose.c: Likewise.
3742 * tests/ipc_sem-Xabbrev.c: Likewise.
3743 * tests/ipc_sem-Xraw.c: Likewise.
3744 * tests/ipc_sem-Xverbose.c: Likewise.
3745 * tests/ipc_shm-Xabbrev.c: Likewise.
3746 * tests/ipc_shm-Xraw.c: Likewise.
3747 * tests/ipc_shm-Xverbose.c: Likewise.
3756 * tests/gen_tests.in (ipc_msg, ipc_sem, ipc_shm): Add -a option.
3768 check for -mtype in msgrcv.
3774 * tests/ipc_msgbuf.test: Add -a31. Redirect output to $EXP. Call
3777 2018-05-07 Dmitry V. Levin <ldv@altlinux.org>
3793 2018-05-06 Dmitry V. Levin <ldv@altlinux.org>
3799 Fixes: v4.22-122-gfa8f486 ("xlat: fix F_* fallback definitions on alpha, hppa, mips, and sparc")
3801 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3806 sed -n 's/^\(SO_[^[:space:]]*\).*/\1/p' xlat/sockoptions.in |
3809 sed -rn 's/#define[[:space:]]+('"$name"')[[:space:]]+([[:digit:]]+)$/\2\t\1/p' \
3810 /path/to/linux/include/uapi/asm-generic/socket.h
3812 sort -n |
3814 grep -EH '#define[[:space:]]+'"$name"'[[:space:]]+(0x[[:xdigit:]]+|[[:digit:]]+)' \
3816 …sed -rn 's|^[^#]*/arch/([^/]+)/include/uapi/asm/socket\.h:#define[[:space:]]+'"$name"'[[:space:]]+…
3818 awk -vname="$name" -vdef="$def" '
3845 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
3847 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3850 * xlat/sockoptions.in (SO_GET_FILTER): Remove as it is defined
3852 (SO_DETACH_BPF): Remove as it is defined to SO_DETACH_FILTER.
3860 * xlat/socketlayers.in: Add a comment that the xlat is sorted.
3864 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3867 As we have all BTPROTO_* constant definitions now, there is no need
3877 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3879 xlat/gen.sh: invoke the shell interpreter with -e -u options.
3880 * xlat/gen.sh: Change interpreter from "/bin/sh" to "/bin/sh -eu".
3884 commit v4.17-rc1~107^2~2.
3886 v4.17-rc1~31^2~3.
3890 by Linux commit v4.17-rc1~52^2~14.
3892 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3895 As they are architecture-independent.
3899 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3903 by Linux commit v4.11-rc1~94^2~43^2.
3911 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3915 include/uapi/linux/v4l2-controls.h. A few notes:
3916 - V4L2_CID_CHROMA_GAIN and V4L2_CID_COLORFX_CBCR moved in accordance
3918 - V4L2_CID_WHITENESS is removed as it has the same value as
3920 - V4L2_CID_PRIVATE_BASE is removed.
3921 - V4L2_CID_HCENTER and V4L2_CID_VCENTER that were removed by Linux
3922 commit v3.9-rc1~93^2~237, are retained for historical reasons.
3926 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3929 As those are architecture-independant. Also note that the xlat
3930 is sorted.
3934 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3938 introduced by Linux commit v3.7-rc1~101^2^2~322.
3940 v3.15-rc1~85^2~192.
3942 v3.17-rc1~112^2~340.
3944 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3953 v4.17-rc1~148^2~156^2~3^2~1.
3956 2018-05-06 Eugene Syromyatnikov <evgsyr@gmail.com>
3960 by Linux commit v4.17-rc1~143^2~60.
3964 by Linux commit v4.17-rc1~148^2~379^2~3.
3968 introduced by Linux commit v4.17-rc1~148^2~191^2~2.
3970 v4.17-rc1~96^2~9.
3972 xlat: add SPARC ADI-related SIGSEGV codes.
3974 constants, introduced by Linux commit v4.17-rc1~147^2~4^2~10.
3978 v4.17-rc1~147^2~4^2~1.
3980 2018-05-05 Dmitry V. Levin <ldv@altlinux.org>
3982 build: rewrite libdw detection without pkg-config.
3983 pkg-config expected to be more convenient way to configure libdw,
3987 * ci/install-dependencies.sh (common_packages): Remove pkg-config.
3988 (STACKTRACE == "libdw"): Do not install libz-dev and liblzma-dev.
3989 * debian/control (Build-Depends): Remove pkg-config.
3990 * m4/st_libdw.m4 (st_ARG_LIBDW, st_LIBDW): Rewrite without pkg-config.
3992 2018-05-04 Dmitry V. Levin <ldv@altlinux.org>
3998 * ci/install-dependencies.sh (common_packages): Remove libdw-dev.
3999 Install libdw-dev or libunwind8-dev depending on $STACKTRACE.
4000 * ci/run-build-and-tests.sh: Specify --with-libdw=yes,
4001 --with-libunwind=yes, or --without-stacktrace depending on $STACKTRACE.
4002 * .gitlab-ci.yml (gcc-x86_64): Rename to gcc-x86_64-libdw,
4004 (gcc-x86): Rename to gcc-x86-nounwind, add STACKTRACE=no.
4005 (clang-x86_64): Rename to clang-x86_64-libdw, add STACKTRACE=libdw.
4006 (clang-x86): Rename to clang-x86-nounwind, add STACKTRACE=no.
4007 (gcc-x86_64-libunwind, gcc-x86_64-nounwind, gcc-x86-nounwind,
4008 clang-x86_64-libunwind, clang-x86_64-nounwind, clang-x86-nounwind):
4011 entries except musl-gcc, add STACKTRACE=no to other matrix entries,
4014 2018-05-04 Eugene Syromyatnikov <evgsyr@gmail.com>
4019 v3.14-rc1~94^2~349.
4030 (ADJ_OFFSET_SINGLESHOT): Move to the second place.
4032 2018-05-04 Dmitry V. Levin <ldv@altlinux.org>
4035 Do not call mmap_cache functions until mmap_cache_enable is invoked.
4051 with tcp->mmap_cache->free_fn.
4053 2018-05-03 Dmitry V. Levin <ldv@altlinux.org>
4056 This function is no longer used and could be removed.
4061 2018-05-03 Masatake YAMATO <yamato@redhat.com>
4063 unwind-libdw: use the mmap_notify subsystem.
4065 unwind-libdw as backend. unwind-libdw doesn't need the full set of the
4075 (2) Make unwind-libunwind use the mmap_cache subsystem directly.
4077 (3) Make unwind-libdw use the mmap_notify subsystem to know when it
4081 Here is a subsystem structure that this patch
4084 +-------------------------------------+
4086 +------------------+------------------+
4087 | unwind-libunwind | unwind-libdw |
4088 +------------------+------------------+
4090 +------------------+ |
4092 +-------------------------------------+
4094 +-------------------------------------+
4103 * unwind-libdw.c: Include "mmap_notify.h" instead of "mmap_cache.h".
4105 of memory mapping that is cached by dwfl_linux_proc_report
4115 only if the data is stale.
4118 * unwind-libunwind.c (init): Enable the mmap_cache subsystem.
4124 2018-05-03 Masatake YAMATO <yamato@redhat.com>
4126 unwind-libdw: introduce indirect data structure for storing unwinding context
4127 unwind-libdw uses Dwfl as the data structure for storing unwinding
4128 context. It is raw data that come from libdw.
4131 unwind-libdw to attach strace side data to the unwinding context.
4133 * unwind-libdw.c (struct ctx): New struct definition.
4137 2018-05-03 Masatake YAMATO <yamato@redhat.com>
4146 the mmap_notify subsystem, mmap_cache_invalidate is specified
4154 2018-05-03 Masatake YAMATO <yamato@redhat.com>
4157 This subsystem is a spin-off of the mmap_cache subsystem.
4162 mmap_notify is a subsystem specialized to provide feature (2).
4163 unwind-libdw itself has the feature (1). It needs only (2).
4169 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4177 Fixes: v4.22-76-gf766447 "btrfs: use PRINT_FIELD_*"
4179 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4187 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4193 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4198 * util.c (dumpstr): Check that len is sane.
4200 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4202 mmap_cache: fool-proofing build_mmap_cache.
4203 Let's try to handle better the situation when build_mmap_cache is called
4208 * mmap_cache.c (build_mmap_cache): Set cache_head to tcp->mmap_cache.
4209 Reset tcp->mmap_cache_size to 0.
4211 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4215 return, so the only practical effect of this change is appeasement
4223 2018-05-03 Eugene Syromyatnikov <evgsyr@gmail.com>
4231 2018-05-03 Dmitry V. Levin <ldv@altlinux.org>
4235 kernel bug any longer, there is a room for cleanup.
4244 2018-05-03 Zhibin Li <08826794brmt@gmail.com>
4253 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4255 2018-05-03 Dmitry V. Levin <ldv@altlinux.org>
4266 2018-05-02 Masatake YAMATO <yamato@redhat.com>
4272 anon_inode:kvm-vcpu:0
4276 anon_inode:kvm-vcpu
4287 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4290 For each constant that is accompanied by a fallback definition,
4301 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
4303 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4306 Linux kernel commit v2.6.32-rc7~23 has changed values of F_SETOWN_EX
4307 and F_GETOWN_EX constants introduced by commit v2.6.32-rc1~96 to fix
4310 Looks like the best way to handle this situation is to pretend that
4315 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4325 to -2, -3, and -4, respectively.
4327 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4331 commits v2.6.33~17^2~2 and v4.1-rc1~150^2~1^10~6, respectively.
4336 by Linux kernel commit v3.16-rc1~30^2~6^2~1^2~7.
4345 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4348 Linux kernel commit v4.9-rc8~12^2 has changed the value of KEY_DATA
4349 constant introduced by commit v4.7-rc6~32^2~6^2 because the old value
4352 Looks like the best way to handle this situation is to pretend that
4357 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4360 Linux kernel commit v3.15-rc1~18^2~1 has changed the value
4361 of AUDIT_FEATURE_CHANGE constant introduced by commit v3.13-rc1~19^2~20
4362 which is of course an ABI breakage that affected 3.13 and 3.14 kernel
4365 Linux kernel commit v3.15-rc1~18^2~1 also claims that the old value
4370 Looks like the best way to handle this situation is to pretend that
4375 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
4377 2018-04-29 Dmitry V. Levin <ldv@altlinux.org>
4386 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4389 On these architectures, SOL_SOCKET is 0xffff and not 1.
4394 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4396 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4399 * tests/gen_tests.in (mount, mount-Xabbrev, mount-Xraw, mount-Xverbose):
4400 Add -a33 option.
4403 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4405 2018-04-28 Dmitry V. Levin <ldv@altlinux.org>
4410 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4413 * tests/mount-Xabbrev.c: New file.
4414 * tests/mount-Xraw.c: Likewise.
4415 * tests/mount-Xverbose.c: Likewise.
4417 * tests/pure_executables.list: Add mount-Xabbrev, mount-Xraw,
4418 and mount-Xverbose.
4420 * tests/gen_tests.in (mount-Xabbrev, mount-Xraw, mount-Xverbose): New
4424 * tests/old_mmap-Xabbrev.c: New file.
4425 * tests/old_mmap-Xraw.c: Likewise.
4426 * tests/old_mmap-Xverbose.c: Likewise.
4429 * tests/pure_executables.list: Add old_mmap-Xabbrev, old_mmap-Xraw,
4430 and old_mmap-Xverbose.
4432 * tests/gen_tests.in (old_mmap-Xabbrev, old_mmap-Xraw,
4433 old_mmap-Xverbose): New tests.
4435 2018-04-28 Eugene Syromyatnikov <evgsyr@gmail.com>
4440 * tests/mmap-Xabbrev.c: New file.
4441 * tests/mmap-Xraw.c: Likewise.
4442 * tests/mmap-Xverbose.c: Likewise.
4443 * tests/mmap64-Xabbrev.c: Likewise.
4444 * tests/mmap64-Xraw.c: Likewise.
4445 * tests/mmap64-Xverbose.c: Likewise.
4451 * tests/pure_executables.list: Add mmap-Xabbrev, mmap-Xraw,
4452 mmap-Xverbose, mmap64-Xabbrev, mmap64-Xraw, and mmap64-Xverbose.
4454 * tests/gen_tests.in (mmap-Xabbrev, mmap-Xraw, mmap-Xverbose,
4455 mmap64-Xabbrev, mmap64-Xraw, mmap64-Xverbose): New tests.
4457 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4459 2018-04-27 Dmitry V. Levin <ldv@altlinux.org>
4466 2018-04-27 Dmitry V. Levin <ldv@altlinux.org>
4468 build: try to use _Static_assert if static_assert is not available.
4470 is not available.
4474 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4480 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4483 It is no longer used.
4488 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4490 Switch to use of value-indexed xlats for evdev constants.
4520 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4530 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4532 Add support for value-indexed xlats.
4547 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4561 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4569 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4577 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4585 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4593 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4604 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4613 2018-04-27 Eugene Syromyatnikov <evgsyr@gmail.com>
4622 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4624 2018-04-26 Eugene Syromyatnikov <evgsyr@gmail.com>
4626 strace.1.in: fix typo (Ronald -> Roland)
4629 NEWS: mention that -X option addresses Debian bug #692915.
4631 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
4639 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
4652 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
4654 xlat: provide fallback definitions for arch-independent evdev constants.
4668 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4670 2018-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
4674 SW_RFKILL_ALL and marked as deprecated by Linux commit v2.6.26-rc5~32^2.
4677 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4686 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4689 Run coverage check first as it is the longest one.
4693 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4697 by Linux commit v4.11-rc1~82^2~7.
4699 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4707 2018-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
4715 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4765 of non-abbreviated output.
4768 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4780 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4794 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4800 for holding non-zero value.
4803 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4812 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4821 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4827 BTRFS_IOC_SUBVOL_CREATE_V2 ioctl call that is supposed to be successful.
4829 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4841 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4857 of non-abbreviated output.
4859 of non-abbreviated output.
4861 of non-abbreviated output.
4863 clone_sources field name only in case of non-abbreviated output.
4865 spaces field name only in case of non-abbreviated output.
4885 * tests/btrfs-X.test: New test.
4886 * tests/btrfs-vX.test: Likewise.
4887 * tests/btrfs-vwX.test: Likewise.
4888 * tests/btrfs-wX.test: Likewise.
4908 (main): Handle -X option.
4910 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4912 tests: check -X option syntax.
4913 * tests/options-syntax.test: Add checks for -X option with invalid
4916 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4918 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4921 * strace.c (init): Handle -X option, set xlat_verbosity
4922 according to -X argument.
4923 * strace.1.in: Document -X option.
4927 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
4929 2018-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
4945 2018-04-20 Dmitry V. Levin <ldv@altlinux.org>
4951 * copyright-year-gen: Likewise. When $SOURCE_DATE_EPOCH is non-empty,
4956 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4959 There is no need to call unwind_tcb_init before the tracee is attached.
4965 * unwind.c (unwind_tcb_fin): Skip if tcp->unwind_queue is NULL.
4967 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4969 strace: move setting of post-attach flags inside after_successful_attach
4971 Set TCB_ATTACHED, TCB_STARTUP, and "flags" in tcp->flags.
4974 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4977 This function is going to be used for other things that have to be done
4983 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4986 * unwind-libdw.c (tcb_init): Do not pass trailing "\n" to error_msg
4989 2018-04-19 Dmitry V. Levin <ldv@altlinux.org>
4992 * file-date-gen: Consistently print the UTC date in C locale.
4993 When $SOURCE_DATE_EPOCH is non-empty, use it as fallback date
4996 Reported-by: Chris Lamb <lamby@debian.org>
4997 Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896016
5000 2018-04-19 Masatake YAMATO <yamato@redhat.com>
5002 unwind: initialize unwind context only if given tcb is initialized.
5004 when -p is passed before -k:
5006 $ ./strace -p 1 -k
5011 It seems that commit 54c7792b, "Fix libunwind segfault when -p is
5012 passed before -k" doesn't fix the original issue.
5015 if given tcb is initialized.
5017 2018-04-12 Dmitry V. Levin <ldv@altlinux.org>
5028 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5033 v4.15-rc1~84^2~605^2~3 and v4.16-rc1~123^2~145^2~5^2~8, respectively.
5041 the rest of the structure if len is less than the offset of the end
5048 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5051 As the value of -1 has a special meaning. The issue is complicated
5052 by the fact that this constant is not exported by UAPI.
5058 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5063 instead of tcp->u_error mangling around umove_or_printaddr call.
5077 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5086 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5089 For those cases where inadvertent sign extension is possible.
5093 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5103 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5111 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5123 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5129 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5151 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5157 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5160 We cannot simply use print_xlat as PR_SET_PTRACER_ANY is defined
5166 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5182 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5194 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5200 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5204 provided, print_xlat is a thin wrapper around print_xlat_ex that passes
5211 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5213 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5216 This will be needed later, with the introduction of user-configurable
5230 2018-04-12 Eugene Syromyatnikov <evgsyr@gmail.com>
5257 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5260 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5263 Recent kernel siginfo changes, namely, v4.14-rc1~60^2^2~1,
5264 v4.16-rc1~159^2~37, and v4.16-rc1~159^2~39, introduced ABI regressions
5267 Looks like the kernel side is not eager to fix the breakage,
5268 so here is a workaround.
5280 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5283 * strace.1.in (.SH OPTIONS) <.B \-k>: Remove " (experimental)".
5286 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5290 This change enables -k option on all architectures.
5292 * debian/control (Build-Depends) [!amd64]: Add pkg-config, libdw-dev,
5293 and libiberty-dev.
5297 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5299 Use libdw-based unwinder in ci and packages.
5300 * ci/install-dependencies.sh (common_packages): Add pkg-config,
5301 replace libunwind8-dev with libdw-dev.
5302 * debian/control (Build-Depends) [amd64]: Add pkg-config,
5303 replace libunwind-dev with libdw-dev.
5304 * debian/rules (build-udeb/Makefile): Replace --without-libunwind
5305 with --without-stacktrace.
5307 to buildrequires_stacktrace, replace libunwind-devel with
5308 either elfutils-devel or libdw-devel.
5310 tests: skip -k tests on unsupported architectures.
5311 * tests/strace-k.test: When actual strace -k output doesn't match the
5315 2018-04-11 Masatake YAMATO <yamato@redhat.com>
5318 Implement alternative libdw-based unwinder for stack tracing.
5319 Add --with-libdw configure option to control whether libdw can be used
5326 * unwind-libdw.c: New file.
5327 * Makefile.am [USE_LIBDW] (strace_SOURCES): Append unwind-libdw.c.
5336 Co-Authored-by: Mark Wielaard <mjw@redhat.com>
5337 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5339 2018-04-11 Dmitry V. Levin <ldv@altlinux.org>
5343 a tail-allocated udev_monitor_netlink_header object and pass it
5348 2018-04-11 Harsha Sharma <harshasharmaiitr@gmail.com>
5356 2018-04-11 Harsha Sharma <harshasharmaiitr@gmail.com>
5365 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5367 2018-04-11 Harsha Sharma <harshasharmaiitr@gmail.com>
5375 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5377 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5380 BPF_PROG_QUERY was introduced in Linux commit v4.15-rc1~84^2~558^2~6.
5396 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5406 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5410 that always print 64 bits of addr (as this is needed in bpf and btrfs
5430 2018-04-10 Eugene Syromyatnikov <evgsyr@gmail.com>
5442 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5444 2018-04-08 Dmitry V. Levin <ldv@altlinux.org>
5447 Introduce --enable-stacktrace configure option to control whether
5448 -k option support is compiled in, --with-libunwind option remains
5459 * strace.1.in: Replace libunwind with an unwinder-agnostic wording.
5462 (print_version): Print stack-trace instead of stack-unwind.
5466 * tests/strace-V.test: Update expected output.
5468 2018-04-08 Eugene Syromyatnikov <evgsyr@gmail.com>
5472 of prog_name (introduced in Linux commit v4.15-rc1~84^2~605^2~4) and
5473 prog_ifindex (introduced as prog_target_ifindex in v4.15-rc1~84^2~127^2~13,
5474 renamed in v4.15-rc1~15^2~5^2~3^2~7).
5476 [BPF_OBJ_NAME_LEN]: Check that BPF_OBJ_NAME_LEN is equal to 16.
5485 2018-04-08 Eugene Syromyatnikov <evgsyr@gmail.com>
5491 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5493 2018-04-07 Dmitry V. Levin <ldv@altlinux.org>
5495 tests: robustify strace -k tests.
5499 * tests/strace-k.expected: New file.
5500 * tests/strace-k-demangle.expected: Likewise.
5502 * tests/strace-k-demangle.test (expected): Remove.
5503 * tests/strace-k.test: Likewise. Use grep to check the output.
5505 2018-04-07 Eugene Syromyatnikov <evgsyr@gmail.com>
5513 2018-04-05 Dmitry V. Levin <ldv@altlinux.org>
5519 * debian/control (Build-Depends) [ppc64el, s390x]: Add gcc-multilib.
5521 Post-release administrivia.
5523 * debian/changelog.in: Add a changelog entry for 4.22-1.
5533 2018-04-05 Eugene Syromyatnikov <evgsyr@gmail.com>
5537 2018-04-05 Masatake YAMATO <yamato@redhat.com>
5539 unwind: split unwind code into front-end and back-end.
5540 This opens the way for alternative unwinder back-ends.
5542 * unwind.h: New file, defines the unwinder back-end interface.
5544 * unwind-libunwind.c: ... here.
5546 and unwind-libunwind.c.
5548 2018-04-05 Masatake YAMATO <yamato@redhat.com>
5550 unwind: rename public functions in an object-oriented fashion.
5555 functions. One is for manipulating back-end itself, "unwind_" prefix
5556 is used for this type. Another is for manipulating back-end private data
5557 structure (unwind_ctx) attached to tcb, "unwind_tcb_" is used for this
5561 and the relation between unwind subsystem and back-ends.
5569 2018-04-05 Masatake YAMATO <yamato@redhat.com>
5581 2018-04-05 Masatake YAMATO <yamato@redhat.com>
5585 libunwind is needed to utilize libdw of elfutils as an alternative
5593 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5595 tests: robustify options-syntax.test against ash.
5596 * tests/options-syntax.test: Do not assume that shell provides $UID,
5597 use "id -u" if it doesn't.
5599 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5603 (init): Handle -A option.
5604 (strace_fopen): Open file in "a" mode if open_append is set to true.
5608 Suggested-by: Philipp Marek <philipp.marek@emerion.com>
5609 Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528488
5611 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5613 strace.c: support simultaneous usage of -r and -t options.
5614 * strace.c (init): Do not set tflag when rflag is set.
5618 * tests/options-syntax.test: Remove the check for
5619 "-tt has no effect with -r" warning.
5622 Suggested-by: Josh Triplett <josh@freedesktop.org>
5623 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5624 Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466195
5626 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5628 syscall.c: dump write I/O even if error is returned.
5634 * tests/read-write.c: Add a check for this behaviour.
5635 * tests/pread64-pwrite64.c: Update expected output.
5638 Suggested-by: J. Bruce Fields <bfields@fieldses.org>
5639 Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=436284
5641 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5652 * ci/install-dependencies.sh (common_packages): Add faketime.
5654 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5657 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5660 There is no reason to check for auxstr being non-NULL
5663 * sched.c (SYS_FUNC(sched_getscheduler)): Do not check tcp->auxstr,
5667 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5672 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5674 strace.1.in: fix formatting of -e trace class descriptions.
5675 Use .TP instead .PP as it is ought to be.
5677 * strace.1.in (.SS Filtering): Use .TP instead .PP as it is ought to be.
5679 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5685 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5687 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5692 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5697 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5700 Since pointers stored in the bpf_attr union are 64-bit regardless
5709 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5711 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5714 These were introduced by Linux commit v4.15-rc1~84^2~384^2~4.
5724 printing the rest of attributes if it is less than offset of the
5729 printing the rest of attributes if it is less than offset of the
5735 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5737 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5740 The aim of this change is to introduce an ability to perform multiple
5742 related data is stored in check descriptor, and test_bpf iterates over
5744 (specifically, the way bpf_attr_data union is defined).
5770 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5772 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5777 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5785 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5787 print_fields.h: check whether passed field is an array in PRINT_FIELD_CSTRING
5789 value in order to check whether (where_).field_ is an array in compile
5794 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5807 (bpf_attr_data): New union. Note that it is larger than modern
5849 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5861 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5875 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5878 This is needed at least for bpf, btrfs, and sg_io, as 32-bit tracer
5879 cannot figure out whether the kernel is 32-bit or 64-bit,
5902 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
5904 2018-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
5912 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5917 the message specified as the second argument of static_assert.
5920 define HAVE_STATIC_ASSERT if it is available.
5924 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5935 2018-04-04 Dmitry V. Levin <ldv@altlinux.org>
5944 2018-04-03 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
5948 of kvm-capable architectures.
5954 2018-04-03 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
5973 Update workaround for media/v4l2-common.h file.
5976 2018-04-01 Eugene Syromyatnikov <evgsyr@gmail.com>
5984 2018-04-01 Eugene Syromyatnikov <evgsyr@gmail.com>
5993 2018-04-01 Eugene Syromyatnikov <evgsyr@gmail.com>
6001 non-zeroeness flags check.
6004 2018-04-01 Dmitry V. Levin <ldv@altlinux.org>
6008 the world and translate something to the language of their choice.
6012 i18n-aware tools, e.g.
6014 $ LANG=es_ES strace -qq -a38 -P /missing unlink /missing
6015 unlink("/missing") = -1 ENOENT (No existe el fichero o el directorio)
6023 2018-03-29 Dmitry V. Levin <ldv@altlinux.org>
6031 2018-03-29 Dmitry V. Levin <ldv@altlinux.org>
6035 always print non-error syscall return codes as unsigned.
6045 * tests/inject-nf.c (main): Update expected output.
6047 2018-03-29 Dmitry V. Levin <ldv@altlinux.org>
6050 * tests/qual_inject-syntax.test: Check for negative delay injection
6053 2018-03-29 Eugene Syromyatnikov <evgsyr@gmail.com>
6070 tcp->u_rval as int if current_klongsize < sizeof(tcp->u_rval).
6071 * tests/inject-nf.c (main): Update.
6072 * tests/inject-nf.test: Test injection of negative return values.
6073 * tests/qual_inject-syntax.test: Remove retval=-1 check as it is now
6076 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6078 2018-03-28 Dmitry V. Levin <ldv@altlinux.org>
6091 2018-03-28 Dmitry V. Levin <ldv@altlinux.org>
6096 injection mechanism is activated.
6109 2018-03-27 Dmitry V. Levin <ldv@altlinux.org>
6114 Complements: v4.21-108-gba8e768 ("Implement delay injection")
6116 2018-03-27 Eugene Syromyatnikov <evgsyr@gmail.com>
6119 * xlat/mmap_flags.in (_MAP_NEW): Remove SunOS-specific comment, add
6120 a comment that this is a SPARC-specific constant (from
6122 (MAP_GROWSUP): IA-64-specific constant (from
6124 (MAP_INHERIT): Add a comment that this is a SPARC-specific constant
6126 (_MAP_INHERIT): Add a comment that this is an Alpha-specific constant
6128 (MAP_ANON): Remove, FreeBSD-specific constant.
6130 (_MAP_HASSEMAPHORE): ...this, add a comment that this is an
6131 Alpha-specific constant (from arch/alpha/include/uapi/asm/mman.h).
6133 (MAP_AUTOGROW, MAP_AUTORSRV, MAP_LOCAL): Add a comment that this is
6134 an architecture-specific constant (from
6136 (_MAP_UNALIGNED): Add a comment that this is an Alpha-specific constant
6139 2018-03-27 Eugene Syromyatnikov <evgsyr@gmail.com>
6143 * tests/kern_features-fault.test: New test.
6145 * tests/Makefile.am (DECODER_TESTS): Add kern_features-fault.test.
6149 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6151 2018-03-27 Eugene Syromyatnikov <evgsyr@gmail.com>
6162 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6164 2018-03-27 Dmitry V. Levin <ldv@altlinux.org>
6166 evdev: move mpers-specific parsers to a separate file.
6171 * evdev.c (evdev_ioctl): Un-mpersify.
6178 2018-03-26 Eugene Syromyatnikov <evgsyr@gmail.com>
6180 ci: install libunwind8-dev.
6181 While in debian/control we use libunwind-dev in Build-Depends, in case
6185 * ci/install-dependencies.sh (common_packages): Add libunwind8-dev.
6187 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6189 2018-03-23 Eugene Syromyatnikov <evgsyr@gmail.com>
6192 * tests/inject-nf.c: New file.
6193 * tests/inject-nf.test: New test.
6194 * tests/.gitignore: Add inject-nf.
6196 (MISC_TESTS): Add inject-nf.test.
6198 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6200 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6203 Unfortunately, syscall(3) provided by libc is too smart
6237 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6242 $ sh -uc '. tests/init.sh; kernel_version_code 4.5'
6247 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6250 Do not unblock the delay signal handler unless the delay timer is armed.
6263 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6276 2018-03-23 Dmitry V. Levin <ldv@altlinux.org>
6280 is already created and its signal handler is going to be unblocked.
6285 Optimizes: v4.21-108-gba8e768 ("Implement delay injection")
6287 2018-03-22 Eugene Syromyatnikov <evgsyr@gmail.com>
6292 them error-prone.
6300 2018-03-22 Eugene Syromyatnikov <evgsyr@gmail.com>
6305 2018-03-22 Elvira Khabirova <lineprinter@altlinux.org>
6315 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6317 2018-03-22 Elvira Khabirova <lineprinter@altlinux.org>
6320 Add -e inject=SET:delay_enter= and -e inject=SET:delay_exit= options.
6322 * configure.ac (AC_SEARCH_LIBS): Check for timer_create -lrt.
6344 INJECT_F_DELAY_ENTER injection flag is set, set TCB_INJECT_DELAY_EXIT
6345 flag if INJECT_F_DELAY_EXIT injection flag is set.
6353 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6355 2018-03-22 Dmitry V. Levin <ldv@altlinux.org>
6365 2018-03-21 Eugene Syromyatnikov <evgsyr@gmail.com>
6372 fields if their size is less than the initially introduced (in Linux
6373 commit v3.18-rc1~52^2~1^2~7) version. Print fields of union bpf_attr
6374 introduced in various kernel versions when the length is big enough
6375 (new fields were introduced in Linux commits v3.18-rc1~52^2~1^2~4,
6376 v4.1-rc1~84^2~50, and v4.12-rc2~34^2~29^2~2).
6379 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6381 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6383 btrfs: print struct btrfs_ioctl_logical_ino_args.reserved if non-zero.
6385 struct btrfs_ioctl_logical_ino_args.reserved field if it is not zero.
6388 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6390 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6399 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6401 2018-03-20 Dmitry V. Levin <ldv@altlinux.org>
6403 mpers.m4: enhance workaround for missing gnu/stubs-*.h files.
6409 Complements: v4.11~223 ("mpers.m4: workaround missing gnu/stubs-*.h files")
6411 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6417 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6419 2018-03-20 Eugene Syromyatnikov <evgsyr@gmail.com>
6421 INSTALL-git.md: enhance phrasing.
6422 * INSTALL-git.md: Enhance phrasing.
6424 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6426 2018-03-20 Dmitry V. Levin <ldv@altlinux.org>
6432 Fixes: v4.21-93-g4bb8454 ("Move README to dist subdirectory")
6434 2018-03-20 Dmitry V. Levin <ldv@altlinux.org>
6437 This is required to implement more precise time measurements.
6465 2018-03-20 Dmitry V. Levin <ldv@altlinux.org>
6467 Fix -O option handling.
6469 nowadays, making -O option almost useless.
6475 2018-03-16 Dmitry V. Levin <ldv@altlinux.org>
6488 2018-03-16 Dmitry V. Levin <ldv@altlinux.org>
6491 This file comes from GNU Autoconf and is used to generate INSTALL file.
6496 2018-03-16 Eugene Syromyatnikov <evgsyr@gmail.com>
6499 * README-hacking (Requirements): Enhance phrasing.
6504 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6506 2018-03-16 Eugene Syromyatnikov <evgsyr@gmail.com>
6518 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6521 2018-03-15 Eugene Syromyatnikov <evgsyr@gmail.com>
6526 2018-03-15 Eugene Syromyatnikov <evgsyr@gmail.com>
6530 infinite timeout, so no need to handle BSD-specific INFTIM.
6534 2018-03-14 Dmitry V. Levin <ldv@altlinux.org>
6536 build: do not hardcode -lrt.
6537 Depending on libc implementation, various -lrt functions can be
6538 implemented either in -lc or in -lrt. For example, starting with
6539 glibc-2.17 the clock_* suite of functions is available directly in -lc.
6542 by -lrt or by the main C library, do not link with -lrt unnecessarily.
6544 This change affects only tests yet, but this is going to be
6548 in -lrt.
6550 * tests/Makefile.am (mq_LDADD): Replace -lrt with $(mq_LIBS).
6551 (threads_execve_LDADD, times_LDADD): Replace -lrt with $(clock_LIBS).
6553 2018-03-14 Dmitry V. Levin <ldv@altlinux.org>
6555 tests: do not link with -lrt unnecessarily.
6556 * tests/Makefile.am (attach_f_p_LDADD): Remove -lrt.
6560 2018-03-13 Dmitry V. Levin <ldv@altlinux.org>
6589 while [ ! -s pid2tcb.wait ]; do sleep 0.1; done; \
6590 time -f '%Uuser %Ssystem %eelapsed %PCPU' \
6591 ../strace -qq -enone -esignal=none -f -p $!
6595 while [ ! -s pid2tcb.wait ]; do sleep 0.1; done; \
6596 time -f '%Uuser %Ssystem %eelapsed %PCPU' \
6597 ../strace -qq -enone -esignal=none -f -p $!
6600 2018-03-13 Dmitry V. Levin <ldv@altlinux.org>
6603 It is by no means an experimental code.
6608 2018-03-13 Dmitry V. Levin <ldv@altlinux.org>
6615 * ci/install-dependencies.sh (clone_repo): Use local server by default.
6616 (musl-gcc): Un-hardcode the location of musl repository.
6618 2018-03-13 Dmitry V. Levin <ldv@altlinux.org>
6621 * ci/install-dependencies.sh (clone_repo): New function.
6625 * ci/run-build-and-tests.sh: Include $CC -dumpspecs output in addition
6628 ci: rename travis-build.sh and travis-install.sh scripts.
6629 * travis-build.sh: Rename to ci/run-build-and-tests.sh, all callers
6631 * travis-install.sh: Rename to ci/install-dependencies.sh, all callers
6634 tests: extend ioctl.test libc protection to -y output.
6636 descriptor arguments to -y output.
6638 2018-03-12 Harsha Sharma <harshasharmaiitr@gmail.com>
6645 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6655 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6658 The side effect of #include "xlat/nl_netfilter_msg_types.h" is
6661 netlink_netfilter.c is going to need them soon.
6667 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6684 2018-03-11 Chen Jingpiao <chenjingpiao@gmail.com>
6687 NFNL_SUBSYS_COUNT is not a symbol with some constant value, it changes
6692 2018-03-10 Dmitry V. Levin <ldv@altlinux.org>
6698 2018-03-09 Eugene Syromyatnikov <evgsyr@gmail.com>
6704 2018-03-09 Dmitry V. Levin <ldv@altlinux.org>
6720 2018-03-09 Eugene Syromyatnikov <evgsyr@gmail.com>
6728 2018-03-09 Eugene Syromyatnikov <evgsyr@gmail.com>
6733 2018-03-08 Dmitry V. Levin <ldv@altlinux.org>
6735 xlat: provide fallback definitions for arch-independent mmap flags.
6736 This is important for recently introduced MAP_SHARED_VALIDATE flag.
6741 Fixes: v4.21-67-g8c209d1 ("tests: fix remap_file_pages.test breakage on hppa")
6743 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6750 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6753 Apparently, hppa is the only architecture that has MAP_TYPE
6762 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6775 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6777 2018-03-07 Eugene Syromyatnikov <evgsyr@gmail.com>
6780 It is quite unwieldy to have this distinction between sorted and
6794 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6796 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6802 Reported-by: Mike Parker
6805 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6807 strace.1.in: mention that -c suppresses regular output.
6808 As the note that -C makes strace "also print regular output" can be
6811 * strace.1.in (.SS Statistics) <.TP .B \-c>: Mention that -c supresses
6814 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6818 Linux commit v4.7-rc1~40^2~6.
6826 by Linux commit v4.15-rc1~84^2~558^2~7.
6830 by Linux commit v4.15-rc1~84^2~427^2~4.
6834 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6837 When built with --enable-gcc-Werror, s390_sthyi test build fails
6840 s390_sthyi.c:63:1: error: ‘print_u8’ defined but not used [-Werror=unused-function]
6845 values landed under verbose printing, so this function is no longer
6846 used in non-verbose mode. Let's avoid this in the future by inlining
6854 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6857 The field has been introduced in Linux commit v4.15-rc1~135^2~17.
6866 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6876 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6879 Sometimes, 64-bit value is expected to be interpreted as an address
6887 printaddr. printnum_addr_int64 is not used outside the cases where
6888 kernel_long is less or equal than 64 bit currently, so this change
6891 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6894 These commands were introduced in Linux commit v4.15-rc1~110^2~9.
6905 2018-03-06 Eugene Syromyatnikov <evgsyr@gmail.com>
6918 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
6920 2018-03-06 Dmitry V. Levin <ldv@altlinux.org>
6922 build: prepare for -Wimplicit-fallthrough=5.
6938 * m4/st_warn_cflags.m4 (gl_WARN_ADD): Add -Wimplicit-fallthrough=5.
6942 2018-03-05 Eugene Syromyatnikov <evgsyr@gmail.com>
6944 xlat: add eBPF-based device controller constants.
6947 v4.15-rc1~84^2~120^2~2.
6953 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
6959 while read r; do [ -n "$r" ] &&
6960 sed -rn 's/^#define[[:space:]]+('$r'[[:space:]]+[^[:space:]]+).*/\1/p' \
6961 ~/dev/linux/include/uapi/linux/input-event-codes.h || echo;
6963 $ sort -s -n -k1,1 \
6966 | sed 's/^[0-9]* //' > xlat/evdev_keycode.in
6968 It also verifies that the values are sorted and bsearch-ready.
6972 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
6987 (BTN_STYLUS3): New constant, added in Linux commit v4.15-rc1~114^2^2~1.
6991 v4.16-rc1~54^2~67.
6992 (KEY_DATA): New constant, added in Linux commit v4.9-rc8~12^2.
6994 v4.12-rc1~126^2~2^12~5.
6997 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7002 from Linux commit v2.6.33-rc1~388^2~167^2~7.
7006 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7010 (SCTP_DELAYED_SACK): ...this, per Linux commit v2.6.38-rc2~33^2.
7012 v4.13-rc1~157^2~39.
7014 v4.15-rc1~84^2~567^2~3.
7016 v4.15-rc1~84^2~567^2~2.
7018 v4.16-rc1~123^2~384^2~11.
7021 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7024 As those are not architecture-specific.
7028 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7032 in Linux commit v4.16-rc1~123^2~355^2~2.
7033 (ETH_P_IBOE): New constant, introduced in commit v4.11-rc1~73^2~74.
7053 2018-03-02 Eugene Syromyatnikov <evgsyr@gmail.com>
7055 v4l2: v4l2_fourcc is endianness-agnostic.
7056 v4l2_fourcc(a, b, c, d) is defined as (a | (b << 8) | (c << 16) | (d << 24)
7057 regardless of endianness (no mnemonic on big-endian architectures),
7066 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7067 Fixes: v4.10~371 "Implement Video4Linux video-input ioctls decoder"
7069 2018-03-01 Dmitry V. Levin <ldv@altlinux.org>
7072 Starting with commit v4.21-37-g4f63bc70ca95012d72e288fc3c1eeb3ba26068a4,
7073 <stdbool.h> is included by tests.h, so all tests that already include
7090 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7092 tests: check printing of block/char device numbers in -yy mode.
7093 * tests/dev-yy.c: New file.
7094 * tests/pure_executables.list: Add dev-yy.
7096 * tests/gen_tests.in (dev-yy): New test.
7098 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7100 printfd: print character/block device number in -yy mode.
7107 * tests/fsync-y.c: Update expected output.
7111 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7113 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7118 * tests/fsync-y.c (main): Update expected output.
7121 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7127 the end of the quoted string is needed.
7145 * tests/fsync-y.c: Pass NULL as escape_chars argument of
7148 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7150 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7152 tests: check file name printing in strace -y mode.
7153 * tests/fsync-y.c: New file.
7154 * tests/.gitignore: Add fsync-y.
7156 * tests/gen_tests.in (fsync-y): New test.
7158 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7160 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7176 Do not go full octal if the next char is '8' or '9'
7183 character after octal-escaped one instead of the first one in the
7186 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7188 util.c: reduce indentation in non-hexadecimal case in string_quote.
7189 As it is already too deep there.
7194 2018-03-01 Eugene Syromyatnikov <evgsyr@gmail.com>
7200 2018-02-27 Dmitry V. Levin <ldv@altlinux.org>
7208 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7212 enumeration items introduced by linux kernel commit v4.16-rc1~123^2~259.
7219 constants introduced by linux kernel commits v4.13-rc1~205^2~27 and
7220 v4.16-rc1~164^2~8, respectively.
7225 xlat: provide fallback definitions for arch-independent poll event flags
7229 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7232 POLL_BUSY_LOOP was introduced by linux kernel commit v3.11-rc1~64^2~129
7233 as POLL_LL and then renamed in v3.11-rc1~64^2~9. POLLRDHUP was
7234 introduced by linux kernel commit v2.6.17-rc1~796. POLLMSG and
7236 kernel commit v3.3-rc5~8 for internal use only.
7242 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7244 xlat: add arch-specific si_codes constants.
7245 Based on Linux commits v4.16-rc1~159^2~17, v4.16-rc1~159^2~16,
7246 v4.16-rc1~159^2~15, and v4.16-rc1~159^2~14.
7259 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7264 v4.15-rc4~13^2~5^2~2 and v4.16-rc1~123^2~139^2~5.
7271 constants introduced by linux kernel commits v4.15-rc1~84^2~557,
7272 v4.15-rc1~84^2~133^2, v4.16-rc1~123^2~91, and v4.16-rc1~123^2~24^2.
7285 kernel commit v4.16-rc1~145^2~7.
7289 * tests/net-yy-inet.c: Generalise test.
7290 * tests/net-yy-inet6.c: New file.
7291 * tests/pure_executables.list: Add net-yy-inet6.
7293 * tests/gen_tests.in (net-yy-inet6): New entry.
7295 2018-02-27 Eugene Syromyatnikov <evgsyr@gmail.com>
7307 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
7310 There are rumors in circulation that some rpm-based distributions
7316 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
7324 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
7341 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7347 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7352 is needed.
7362 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7367 mmap_cache_delete is called separately from unwind_tcb_fin.
7372 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7382 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7386 cache. The found entry is then used for unwinding. However, a function
7390 This change re-factors the function; code for searching an entry is
7391 now defined as a stand-alone function named mmap_cache_search.
7399 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7421 2018-02-26 Masatake YAMATO <yamato@redhat.com>
7428 This change is one of the steps for the separation. It moves
7439 2018-02-25 Dmitry V. Levin <ldv@altlinux.org>
7441 debian: sync with 4.21-1 package.
7442 Versioned dependency on debhelper is not updated for backwards
7446 * debian/control (Build-Depends): Add dependency on libbluetooth-dev.
7447 (Standards-Version): Update to 4.1.3.
7448 (Vcs-Git, Vcs-Browser): Move from alioth to salsa.d.o.
7449 (strace, strace-udeb) <Architecture>: Change to linux-any.
7450 (strace64, strace-udeb) <Priority>: Change to optional.
7454 (build/Makefile, build-udeb/Makefile, build64/Makefile): Depend on it.
7455 (binary-arch): Use build64/strace.1 for strace64 subpackage.
7459 2018-02-24 Eugene Syromyatnikov <evgsyr@gmail.com>
7467 2018-02-24 Dmitry V. Levin <ldv@altlinux.org>
7470 As <inttypes.h> is included in files generated by mpers.awk to obtain
7477 2018-02-23 Dmitry V. Levin <ldv@altlinux.org>
7480 The old location of strace-devel mailing list is defunct, it used to
7483 The mailing list has been moved to strace-devel@lists.strace.io.
7491 * strace-log-merge.1.in (.SH REPORTING BUGS): Likewise.
7499 2018-02-21 Dmitry V. Levin <ldv@altlinux.org>
7502 When <sys/reg.h> is included after <linux/ptrace.h>, the build fails
7508 /usr/include/m68k-linux-gnu/sys/reg.h:26:3: error: expected identifier
7514 provided by <sys/reg.h> is x86_64, other three (m68k, tile, and x86)
7529 2018-02-15 Dmitry V. Levin <ldv@altlinux.org>
7532 https://sourceforge.net/p/strace/code/ is defunct: it doesn't accept
7542 2018-02-15 Dmitry V. Levin <ldv@altlinux.org>
7548 2018-02-14 Dmitry V. Levin <ldv@altlinux.org>
7550 Post-release administrivia.
7552 * debian/changelog.in: Add a changelog entry for 4.21-1.
7555 2018-02-13 Dmitry V. Levin <ldv@altlinux.org>
7560 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7564 error_msg_and_skip if rc is non-zero.
7566 2018-02-13 Dmitry V. Levin <ldv@altlinux.org>
7572 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7582 Suggested-by: Elvira Khabirova <lineprinter@altlinux.org>
7583 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7585 2018-02-13 Dmitry V. Levin <ldv@altlinux.org>
7599 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7601 tests: avoid ioctl_kvm_run test failure when built with gcc -O0.
7602 When built with -O0, gcc (rightfully) generates function prologue, which
7605 unfortunately, the latter is not available on x86 with older GCC.
7606 A trick suggested in [1] is used instead: assembly is moved
7616 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7618 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7626 2018-02-13 Eugene Syromyatnikov <evgsyr@gmail.com>
7632 v4.4-rc8~4^2~1.
7636 * tests/net-y-unix.c: Include accept_compat.h, use do_accept()
7638 * tests/net-yy-inet.c: Likewise.
7639 * tests/net-yy-unix.c: Likewise.
7642 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7644 debian: build strace-udeb separately.
7645 * debian/rules (extra_build_targets): Add build-udeb-stamp.
7646 (build-udeb/Makefile): New rule.
7647 (clean): Remove build-udeb.
7648 * debian/strace-udeb.install: Update.
7650 Fixes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826223
7652 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7654 Enable symbol demangling in deb- and rpm-driven builds.
7655 * debian/control (Build-Depends) [amd64]: Add libiberty-dev.
7656 * strace.spec.in (buildrequires_libunwind_devel): Add binutils-devel.
7658 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7660 debian: re-enable -k option on x86_64.
7663 * debian/control (Build-Depends) [amd64]: Add libunwind-dev.
7665 2018-02-12 Dmitry V. Levin <ldv@altlinux.org>
7667 Add "strace -V" output to build log.
7668 * strace.spec.in (%check): Print "strace -V" output before
7670 * debian/rules (%-stamp): Likewise.
7672 2018-02-12 Eugene Syromyatnikov <evgsyr@gmail.com>
7676 by linux kernel commit v4.16-rc1~93^2~72.
7680 by linux kernel commit v4.16-rc1~93^2~85.
7687 commits v4.16-rc1~93^2~70 and v4.16-rc1~93^2~69, respectively.
7693 2018-02-12 Eugene Syromyatnikov <evgsyr@gmail.com>
7695 linux/ia64: remove IA-32 mode support.
7696 There is no compat support in strace and there are no systems
7706 2018-02-12 Eugene Syromyatnikov <evgsyr@gmail.com>
7708 syscall.c: parse return code second time after injecting.
7713 return value tampering to re-initialise u_rval and u_error fields
7716 2018-02-11 Eugene Syromyatnikov <evgsyr@gmail.com>
7724 2018-02-11 Dmitry V. Levin <ldv@altlinux.org>
7741 2018-02-11 Dmitry V. Levin <ldv@altlinux.org>
7754 * tests/printpath-umovestr.c: Likewise.
7758 * tests/net-y-unix.c: Do not include <sys/param.h>.
7759 * tests/net-yy-unix.c: Likewise.
7761 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7770 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7774 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7777 Otherwise the auxstr is rather ugly at times.
7781 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7787 string_to_uint for rval parsing. Warn if retval is clipped in compat
7803 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7815 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
7817 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7910 syscall.c: set errno if syscall is tampered.
7912 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7914 tests/nsyscall-d.test: swap exp and log in diff calls.
7917 * tests/nsyscalls-d.test: swap arguments of match_diff calls.
7919 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7925 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7934 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7936 Handle very special __ARM_NR_-prefixed syscalls.
7953 2018-02-10 Eugene Syromyatnikov <evgsyr@gmail.com>
7956 syscall_name() is used only in printsiginfo.c:print_si_info currently,
7957 and is supplied with raw syscall number (that's why it has this ugly
7966 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
7978 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
7985 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
7987 Move shuffle_scno to arch-specific file.
8000 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8015 Looks like it is not necessary, after all.
8017 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8020 Since this is where get_error gets the return value from in the compat case.
8023 if tracee is in compat personality.
8025 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8027 Mark various arch-specific syscalls with SYSCALL_NEVER_FAILS.
8036 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8062 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8064 linux/x86_64/get_error.c: do not sign-extend if no error happened.
8066 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8069 If nohz_full is enabled, MEMBARRIER_CMD_GLOBAL is not available.
8074 2018-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
8082 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8084 2018-02-07 Eugene Syromyatnikov <evgsyr@gmail.com>
8091 of current_wordsize to determine the size of tcp->u_rval.
8095 …ttps://github.com/strace/strace-talks/blob/master/2012-ossdevconf-obninsk-strace_from_upstream_PoV…
8100 s/output has proven/output is proven/, s/In all cases/In most cases,/¸
8103 (.SS Output format) <-o>: de-italicize dot in "filename.pid", convert
8105 incompatibility of output piping with -ff mode.
8106 (.SS Output options) <-t>: s/time of day/wall clock time/.
8107 (.SS Statistics) <-c>: Remove "on Linux" mention, -F option mention.
8113 2018-02-07 Dmitry V. Levin <ldv@altlinux.org>
8115 tests: rewrite net-accept-connect.c without strncpy.
8116 gcc8 -Wall -Werror rejects our method of struct sockaddr_un.sun_path
8121 pre-calculated length and get rid of strncpy completely.
8123 * tests/net-accept-connect.c (main): Use memcpy to initialize sun_path.
8125 2018-02-06 Dmitry V. Levin <ldv@altlinux.org>
8142 * tests/gen_tests.in (openat): Add -a option.
8144 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
8146 2018-02-06 Dmitry V. Levin <ldv@altlinux.org>
8151 v4.15-rc1~84^2~387 and v4.15-rc1~84^2~339, respectively.
8156 commit v4.15-rc1~84^2~601.
8161 by linux kernel commits v4.15-rc1~71^2^2~23 and v4.15-rc1~71^2^2~12,
8165 2018-02-06 Eugene Syromyatnikov <evgsyr@gmail.com>
8167 tests: avoid triggering -Wstringop-truncation in ioctl_dm.c.
8173 Move large file-related wrappers to a separate header.
8178 2018-01-29 Dmitry V. Levin <ldv@altlinux.org>
8185 2018-01-29 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
8191 2018-01-29 Eugene Syromyatnikov <evgsyr@gmail.com>
8222 * tests/s390_guarded_storage-v.c: New file.
8224 * tests/.gitignore: Add s390_guarded_storage, s390_guarded_storage-v.
8226 * tests/gen_tests.in (s390_guarded_storage, s390_guarded_storage-v):
8243 * tests/s390_sthyi-v.c: New file.
8245 * tests/.gitignore: Add s390_sthyi, s390_sthyi-v.
8260 2018-01-29 Eugene Syromyatnikov <evgsyr@gmail.com>
8267 end if QUOTE_EMIT_COMMENT is passed.
8268 (print_quoted_string): Increase alloc_size by 7 if QUOTE_EMIT_COMMENT is
8271 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8274 As the remaining non-generated ioctl tests differ from ioctl.test only
8276 tests, replace the remaining non-generated ioctl tests with invocations
8280 * tests/gen_tests.in (ioctl_dm): New entry, invoke ioctl.test with -s9.
8281 (ioctl_dm-v): New entry, invoke ioctl.test with -v -s9.
8282 (ioctl_kvm_run): New entry, invoke ioctl.test with -a36 -y.
8283 (ioctl_loop-nv): New entry, invoke ioctl.test with -a22 -e verbose=none.
8284 (ioctl_nsfs): New entry, invoke ioctl.test with -esignal=none.
8285 (ioctl_sock_gifconf): New entry, invoke ioctl.test with -a28 -s1.
8286 (ioctl_evdev-v, ioctl_loop-v, ioctl_rtc-v): Invoke ioctl.test
8287 with -v option instead of ioctl-v.sh.
8288 * tests/ioctl_dm-v.test: Remove.
8291 * tests/ioctl_loop-nv.test: Likewise.
8294 * tests/ioctl-v.sh: Likewise.
8297 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8311 2018-01-25 Dmitry V. Levin <ldv@altlinux.org>
8313 Drop non-functional CRIS architecture support.
8315 and up to this comment that ends the agony of this non-functional code,
8324 Fixes: v4.5.18-77-gea0e6e8 ("CRIS support by Hinko Kocevar ...")
8326 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8328 Update futex test in accordance with kernel's v4.15-rc7-202-gfbe0e83.
8332 where higher bit is unset.
8338 Add syscall entry for ARM-specific get_tls syscall.
8343 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8345 Fix syscall descriptions for ARM-specific system calls.
8354 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8369 2018-01-25 Eugene Syromyatnikov <evgsyr@gmail.com>
8372 We (apparently) had a long-standing test failure inside strace-ff.test
8382 if the tracee is not on exiting syscall.
8388 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8390 2018-01-24 Dmitry V. Levin <ldv@altlinux.org>
8397 2018-01-24 Dmitry V. Levin <ldv@altlinux.org>
8402 process dumpable flag is cleared, on ia64 this results to all syscall
8408 This condition used to be triggered by prctl-dumpable test that caused
8413 * tests/prctl-dumpable.c [__ia64__]: Skip the test.
8415 2018-01-24 Eugene Syromyatnikov <evgsyr@gmail.com>
8425 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8429 * tests/oldselect-P.c: New file.
8430 * tests/oldselect-efault-P.c: Likewise.
8431 * tests/oldselect-efault.c: Likewise.
8433 * tests/pure_executables.list: Add oldselect-efault.
8434 * tests/gen_tests.in (oldselect, oldselect-P, oldselect-efault,
8435 oldselect-efault-P): New entries.
8438 * tests/Makefile.am (check_PROGRAMS): Add oldselect-P
8439 and oldselect-efault-P.
8442 * tests/.gitignore: Add oldselect-P, oldselect-efault,
8443 and oldselect-efault-P.
8447 is not available. Add test calls that use PATH_TRACING_FD.
8450 * tests/_newselect-P.c: New file.
8451 * tests/select-P.c: Likewise.
8452 * tests/Makefile.am (check_PROGRAMS): Add _newselect-P and select-P.
8454 * tests/gen_tests.in (_newselect-P, select-P): New entries.
8459 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8462 Ensure that stdin descriptor is not available for output
8467 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8496 2018-01-23 Dmitry V. Levin <ldv@altlinux.org>
8512 2018-01-23 Eugene Syromyatnikov <evgsyr@gmail.com>
8537 2018-01-23 Eugene Syromyatnikov <evgsyr@gmail.com>
8544 2018-01-21 Dmitry V. Levin <ldv@altlinux.org>
8555 2018-01-21 Eugene Syromyatnikov <evgsyr@gmail.com>
8562 - Multidimensional arrays are replaced with single-dimensional ones.
8563 In most places it's a "][" -> ", " replacement, as awk allows some
8568 - "switch" statements are replaced with sets of "if ... else if ...
8569 else" statements. This change is trivial, except we've added
8572 - No support for array iteration ordering. This one is most ugly of
8582 access with comma-concatenated index.
8585 comma-concatenated index. Use comma-concatenated pair of (array_idx,
8590 array access with comma-concatenated index. Use for (... ; ...; ...)
8593 multidimensional array access with comma-concatenated index. Store an
8596 comma-concatenated index. Add a flag to array_names for that idx.
8599 comma-concatenated index.
8601 with comma-concatenated index. Store additional flags in
8604 multidimensional array access with comma-concatenated index. Iterate
8609 2018-01-21 Eugene Syromyatnikov <evgsyr@gmail.com>
8612 Commit v4.13-rc1~137^2~13 (and a follow-up fix v4.14-rc4~20^2~3
8619 # ./strace -v -eioctl -y dmsetup ls
8626 {dev=makedev(253, 1), name="fedoratesting--30-swap", event_nr=0},
8627 {dev=makedev(253, 0), name="fedoratesting--30-root"}}) = 0
8628 fedoratesting--30-swap (253:1)
8629 fedoratesting--30-root (253:0)
8633 gap present and the DM version is high enough.
8636 2018-01-21 Eugene Syromyatnikov <evgsyr@gmail.com>
8655 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8657 2018-01-21 Eugene Syromyatnikov <evgsyr@gmail.com>
8672 2018-01-21 Dmitry V. Levin <ldv@altlinux.org>
8725 2018-01-21 Dmitry V. Levin <ldv@altlinux.org>
8727 Rename arch-specific arch_defs.h files to arch_defs_.h.
8729 arch-specific arch_defs_.h file followed by generic arch_defs_.h file.
8744 2018-01-19 Dmitry V. Levin <ldv@altlinux.org>
8752 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8761 * util.c (printpathn): Return -1 on NULL addr, nul_seen (exit code of
8764 (printstr_ex): Return -1 on NULL addr, umoven/umovestr result otherwise.
8766 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8774 including \0 instead of 1 when \0 is found.
8776 2018-01-19 Dmitry V. Levin <ldv@altlinux.org>
8783 ./mpers-m32/struct_blk_user_trace_setup.h:2: error: redefinition of typedef ‘mpers_ptr_t’
8789 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8791 Add support for --enable-mpers=m32|mx32.
8793 for --enable-mpers option.
8795 name is provided as an option. Fail if the requested personality
8796 support is not available.
8798 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8800 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8805 2018-01-19 Dmitry V. Levin <ldv@altlinux.org>
8807 v4l2: do not mpersify struct v4l2_create unless it is used by other code
8814 2018-01-18 Dmitry V. Levin <ldv@altlinux.org>
8820 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8822 strace.1.in: clarify mpers flags in strace -V output.
8825 * strace.1.in (.SH "MULTIPLE PERSONALITY SUPPORT"): Remove "no-m32" and
8826 "no-mx32", describe the situation when some of mpers flags are not
8827 present in strace -V output.
8829 2018-01-19 Eugene Syromyatnikov <evgsyr@gmail.com>
8835 an arch-specific one, as it is used more than in one place.
8840 cc_flags_m32 to -m31.
8849 instead of s390_frame_ptr, __SIGNAL_FRAMESIZE, and pointer-sized type,
8866 * linux/s390x/arch_rt_sigframe.c: Conditionalize on tcp->currpers.
8881 * tests/strace-V.test: Add s390 to the list of architectures that have
8888 2018-01-18 Eugene Syromyatnikov <evgsyr@gmail.com>
8892 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
8896 is not available. Add a test call that use PATH_TRACING_FD.
8899 * tests/ppoll-P.c: New file.
8900 * tests/pure_executables.list: Add ppoll-P.
8902 * tests/gen_tests.in (ppoll-P): New entry.
8906 is not available. Add tests calls that use PATH_TRACING_FD.
8909 * tests/poll-P.c: New file.
8910 * tests/pure_executables.list: Add poll-P.
8912 * tests/poll-P.test: New test.
8913 * tests/Makefile.am (DECODER_TESTS): Add poll-P.test.
8915 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8917 tests: enable old_mmap-P.test on s390x.
8918 As s390x is the only 64-bit architecture that has old_mmap,
8925 Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
8927 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8934 * tests/old_mmap-P.c: New file.
8935 * tests/pure_executables.list: Add old_mmap-P.
8937 * tests/gen_tests.in: Add old_mmap-P test.
8939 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8944 implementation is incorrect. In order to fix this, let's use recently
8953 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8955 Test non-verbose old_mmap output.
8956 * tests/old_mmap-v-none.c: New file. Include old_mmap.c.
8957 * tests/pure_executables.list: Add old_mmap-v-none.
8959 * tests/gen_tests.in (old_mmap-v-none): New entry.
8961 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8971 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8977 As it is, it also fixes the case of non-verbose printing of old_mmap
8978 arguments (see the new test in the next commit). Also, it is a
8986 Suggested-by: Dmitry V. Levin <ldv@altlinux.org>
8988 2018-01-17 Eugene Syromyatnikov <evgsyr@gmail.com>
8990 Introduce arch-specific define HAVE_ARCH_OLD_MMAP.
9005 Suggested-by: Dmitry V. Levin <ldv@altlinux.org>
9007 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
9011 * tests/filtering_fd-syntax.test: New file.
9012 * tests/options-syntax.test: Move descriptor set syntax testing
9013 to filtering_fd-syntax.test.
9014 * tests/Makefile.am (MISC_TESTS): Add filtering_fd-syntax.test.
9016 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9018 strace.c: print correct out file name in error messages in case of -ff.
9026 update_personality as it is handled by the generic get_regs code now.
9028 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9043 iov_len is unknown.
9045 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9052 check whether requested personality is sane, die otherwise.
9054 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9057 As all the personality-dependent entries are initially in sync, we can
9063 personality-dependent entries are initially in sync" true.
9068 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9070 syscall.c: always update tcp->currpers in update_personality.
9073 from execve to that same personality into) it is possible that
9074 current_personality is not changed, but tcp->currpers is different.
9076 tcp->currpers if it differs from the target personality.
9081 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9088 2018-01-16 Eugene Syromyatnikov <evgsyr@gmail.com>
9098 Pass MPERS_CFLAGS as the second argument to mpers_test.sh
9099 * mpers.sh: Add CC_ARCH_FLAGS as the second argument (PARSER_FILE
9100 is moved to the third one). Do not expect leading dash in ARCH_FLAG
9102 * mpers_test.sh (mpers_cc_flags): New variable, initialise to the second
9105 Pass $mpers_cc_flags as the second argument to mpers.sh ($sample is
9107 * Makefile.am (mpers-m%.stamp:): Pass $(mpers_CC_FLAGS) as the second
9108 argument to mpers.sh ($$f is now the third argument).
9117 2018-01-16 Dmitry V. Levin <ldv@altlinux.org>
9121 * tests/filtering_syscall-syntax.test: New file.
9122 * tests/options-syntax.test: Move syscall set syntax testing
9123 to filtering_syscall-syntax.test.
9124 * tests/qual_fault-syntax.test: Likewise.
9125 * tests/qual_inject-syntax.test: Likewise.
9126 * tests/Makefile.am (MISC_TESTS): Add filtering_syscall-syntax.test.
9128 2018-01-16 Dmitry V. Levin <ldv@altlinux.org>
9134 return type. Return an empty string when no syscall set is specified.
9137 * tests/qual_fault-syntax.test: Update expected output.
9138 * tests/qual_inject-syntax.test: Likewise.
9140 2018-01-16 Dmitry V. Levin <ldv@altlinux.org>
9156 2018-01-15 Dmitry V. Levin <ldv@altlinux.org>
9186 * linux/mips/syscallent-n32.h: Likewise.
9187 * linux/mips/syscallent-n64.h: Likewise.
9188 * linux/mips/syscallent-o32.h: Likewise.
9203 assume its value is "system call".
9206 * tests/qual_fault-syntax.test: Update expected output.
9227 2018-01-14 Eugene Syromyatnikov <evgsyr@gmail.com>
9243 2018-01-13 Dmitry V. Levin <ldv@altlinux.org>
9250 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9253 configure: add --disable-mpers and --enable-mpers=check options.
9255 personalities support in strace is required for proper decoding of
9260 in strace is mandatory, optional, or disabled.
9262 The default is changed from what is now equivalent of
9263 --enable-mpers=check (automatically detect whether required mpers
9264 support could be enabled) to --enable-mpers (terminate the build
9270 * strace.spec.in: Specify --enable-mpers=check to %configure.
9272 --enable-mpers=check to configure.
9274 Suggested-by: DJ Delorie <dj@redhat.com>
9276 2018-01-11 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
9278 Update ioctl entries from linux v4.15-rc7.
9279 * linux/32/ioctls_inc_align16.h: Update from linux v4.15-rc7 using ioctls_gen.sh.
9286 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9296 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9301 * tests/gen_tests.in (reboot): Provide -s 256 option.
9305 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9308 * test/reboot.c (main): Use sprintrc instead of old-style manual
9311 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9314 The size of kernel buffer is 256 bytes and the last byte is always zero.
9319 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9326 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9329 This is the location where this header is installed on Debian-based
9338 2018-01-11 Dmitry V. Levin <ldv@altlinux.org>
9343 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9348 Add indication of mpers support to strace -V output.
9351 * tests/strace-V.test: Update expected output.
9359 Add indication of optional demangle feature strace -V output.
9360 * strace.c (print_version) [USE_DEMANGLE]: Append " stack-demangle"
9362 * tests/strace-V.test: Update expected output.
9364 configure.ac: check for mpers support on RISC-V.
9367 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9372 outptr += xsnprintf(outptr, sizeof(outstr) - (outptr - outstr), ...)
9384 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9393 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9395 Update perf-related flags.
9396 - PERF_SAMPLE_BRANCH_TYPE_SAVE, added in v4.14-rc1~173^2~33^2~6
9397 - PERF_SAMPLE_PHYS_ADDR, added in v4.14-rc1~173^2~2
9404 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9407 This field was introduced by linux kernel commit v4.12-rc1~152^2~42^2~10.
9416 2018-01-11 Eugene Syromyatnikov <evgsyr@gmail.com>
9425 2018-01-10 Eugene Syromyatnikov <evgsyr@gmail.com>
9427 tests: check decoding of modify_ldt with for 4-byte-available user_desc.
9428 Since there is possibility now that strace read only entry_number field
9432 * tests/modify_ldt.c (main): Add 4-byte-sized tail_alloc'ed variable.
9435 2018-01-10 Eugene Syromyatnikov <evgsyr@gmail.com>
9455 2018-01-10 Eugene Syromyatnikov <evgsyr@gmail.com>
9464 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9474 return code is erroneous and set tcp->u_error appropriately along with
9477 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9481 an error (less than -4096), but it is, in fact, erroneous (because they
9482 decide to clip the return value to 32-bit, for example).
9489 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9494 ldt.c: print lm field for 64-bit tracees.
9497 for non-compat tracees (it is ignored for compat ones).
9499 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9507 (SYS_FUNC(set_thread_area)): Change field key-value separator from ":"
9510 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9514 This is useful for bit fields, as otherwise the magic of *_extend_to_*
9519 2018-01-08 Eugene Syromyatnikov <evgsyr@gmail.com>
9522 As uid is not the only thing that has a special treatment of the -1
9529 2018-01-07 Dmitry V. Levin <ldv@altlinux.org>
9535 Fixes: v4.20-134-gc46fefc ("Add tcp arguments to netlink calls")
9537 2018-01-07 Eugene Syromyatnikov <evgsyr@gmail.com>
9546 2018-01-07 Eugene Syromyatnikov <evgsyr@gmail.com>
9554 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9557 Since they call tracee-specific socket/sendmsg/recvmsg, we'd like to
9590 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9597 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9600 In preparation to passing tcp to all tracee-related syscalls.
9608 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9610 Include paths.h if it is available.
9611 Use the OS definition of _PATH_BSHELL macro if it is available.
9616 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9622 2018-01-07 Elvira Khabirova <lineprinter@altlinux.org>
9628 2018-01-07 Elvira Khabirova <lineprinter@altlinux.org>
9638 2018-01-07 Elvira Khabirova <lineprinter@altlinux.org>
9645 2018-01-07 Chen Jingpiao <chenjingpiao@gmail.com>
9650 2018-01-07 Dmitry V. Levin <ldv@altlinux.org>
9656 2018-01-07 Eugene Syromiatnikov <esyr@redhat.com>
9662 2018-01-07 Dmitry V. Levin <ldv@altlinux.org>
9730 2018-01-07 Eugene Syromyatnikov <evgsyr@gmail.com>
9736 2018-01-05 Dmitry V. Levin <ldv@altlinux.org>
9743 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9749 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9752 Let's try to future/fool-proof code a bit by introducing variants
9755 string buffer where no sensible error handling is implemented.
9760 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9764 when the output for a billion errors and more is cut and shown
9769 (call_summary_pers): Remove error_str. Print cc->errors
9772 2018-01-05 Eugene Syromyatnikov <evgsyr@gmail.com>
9775 Otherwise the title is quite misleading for x32 personality.
9779 2018-01-05 Victor Krapivensky <krapivenskiy.va@phystech.edu>
9782 This is a part of "Prepare for adding support for Lua scripting"
9790 Co-Authored-by: Eugene Syromyatnikov <evgsyr@gmail.com>
9792 2018-01-04 Lubomir Rintel <lkundrak@v3.sk>
9797 2018-01-04 Dmitry V. Levin <ldv@altlinux.org>
9799 Lift artificial limit on output file names in -ff mode.
9801 on output file names in -ff mode, leading to the following absurd
9804 $ strace -ff -o"$(perl -e 'print "/" x 510')/$PWD/log" /bin/true
9809 * tests/options-syntax.test: Check it.
9811 2018-01-04 Dmitry V. Levin <ldv@altlinux.org>
9816 Fixes: v4.20-85-gf9c8e8a ("unwind: demangle symbol names")
9818 2018-01-03 Eugene Syromiatnikov <esyr@redhat.com>
9823 for i in `git grep -l 'upeek(tcp->pid'`; do \
9824 sed -i 's/upeek(tcp->pid/upeek(tcp/g' "$i"; \
9828 tcb *tcp. Use tcp->pid instead of pid in the function's body.
9830 * linux/alpha/arch_getrval2.c: Pass tcp instead of tcp->pid to the
9869 2018-01-03 Eugene Syromiatnikov <esyr@redhat.com>
9874 tcp->pid.
9878 call instead of tcp->pid.
9880 2018-01-03 Eugene Syromiatnikov <esyr@redhat.com>
9885 for i in `git grep -l 'upoke(tcp->pid'`; do \
9886 sed -i 's/upoke(tcp->pid/upoke(tcp/g' "$i"; \
9890 tcb *tcp. Use tcp->pid instead of pid in the function's body.
9893 tcp in the first argument of the upoke call instead of tcp->pid.
9919 2018-01-03 Eugene Syromiatnikov <esyr@redhat.com>
9929 2018-01-03 Eugene Syromyatnikov <evgsyr@gmail.com>
9937 (startup_tcb): Call get_scno() only if process is grabbed and its
9940 Reported-by: Dmitry V. Levin <ldv@altlinux.org>
9943 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
9948 v4.20-64-g61c03be.
9952 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
9958 * strace.c (init): Check for non-zero argc before/instead of argv[0].
9960 2018-01-01 Eugene Syromyatnikov <evgsyr@gmail.com>
9962 strace.1: advertise strace-log-merge.
9963 In order to raise awareness about strace-log-merge, mention it in
9964 SEE ALSO section and -ff option description.
9966 * strace.1.in (.SS Filtering) <.TP .B \-ff>: Mention strace-log-merge.
9969 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
9973 * tests/strace-k.test (result): Update regexp.
9974 * tests/strace-k-demangle.test (expected): Update expected output.
9976 tests: check strace -k symbol names demangling.
9977 * tests/strace-k-demangle.test: New test.
9978 * tests/stack-fcall-mangled.c: New file.
9979 * tests/stack-fcall-mangled-0.c: Likewise.
9980 * tests/stack-fcall-mangled-1.c: Likewise.
9981 * tests/stack-fcall-mangled-2.c: Likewise.
9982 * tests/stack-fcall-mangled-3.c: Likewise.
9983 * tests/stack-fcall.h [MANGLE] (f0, f1, f2, f3): New macros.
9984 * tests/.gitignore: Add stack-fcall-mangled.
9987 (EXTRA_DIST): Add strace-k-demangle.test.
9990 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
9992 tests: parametrize strace-k.test.
9993 Prepare for the check of strace -k symbol names demangling.
9995 * tests/strace-k.test: Parametrize $test_prog and $expected.
9996 * tests/stack-fcall.h: New file.
9997 * tests/stack-fcall.c: Include "stack-fcall.h"
9998 * tests/stack-fcall-0.c: Likewise.
9999 * tests/stack-fcall-1.c: Likewise.
10000 * tests/stack-fcall-2.c: Likewise.
10001 * tests/stack-fcall-3.c: Likewise.
10002 * tests/Makefile.am (EXTRA_DIST): Add stack-fcall.h.
10004 2017-12-26 Masatake YAMATO <yamato@redhat.com>
10010 This is an example demangled stack trace output:
10013 > /usr/lib64/libc-2.25.so(__fxstat64+0x12) [0xffd62]
10014 > /usr/lib64/libc-2.25.so(_IO_file_doallocate+0x5f) [0x717ff]
10015 > /usr/lib64/libc-2.25.so(_IO_doallocbuf+0x79) [0x81699]
10016 > /usr/lib64/libc-2.25.so(_IO_file_overflow+0x198) [0x807b8]
10017 > /usr/lib64/libc-2.25.so(_IO_file_xsputn+0xbd) [0x7ed5d]
10018 > /usr/lib64/libc-2.25.so(fwrite_unlocked+0x60) [0x7d800]
10026 > /usr/lib64/libc-2.25.so(__libc_start_main+0xea) [0x2088a]
10032 * configure.ac: Add --with-libiberty option. Check cplus_demangle
10037 2017-12-26 Masatake YAMATO <yamato@redhat.com>
10041 symbol names in stack trace enabled with -k option.
10051 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10067 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10075 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10084 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10090 * linux/mips/syscallent-o32.h [LINUX_MIPSO32] (SYS_syscall_subcall):
10098 2017-12-24 Dmitry V. Levin <ldv@altlinux.org>
10111 static variable, which is now internally used by get_regs() and
10117 2017-12-24 Harsha Sharma <harshasharmaiitr@gmail.com>
10123 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10125 tests: skip nsyscalls-d.test on mips o32.
10126 On mips o32, nsyscalls test is implemented using syscall #4000,
10127 so nsyscalls-d cannot work there.
10129 * tests/nsyscalls-d.test: Skip on mips o32.
10131 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10135 commit v3.8-rc1~139^2~514, there is no need for a local copy.
10145 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10147 Remove linux/ubi-user.h.
10148 As linux kernel provides a compatible mtd/ubi-user.h header since
10149 commit v3.7-rc1~85^2~17, there is no need for a local copy.
10151 * linux/ubi-user.h: Remove.
10154 for struct ubi_attach_req.max_beb_per1024 in <mtd/ubi-user.h>.
10159 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10161 Remove linux/mtd-abi.h.
10162 As linux kernel provides a compatible mtd/mtd-abi.h header since
10163 commit v3.2-rc1~14^2~33, there is no need for a local copy.
10165 * linux/mtd-abi.h: Remove.
10168 in <mtd/mtd-abi.h>.
10175 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10185 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
10187 travis: switch from clang-3.8 to clang.
10189 it makes sense to use default clang in clang-based test builds.
10191 * .travis.yml (matrix): Change clang-3.8 to clang.
10193 2017-12-21 Eugene Syromyatnikov <evgsyr@gmail.com>
10196 * strace.1.in (.SH SEE ALSO): Add references to perf-trace(1) and
10197 trace-cmd(1).
10199 strace.1.in: clarify -F option behaviour.
10200 * strace.1.in <.TP \-F>: Extend deprecation warning. Describe behaviour
10201 of multiple instances of -F and interoperability of -F and -f.
10203 2017-12-20 Dmitry V. Levin <ldv@altlinux.org>
10207 * tests/options-syntax.test: Replace "$strace_exp" with "$STRACE_EXE".
10210 2017-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
10213 strace.c: inform the user about -F option obsolescence.
10214 * strace.c (init): Print an error message if the option is used.
10216 2017-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
10226 2017-12-20 Eugene Syromiatnikov <esyr@redhat.com>
10230 cases when vfork() is used instead of fork() on systems that lack MMU.
10234 2017-12-20 Harsha Sharma <harshasharmaiitr@gmail.com>
10240 2017-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
10243 * tests/nsyscalls-d.c: New file.
10245 * tests/nsyscalls-d.test: New test, variant of nsyscalls.test with debug
10247 * tests/nsyscalls-nd.test: Likewise.
10249 * tests/Makefile.am (check_PROGRAMS): Add nsyscalls-d.
10250 (DECODER_TESTS): Add nsyscalls-d.test and nsyscalls-nd.test.
10252 2017-12-20 Eugene Syromiatnikov <esyr@redhat.com>
10259 2017-12-14 Dmitry V. Levin <ldv@altlinux.org>
10269 2017-12-14 Eugene Syromiatnikov <esyr@redhat.com>
10280 2017-12-14 Eugene Syromiatnikov <esyr@redhat.com>
10288 2017-12-14 Dmitry V. Levin <ldv@altlinux.org>
10290 tests: check error diagnostics when exec file name is too long.
10291 * tests/options-syntax.test: Check error diagnostics when
10294 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10301 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10313 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10320 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10322 unwind.c: non-fatal handling of asprintf error.
10323 An error returned by asprintf is a poor excuse for dying.
10328 (queue_print): Free tmp->output line only if it is not
10331 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10334 Since DPRINTF is simply a macro that provides debugging information
10343 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10355 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10358 In order to reduce boilerplate for the cases when __func__ is desired
10365 2017-12-13 Eugene Syromiatnikov <esyr@redhat.com>
10373 2017-12-04 Masatake YAMATO <yamato@redhat.com>
10383 2017-12-04 Masatake YAMATO <yamato@redhat.com>
10415 2017-12-03 Eugene Syromyatnikov <evgsyr@gmail.com>
10420 Co-Authored-by: Vitaly Chaykovsky <mgspeker@gmail.com>
10422 2017-12-03 Dmitry V. Levin <ldv@altlinux.org>
10424 tests: robustify attach-p-cmd.test against buggy kernels.
10426 and fail attach-p-cmd.test with the following diagnostics:
10428 12345 --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
10429 -12345 chdir("attach-p-cmd.test -p") = -1 ENOENT (No such file or directory)
10430 …+12345 syscall_4294967295(0xffe60934, 0x1c0, 0xffe60934, 0x1, 0xffe609b4, 0xffe60a58) = -1 (errno …
10431 +12345 chdir("attach-p-cmd.test -p") = -1 ENOSYS (Function not implemented)
10436 * tests/attach-p-cmd.h: New file.
10437 * tests/Makefile.am (EXTRA_DIST): Add attach-p-cmd.h.
10438 * tests/attach-p-cmd-cmd.c: Include "attach-p-cmd.h".
10441 * tests/attach-p-cmd-p.c: Include <time.h> and "attach-p-cmd.h".
10446 2017-12-03 Dmitry V. Levin <ldv@altlinux.org>
10449 glibc between commits glibc-2.25~130 and glibc-2.26~740 had broken
10459 2017-12-01 Masatake YAMATO <yamato@redhat.com>
10479 2017-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
10481 strace-log-merge: work around corner cases of strace -ttt parsing.
10482 Employing strace -ttt for the logs destined to be fed to
10483 strace-log-merge is ultimately the best solution except for the logs
10505 * strace-log-merge: Generate numeric-only key for sorting, use sort -n
10508 2017-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
10510 debian: add strace-log-merge to the list of installed files.
10511 * debian/strace.install: Add strace-log-merge.
10513 Add strace-log-merge man page.
10514 * strace-log-merge.1.in: New file.
10516 * .gitignore: Add strace-log-merge.1.
10521 strace-log-merge: add copyright header.
10523 2017-11-29 Dmitry V. Levin <ldv@altlinux.org>
10526 * .gitlab-ci.yml: New file.
10527 * travis-build.sh: Print $CC -print-multi-lib. Print config.log
10529 * travis-install.sh: Check sudo availability. Install autoconf,
10530 automake, file, gawk, gcc-multilib, git, gzip, make, and xz-utils
10532 (musl-gcc): Install ca-certificates.
10534 2017-11-25 Dmitry V. Levin <ldv@altlinux.org>
10536 mpers: fix cross-compiling.
10542 (mpers-m%.stamp): Pass it to $(srcdir)/mpers.sh.
10550 Reported-by: Rolf Eike Beer <eb@emlix.com>
10552 2017-11-22 Dmitry V. Levin <ldv@altlinux.org>
10557 INSTALL-git.md: fix typo.
10567 2017-11-21 Dmitry V. Levin <ldv@altlinux.org>
10608 2017-11-20 Dmitry V. Levin <ldv@altlinux.org>
10624 2017-11-20 Dmitry V. Levin <ldv@altlinux.org>
10628 command introduced by linux kernel commit v4.14-rc1~130^2~196^2~1.
10639 2017-11-20 Eugene Syromiatnikov <esyr@redhat.com>
10648 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10652 v3.8-rc1~175^2~36.
10659 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10663 v4.14-rc1~126^2~17.
10672 2017-11-18 Dmitry V. Levin <ldv@altlinux.org>
10676 argument is NAME_MAX - strlen("memfd:").
10682 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10686 v3.8-rc1~175^2~36.
10694 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10696 mem: assume that MAP_TYPE is defined.
10698 as long ago as in v2.4.0, it's safe to assume that MAP_TYPE is defined.
10702 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10708 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10711 Although SHM_EXEC is available in <linux/shm.h> since kernel commit
10712 v2.6.9-rc2~23^2~93^2~78, the glibc version of <sys/shm.h> did not
10713 provide SHM_EXEC until commit glibc-2.10~238.
10718 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10722 v2.6.9-rc2~23^2~93^2~78.
10724 commit v2.6.15-rc1~622.
10729 2017-11-17 Dmitry V. Levin <ldv@altlinux.org>
10737 2017-11-16 Dmitry V. Levin <ldv@altlinux.org>
10749 * tests/sockopt-sol_netlink.c (main): Check NETLINK_LIST_MEMBERSHIPS
10752 2017-11-16 Dmitry V. Levin <ldv@altlinux.org>
10755 * tests/sockopt-sol_netlink.c: New file.
10756 * tests/gen_tests.in (sockopt-sol_netlink): New entry.
10757 * tests/pure_executables.list: Add sockopt-sol_netlink.
10760 2017-11-16 Dmitry V. Levin <ldv@altlinux.org>
10766 print returned value as integer iff the length is >= sizeof(int),
10770 2017-11-15 Dmitry V. Levin <ldv@altlinux.org>
10781 v4.14-rc1~130^2~376^2~6.
10792 2017-11-14 Eugene Syromyatnikov <evgsyr@gmail.com>
10795 Analogous to the way it is done in xlat/gen.sh.
10799 <while [ -n "${1:-}" ]; do case "$1" in>: Add -j option parsing.
10801 <git ls-files -- "$@" | grep -vFx "$IGNORED_FILES" | while read f; do>:
10805 2017-11-14 Eugene Syromyatnikov <evgsyr@gmail.com>
10807 maint/update_copyright_years.sh: use -efu shell mode.
10808 * maint/update_copyright_years.sh: Add -efu to shebang. Adjust
10809 the script for -efu shell mode.
10811 2017-11-14 Dmitry V. Levin <ldv@altlinux.org>
10813 Post-release administrivia.
10815 * debian/changelog.in: Add a changelog entry for 4.20-1.
10818 2017-11-13 Dmitry V. Levin <ldv@altlinux.org>
10823 CREDITS.in: remove entries listed by maint/gen-contributors-list.sh.
10825 2017-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
10827 Makefile.am: use gen-contributors-list.sh for CREDITS.
10828 * Makefile.am ($(srcdir)/CREDITS): Employ maint/gen-contributors-list.sh
10831 2017-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
10833 maint: make gen-contributors-list.sh suitable for generation of CREDITS.
10836 - add an option for including contributor e-mail;
10837 - add an option to read additional list of contributors from stdin;
10838 - add shorthand for referring to the initial commit of the branch;
10839 - document all of the above in a help message.
10841 * maint/gen-contributors-list.sh (print_help): New function.
10847 2017-11-13 Dmitry V. Levin <ldv@altlinux.org>
10853 2017-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
10859 2017-11-13 Dmitry V. Levin <ldv@altlinux.org>
10861 CREDITS.in: use UTF-8 consistently.
10864 2017-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
10868 v4.19-68-g48cb633, so let's fix that omission.
10872 2017-11-13 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
10878 s390x: remove some of non-s390 KVM ioctls.
10881 maint: remove KVM_PPC_CONFIGURE_V3_MMU ioctl from non-powerpc arches.
10884 2017-11-12 Dmitry V. Levin <ldv@altlinux.org>
10887 Headers updated semi-automatically using
10894 2017-11-11 Dmitry V. Levin <ldv@altlinux.org>
10898 here-document expansion.
10900 2017-11-10 Eugene Syromiatnikov <esyr@redhat.com>
10908 2017-11-10 Eugene Syromiatnikov <esyr@redhat.com>
10913 2017-11-07 Steve McIntyre <steve@einval.com>
10915 debian: update debhelper compat level to 10, replace -s with -a in some calls
10917 debian: update Standards-Version to 3.9.8.
10919 2017-11-06 Dmitry V. Levin <ldv@altlinux.org>
10922 The primary purpose of this new check is diagnostics.
10926 2017-11-06 Eugene Syromyatnikov <evgsyr@gmail.com>
10930 - increases the number of concurrent jobs to twice the CPU count;
10931 - creates a circular buffer, so instead of running multiple jobs
10934 - runs gen_git and gen_make concurrently in order to squeeze in
10938 up to 15% speedup with dash and about 30-40% with bash as /bin/sh
10939 on a 4-core machine.
10943 is reached, wait for the first pid in pids instead of resetting jobs
10947 2017-11-05 Dmitry V. Levin <ldv@altlinux.org>
10952 2017-11-04 Dmitry V. Levin <ldv@altlinux.org>
10955 Starting with commit v4.17-5-gf83b49b strace is expected
10965 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
10968 Starting with commit v4.17-8-ge97a66f strace is expected
10980 2017-11-03 Eugene Syromyatnikov <evgsyr@gmail.com>
10983 Kernel commit v4.14-rc1~162^2~8 refactored futex implementation and
10996 2017-11-03 Eugene Syromyatnikov <evgsyr@gmail.com>
11002 2017-11-02 Dmitry V. Levin <ldv@altlinux.org>
11014 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11022 by linux kernel commit v4.14-rc2~15^2~3.
11024 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11027 Follow linux kernel commit v4.14-rc2~15^2~4 and rename SECCOMP_RET_KILL
11032 * tests/prctl-seccomp-filter-v.c (main): Update expected output.
11033 * tests/seccomp-filter-v.c (main): Likewise.
11035 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11039 by kernel commit v4.14-rc2~15^2~6.
11041 by kernel commit v4.14-rc2~15^2~9.
11043 by kernel commit v4.14-rc2~15^2~5.
11045 * tests/seccomp-filter.c (main): Update expected output.
11046 * tests/seccomp-filter-v.c (main): Likewise.
11051 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11053 tests: robustify options-syntax.test against inquisitive musl.
11057 * tests/options-syntax.test: Check for two valid variants
11060 2017-11-01 Dmitry V. Levin <ldv@altlinux.org>
11064 introduced by kernel commit v4.14-rc6~26.
11067 2017-10-31 JingPiao Chen <chenjingpiao@gmail.com>
11097 2017-10-26 JingPiao Chen <chenjingpiao@gmail.com>
11114 2017-10-26 JingPiao Chen <chenjingpiao@gmail.com>
11117 Refactor decode_nlmsg_flags to make it family-specific, just like
11126 2017-10-14 JingPiao Chen <chenjingpiao@gmail.com>
11129 When using linux kernel headers without commit v4.5-rc1~128^2~115^2~22
11138 2017-09-24 JingPiao Chen <chenjingpiao@gmail.com>
11246 2017-09-20 Dmitry V. Levin <ldv@altlinux.org>
11251 ppc64: truncate syscall args for 32-bit personality tracees.
11253 32 bits of syscall args for 32-bit personality tracees.
11256 ppc64: fix PRI__64 macro definition when compiled with -m32.
11258 of POWERPC to handle -m32 case properly.
11260 2017-09-19 Dmitry V. Levin <ldv@altlinux.org>
11266 Update ioctl entries from linux v4.14-rc1.
11267 * linux/32/ioctls_inc_align16.h: Update from linux v4.14-rc1
11274 by kernel commit v4.13-rc7-176-g89e4fde.
11278 2017-09-19 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
11283 After this change, the generated code is just compiled to the target
11284 architecture object files and all required information is obtained
11292 (CFLAGS): Add -gdwarf-2.
11295 Change asm-generic/ioctl.h and asm/ioctl.h hook.
11299 2017-09-18 Dmitry V. Levin <ldv@altlinux.org>
11301 Remove KVM_S390_* ioctls from non-s390 architectures.
11303 Use it to exclude KVM_S390_* ioctls on non-s390 architectures.
11310 2017-09-17 Dmitry V. Levin <ldv@altlinux.org>
11312 Remove some of arch-specific KVM ioctls from non-matching architectures.
11314 expressions to generalize arch-specific regular expressions.
11321 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11324 Added in Linux commit v4.13-rc1~137^2~14.
11334 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11343 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11345 tests: add kcmp-y test.
11346 It is not very useful as of now, but it will allow tracking changes
11349 * tests/gen_tests.in (kcmp-y): New test.
11350 * tests/kcmp-y.c: New file, wrapper for kcmp.c
11353 * tests/pure_executables.list: Add kcmp-y.
11356 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11359 This is a preparation for the future introduction of cross-NS PID
11371 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11377 * tests/gen_tests.in (kcmp): Decrease -a argument's value from 27 to 22.
11381 2017-09-17 Eugene Syromyatnikov <evgsyr@gmail.com>
11383 tests/kcmp: use <linux/kcmp.h> if it is available.
11392 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11406 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11409 Extend TEST_NESTED_NLATTR_OBJECT macro for multi-nested netlink
11425 2017-09-17 JingPiao Chen <chenjingpiao@gmail.com>
11451 2017-09-17 Dmitry V. Levin <ldv@altlinux.org>
11454 This is a new netlink attribute introduced by linux kernel commit
11455 v4.14-rc1~130^2~207.
11461 * xlat/inet_diag_extended_flags.in: Add 1<<(INET_DIAG_CLASS_ID-1).
11465 2017-09-17 Dmitry V. Levin <ldv@altlinux.org>
11469 introduced by kernel commit v4.14-rc1~174^2^2^4.
11475 by kernel commit v4.11-rc2~15^2~18.
11477 commits v4.14-rc1~126^2~28 and v4.14-rc1~126^2~23, repsectively.
11482 by kernel commit v4.14-rc1~126^2~17.
11488 and ETH_P_MAP introduced by kernel commits v4.14-rc1~130^2~164,
11489 v4.14-rc1~130^2~89^2~3, v4.14-rc1~130^2~90^2~2, and
11490 v4.14-rc1~130^2~78^2~2, respectively.
11495 by kernel commit v4.14-rc1~130^2~78^2~1.
11501 v4.14-rc1~130^2~123^2~8.
11503 introduced by kernel commits v4.10-rc1~202^2~271^2~2
11504 and v4.14-rc1~130^2~196^2~1, respectively.
11507 v4.14-rc1~130^2~497^2~4 and v4.14-rc1~130^2~234^2~4,
11510 introduced by kernel commit v4.14-rc1~130^2~309^2~8.
11512 by kernel commit v4.14-rc1~130^2~234^2~6.
11517 v4.14-rc1~130^2~376^2~5.
11522 introduced by kernel commit v4.14-rc1~126^2.
11525 2017-09-08 Baruch Siach <baruch@tkos.co.il>
11528 uClibc-ng declares program_invocation_name as const.
11535 ….../output/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/errno.h:54:20: note: previous de…
11542 2017-09-07 JingPiao Chen <chenjingpiao@gmail.com>
11584 2017-09-07 Dmitry V. Levin <ldv@altlinux.org>
11594 2017-09-06 Dmitry V. Levin <ldv@altlinux.org>
11596 Post-release administrivia.
11598 * debian/changelog.in: Add a changelog entry for 4.19-1.
11601 2017-09-05 Dmitry V. Levin <ldv@altlinux.org>
11610 maint: add gen-tag-message.sh script.
11611 * maint/gen-tag-message.sh: New file.
11613 maint: add gen-contributors-list.sh script.
11614 * maint/gen-contributors-list.sh: New file.
11616 2017-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
11621 maint/update_copyright_headers.sh -c
11623 2017-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
11628 <-c>: New option, implies -a, calls git commit with GIT_COMMIT_TEMPLATE string
11631 2017-09-04 Eugene Syromyatnikov <evgsyr@gmail.com>
11641 2017-09-04 Eugene Syromyatnikov <evgsyr@gmail.com>
11645 2017-09-03 JingPiao Chen <chenjingpiao@gmail.com>
11685 2017-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
11708 and keyctl test is so complex, let's try to improve readability a bit
11716 2017-09-01 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
11719 * linux/s390/ioctls_arch0.h: Update from linux v4.13-rc7 using ioctls_gen.sh.
11721 2017-09-01 Dmitry V. Levin <ldv@altlinux.org>
11726 Fixes: v4.18-308-gfd3447b5 ("mpers.awk: declare local variables consistently")
11728 2017-09-01 Dmitry V. Levin <ldv@altlinux.org>
11739 2017-09-01 Dmitry V. Levin <ldv@altlinux.org>
11747 when it is available.
11749 2017-09-01 JingPiao Chen <chenjingpiao@gmail.com>
11789 2017-09-01 Dmitry V. Levin <ldv@altlinux.org>
11794 2017-08-31 JingPiao Chen <chenjingpiao@gmail.com>
11799 2017-08-31 Dmitry V. Levin <ldv@altlinux.org>
11806 2017-08-30 Dmitry V. Levin <ldv@altlinux.org>
11812 2017-08-29 Dmitry V. Levin <ldv@altlinux.org>
11815 The attribute of FRA_TABLE is not just a 32-bit integer, some constants
11816 have well-known symbolic names like RT_TABLE_DEFAULT.
11823 2017-08-29 Dmitry V. Levin <ldv@altlinux.org>
11826 The attribute of RTA_TABLE is not just a 32-bit integer, some constants
11827 have well-known symbolic names like RT_TABLE_DEFAULT.
11834 2017-08-29 JingPiao Chen <chenjingpiao@gmail.com>
11882 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
11888 * filter_qualify.c (parse_inject_token): Disallow second
11891 * tests/qual_inject-syntax.test: Check it.
11893 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
11910 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
11922 2017-08-28 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
11924 Update ioctl entries from linux v4.13-rc7.
11925 * linux/32/ioctls_inc_align16.h: Update from linux v4.13-rc7 using ioctls_gen.sh.
11937 2017-08-28 JingPiao Chen <chenjingpiao@gmail.com>
11957 2017-08-28 Dmitry V. Levin <ldv@altlinux.org>
11960 Imply RVAL_DECODED when RVAL_IOCTL_PARSED is returned on entering.
11962 is a more suitable name.
11994 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
11996 Replace return 1 ioctl sub-decoder hack with proper flag.
11997 * defs.h (RVAL_IOCTL_PARSED): Introduce new flag for ioctl sub-decoders
12000 un-set it before returning the value.
12023 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12037 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12046 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12055 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12064 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12073 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12088 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12094 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12097 syscall.c: define personality names for all multi-personality architectures
12098 I see no reason for not having these definitions for SPARC64 and RISC-V.
12104 2017-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
12106 copyright-year-gen: workaround for old git versions.
12108 v4.18-278-g295cf32.
12110 * copyright-year-gen <year>: Change format to format:%cD, remove --date,
12111 supply output as a -d option argument to date +%Y.
12113 2017-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
12121 2017-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
12125 date format with --date, working this around by processing git log output
12129 last_commit_year>: Change format to format:%aD, remove --date, supply
12130 output as a -d option argument to date +%Y.
12132 2017-08-27 Eugene Syromyatnikov <evgsyr@gmail.com>
12134 syscall: use spaces in tile personality names, de-duplicate definition.
12135 As Chris Metcalf, the author of v4.7-40-g0b99a8a, told in private, there
12136 is no strong reason for having tile's personality name different from
12144 2017-08-26 JingPiao Chen <chenjingpiao@gmail.com>
12168 2017-08-25 Dmitry V. Levin <ldv@altlinux.org>
12177 2017-08-24 Dmitry V. Levin <ldv@altlinux.org>
12183 2017-08-24 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
12190 2017-08-24 Dmitry V. Levin <ldv@altlinux.org>
12198 2017-08-24 Eugene Syromiatnikov <evgsyr@gmail.com>
12208 2017-08-23 Dmitry V. Levin <ldv@altlinux.org>
12215 that the kernel is mips n64, even if "uname -m" claims it's mips.
12217 2017-08-22 Dmitry V. Levin <ldv@altlinux.org>
12274 2017-08-22 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
12287 2017-08-22 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
12301 2017-08-22 JingPiao Chen <chenjingpiao@gmail.com>
12316 2017-08-22 Dmitry V. Levin <ldv@altlinux.org>
12329 2017-08-20 Dmitry V. Levin <ldv@altlinux.org>
12333 no structure field name is available.
12337 2017-08-19 Dmitry V. Levin <ldv@altlinux.org>
12343 2017-08-18 Dmitry V. Levin <ldv@altlinux.org>
12348 process dumpable flag is cleared. As the first 4 syscall arguments are
12352 This condition is triggered and therefore tested by prctl-dumpable test.
12357 2017-08-17 Dmitry V. Levin <ldv@altlinux.org>
12365 2017-08-16 Dmitry V. Levin <ldv@altlinux.org>
12367 tests: fix a few harmless -Woverflow compilation warnings.
12372 xettimeofday.c:76:16: warning: overflow in implicit constant conversion [-Woverflow]
12373 tv->tv_usec = (long) 0xbadc0dedfacefeedLL;
12375 xetitimer.c:170:28: warning: overflow in implicit constant conversion [-Woverflow]
12376 p_new->it_value.tv_usec = (long) 0xbadc0dedfacefeedLL;
12379 xutimes.c:110:18: warning: overflow in implicit constant conversion [-Woverflow]
12382 futimesat.c:121:18: warning: overflow in implicit constant conversion [-Woverflow]
12386 xselect.c:94:16: warning: overflow in implicit constant conversion [-Woverflow]
12387 tv->tv_usec = (long) 0xbadc0dedfacefeedLL;
12396 Reported-by: Anatoly Pugachev <matorola@gmail.com>
12398 2017-08-16 Dmitry V. Levin <ldv@altlinux.org>
12403 was aware about this arch-specific detail from the beginning, in one
12404 of many sigaction syscall invocations a non-negative signal number
12407 * tests/sigaction.c (ADDR_INT, SIGNO_INT): New arch-specific macros.
12410 2017-08-16 Dmitry V. Levin <ldv@altlinux.org>
12413 Do not print more than "nlattr.nla_len - NLA_HDRLEN" bytes
12416 * nlattr.c (decode_nlattr_with_data): Specify "nla_len - NLA_HDRLEN"
12417 instead of "len - NLA_HDRLEN" as the size of unrecognized attribute
12421 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12429 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12437 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12445 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12454 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12462 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12471 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12479 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12488 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12496 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12505 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12513 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12521 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12529 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12537 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12545 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12553 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12561 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12569 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12577 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12585 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12593 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12601 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12609 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12617 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12625 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12633 2017-08-15 Dmitry V. Levin <ldv@altlinux.org>
12670 tests/net-sockaddr: use ifindex_lo and IFINDEX_LO_STR.
12671 * tests/net-sockaddr.c (if_nametoindex): Remove declaration.
12680 tests/inet-cmsg: use IFINDEX_LO_STR.
12681 * tests/inet-cmsg.c (print_pktinfo): Use IFINDEX_LO_STR instead
12700 2017-08-15 JingPiao Chen <chenjingpiao@gmail.com>
12707 2017-08-14 Eugene Syromyatnikov <evgsyr@gmail.com>
12719 2017-08-14 JingPiao Chen <chenjingpiao@gmail.com>
12723 2017-08-14 JingPiao Chen <chenjingpiao@gmail.com>
12884 2017-08-13 JingPiao Chen <chenjingpiao@gmail.com>
12897 2017-08-13 Eugene Syromyatnikov <evgsyr@gmail.com>
12907 2017-08-11 JingPiao Chen <chenjingpiao@gmail.com>
12913 2017-08-11 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
12916 The second argument of the inotify_add_watch syscall is a file name,
12931 * linux/mips/syscallent-n32.h: Likewise.
12932 * linux/mips/syscallent-n64.h: Likewise.
12933 * linux/mips/syscallent-o32.h: Likewise.
12946 2017-08-11 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
12951 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12958 * Makefile.am (dist-hook): Add .strace.1.in.date generation.
12965 * file-date-gen: New auxiliary script.
12972 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12979 (.SH SYNOPSYS): Format using .SY/.OP/.OM/.OR. Put -p/command inside
12982 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12984 strace.1: remove date from .TH, as it is no longer relevant.
12987 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12990 It is present in groff macros nowadays.
12994 2017-08-10 Eugene Syromyatnikov <evgsyr@gmail.com>
12996 strace.1: replace .TP with .TQ between command-line option variants.
13002 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
13016 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13036 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13039 The side effect of #include "xlat/nl_route_types.h" is
13042 netlink_route.c is going to need them soon.
13048 2017-08-09 JingPiao Chen <chenjingpiao@gmail.com>
13063 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13072 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13078 2017-08-08 JingPiao Chen <chenjingpiao@gmail.com>
13085 (get_fd_nl_family): Replace NL_FAMILY_ERROR with -1.
13093 2017-08-07 Dmitry V. Levin <ldv@altlinux.org>
13101 2017-08-07 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
13113 2017-08-07 JingPiao Chen <chenjingpiao@gmail.com>
13118 2017-08-07 Edgar Kaziakhmedov <edgar.kaziakhmedov@virtuozzo.com>
13142 2017-08-07 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
13144 tests: move check_* functions from options-syntax.test to separate file.
13145 * tests/options-syntax.test: Move check_* functions to ...
13149 2017-08-07 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
13161 2017-08-06 Dmitry V. Levin <ldv@altlinux.org>
13165 Remove the dance around possible re-injection of WSTOPSIG(status)
13166 as the only observable stop here is the initial ptrace-stop.
13168 Fix handling of unexpected tracees when PTRACE_SEIZE is not in use.
13170 The expected ptrace stop signal in case of !use seize is not
13172 distinguish signal stops that should be re-injected from other kinds
13174 of initial ptrace-stop.
13178 of symlinkat syscall is not a path but an arbitrary string, ignore it.
13180 2017-08-06 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
13186 2017-08-06 Dmitry V. Levin <ldv@altlinux.org>
13190 (line_ended, droptcb, print_event_exit): Use it to flush tcp->outf.
13209 2017-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
13212 This solves potential issues when tests run first and strace is rebuilt
13220 2017-08-05 Eugene Syromyatnikov <evgsyr@gmail.com>
13225 - detach it instead of PTRACE_CONT'ing;
13226 - send it the signal with which it has been stopped.
13234 2017-08-04 Dmitry V. Levin <ldv@altlinux.org>
13244 2017-08-04 Dmitry V. Levin <ldv@altlinux.org>
13248 PTRACE_PEEKTEXT becames unavailable when the process dumpable flag is
13249 cleared. As this is not a fatal condition for get_scno, do not bail out
13252 This condition is triggered and therefore tested by prctl-dumpable test.
13257 2017-08-02 Dmitry V. Levin <ldv@altlinux.org>
13260 * tests/printstrn-umoven.c: New file.
13261 * tests/printstrn-umoven-peekdata.c: Likewise.
13262 * tests/printstrn-umoven-undumpable.c: Likewise.
13263 * tests/printstrn-umoven-legacy.test: New test.
13264 * tests/Makefile.am (MISC_TESTS): Add printstrn-umoven-legacy.test.
13265 * tests/gen_tests.in (printstrn-umoven, printstrn-umoven-peekdata,
13266 printstrn-umoven-undumpable): New entries.
13267 * tests/pure_executables.list: Add printstrn-umoven,
13268 printstrn-umoven-peekdata, and printstrn-umoven-undumpable.
13276 2017-08-01 Dmitry V. Levin <ldv@altlinux.org>
13280 * tests/printpath-umovestr.c: New file.
13281 * tests/printpath-umovestr-peekdata.c: Likewise.
13282 * tests/printpath-umovestr-undumpable.c: Likewise.
13283 * tests/printpath-umovestr-legacy.test: New test.
13284 * tests/Makefile.am (MISC_TESTS): Add printpath-umovestr-legacy.test.
13285 * tests/gen_tests.in (printpath-umovestr, printpath-umovestr-peekdata,
13286 printpath-umovestr-undumpable): New entries.
13287 * tests/pure_executables.list: Add printpath-umovestr,
13288 printpath-umovestr-peekdata, and printpath-umovestr-undumpable.
13301 2017-08-01 Dmitry V. Levin <ldv@altlinux.org>
13305 pathnames, treating non-NUL-terminated pathnames as ENAMETOOLONG.
13308 (printpath): Specify PATH_MAX - 1 as the maximum pathname length
13311 PATH_MAX - 1 bytes will be printed.
13313 2017-07-31 Dmitry V. Levin <ldv@altlinux.org>
13319 2017-07-31 Dmitry V. Levin <ldv@altlinux.org>
13322 Move legacy PTRACE_PEEKDATA-based support to separate functions.
13327 2017-07-31 Dmitry V. Levin <ldv@altlinux.org>
13334 2017-07-31 Eugene Syromyatnikov <evgsyr@gmail.com>
13341 after non-liability disclaimer (or "(none)" in case it is empty).
13342 (print_version) [USE_LIBUNWIND]: Concatenate "stack-unwind" into features
13344 * tests/strace-V.tests (getoption): New function.
13347 2017-07-31 Eugene Syromyatnikov <evgsyr@gmail.com>
13349 tests/strace-V.test: rename getval to getstr.
13350 As this name is more suitable.
13352 * tests/strace-V (getval): Rename to getstr, update all call sites.
13354 2017-07-30 Dmitry V. Levin <ldv@altlinux.org>
13364 2017-07-29 Dmitry V. Levin <ldv@altlinux.org>
13370 2017-07-28 Dmitry V. Levin <ldv@altlinux.org>
13373 These functions are more kernel-specific compared to all other functions
13380 2017-07-27 Dmitry V. Levin <ldv@altlinux.org>
13387 to these addresses is specified at the map creation time
13388 by BPF_MAP_CREATE command and is not available at this point.
13401 2017-07-27 Dmitry V. Levin <ldv@altlinux.org>
13406 v4.6-rc1~91^2~108^2~6 and v4.12-rc1~64^3~373^2~2, respectively.
13420 2017-07-27 Dmitry V. Levin <ldv@altlinux.org>
13424 command introduced by linux kernel commit v4.12-rc2~34^2~29^2~2.
13436 2017-07-26 Dmitry V. Levin <ldv@altlinux.org>
13441 * tests/bpf-v.c: New file.
13442 * tests/gen_tests.in (bpf-v): New entry.
13443 * tests/pure_executables.list: Add bpf-v.
13454 2017-07-26 Dmitry V. Levin <ldv@altlinux.org>
13456 bpf: print unused fields of union bpf_attr if one of them is non-zero.
13459 zero. Print this extra data when it contains non-zero bytes to enhance
13472 2017-07-26 Dmitry V. Levin <ldv@altlinux.org>
13477 When the whole chunk of memory specified by addr and size arguments is
13487 to command-specific parsers.
13489 2017-07-25 Dmitry V. Levin <ldv@altlinux.org>
13513 2017-07-25 Eugene Syromyatnikov <evgsyr@gmail.com>
13523 2017-07-24 Dmitry V. Levin <ldv@altlinux.org>
13526 In many places where kernel expects a NUL-terminated string of length
13527 up to a known fixed limit, e.g. when a NUL-terminated string is
13528 a fixed-size field of a structure, strace does not print the last byte
13529 assuming it is NUL, which is not always the case.
13531 Change output format for such strings to distinguish NUL-terminated
13532 strings from non-NUL-terminated ones: append ellipsis to the output
13533 when the string is not NUL-terminated.
13553 2017-07-24 JingPiao Chen <chenjingpiao@gmail.com>
13585 2017-07-24 JingPiao Chen <chenjingpiao@gmail.com>
13588 As the first field of NETLINK_CRYPTO messages is a string, print
13596 2017-07-24 JingPiao Chen <chenjingpiao@gmail.com>
13605 2017-07-23 Dmitry V. Levin <ldv@altlinux.org>
13615 2017-07-23 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
13617 pathtrace: fix fanotify_mark path tracing on 32-bit architectures.
13618 The fanotify_mark syscall takes a 64-bit mask, and on 32-bit
13619 architectures it is split up into two syscall arguments.
13624 2017-07-22 Dmitry V. Levin <ldv@altlinux.org>
13627 * travis-build.sh [CHECK == valgrind]: Pass --enable-valgrind
13628 to configure and appropriate check-valgrind-* to make.
13629 * travis-install.sh [CHECK == valgrind]: Install valgrind.
13631 2017-07-22 JingPiao Chen <chenjingpiao@gmail.com>
13637 so technically there is no difference, but the use of wrong macro
13638 is misleading.
13647 2017-07-22 Dmitry V. Levin <ldv@altlinux.org>
13650 Dependency tracking is completely useless for one-time builds,
13653 * travis-build.sh (DISTCHECK_CONFIGURE_FLAGS): Add
13654 --disable-dependency-tracking.
13656 2017-07-22 Eugene Syromyatnikov <evgsyr@gmail.com>
13661 should be recursively expanded) as when it is omitted at all, so let's
13670 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13678 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13680 tests: robustify strace-t.test.
13681 If strace -t is running too long, it might happen that time stamps
13682 before and after its invocation differ for more than a second.
13685 * tests/strace-t.test: Allow any time stamp between start and finish
13688 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13697 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13699 tests: tweak strace-ff.test for slow startup case.
13703 * tests/strace-ff.test: Increase sleep delay.
13705 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13711 2017-07-21 Dmitry V. Levin <ldv@altlinux.org>
13714 There is no need to copy the optarg string since it is a pointer
13721 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13724 * travis-build.sh: Print build environment information.
13726 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13728 build: add check-valgrind-* to recursive targets.
13729 As make -j$N check-valgrind cannot parallelize properly, add
13732 make -k check-valgrind-$n || rc=$?
13737 * m4/ax_valgrind_check.m4 (AX_VALGRIND_CHECK): Add check-valgrind
13738 and check-valgrind-* to AM_EXTRA_RECURSIVE_TARGETS.
13740 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13742 tests: add check-valgrind-local make rule.
13744 are made on 'make check-valgrind' before its recipe is processed.
13746 * tests/Makefile.am (check-valgrind-local): New rule.
13749 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13754 and 'make check-valgrind' before other targets are processed.
13759 2017-07-20 Dmitry V. Levin <ldv@altlinux.org>
13765 Fixes: v4.16-74-g16036030 ("tests: run every test except ksysent.test in its own subdirectory")
13767 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13771 this version does not eat check-valgrind errors.
13781 commit v4.13-rc1~13^2~1^2~1.
13786 v4.13-rc1~161^2~87.
13789 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13791 Move family-specific NETLINK_SOCK_DIAG parsers to separate files.
13802 * netlink_sock_diag.c: Move family-specific parsers and associated
13809 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13812 Change the type of "len" argument that is based
13839 2017-07-19 JingPiao Chen <chenjingpiao@gmail.com>
13855 2017-07-19 JingPiao Chen <chenjingpiao@gmail.com>
13859 v4.11-rc5-1382-g2d4bc93.
13863 nlmsghdr->nlmsg_flags & NLM_F_CAPPED to decode_nlmsgerr.
13867 2017-07-19 JingPiao Chen <chenjingpiao@gmail.com>
13877 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13881 of stdout as the latter is more likely to be redirected to a temporary
13882 file in the context where this function is called.
13887 SIGKILL if the command is still running 5 seconds after SIGXCPU.
13898 2017-07-19 Dmitry V. Levin <ldv@altlinux.org>
13901 As struct uffdio_api.features has read-write semantics,
13910 2017-07-18 Dmitry V. Levin <ldv@altlinux.org>
13921 2017-07-18 Dmitry V. Levin <ldv@altlinux.org>
13926 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13935 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13946 2017-07-17 Dmitry V. Levin <ldv@altlinux.org>
13951 2017-07-16 Dmitry V. Levin <ldv@altlinux.org>
13957 v4.12-rc1~64^3~287^2~5, v4.13-rc1~157^2~271^2~5,
13958 v4.13-rc1~157^2~271^2~4, v4.13-rc1~157^2~271^2~3, and
13959 v4.13-rc1~157^2~271^2~1, respectively.
13961 by linux kernel commit v4.13-rc1~157^2~37^2~15.
13967 commit v4.13-rc1~157^2~124.
13971 by linux kernel commit v4.13-rc1~157^2~405^2~3.
13973 2017-07-16 JingPiao Chen <chenjingpiao@gmail.com>
13989 2017-07-15 Dmitry V. Levin <ldv@altlinux.org>
14000 2017-07-15 Dmitry V. Levin <ldv@altlinux.org>
14002 Provide mpers_ptr_t definition for non-mpers case.
14003 In mpers case, mpers_ptr_t is already defined by DEF_MPERS_TYPE(...).
14008 2017-07-14 Lazar Trsic <Lazar.Trsic@imgtec.com>
14014 is_negated_errno() is not used on those architectures
14017 The issue was raised when compiling with clang, which is more
14019 defined in C files and will issue a -Wunused-function warrning
14046 2017-07-14 Dmitry V. Levin <ldv@altlinux.org>
14059 2017-07-13 Dmitry V. Levin <ldv@altlinux.org>
14071 2017-07-13 Lazar Trsic <Lazar.Trsic@imgtec.com>
14074 By default for MIPS64 in Android __u64 type is exported
14075 as unsigned long long. This caused compilation -Wformat warnings
14076 and would break the build if -Werror is used.
14081 2017-07-13 Dmitry V. Levin <ldv@altlinux.org>
14090 2017-07-12 Dmitry V. Levin <ldv@altlinux.org>
14094 is too long.
14102 2017-07-12 Dmitry V. Levin <ldv@altlinux.org>
14107 v4.18-58-g37ef2d0d.
14112 2017-07-12 JingPiao Chen <chenjingpiao@gmail.com>
14148 2017-07-11 JingPiao Chen <chenjingpiao@gmail.com>
14174 2017-07-11 Dmitry V. Levin <ldv@altlinux.org>
14191 2017-07-11 Dmitry V. Levin <ldv@altlinux.org>
14200 2017-07-10 Dmitry V. Levin <ldv@altlinux.org>
14204 commit v4.12-rc5-150-gb745fafa.
14213 print_inet_addr: use inet_addr-based output format for IPv4.
14215 <AF_INET>: Use inet_addr-based output format.
14222 2017-07-10 JingPiao Chen <chenjingpiao@gmail.com>
14239 2017-07-10 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
14241 pathtrace.c: introduce user-provided sets of paths.
14254 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14262 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14273 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14278 When the option length is invalid, print the address.
14281 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14284 As multicast socket options are shared between IPv4 and IPv6,
14290 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14293 Multicast socket options are shared between IPv4 and IPv6.
14299 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14304 is invalid, print the address.
14326 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14335 2017-07-09 Dmitry V. Levin <ldv@altlinux.org>
14399 2017-07-09 JingPiao Chen <chenjingpiao@gmail.com>
14403 * tests/netlink_sock_diag-v.sh: New file.
14423 2017-07-09 JingPiao Chen <chenjingpiao@gmail.com>
14426 commit v4.17-161-gdbd0605 that adjusted TEST_NLATTR_OBJECT and
14437 2017-07-09 JingPiao Chen <chenjingpiao@gmail.com>
14440 Explicitly make struct nlattr * pointer which is internal
14445 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14459 * tests/sock_filter-v.c: New file.
14460 * tests/gen_tests.in (sock_filter-v): New entry.
14461 * tests/pure_executables.list: Add sock_filter-v.
14490 first argument which is now redundant.
14508 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14511 As the last argument of getsockopt syscall has read-write semantics,
14519 * tests/net-icmp_filter.c (main): Update expected output.
14521 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14529 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14533 The only difference noticeable from strace PoV is the meaning of generic
14559 2017-07-08 Dmitry V. Levin <ldv@altlinux.org>
14561 Assume that <linux/filter.h> is always available.
14567 * tests/prctl-seccomp-filter-v.c: Likewise.
14568 * tests/seccomp-filter-v.c: Likewise.
14569 * tests/seccomp-filter.c: Likewise.
14571 2017-07-07 Dmitry V. Levin <ldv@altlinux.org>
14574 BPF_END is one of three eBPF-only opcodes for BPF_ALU class.
14579 2017-07-07 JingPiao Chen <chenjingpiao@gmail.com>
14630 2017-07-06 Dmitry V. Levin <ldv@altlinux.org>
14632 strace.1: remove misleading remark that -i option is weakly supported.
14633 Given that -i functionality is covered by pc.test, the remark that
14634 it is weakly supported is wrong.
14636 * strace.1 (BUGS): Remove the remark about weakly supported -i option.
14638 2017-07-06 Dmitry V. Levin <ldv@altlinux.org>
14640 Post-release administrivia.
14642 * debian/changelog.in: Add a changelog entry for 4.18-1.
14645 2017-07-05 Dmitry V. Levin <ldv@altlinux.org>
14650 2017-07-04 Dmitry V. Levin <ldv@altlinux.org>
14653 There is a race condition between the moment a netlink socket is created
14654 and the moment it is reported via SOCK_DIAG_BY_FAMILY interface.
14661 2017-07-04 Dmitry V. Levin <ldv@altlinux.org>
14665 2017-07-04 Romain Naour <romain.naour@smile.fr>
14668 Starting with linux commit v4.0-rc4~21^2, "SP" register
14669 is available via regs[PTR_SP] member of struct user_pt_regs.
14677 Fixes: v4.16-34-g6117728a ("nios2: export nios2_sp_ptr")
14679 2017-07-03 Eugene Syromyatnikov <evgsyr@gmail.com>
14682 tests: add multi-process check to qual_fault.test.
14683 Check that syscall counters used for tampering are per-tcb.
14694 initialization. Add per-process loop, open expfd, gotfd, out_fd, pidfd
14702 Specify -ff parameter to strace invocation.
14708 2017-07-03 Dmitry V. Levin <ldv@altlinux.org>
14718 Reported-by: JingPiao Chen <chenjingpiao@gmail.com>
14720 2017-07-03 Dmitry V. Levin <ldv@altlinux.org>
14738 Suggested-by: JingPiao Chen <chenjingpiao@gmail.com>
14740 2017-07-03 Eugene Syromyatnikov <evgsyr@gmail.com>
14743 * tests/init.sh (match_diff): Add -u option to the diff invocation.
14745 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14749 check that adjusted argc is sane.
14753 * tests/options-syntax.test: Check strace error diagnostics
14756 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14759 Emulate program_invocation_name only if it is not provided by libc.
14767 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14777 2017-07-02 Dmitry V. Levin <ldv@altlinux.org>
14790 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14797 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14815 * tests/quotactl-xfs.c: Update callers of PRINT_FIELD_* macros.
14825 2017-07-01 Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
14828 "sp" register is a member of "scratch" structure (which is nested
14833 Fixes: v4.16-31-g134042a5 ("arc: export arc_sp_ptr")
14835 2017-07-01 Khem Raj <raj.khem@gmail.com>
14844 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14854 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14862 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14868 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14873 the purpose of these "const" qualifiers is to highlight the intent.
14879 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14886 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14896 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14904 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14910 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14915 the purpose of these "const" qualifiers is to highlight the intent.
14921 2017-07-01 JingPiao Chen <chenjingpiao@gmail.com>
14933 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14943 2017-07-01 Dmitry V. Levin <ldv@altlinux.org>
14948 uint8_t, and zero-terminated string attributes.
14950 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
14964 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
14972 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
14980 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
14985 the purpose of these "const" qualifiers is to highlight the intent.
14992 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
15005 2017-06-30 Dmitry V. Levin <ldv@altlinux.org>
15009 the purpose of these "const" qualifiers is to highlight the intent.
15014 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
15029 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
15036 2017-06-30 JingPiao Chen <chenjingpiao@gmail.com>
15060 2017-06-29 Dmitry V. Levin <ldv@altlinux.org>
15071 2017-06-29 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
15073 Update ioctl entries from linux v4.12-rc7.
15074 * linux/32/ioctls_inc_align16.h: Update from linux v4.12-rc7
15082 2017-06-29 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
15087 a list match the grep pattern, grep exits with a non-zero status that
15088 causes xargs to exit with a non-zero status, too.
15090 * maint/ioctls_sym.sh: Use "find -exec +" instead of xargs,
15093 2017-06-27 JingPiao Chen <chenjingpiao@gmail.com>
15099 2017-06-27 JingPiao Chen <chenjingpiao@gmail.com>
15115 2017-06-26 Dmitry V. Levin <ldv@altlinux.org>
15127 2017-06-26 Dmitry V. Levin <ldv@altlinux.org>
15129 Check -s argument early.
15130 * util.c (printstr_ex): Move the check that -s argument
15131 does not exceed -1U / 4 ...
15133 * tests/options-syntax.test: Check it.
15135 2017-06-25 Dmitry V. Levin <ldv@altlinux.org>
15141 * tests/net-sockaddr.c: Likewise.
15149 * tests/net-yy-netlink.c: Include "netlink.h" instead
15157 2017-06-24 Dmitry V. Levin <ldv@altlinux.org>
15167 2017-06-23 Dmitry V. Levin <ldv@altlinux.org>
15171 introduced by linux kernel commit v4.12-rc1~153^2~2.
15173 2017-06-22 Dmitry V. Levin <ldv@altlinux.org>
15177 by linux kernel commit v4.12-rc1~85^2~71.
15182 introduced by linux kernel commits v3.17-rc1~112^2~363,
15183 v4.1-rc1~59^2~1^2~63, and v4.12-rc1~85^2~62, respectively.
15186 v3.17-rc1~112^2~343 and v3.17-rc1~112^2~112.
15192 by linux kernel commits v4.11-rc1~124^2~387^2~1, v4.11-rc1~124^2~387^2,
15193 v4.11-rc1~124^2~166^2~2, v4.11-rc1~124^2~166^2, v4.12-rc1~64^3~469^2,
15194 and v4.12-rc1~64^3~276, respectively.
15198 by linux kernel commit v4.12-rc1~64^3~312^2~6.
15202 by linux kernel commit v4.12-rc1~64^3~260.
15207 by linux kernel commit v4.12-rc1~123^2~7^2~2^2~3.
15211 by linux kernel commit v4.12-rc1~129^2~118^2~2.
15215 and SO_COOKIE introduced by linux kernel commits v4.12-rc1~64^3~389,
15216 v4.12-rc1~64^3~341^2, and v4.12-rc1~64^3~221^2~1, respectively.
15218 2017-06-21 Dmitry V. Levin <ldv@altlinux.org>
15224 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15232 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15244 2017-06-21 JingPiao Chen <chenjingpiao@gmail.com>
15256 2017-06-20 Dmitry V. Levin <ldv@altlinux.org>
15263 2017-06-19 Dmitry V. Levin <ldv@altlinux.org>
15279 unaligned struct nlmsghdr. Do not access nlh->nlmsg_len.
15281 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15289 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15292 NETLINK_GENERIC is a protocol stacked on netlink protocol.
15295 kernel at run time, an integer value associated with this name is
15296 assigned by the kernel. This integer value is specified in struct
15303 $ ./strace -yy -e 'sendto' ip tcp_metrics > /dev/null
15308 is decoded properly.
15313 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15324 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15329 printxval is suitable for printing struct nlmsghdr.nlmsg_type for
15335 dynamically. The primary use case is decoding nlmsg_type but this
15343 2017-06-19 Masatake YAMATO <yamato@redhat.com>
15350 2017-06-18 Dmitry V. Levin <ldv@altlinux.org>
15354 print_nlmsghdr and after decode_payload iff decode_payload is invoked.
15363 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15372 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15380 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15389 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15394 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15401 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15409 2017-06-17 Dmitry V. Levin <ldv@altlinux.org>
15417 2017-06-16 Dmitry V. Levin <ldv@altlinux.org>
15420 The string returned by inet_ntoa(3) has IPv4 dotted-decimal notation,
15425 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15431 2017-06-15 Miroslav Lichvar <mlichvar@redhat.com>
15450 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15468 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15490 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15499 2017-06-15 JingPiao Chen <chenjingpiao@gmail.com>
15533 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15568 2017-06-15 Dmitry V. Levin <ldv@altlinux.org>
15574 2017-06-14 Dmitry V. Levin <ldv@altlinux.org>
15583 2017-06-14 JingPiao Chen <chenjingpiao@gmail.com>
15588 2017-06-13 Dmitry V. Levin <ldv@altlinux.org>
15599 2017-06-12 Dmitry V. Levin <ldv@altlinux.org>
15607 2017-06-12 Masatake YAMATO <yamato@redhat.com>
15610 This is the second patch in series of implementing NETLINK_GENERIC
15628 2017-06-12 Masatake YAMATO <yamato@redhat.com>
15631 This is the first patch in series of implementing NETLINK_GENERIC
15643 2017-06-12 JingPiao Chen <chenjingpiao@gmail.com>
15648 2017-06-08 Dmitry V. Levin <ldv@altlinux.org>
15652 to printxvals, takes a NULL-terminated sequence of xlat pointers.
15663 2017-06-08 JingPiao Chen <chenjingpiao@gmail.com>
15676 2017-06-08 JingPiao Chen <chenjingpiao@gmail.com>
15688 2017-06-08 Dmitry V. Levin <ldv@altlinux.org>
15696 2017-06-05 Victor Krapivensky <krapivenskiy.va@phystech.edu>
15700 syscall.c trace functions is expected to check whether it is a syscall
15718 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15721 nfnetlink was introduced in linux by commit v2.6.14-rc1~1035^2~217,
15727 2017-06-05 JingPiao Chen <chenjingpiao@gmail.com>
15766 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15787 2017-06-05 JingPiao Chen <chenjingpiao@gmail.com>
15794 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15825 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15838 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15847 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15863 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15872 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15878 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15888 2017-06-05 Dmitry V. Levin <ldv@altlinux.org>
15893 2017-06-05 Fabien Siron <fabien.siron@epita.fr>
15907 2017-06-05 Victor Krapivensky <krapivenskiy.va@phystech.edu>
15910 This will be needed for the pull-style API.
15915 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15918 Do not assume that an executable is small enough and SO_SNDBUF is large
15925 Reported-by: Andreas Schwab <schwab@linux-m68k.org>
15927 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15930 The side effect of #include "xlat/netlink_protocols.h" is
15933 is going to need them soon.
15938 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15940 travis: switch from gcc-6 to gcc-7.
15941 * .travis.yml (matrix): Change gcc-6 to gcc-7.
15945 initializers. Check decoding of messages with non-integer payload.
15947 2017-06-04 JingPiao Chen <chenjingpiao@gmail.com>
15955 2017-06-04 Dmitry V. Levin <ldv@altlinux.org>
15961 2017-06-03 Dmitry V. Levin <ldv@altlinux.org>
15975 2017-06-03 Dmitry V. Levin <ldv@altlinux.org>
15988 2017-06-02 Dmitry V. Levin <ldv@altlinux.org>
15996 2017-06-02 Dmitry V. Levin <ldv@altlinux.org>
15999 There is nothing unusual about PTRACE_EVENT_EXEC that would require
16005 2017-06-02 Dmitry V. Levin <ldv@altlinux.org>
16008 As strace does not use WCONTINUED flag, there is no need to handle
16014 2017-06-02 Victor Krapivensky <krapivenskiy.va@phystech.edu>
16019 for implementing a pull-style API for LuaJIT.
16026 2017-05-30 Dmitry V. Levin <ldv@altlinux.org>
16036 Reported-by: David Robins <dbrobins@i4031.net>
16038 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16056 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16065 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16074 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16077 On alpha, struct old_sigaction.sa_flags has a 32-bit type.
16079 On mips, only first word of old_sigaction.sa_mask is read.
16093 is set.
16096 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16099 SA_ONSTACK is the standard name while its alias SA_STACK is not even
16104 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16118 2017-05-28 Dmitry V. Levin <ldv@altlinux.org>
16128 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16130 Enable coverage when strace is self terminated by signal.
16131 The data collected by -fprofile-arcs during program run is saved
16132 on program exit. When program is terminated by signal, the data
16133 is not saved. However, libgcov provides an interface to dump
16136 * m4/ax_code_coverage.m4 (AX_CODE_COVERAGE): Add -DENABLE_COVERAGE_GCOV
16142 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16152 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16155 When traced command is terminated by a blocked signal, unblock
16161 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16174 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16187 2017-05-27 Dmitry V. Levin <ldv@altlinux.org>
16190 In interactive mode (-I2), those signals that were blocked at startup
16199 2017-05-26 Dmitry V. Levin <ldv@altlinux.org>
16211 2017-05-26 Eugene Syromyatnikov <evgsyr@gmail.com>
16215 2017-05-25 Dmitry V. Levin <ldv@altlinux.org>
16217 Post-release administrivia.
16219 * debian/changelog.in: Add a changelog entry for 4.17-1.
16222 2017-05-24 Dmitry V. Levin <ldv@altlinux.org>
16232 2017-05-23 Dmitry V. Levin <ldv@altlinux.org>
16240 2017-05-22 Dmitry V. Levin <ldv@altlinux.org>
16255 2017-05-22 Eugene Syromyatnikov <evgsyr@gmail.com>
16259 2017-05-22 Eugene Syromyatnikov <evgsyr@gmail.com>
16266 2017-05-22 Eugene Syromyatnikov <evgsyr@gmail.com>
16270 unwind.c: remove non-ASCII character from comment.
16272 2017-05-21 Dmitry V. Levin <ldv@altlinux.org>
16284 * linux/mips/syscallent-o32.h: Likewise.
16296 2017-05-20 Dmitry V. Levin <ldv@altlinux.org>
16303 2017-05-16 Dmitry V. Levin <ldv@altlinux.org>
16312 * HACKING-scripts: Update.
16316 2017-05-16 Dmitry V. Levin <ldv@altlinux.org>
16325 2017-05-01 Eugene Syromyatnikov <evgsyr@gmail.com>
16329 linux/mtd-abi.h: remove non-ASCII character from file comment.
16331 2017-05-01 Dmitry V. Levin <ldv@altlinux.org>
16336 enough, the signal mask is passed by value on all architectures except
16343 * linux/mips/syscallent-o32.h: Likewise.
16356 2017-05-01 Dmitry V. Levin <ldv@altlinux.org>
16360 by their nature, the one minute default timeout is no longer enough
16365 2017-05-01 Eugene Syromyatnikov <evgsyr@gmail.com>
16369 2017-04-29 Dmitry V. Levin <ldv@altlinux.org>
16373 by linux kernel commit v4.11-rc1~124^2~321^2.
16375 2017-04-28 Dmitry V. Levin <ldv@altlinux.org>
16379 commit v4.11-rc1~94^2~43^2~13.
16381 2017-04-27 Dmitry V. Levin <ldv@altlinux.org>
16390 2017-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
16392 tests: add -etrace=?... test.
16393 Check for some architecture-specific syscalls which are not present
16400 2017-04-25 Eugene Syromyatnikov <evgsyr@gmail.com>
16410 2017-04-25 Dmitry V. Levin <ldv@altlinux.org>
16415 2017-04-25 Edgar Kaziahmedov <edos@linux.com>
16429 commit v2.6.11-rc4~55^2~20.
16431 v3.15-rc1~85^2~215.
16432 Add V4L2_TUNER_SDR introduced by linux kernel commit v4.4-rc1~118^2~17
16439 introduced by linux kernel commit v3.6-rc1~28^2~306.
16440 Add V4L2_TUNER_CAP_RDS introduced by linux commit v2.6.32-rc1~679^2~189.
16442 introduced by linux kernel commit v2.6.37-rc1~64^2~110.
16444 v3.6-rc1~28^2~46.
16446 v3.6-rc1~28^2~40.
16448 v3.15-rc1~85^2~214.
16454 v2.6.17-rc1~739^2~9.
16460 v2.6.32-rc1~679^2~189.
16462 2017-04-24 Dmitry V. Levin <ldv@altlinux.org>
16481 * tests/recvmmsg-timeout.c (main): Likewise.
16488 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16496 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16511 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16520 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16523 Print microseconds/nanoseconds as non-negative.
16526 it is even checked by conversion to unsigned long.
16568 2017-04-24 Eugene Syromyatnikov <evgsyr@gmail.com>
16604 2017-04-24 Dmitry V. Levin <ldv@altlinux.org>
16634 * tests/strace-r.expected: Likewise.
16635 * tests/strace-t.test: Likewise.
16636 * tests/strace-tt.test: Likewise.
16637 * tests/strace-ttt.test: Likewise.
16638 * tests/threads-execve.c: Likewise.
16639 * tests/threads-execve.test: Likewise.
16651 2017-04-23 Eugene Syromyatnikov <evgsyr@gmail.com>
16656 2017-04-22 Dmitry V. Levin <ldv@altlinux.org>
16662 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16668 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16671 There is no sense to copy it to static buffer first.
16676 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16679 stat.sample is created by appropriate executables and never removed.
16684 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
16692 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16694 Implement -e trace=%stat option.
16695 linux/*/syscallent*.h part is updated automatically by:
16697 sed -i '/statx/! s/TF|TSTA,/TF|TST|TSTA,/' linux/*/syscallent*.h
16706 * linux/mips/syscallent-n32.h: Likewise.
16707 * linux/mips/syscallent-n64.h: Likewise.
16717 * linux/mips/syscallent-o32.h: Likewise.
16729 * linux/mips/syscallent-compat.h (bsd43_oldstat, bsd43_stat, posix_stat,
16737 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16739 Implement -e trace=%lstat option.
16740 linux/*/syscallent*.h part is updated automatically by:
16742 sed -i '/TSTA,.*lx\?stat/ s/TSTA,/TLST|&/' linux/*/syscallent*.h
16751 * linux/mips/syscallent-n32.h: Likewise.
16752 * linux/mips/syscallent-n64.h: Likewise.
16762 * linux/mips/syscallent-o32.h: Likewise.
16774 * linux/mips/syscallent-compat.h (bsd43_lstat, posix_lstat, svr4_lstat,
16782 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16784 Implement -e trace=%fstat option.
16785 linux/*/syscallent*.h part is updated automatically by:
16787 sed -i -e '/TSTA.*fx\?stat/ s/TSTA,/TFST|&/' \
16788 -e 's/\(TD|TF|TFST|TSTA,\)[[:space:]]/\1/' linux/*/syscallent*.h
16799 * linux/mips/syscallent-n32.h: Likewise.
16800 * linux/mips/syscallent-n64.h: Likewise.
16810 * linux/mips/syscallent-o32.h: Likewise.
16823 * linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_oldfstat, posix_fstat,
16831 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16833 Implement -e trace=%%stat option.
16834 linux/*/syscallent*.h part is updated automatically by:
16836 sed -i '/TSFA\|stat[iu]s/! s/,[[:space:]]\?\([[:space:]]*SEN(.*stat\)/|TSTA,\1/' \
16867 * linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_lstat, bsd43_oldfstat,
16871 * linux/mips/syscallent-n32.h (fstat, lstat, newfstatat, stat, statx): Likewise.
16872 * linux/mips/syscallent-n64.h (fstat, lstat, newfstatat, stat, statx): Likewise.
16873 * linux/mips/syscallent-o32.h (fstat, fstat64, fstatat64, lstat, lstat64,
16900 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16902 qualify: add syntax for optional non-matching syscall qualification.
16903 It may be useful in case syscall is not present on the target
16907 in case syscall qualification is led by a question mark(s).
16911 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16921 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16923 linux/mips/syscallent-compat.h: add some TD/TF flags for *stat* variants
16927 [1] http://math-atlas.sourceforge.net/devel/assembly/mipsabi32.pdf
16929 * linux/mips/syscallent-compat.h (*_xstat, *_lxstat, bsd43_oldstat):
16933 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16935 Implement -e trace=%%statfs option.
16936 linux/*/syscallent*.h part is updated automatically by:
16938 sed -i 's/\(TSF\),[[:space:]]\?/\1|TSFA,/' linux/*/syscallent*.h
16939 sed -i 's/\(TFSF\),/\1|TSFA,/' linux/*/syscallent*.h
16940 sed -i 's/0\(,.*ustat\)/TSFA\1/' linux/*/syscallent*.h
16950 * linux/mips/syscallent-n64.h: Likewise.
16963 * linux/mips/syscallent-n32.h: Likewise.
16964 * linux/mips/syscallent-o32.h: Likewise.
16976 * linux/mips/syscallent-compat.h (*_statfs, *_statvfs, *_fstatfs): Likewise.
16983 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
16985 Implement -e trace=%fstatfs option.
16986 linux/*/syscallent*.h part is updated automatically by:
16988 sed -i 's/TD,[[:space:]]\([[:space:]]*SEN.*[_"]fstatv\?fs\)/TD|TFSF,\1/' \
16999 * linux/mips/syscallent-n64.h: Likewise.
17012 * linux/mips/syscallent-n32.h: Likewise.
17013 * linux/mips/syscallent-o32.h: Likewise.
17024 * linux/mips/syscallent-compat.h (*_fstatfs, *_fstatvfs): Likewise.
17031 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17036 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17047 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17058 2017-04-21 Dmitry V. Levin <ldv@altlinux.org>
17069 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17081 2017-04-21 Eugene Syromyatnikov <evgsyr@gmail.com>
17092 2017-04-20 Dmitry V. Levin <ldv@altlinux.org>
17097 2017-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
17100 As tests are executed in separate directories now, there is no need to
17105 2017-04-20 Eugene Syromyatnikov <evgsyr@gmail.com>
17111 * tests/fstat.test: Use it as an argument for -P option.
17115 2017-04-19 Eugene Syromyatnikov <evgsyr@gmail.com>
17121 * Makefile.am (dist-hook): Generate .year.
17122 * copyright-year-gen: New file.
17124 of copyright-year-gen script.
17130 * tests/strace-V.test (config_year): New variable, derived from config.h.
17133 Reported-by: Andreas Schwab <schwab@suse.de>
17135 2017-04-19 Dmitry V. Levin <ldv@altlinux.org>
17141 * tests/attach-f-p.test: Move /proc/self/task/ check ...
17142 * tests/attach-f-p-cmd.c (main): ... here.
17145 * tests/net-y-unix.test: Move /proc/self/fd/ check ...
17146 * tests/net-y-unix.c (main): ... here.
17147 * tests/net-yy-inet.test: Move /proc/self/fd/ check ...
17148 * tests/net-yy-inet.c (main): ... here.
17149 * tests/net-yy-netlink.test: Move /proc/self/fd/ check ...
17150 * tests/net-yy-netlink.c (main): ... here.
17151 * tests/net-yy-unix.test: Move /proc/self/fd/ check ...
17152 * tests/net-yy-unix.c (main): ... here.
17154 2017-04-19 Dmitry V. Levin <ldv@altlinux.org>
17156 tests: tabulate pread64-pwrite64.test.
17157 * tests/gen_tests.in (pread64-pwrite64): New entry.
17158 * tests/pread64-pwrite64.c: (main): Skip the test if /proc/self/fd/
17159 is not available.
17160 * tests/pread64-pwrite64.test: Remove.
17161 * tests/Makefile.am (DECODER_TESTS): Remove pread64-pwrite64.test.
17163 tests: tabulate read-write.test.
17164 * tests/gen_tests.in (read-write): New entry.
17165 * tests/read-write.c: (main): Skip the test if /proc/self/fd/
17166 is not available.
17167 * tests/read-write.test: Remove.
17168 * tests/Makefile.am (DECODER_TESTS): Remove read-write.test.
17186 2017-04-18 Dmitry V. Levin <ldv@altlinux.org>
17195 * tests/gen_tests.sh: Specify -r option to read.
17198 2017-04-18 Eugene Syromyatnikov <evgsyr@gmail.com>
17202 2017-04-17 Dmitry V. Levin <ldv@altlinux.org>
17256 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17263 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17274 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17280 * tests/gen_tests.in (utimes): Update -a option.
17287 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17301 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17317 2017-04-16 Dmitry V. Levin <ldv@altlinux.org>
17328 2017-04-15 Dmitry V. Levin <ldv@altlinux.org>
17333 Reported-by: Victor Krapivensky <krapivenskiy.va@phystech.edu>
17335 2017-04-15 Victor Krapivensky <krapivenskiy.va@phystech.edu>
17342 * linux/mips/syscallent-n32.h [6330]: Likewise.
17343 * linux/mips/syscallent-n64.h [5326]: Likewise.
17344 * linux/mips/syscallent-o32.h [4366]: Likewise.
17354 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17370 * tests/gen_tests.in (mq): Update -a option.
17372 tests: make net-yy-netlink test executable reenterable.
17373 * tests/net-yy-netlink.c (main): Use getpid() instead of a fixed
17381 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17383 Revert "Implement -e trace=%sched option"
17384 -e trace=%sched became redundant as -e trace=/sched does the same.
17405 * linux/mips/syscallent-n32.h: Likewise.
17406 * linux/mips/syscallent-n64.h: Likewise.
17407 * linux/mips/syscallent-o32.h: Likewise.
17423 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17425 Revert "Implement -e trace=%clock option"
17426 -e trace=%clock became redundant as -e trace=/clock does the same.
17447 * linux/mips/syscallent-n32.h: Likewise.
17448 * linux/mips/syscallent-n64.h: Likewise.
17449 * linux/mips/syscallent-o32.h: Likewise.
17465 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17473 2017-04-14 JingPiao Chen <chenjingpiao@gmail.com>
17475 Implement -e trace=/regex option.
17479 * strace.1: Document -e trace=/regex option.
17480 * NEWS: Mention -e trace=/regex option.
17483 * tests/options-syntax.test: Add checks for invaild regexp
17486 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17494 2017-04-14 Dmitry V. Levin <ldv@altlinux.org>
17497 glibc on ia64 provides no clone() function, but there is a __clone2
17498 function instead. It is documented but no prototype is provided by
17504 2017-04-13 Edgar Kaziahmedov <edos@linux.com>
17522 linux kernel commit v3.17-rc1~112^2~217.
17525 V4L2_SLICED_VBI_625 introduced by linux kernel commit v2.6.14-rc2~64.
17532 2017-04-13 Dmitry V. Levin <ldv@altlinux.org>
17536 * travis-build.sh: Handle $KHEADERS.
17537 * travis-install.sh: Likewise.
17539 travis: switch from clang-3.6 to clang-3.8.
17540 * .travis.yml (matrix): Change clang-3.6 to clang-3.8.
17542 2017-04-13 Nikolay Marchuk <marchuk.nikolay.a@gmail.com>
17559 2017-04-13 Dmitry V. Levin <ldv@altlinux.org>
17562 * travis-build.sh (coverage): Print tests*/test-suite.log
17565 2017-04-12 Dmitry V. Levin <ldv@altlinux.org>
17567 travis: add gcc-6.
17568 * .travis.yml (matrix): Add gcc-6 entries.
17569 * travis-build.sh: Handle gcc*.
17570 * travis-install.sh: Handle gcc-*.
17572 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17574 tests: robustify gen_tests.sh against in-tree builds.
17578 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17589 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17593 when the result is going to be discarded. Prepare to change this lavish
17594 practice by delaying get_regs invocation until its result is actually
17602 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17606 (startup_tcb): ... here. This is a no-op change that slightly improves
17609 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17612 At this moment there is only one call to get_regs,
17613 but there is going to be more of them, so a guard is needed.
17616 which essentially reverts commit v4.9-288-ge9bfff6.
17619 * syscall.c (get_regs): Skip if get_regs_error != -1.
17621 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17634 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17637 * tests/getpid.c: Skip if __NR_getpid is not defined.
17638 * tests/getppid.c: Skip if __NR_getppid is not defined.
17642 2017-04-11 Dmitry V. Levin <ldv@altlinux.org>
17649 2017-04-10 Dmitry V. Levin <ldv@altlinux.org>
17657 2017-04-10 Dmitry V. Levin <ldv@altlinux.org>
17665 2017-04-10 Dmitry V. Levin <ldv@altlinux.org>
17669 v4.10-45-gdf4dd8b.
17672 * xlat/aclipc.in: Remove file unused since commit v4.9-46-g681452b.
17674 2017-04-07 Dmitry V. Levin <ldv@altlinux.org>
17677 statfs.expected is unused since commit v4.11-515-g67c2f67.
17682 2017-04-07 Sandhya Bankar <bankarsandhya512@gmail.com>
17695 2017-04-07 Edgar Kaziahmedov <edos@linux.com>
17700 introduced by linux kernel commit v3.2-rc1~63^2~55.
17703 v3.9-rc1~93^2~536.
17705 v3.10-rc1~136^2~560.
17708 v3.15-rc1~85^2~186.
17710 v4.2-rc1~107^2~389.
17713 v3.15-rc1~85^2~213 and v4.4-rc1~118^2~14, respectively.
17716 v3.19-rc1~29^2~72.
17718 kernel commits v4.2-rc1~107^2~182 and v4.4-rc1~118^2~120, respectively.
17721 kernel commits v3.15-rc1~85^2~210, v3.17-rc1~112^2~327,
17722 and v4.4-rc1~118^2~14, respectively.
17725 commit v3.8-rc1~115^2^2~52.
17727 2017-04-07 Abhishek Tiwari <erabhishektiwarics@gmail.com>
17729 Implement -e trace=%statfs option.
17730 linux/*/syscallent*.h part is modified automatically by:
17732 sed -i 's/TF\(,[[:space:]]*SEN.*[_"]statv\?fs\)/TF|TSF\1/' \
17746 * linux/mips/syscallent-n64.h: Likewise.
17757 * linux/mips/syscallent-n32.h: Likewise.
17758 * linux/mips/syscallent-o32.h: Likewise.
17769 * linux/mips/syscallent-compat.h (*_statfs, *_statvfs): Likewise.
17775 2017-04-06 Rishi Bhatt <bhatt.rishi062@gmail.com>
17777 Implement -e trace=%clock option.
17778 linux/*/syscallent.h part is modified automatically by
17779 sed -i 's/0\(,[[:space:]]*SEN(clock_\)/TCL\1/' linux/*/syscallent*.h
17800 * linux/mips/syscallent-n32.h: Likewise.
17801 * linux/mips/syscallent-n64.h: Likewise.
17802 * linux/mips/syscallent-o32.h: Likewise.
17819 2017-04-06 Dmitry V. Levin <ldv@altlinux.org>
17826 2017-04-05 Dmitry V. Levin <ldv@altlinux.org>
17828 tests: generalize scripts that check non-abbreviated decoding of ioctls.
17829 * tests/ioctl-v.sh: New file.
17831 (DECODER_TESTS): Remove ioctl_evdev-v.test, ioctl_loop-v.test,
17832 and ioctl_rtc-v.test.
17833 * tests/gen_tests.in (ioctl_evdev-v, ioctl_loop-v, ioctl_rtc-v):
17835 * tests/ioctl_evdev-v.test: Remove.
17836 * tests/ioctl_loop-v.test: Ditto.
17837 * tests/ioctl_rtc-v.test: Ditto.
17839 2017-04-05 Dmitry V. Levin <ldv@altlinux.org>
17849 grep -l ^run_strace_match_diff *.test |while read f; do
17852 grep -Evq '^(\. "\${srcdir=\.}/init\.sh"|run_strace_match_diff)' ||
17853 sed -n 's/^run_strace_match_diff\(.*\)/'$n'\1/p' "$f"
17856 The second largest set of test scripts has been converted using
17859 grep -l srcdir= *.test |while read f; do
17862 grep -Fvq srcdir= ||
17863 sed -n 's/^. "\${srcdir=.}\/\([^"]\+\)".*/'$n'\t+\1/p' "$f"
17900 * tests/execveat-v.test: Ditto.
17920 * tests/fork-f.test: Ditto.
17955 * tests/inet-cmsg.test: Ditto.
18003 * tests/mmsg-silent.test: Ditto.
18005 * tests/mmsg_name-v.test: Ditto.
18010 * tests/mq_sendrecv-read.test: Ditto.
18011 * tests/mq_sendrecv-write.test: Ditto.
18013 * tests/msg_control-v.test: Ditto.
18018 * tests/net-icmp_filter.test: Ditto.
18019 * tests/net-sockaddr.test: Ditto.
18035 * tests/ppoll-v.test: Ditto.
18037 * tests/preadv-pwritev.test: Ditto.
18039 * tests/preadv2-pwritev2.test: Ditto.
18047 * tests/quotactl-v.test: Ditto.
18048 * tests/quotactl-xfs-v.test: Ditto.
18049 * tests/quotactl-xfs.test: Ditto.
18057 * tests/recvmmsg-timeout.test: Ditto.
18079 * tests/seccomp-filter-v.test: Ditto.
18080 * tests/seccomp-filter.test: Ditto.
18133 * tests/times-fail.test: Ditto.
18139 * tests/umoven-illptr.test: Ditto.
18140 * tests/umovestr-illptr.test: Ditto.
18149 * tests/vfork-f.test: Ditto.
18152 * tests/wait4-v.test: Ditto.
18154 * tests/waitid-v.test: Ditto.
18157 * tests/xattr-strings.test: Ditto.
18169 (clean-local-check): Remove $(GEN_TESTS:.gen.test=.dir).
18171 2017-04-04 Dmitry V. Levin <ldv@altlinux.org>
18177 2017-04-04 Eugene Syromyatnikov <evgsyr@gmail.com>
18188 2017-04-04 Dmitry V. Levin <ldv@altlinux.org>
18195 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18198 As every test now runs in its own subdirectory, there is no need
18203 * tests/options-syntax.test: Likewise.
18204 * tests/qual_inject-retval.test (check_injection): Likewise.
18207 * tests/seccomp-strict.test: Likewise.
18208 * tests/strace-V.test: Likewise.
18209 * tests/strace-tt.test: Likewise.
18210 * tests/strace-ttt.test: Likewise.
18211 * tests/threads-execve.test: Likewise.
18212 * tests/attach-f-p.test: Use $EXP instead of $OUT, do not remove it.
18219 * tests/attach-p-cmd.test: Likewise. Do not remove
18220 attach-p-cmd.test-lock.
18221 * tests/detach-running.test: Do not remove $LOG.
18222 * tests/detach-sleeping.test: Likewise.
18223 * tests/detach-stopped.test: Likewise.
18225 * tests/strace-S.test: Likewise.
18229 * tests/btrfs-v.test: Do not remove $EXP and $OUT.
18230 * tests/btrfs-vw.test: Likewise.
18231 * tests/btrfs-w.test: Likewise.
18232 * tests/execve-v.test: Likewise.
18237 * tests/ioctl_dm-v.test: Likewise.
18239 * tests/ioctl_evdev-v.test: Likewise.
18240 * tests/ioctl_loop-nv.test: Likewise.
18241 * tests/ioctl_loop-v.test: Likewise.
18243 * tests/ioctl_rtc-v.test: Likewise.
18248 * tests/net-y-unix.test: Likewise.
18249 * tests/net-yy-inet.test: Likewise.
18250 * tests/net-yy-netlink.test: Likewise.
18251 * tests/net-yy-unix.test: Likewise.
18253 * tests/prctl-arg2-intptr.test: Likewise.
18254 * tests/prctl-dumpable.test: Likewise.
18255 * tests/prctl-name.test: Likewise.
18256 * tests/prctl-no-args.test: Likewise.
18257 * tests/prctl-pdeathsig.test: Likewise.
18258 * tests/prctl-seccomp-filter-v.test: Likewise.
18259 * tests/prctl-seccomp-strict.test: Likewise.
18260 * tests/prctl-securebits.test: Likewise.
18261 * tests/prctl-tid_address.test: Likewise.
18262 * tests/prctl-tsc.test: Likewise.
18265 * tests/pread64-pwrite64.test: Do nore remove pread64-pwrite64-tmpfile.
18266 * tests/read-write.test: Do nore remove read-write-tmpfile.
18269 * tests/redirect-fds.test (check_fd): Reorder removal of work files.
18271 * tests/strace-t.test: Likewise.
18272 * tests/scm_rights-fd.test: Likewise. Use dir instead of $LOG.dir,
18274 * tests/strace-ff.test: Do not remove $OUT and $LOG.* files.
18276 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18284 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18293 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18295 tests: use fixed socket address in net-yy-unix.test.
18296 This allows net-yy-unix invocation without arguments.
18298 * tests/net-yy-unix.c (TEST_SOCKET): New macro.
18300 * tests/net-yy-unix.test: Do not specify arguments for the test
18303 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18305 tests: use fixed socket address in net-y-unix.test.
18306 This allows net-y-unix invocation without arguments.
18308 * tests/net-y-unix.c (TEST_SOCKET): New macro.
18310 * tests/net-y-unix.test: Do not specify arguments for the test
18313 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18321 * tests/.gitignore: Add *.dir, remove *.log.*, *.tmp, *.tmp-*,
18323 * tests/Makefile.am (clean-local, clean-local-check): New rules.
18324 (.PHONY): Add clean-local-check.
18326 * tests/init.sh: Strip test-specific prefix from LOG, OUT, and EXP
18327 variables. When invoked from a test, create a new test-specific
18330 * tests/attach-f-p.test: Replace "./" with "../".
18331 * tests/attach-p-cmd.test: Likewise.
18333 * tests/btrfs-v.test: Likewise.
18334 * tests/btrfs-vw.test: Likewise.
18335 * tests/btrfs-w.test: Likewise.
18337 * tests/detach-running.test: Likewise.
18338 * tests/detach-sleeping.test: Likewise.
18339 * tests/detach-stopped.test: Likewise.
18341 * tests/net-y-unix.test: Likewise.
18342 * tests/net-yy-inet.test: Likewise.
18343 * tests/net-yy-netlink.test: Likewise.
18344 * tests/net-yy-unix.test: Likewise.
18348 * tests/prctl-seccomp-strict.test: Likewise.
18349 * tests/qual_fault-exit_group.test: Likewise.
18351 * tests/qual_inject-error-signal.test: Likewise.
18352 * tests/qual_inject-retval.test: Likewise.
18353 * tests/qual_inject-signal.test: Likewise.
18357 * tests/redirect-fds.test: Likewise.
18359 * tests/scm_rights-fd.test: Likewise.
18360 * tests/seccomp-strict.test: Likewise.
18361 * tests/strace-C.test: Likewise.
18362 * tests/strace-E.expected: Likewise.
18363 * tests/strace-E.test: Likewise.
18364 * tests/strace-S.test: Likewise.
18365 * tests/strace-T.test: Likewise.
18366 * tests/strace-V.test: Likewise.
18367 * tests/strace-ff.test: Likewise.
18368 * tests/strace-k.test: Likewise.
18369 * tests/strace-r.expected: Likewise.
18370 * tests/strace-r.test: Likewise.
18371 * tests/strace-t.test: Likewise.
18372 * tests/strace-tt.test: Likewise.
18373 * tests/strace-ttt.test: Likewise.
18376 * tests/unix-pair-send-recv.test: Likewise.
18377 * tests/unix-pair-sendto-recvfrom.test: Likewise.
18379 2017-04-03 Dmitry V. Levin <ldv@altlinux.org>
18395 2017-03-31 Dmitry V. Levin <ldv@altlinux.org>
18401 2017-03-30 Dmitry V. Levin <ldv@altlinux.org>
18406 2017-03-29 Dmitry V. Levin <ldv@altlinux.org>
18410 the 3rd argument of sched_getattr syscall is not quite 32-bit
18419 2017-03-29 Abhishek Tiwari <erabhishektiwarics@gmail.com>
18425 git grep -Fl '_stat' linux/*/syscallent* | xargs sed -i \
18429 git grep -Fl '_stat' linux/*/syscallent* | xargs sed -i \
18434 * linux/mips/syscallent-compat.h: Likewise.
18436 2017-03-24 Dmitry V. Levin <ldv@altlinux.org>
18447 2017-03-23 Quentin Monnet <quentin.monnet@6wind.com>
18453 2017-03-23 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
18455 Update ioctl entries from linux v4.11-rc3.
18456 * linux/32/ioctls_inc_align16.h: Update from linux v4.11-rc3 using ioctls_gen.sh.
18473 2017-03-19 Dmitry V. Levin <ldv@altlinux.org>
18479 * test/README: Tell the reader what this directory is actually for.
18484 2017-03-18 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18505 2017-03-17 Dmitry V. Levin <ldv@altlinux.org>
18516 2017-03-17 Eugene Syromyatnikov <evgsyr@gmail.com>
18525 2017-03-17 Eugene Syromyatnikov <evgsyr@gmail.com>
18530 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18541 2017-03-16 Damien Profeta <damien.profeta@amadeus.com>
18543 strace-graph: handle pid looping.
18544 * strace-graph: On long running process or heavily forking one (like
18551 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18557 sed -ri \
18561 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18567 sed -ri \
18569 tests/{move_pages,net-sockaddr,sendfile}.c
18571 2017-03-16 Dmitry V. Levin <ldv@altlinux.org>
18579 2017-03-16 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18586 2017-03-15 Eugene Syromyatnikov <evgsyr@gmail.com>
18590 provision for last command in the pipeline, but it is not guaranteed
18593 is better to supply via heredoc and not pipe.
18597 2017-03-15 Dmitry V. Levin <ldv@altlinux.org>
18603 2017-03-15 Dmitry V. Levin <ldv@altlinux.org>
18614 2017-03-14 Dmitry V. Levin <ldv@altlinux.org>
18620 * tests/xetitimer.test: Add -a option.
18622 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18631 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18634 As there is no sigreturn syscall on ia64, mips n32, mips n64, x32,
18642 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18653 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18675 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18679 It is going to be used in a parser of rt_sigreturn syscall.
18716 2017-03-13 Dmitry V. Levin <ldv@altlinux.org>
18744 2017-03-13 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18750 length of the prefix preceding the pathname in /proc/[pid]/maps is not
18751 necessary 80 (it's 73 on my machine), an overflow is possible.
18755 2017-03-13 Victor Krapivensky <krapivenskiy.va@phystech.edu>
18761 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18770 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18779 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18788 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18797 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18806 2017-03-10 Dmitry V. Levin <ldv@altlinux.org>
18815 2017-03-09 Dmitry V. Levin <ldv@altlinux.org>
18818 As the definition of NSIG_BYTES is based on NSIG defined in <signal.h>,
18823 wrapper is going to be used in cases when the length argument is equal
18838 2017-03-08 Dmitry V. Levin <ldv@altlinux.org>
18842 2017-03-08 Abhishek Tiwari <erabhishektiwarics@gmail.com>
18845 * INSTALL-git.md: Describe how to build strace from git repository.
18846 * README.md: Add reference to INSTALL-git.md.
18847 * README-hacking: Likewise.
18849 2017-03-05 Dmitry V. Levin <ldv@altlinux.org>
18851 README.md: fix references to in-tree files.
18855 2017-03-05 Dmitry V. Levin <ldv@altlinux.org>
18859 makeinfo --plaintext install.texi > INSTALL
18863 2017-03-05 Dmitry V. Levin <ldv@altlinux.org>
18874 2017-03-05 Dmitry V. Levin <ldv@altlinux.org>
18877 install.texi from GNU Autoconf is the ultimate source of INSTALL file.
18883 2017-03-05 Eugene Syromyatnikov <evgsyr@gmail.com>
18886 Implement -e trace=%sched option for tracing sched_* syscalls.
18890 linux/*/syscallent.h part is modified automatically by:
18892 git grep -Fl 'SEN(sched_' linux/ | xargs sed -i \
18909 * linux/mips/syscallent-n32.h: Likewise.
18910 * linux/mips/syscallent-n64.h: Likewise.
18911 * linux/mips/syscallent-o32.h: Likewise.
18931 2017-03-04 Eugene Syromyatnikov <evgsyr@gmail.com>
18935 https://www.mail-archive.com/strace-devel@lists.sourceforge.net/msg05147.html )
18937 In order to move them to a different namespace than syscall names. This is
18940 Old behaviour is retained in order to preserve backwards compatibility.
18942 * qualify.c (lookup_class) <syscall_class>: Add %-prefixed class definitions.
18943 * strace.1 (.SS Filtering): Add information regarding %-prefixed class
18945 * tests/net.test: Update to use %-prefixed syscall class name.
18947 * tests/qual_fault-exit_group.test: Likewise.
18949 * tests/scm_rights-fd.test: Likewise.
18954 2017-02-28 Dmitry V. Levin <ldv@altlinux.org>
18959 2017-02-27 Dmitry V. Levin <ldv@altlinux.org>
18966 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
18970 take second argument and print it.
18972 add second argument.
18981 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
18992 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
19000 2017-02-26 Dmitry V. Levin <ldv@altlinux.org>
19008 2017-02-25 Dmitry V. Levin <ldv@altlinux.org>
19011 x32 is the only linux architecture where preadv2 and pwritev2 syscalls
19018 * tests/preadv2-pwritev2.c (main): Fix invocation of preadv2
19021 2017-02-21 Dmitry V. Levin <ldv@altlinux.org>
19027 * tests/ppoll-v.c: New file.
19028 * tests/ppoll-v.test: New test.
19032 * tests/ppoll-v.expected: Remove.
19033 * tests/.gitignore: Add ppoll-v.
19035 (DECODER_TESTS): Add ppoll-v.test.
19036 (EXTRA_DIST): Remove ppoll.expected and ppoll-v.expected.
19038 2017-02-20 Dmitry V. Levin <ldv@altlinux.org>
19049 2017-02-19 Dmitry V. Levin <ldv@altlinux.org>
19054 besides sched_attr.size when the specified structure size is less than
19059 structure size is less than SCHED_ATTR_MIN_SIZE.
19069 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19075 Check that pointer argument is decoded properly
19078 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19091 2017-02-18 Dmitry V. Levin <ldv@altlinux.org>
19095 the new one is match_diff based and does more rigorous testing.
19102 2017-02-17 Dmitry V. Levin <ldv@altlinux.org>
19112 2017-02-17 Dmitry V. Levin <ldv@altlinux.org>
19116 command introduced by linux kernel commit v4.10-rc7-174-g7f67763.
19130 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19134 the new one is match_diff based and does more rigorous testing.
19141 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19167 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19176 2017-02-16 Dmitry V. Levin <ldv@altlinux.org>
19184 2017-02-15 Dmitry V. Levin <ldv@altlinux.org>
19186 Post-release administrivia.
19188 * debian/changelog.in: Add a changelog entry for 4.16-1.
19191 2017-02-14 Dmitry V. Levin <ldv@altlinux.org>
19196 2017-02-13 Dmitry V. Levin <ldv@altlinux.org>
19204 unless it is the native abi.
19206 2017-02-12 Dmitry V. Levin <ldv@altlinux.org>
19208 Fix -Werror=duplicate-decl-specifier compilation issues.
19231 2017-02-12 Dmitry V. Levin <ldv@altlinux.org>
19242 2017-02-11 Dmitry V. Levin <ldv@altlinux.org>
19245 Unlike pipe.test that is based on match_grep, the new test
19246 is based on match_diff and does more rigorous testing.
19254 2017-02-10 Dmitry V. Levin <ldv@altlinux.org>
19258 the new one is match_diff based and does more rigorous testing.
19267 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19271 INJECT_OPTS_RVAL_DEFAULT is enough.
19280 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19283 * tests/qual_inject-error-signal.c: New file.
19284 * tests/qual_inject-error-signal.expected: Likewise.
19285 * tests/qual_inject-error-signal.test: New test.
19286 * tests/.gitignore: Add qual_inject-error-signal.
19288 (MISC_TESTS): Add qual_inject-error-signal.test.
19289 (EXTRA_DIST): Add qual_inject-error-signal.expected.
19291 tests: simplify qual_inject-signal.test.
19292 * tests/qual_inject-signal.test: Use $NAME instead of qual_inject-signal.
19294 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19296 Make symbolic errno values match case-insensitive.
19297 Follow the example of case-insensitive symbolic signal values in signal
19299 expressions case-insensitive.
19304 * tests/qual_fault.test: Test case-insensitive symbolic errno match.
19306 2017-02-09 Dmitry V. Levin <ldv@altlinux.org>
19308 tests: check case-insensitive symbolic signal match.
19309 * tests/qual_signal.test: Test case-insensitive symbolic signal match.
19311 2017-02-09 Eugene Syromyatnikov <evgsyr@gmail.com>
19315 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19319 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19324 Reported-by: Eugene Syromyatnikov <evgsyr@gmail.com>
19326 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19329 Starting with commit glibc-2.24-553-g40c0a78, glibc may pass NULL
19334 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19341 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19344 * tests/qual_inject-signal.c: New file.
19345 * tests/qual_inject-signal.expected: Likewise.
19346 * tests/qual_inject-signal.test: New test.
19347 * tests/.gitignore: Add qual_inject-signal.
19349 (MISC_TESTS): Add qual_inject-signal.test.
19350 (EXTRA_DIST): Add qual_inject-signal.expected.
19352 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19354 Implement -e inject= option.
19355 Introduce -e inject= as a general injection option,
19356 limit -e fault= option to syscall fault injection.
19362 is set to true.
19369 * strace.1: Describe -e inject= option.
19370 * NEWS: Mention -e inject= option.
19371 * tests/qual_fault-syntax.test: Test that -e fault= option does not
19374 * tests/qual_inject-retval.test: Replace -e fault= option
19375 with -e inject= option.
19376 * tests/qual_inject-syntax.test: New test.
19379 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19381 tests: prepare for introduction of -e inject= option.
19384 * tests/fault_injection-exit_group.expected: Rename
19385 to tests/qual_fault-exit_group.expected.
19386 * tests/fault_injection-exit_group.test: Rename
19387 to tests/qual_fault-exit_group.test.
19388 * tests/fault_syntax.test: Rename to tests/qual_fault-syntax.test.
19391 * tests/fault_injection-retval.c: Rename to tests/qual_inject-retval.c.
19392 * tests/fault_injection-retval.test: Rename
19393 to tests/qual_inject-retval.test.
19399 2017-02-08 Dmitry V. Levin <ldv@altlinux.org>
19401 Prepare for introduction of -e inject= option.
19402 As -e fault= injection syntax has been extended to configure various
19428 2017-02-07 Dmitry V. Levin <ldv@altlinux.org>
19434 2017-02-07 Dmitry V. Levin <ldv@altlinux.org>
19442 2017-02-07 Dmitry V. Levin <ldv@altlinux.org>
19454 2017-02-06 Dmitry V. Levin <ldv@altlinux.org>
19458 by linux kernel commit v4.10-rc1~202^2~340^2~1.
19462 by linux kernel commit v4.10-rc1~202^2~340^2~2.
19464 2017-02-06 Jacob Goense <dugo@xs4all.nl>
19474 2017-02-04 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
19490 2017-01-31 Dmitry V. Levin <ldv@altlinux.org>
19496 * tests/bpf.test: Add -a option.
19498 2017-01-29 Dmitry V. Levin <ldv@altlinux.org>
19511 2017-01-29 Quentin Monnet <quentin.monnet@6wind.com>
19530 2017-01-28 Elvira Khabirova <lineprinter0@gmail.com>
19533 * tests/fault_injection-retval.c: New file.
19534 * tests/fault_injection-retval.test: New test.
19535 * tests/.gitignore: Add fault_injection-retval.
19537 (MISC_TESTS): Add fault_injection-retval.test.
19539 2017-01-28 Elvira Khabirova <lineprinter0@gmail.com>
19543 When :retval=VALUE is specified, the syscall number is replaced by -1
19544 and a bogus success VALUE is returned to the callee.
19553 (inject_syscall_fault_entering): Check opts->rval instead of opts->err.
19586 2017-01-26 Dmitry V. Levin <ldv@altlinux.org>
19595 2017-01-20 Elvira Khabirova <lineprinter0@gmail.com>
19602 2017-01-20 Andre McCurdy <armccurdy@gmail.com>
19607 The MIPS specific header <sgidefs.h> is provided by glibc and uclibc
19614 2017-01-20 JingPiao Chen <chenjingpiao@gmail.com>
19635 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19637 tests: drop non-USE_ASM_STAT case support.
19639 there are no non-USE_ASM_STAT users left. Remove support of unused
19640 non-USE_ASM_STAT case.
19649 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19654 and mips64 if BOGUS_STRUCT_STAT is not disabled, and they do wrong
19665 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19675 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19690 2017-01-13 Alexey Neyman <stilor@att.net>
19693 When cross-compiling, ioctlsort must obtain _IOC_* values from the
19703 2017-01-13 Dmitry V. Levin <ldv@altlinux.org>
19706 If the test detects struct stat mismatch, this is likely an error
19713 2017-01-12 Dmitry V. Levin <ldv@altlinux.org>
19722 2017-01-12 JingPiao Chen <chenjingpiao@gmail.com>
19728 2017-01-12 JingPiao Chen <chenjingpiao@gmail.com>
19730 strace: move description of -k option to the appropriate place.
19731 Follow the example of strace.1 and put the description of -k option
19734 * strace.c (usage): Move description of -k option to the output
19737 2017-01-11 Dmitry V. Levin <ldv@altlinux.org>
19743 git grep -El ',[[:space:]]+}' |xargs sed -ri 's/,([[:space:]]+\})/\1/'
19759 * linux/mips/syscallent-n32.h: Likewise.
19760 * linux/mips/syscallent-n64.h: Likewise.
19761 * linux/mips/syscallent-o32.h: Likewise.
19775 Reported-by: Eugene Syromyatnikov <evgsyr@gmail.com>
19777 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19810 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19820 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19828 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19836 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19842 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19848 Call tprint_iov_upto when iovec_count is non-zero.
19853 2017-01-10 Dmitry V. Levin <ldv@altlinux.org>
19856 The SCSI driver, starting with kernel commit v2.6.25-rc1~1230^2~78,
19860 As there is no easy way to tell SCSI layer errors from other syscall
19878 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19899 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19909 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19912 The tradition is to print scsi status codes in a hexadecimal form.
19917 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19920 The tradition is to print scsi tags in a hexadecimal form.
19927 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19930 As the nature of this field is pointer-like, print it
19936 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19939 As the kernel does not touch these fields, there is no use
19945 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19957 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19969 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19979 2017-01-08 Dmitry V. Levin <ldv@altlinux.org>
19999 2017-01-07 Dmitry V. Levin <ldv@altlinux.org>
20025 2017-01-07 Dmitry V. Levin <ldv@altlinux.org>
20035 2017-01-07 Dmitry V. Levin <ldv@altlinux.org>
20046 2017-01-06 Dmitry V. Levin <ldv@altlinux.org>
20049 As printstr_ex has got QUOTE_FORCE_HEX flag support, there is no need
20055 2017-01-06 Eugene Syromyatnikov <evgsyr@gmail.com>
20057 getrandom: print string as hex-escaped.
20058 Since there is no reason to interpret the value returned by getrandom as
20059 ASCII string, it makes sense to always print it as a hex-escaped string.
20063 to force hex-escaped string formatting.
20064 * tests/getrandom.test: Remove no longer needed -xx flag as the string
20065 is always printed in hexadecimal format now.
20067 Suggested-by: JingPiao Chen <chenjingpiao@gmail.com>
20069 2017-01-06 Eugene Syromyatnikov <evgsyr@gmail.com>
20071 util: add support for forcing printing string as hex-escaped.
20076 * util.c (quote_string): Enable use_hex when QUOTE_FORCE_HEX is set
20079 2017-01-06 Eugene Syromyatnikov <evgsyr@gmail.com>
20081 term: do not abort decoding in case of non-verbose output.
20082 The case of unset verbose is handled by umoven_or_printaddr, moreover,
20083 exiting at this point is plain wrong and leads to last argument not
20088 exit early if it is not set.
20090 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20092 tests: skip fault injection tests on hppa if the kernel is too old.
20095 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20104 Reported-by: James Cowgill <james410@cowgill.org.uk>
20106 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20119 2017-01-05 Dmitry V. Levin <ldv@altlinux.org>
20126 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20136 * tests/quotactl-xfs.c (main): Likewise.
20138 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20148 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20150 tests: check non-verbose decoding of LOOP_* ioctls.
20151 * tests/ioctl_loop-nv.c: New file.
20152 * tests/ioctl_loop-nv.test: New test.
20155 * tests/.gitignore: Add ioctl_loop-nv.
20164 2017-01-04 JingPiao Chen <chenjingpiao@gmail.com>
20169 * tests/ioctl_loop-v.c: Likewise.
20171 * tests/ioctl_loop-v.test: Likewise.
20172 * tests/.gitignore: Add ioctl_loop and ioctl_loop-v.
20174 (DECODER_TESTS): Add ioctl_loop.test and ioctl_loop-v.test.
20176 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20184 The GNU C library is not the only libc available, so those who want
20193 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20196 The verbose flag is responsible for dereferencing of addresses, and it
20197 is perfectly handled by umove_or_printaddr; moreover, this early exit
20201 exit early if it is not set.
20203 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20206 lo_encrypt_key is a sized string with its size specified by
20212 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20215 It is converted to an unsigned value in kernel (see loop_info64_from_old
20221 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20231 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20234 Specifying output width for size argument is rather misleading - it can
20235 be up to 14 bits in size. The use of explicit "0x" prefix is
20246 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20251 passed as printf arguments in case char is a signed type which is true
20258 2017-01-04 Eugene Syromyatnikov <evgsyr@gmail.com>
20269 2017-01-04 Dmitry V. Levin <ldv@altlinux.org>
20275 2017-01-04 JingPiao Chen <chenjingpiao@gmail.com>
20278 * tests/.gitignore: Replace addkey with add_key, add attach-f-p-cmd.
20280 2017-01-03 Dmitry V. Levin <ldv@altlinux.org>
20283 * strace.c: Remove __NR_tkill checks, assume it is always defined.
20285 assume it is always defined.
20295 2017-01-01 Dmitry V. Levin <ldv@altlinux.org>
20313 2017-01-01 Dmitry V. Levin <ldv@altlinux.org>
20319 * tests/strace-V.test: Use the current year for the check.
20321 2016-12-31 Dmitry V. Levin <ldv@altlinux.org>
20324 Limit the number of files where <asm/unistd.h> is included
20333 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20339 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20343 v4.15-39-g605a705a63d533dceb3c2d489468fcd3aed3963c.
20349 Reported-by: Joakim Bech <joakim.bech@linaro.org>
20351 2016-12-30 Dmitry V. Levin <ldv@altlinux.org>
20369 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20372 struct ifreq and struct ifconf are ABI-dependent and should have been
20385 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20391 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20399 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20402 Since these are architecture-independent and have been added over the
20411 2016-12-29 Dmitry V. Levin <ldv@altlinux.org>
20419 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20434 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20440 2016-12-29 Eugene Syromyatnikov <evgsyr@gmail.com>
20456 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20458 tests: enhance invalid address decoding check in seccomp-strict.test.
20459 * tests/seccomp-strict.c (main): Change the type of addr variable
20463 2016-12-28 Eugene Syromyatnikov <evgsyr@gmail.com>
20466 * tests/prctl-tid_address.c: New file.
20467 * tests/prctl-tid_address.test: New test.
20468 * tests/.gitignore: Add prctl-tid_address.
20470 (DECODER_TESTS): Add prctl-tid_address.test.
20472 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20481 * tests/strace-V.test: Update expected output.
20483 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20488 2016-12-28 Seraphime Kirkovski <kirkseraph@gmail.com>
20494 2016-12-28 Seraphime Kirkovski <kirkseraph@gmail.com>
20521 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20524 * README.md: Update homepage URL, mention command-line interface
20527 2016-12-28 Dmitry V. Levin <ldv@altlinux.org>
20529 tests: robustify prctl-arg2-intptr.test.
20530 Robustify prctl-arg2-intptr.test against unrelated prctl invocations.
20532 * tests/prctl-arg2-intptr.test: Filter out unrelated PR_GET_*
20535 2016-12-27 Dmitry V. Levin <ldv@altlinux.org>
20585 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20600 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20613 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20624 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20627 Since there is no compat handler for x32/n32, kernel returns kernel's
20637 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20640 In cases where no compat for x32/n32 is implemented, pointer is of
20647 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20668 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20674 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20684 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20695 * tests/umoven-illptr.c: New file.
20696 * tests/umoven-illptr.test: New test.
20697 * tests/.gitignore: Add umoven-illptr.
20699 (DECODER_TESTS): Add umoven-illptr.test.
20701 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20712 * tests/umovestr-illptr.c: New file.
20713 * tests/umovestr-illptr.test: New test.
20714 * tests/.gitignore: Add umovestr-illptr.
20716 (DECODER_TESTS): Add umovestr-illptr.test.
20718 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20727 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20737 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20769 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20773 tcp->ext_arg, and therefore a function to access it is also no longer
20778 (printargs): Access tcp->u_arg directly
20792 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20804 2016-12-26 Eugene Syromyatnikov <evgsyr@gmail.com>
20807 Check decoding of prctl operations that take the second syscall argument
20810 * tests/prctl-arg2-intptr.c: New file.
20811 * tests/prctl-arg2-intptr.test: New test.
20812 * tests/.gitignore: Add prctl-arg2-intptr.
20814 (DECODER_TESTS): Add prctl-arg2-intptr.test.
20816 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20823 $ git grep -l 'PRI_kr[dux]' | xargs sed -ri 's/PRI_kr([dux])/PRI_kl\1/g'
20827 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20835 $ git grep -El 'kernel_(scno|ureg)_t' |
20836 xargs sed -ri 's/kernel_(scno|ureg)_t/kernel_ulong_t/g'
20841 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20849 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20858 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20866 truncated_raddr of type unsigned long. Set errno to EIO and return -1
20869 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20872 * syscall.c (trace_syscall_exiting): Check for sizeof(tcp->u_rval)
20873 instead of sizeof(long) when deciding how to print tcp->u_rval.
20875 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20898 2016-12-26 Dmitry V. Levin <ldv@altlinux.org>
20906 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20937 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20951 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20954 The flags argument is defined in kernel as unsigned long,
20960 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20963 After the change of tcb.u_arg type from long to kernel_ureg_t it is safe
20975 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
20978 After the change of tcb.u_arg type from long to kernel_ureg_t it is safe
20988 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21078 Cast tcp->u_rval to kernel_ureg_t instead of unsigned long.
21079 * fcntl.c (print_fcntl): Cast tcp->u_rval to kernel_ureg_t instead
21119 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21141 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21151 (SYS_FUNC(sendmsg)): Pass -1 instead of -1UL as data_size argument
21153 * mmsghdr.c (print_struct_mmsghdr): Pass (kernel_ureg_t) -1 instead
21154 of -1UL as data_size argument to print_struct_msghdr.
21157 * syscall.c (dumpio): Pass -1 instead of -1UL as data_size argument
21161 * mq.c (SYS_FUNC(mq_timedreceive)): Do not check for tcp->u_rval < 0,
21162 syserror(tcp) is enough, and printstrn can handle len < 0 anyway.
21222 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21224 printstr_ex: fix decoding of non-NUL-terminated strings when len == -1.
21225 Do not treat len == -1 in any special way. All users who need the
21226 string to be handled as a NUL-terminated string set QUOTE_0_TERMINATED
21229 * util.c (printstr_ex): Remove (len == -1) check.
21236 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21239 The second argument of sethostname syscall is not an unsigned long but
21241 the length argument is too long.
21245 (SYS_FUNC(sethostname)): Treat the second argument as unsigned int.
21246 Print the first argument as a pointer when the second argument exceeds
21250 (main): Use it. Check that the second argument of sethostname
21251 is handled as unsigned int. Check that the first argument is printed
21252 as a pointer when the second argument exceeds __NEW_UTS_LEN.
21254 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21260 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21264 argument set to -1, create a dedicated function for this use case.
21269 2016-12-25 Dmitry V. Levin <ldv@altlinux.org>
21531 2016-12-24 Dmitry V. Levin <ldv@altlinux.org>
21580 2016-12-23 Dmitry V. Levin <ldv@altlinux.org>
21723 2016-12-23 Dmitry V. Levin <ldv@altlinux.org>
21726 In all places where LONG_LONG is used the destination already has type
21727 unsigned long long, so it is quite natural to change LONG_LONG as well.
21732 2016-12-23 Dmitry V. Levin <ldv@altlinux.org>
21746 2016-12-22 Dmitry V. Levin <ldv@altlinux.org>
21751 is not a pointer but an unsigned integer.
21756 Print ellipsis when the list returned by listxattr is too long.
21758 2016-12-22 Gabriel Laskar <gabriel@lse.epita.fr>
21760 tests: test for correct ellipsis with -s in xattr.
21761 * tests/xattr-strings.c: New file.
21762 * tests/xattr-strings.test: New test.
21763 * tests/.gitignore: Add xattr-string.
21765 (DECODER_TESTS): Add xattr-string.test.
21767 2016-12-22 Gabriel Laskar <gabriel@lse.epita.fr>
21770 This fixes the display when using `-s` to limit the string size
21776 Reported-by: Марк Коренберг <socketpair@gmail.com>
21778 2016-12-22 Eugene Syromyatnikov <evgsyr@gmail.com>
21785 2016-12-21 Dmitry V. Levin <ldv@altlinux.org>
21804 evdev: cast tcp->u_rval to kernel_ureg_t instead of unsigned long.
21805 * evdev.c (decode_bitset): Cast tcp->u_rval to kernel_ureg_t
21840 ioctl: use uintptr_t for casts between 32-bit integers and pointers.
21853 travis: fix enabling of gcc -Werror builds.
21854 * travis-build.sh: Use DISTCHECK_CONFIGURE_FLAGS instead
21856 [$CC == gcc]: Add --enable-gcc-Werror to DISTCHECK_CONFIGURE_FLAGS
21858 [$CHECK == coverage]: Add --enable-code-coverage
21881 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21889 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21902 * tests/preadv2-pwritev2.c: Likewise.
21905 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21921 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21926 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21935 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21946 64-bit type, so the automatic argument truncation cannot be applied.
21954 of compat syscalls to 32-bit values.
21958 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21969 2016-12-20 Dmitry V. Levin <ldv@altlinux.org>
21975 2016-12-20 Eugene Syromyatnikov <evgsyr@gmail.com>
21981 * io.c (do_preadv, do_pwritev): Truncate tcp->u_arg[2] using
21984 2016-12-19 Eugene Syromyatnikov <evgsyr@gmail.com>
21986 tests: fix preadv2-pwritev2 test on x32.
21990 * tests/preadv2-pwritev2.c (main): Print vlen argument as unsigned long.
21992 2016-12-19 Eugene Syromyatnikov <evgsyr@gmail.com>
21995 There is no compat (and no 32-bit version, ever) for x32 ABI, so
21998 The only remaining thing is a pointer to cmdline string, but it is
22005 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22019 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22046 fcntl.c: print 64-bit fields of struct_kernel_flock64 using PRId64 format
22058 btrfs.c: print 64-bit fields of btrfs_ioctl_vol_args_v2 using PRIu64 format
22067 2016-12-19 Eugene Syromyatnikov <evgsyr@gmail.com>
22087 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22096 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22105 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22108 This is the first step in the direction of revisiting current practice
22135 2016-12-19 Dmitry V. Levin <ldv@altlinux.org>
22142 Fix pathmatch of oldselect syscall on 64-bit architectures.
22143 * pathtrace.c (pathtrace_match): Fix fetching of 32-bit oldselect
22144 arguments on 64-bit architectures.
22149 2016-12-18 Dmitry V. Levin <ldv@altlinux.org>
22198 2016-12-18 Dmitry V. Levin <ldv@altlinux.org>
22211 Replace "(unsigned long) -1L" with -1UL.
22212 * defs.h (dumpiov): Replace "(unsigned long) -1L" with -1UL.
22216 * poll.c (decode_poll_exiting): Replace "(unsigned int) -1" with -1U.
22218 Add toplevel recursive check-valgrind rule.
22219 * Makefile.am (.PHONY): Add check-valgrind-local.
22220 (check-valgrind): New rule.
22223 m4: fix check-valgrind-* rules generated by AX_VALGRIND_CHECK.
22224 * m4/ax_valgrind_check.m4 (check-valgrind-$(1)): Depend
22225 on $(BUILT_SOURCES), honor $(AM_MAKEFLAGS), build check-am
22226 instead of check-TESTS.
22231 * travis-success.sh: Merge into ...
22232 * travis-build.sh: ... this file. Disable optimization
22234 * travis-install.sh: Rename COVERAGE=true to CHECK=coverage.
22236 2016-12-17 Dmitry V. Levin <ldv@altlinux.org>
22242 2016-12-17 Eugene Syromyatnikov <evgsyr@gmail.com>
22249 * tests/prctl-no-args.c: New file.
22250 * tests/prctl-no-args.test: New test.
22251 * tests/.gitignore: Add prctl-no-args.
22253 (DECODER_TESTS): Add prctl-no-args.test.
22256 * tests/prctl-securebits.c: New file.
22257 * tests/prctl-securebits.test: New test.
22258 * tests/.gitignore: Add prctl-securebits.
22260 (DECODER_TESTS): Add prctl-securebits.test.
22263 * tests/prctl-dumpable.c: New file.
22264 * tests/prctl-dumpable.test: New test.
22265 * tests/.gitignore: Add prctl-dumpable.
22267 (DECODER_TESTS): Add prctl-dumpable.test.
22273 and the second syscall argument of PR_SET_DUMPABLE operation
22276 2016-12-16 Dmitry V. Levin <ldv@altlinux.org>
22279 As kernel_ulong_t type is going to be used in the definition
22314 * tests/prctl-pdeathsig.c: Likewise.
22315 * tests/prctl-tsc.c: Likewise.
22316 * tests/preadv2-pwritev2.c: Likewise.
22318 * tests/read-write.c: Likewise.
22325 2016-12-15 Dmitry V. Levin <ldv@altlinux.org>
22327 Post-release administrivia.
22329 * debian/changelog.in: Add a changelog entry for 4.15-1.
22332 2016-12-14 Dmitry V. Levin <ldv@altlinux.org>
22337 is built with older kernel headers.
22343 2016-12-14 Dmitry V. Levin <ldv@altlinux.org>
22351 tests: fix threads-execve.test for large pids.
22352 * tests/threads-execve.c (main): Fix expected output for large pids.
22354 2016-12-13 Dmitry V. Levin <ldv@altlinux.org>
22364 * debian/control: Add Vcs-* metadata from 4.13-0.1.
22365 * debian/watch: Sync with 4.13-0.1.
22366 * strace.spec.in: Sync with 4.14.0.100.622a-1.
22368 2016-12-13 Dmitry V. Levin <ldv@altlinux.org>
22372 https://lists.gnu.org/archive/html/bug-grep/2016-12/msg00011.html
22375 * tests/detach-running.test: Use it instead of grep to search
22377 * tests/detach-sleeping.test: Likewise.
22378 * tests/detach-stopped.test: Likewise.
22380 2016-12-13 Eugene Syromyatnikov <evgsyr@gmail.com>
22382 tests: fix typo in comment inside prctl-tsc.c.
22384 2016-12-13 Sean Stangl <sstangl@mozilla.com>
22387 Fix libunwind segfault when -p is passed before -k.
22389 unwind_init for all allocated tcb structures if stack trace is enabled.
22390 * unwind.c (unwind_tcb_init): Skip if tcb is already initialized.
22392 2016-12-13 Eugene Syromyatnikov <evgsyr@gmail.com>
22397 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22402 * tests/fault_injection-exit_group.test: Use it.
22408 * tests/threads-execve.test: Use require_min_kernel_version_or_skip.
22410 2016-12-07 Eugene Syromyatnikov <evgsyr@gmail.com>
22412 tests: add descriptions to prctl-pdeathsig and prctl-tsc tests.
22414 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22416 tests: robustify prctl-pdeathsig.test and prctl-tsc.test.
22419 * tests/prctl-pdeathsig.test: Filter out unrelated PR_GET_* and PR_SET_*
22421 * tests/prctl-tsc.test: Likewise.
22423 2016-12-07 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22430 ioctlsort is compiled with CC_FOR_BUILD, rather than CC. Nevertheless,
22432 AM_CFLAGS). This is incorrect: in a cross-compilation use case, CC
22433 and CC_FOR_BUILD are not the same. The former is the cross-compiler,
22434 the latter is the host compiler. Both may be of different versions
22437 In particular, this posed a problem when cross-compiling with a host
22440 /usr/bin/gcc -DHAVE_CONFIG_H -I./linux/arm -I./linux/arm -I./linux
22441 -I./linux -I. -I. -I/host-sysroot/usr/include -Wall -Wempty-body
22442 -Wformat-security -Wignored-qualifiers -Winit-self -Wlogical-op
22443 -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration
22444 -Wold-style-definition -Wsign-compare -Wtype-limits -Wwrite-strings -O2
22445 -I/host-sysroot/usr/include -DIOCTLSORT_INC=\"ioctls_all0.h\" -c -o
22447 cc1: error: unrecognized command line option "-Wempty-body"
22448 cc1: error: unrecognized command line option "-Wignored-qualifiers"
22449 cc1: error: unrecognized command line option "-Wlogical-op"
22450 cc1: error: unrecognized command line option "-Wmissing-parameter-type"
22451 cc1: error: unrecognized command line option "-Wold-style-declaration"
22452 cc1: error: unrecognized command line option "-Wtype-limits"
22464 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22472 gl_unknown_warnings_are_errors is set.
22476 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22492 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22495 This is going to be needed for the upcoming AX_PROG_CC_FOR_BUILD
22502 2016-12-07 Dmitry V. Levin <ldv@altlinux.org>
22510 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22513 * m4/ax_valgrind_check.m4: Import from the autoconf-archive package.
22522 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22524 tests: robustify threads-execve.test against race conditions.
22527 * tests/threads-execve.c (NUMBER_OF_ITERATIONS): Change to 1.
22528 * tests/threads-execve.test: Iterate up to 10 times.
22530 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22532 tests: fix expected output in strace-ttt.test.
22533 If strace -ttt is running too long, it might happen that time stamps
22534 before and after its invocation differ for more than a second.
22537 * tests/strace-ttt.test: Allow any time stamp between start and finish
22540 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22542 tests: fix expected output in strace-tt.test.
22543 If strace -tt is running too long, it might happen that time stamps
22544 before and after its invocation differ for more than a second.
22547 * tests/strace-tt.test: Allow any time stamp between start and finish
22550 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22558 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22560 tests: robustify attach-f-p.test against race conditions.
22561 Introduce a synchronization mechanism between attach-f-p and strace.
22563 * tests/attach-f-p-cmd.c: New file.
22564 * tests/Makefile.am (check_PROGRAMS): Add attach-f-p-cmd.
22565 * tests/attach-f-p.c: Include <sys/stat.h>.
22568 * tests/attach-f-p.test: Assume that ./attach-f-p-cmd works.
22569 Use $OUT for expected output. Use attach-f-p-cmd for unlocking $OUT.
22571 2016-12-06 Dmitry V. Levin <ldv@altlinux.org>
22573 tests: robustify attach-p-cmd.test against race conditions.
22574 Introduce a synchronization mechanism between attach-p-cmd-p
22575 and attach-p-cmd-cmd processes.
22577 * tests/attach-p-cmd-cmd.c: Include <errno.h> and <sys/stat.h>.
22578 (main): Wait for the lock directory creation by attach-p-cmd-p.
22579 * tests/attach-p-cmd-p.c: Include <errno.h> and <sys/stat.h>.
22581 by attach-p-cmd-cmd.
22582 * tests/attach-p-cmd.test: Assume that test programs work.
22584 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22608 (inject_syscall_fault_entering): Update per-personality allocation
22609 of tcp->fault_vec.
22610 * tests/fault_injection-exit_group.test: Check parsing of inversed
22612 * tests/fault_injection.test: Check parsing of -efault=none.
22613 * tests/options-syntax.test: Check parsing of invalid syscall numbers.
22639 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22656 * tests/options-syntax.test: Check invalid sets of descriptors.
22659 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22661 tests: skip redirect-fds.test when strace is wrapped with valgrind.
22662 valgrind is not as transparent as strace wrt standard descriptors,
22663 so if strace is wrapped with valgrind, the test would check valgrind
22666 * tests/redirect-fds.test: Skip the test when $STRACE shows a presence
22669 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22672 As valgrind is not quite happy about the way how get_cpuset_size uses
22678 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22687 2016-12-05 Dmitry V. Levin <ldv@altlinux.org>
22689 tests: make options-syntax.test tolerant of strace wrappers.
22692 * tests/options-syntax.test: Strip all words but last from $STRACE
22693 variable in all contexts where the name of strace executable is expected
22696 2016-12-04 Dmitry V. Levin <ldv@altlinux.org>
22699 libc is perfectly capable of allocating memory for its buffers,
22704 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22713 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22717 As this is the type used in kernel.
22724 2016-12-04 Eugene Syromyatnikov <evgsyr@gmail.com>
22736 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22741 2016-12-01 Dmitry V. Levin <ldv@altlinux.org>
22748 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22751 The string literal "__NR_syscall_4294967295" is semantically incorrect
22752 as there is no such constant defined.
22754 * syscall.c (syscall_name): Return NULL if there is no syscall
22758 only if there is a syscall corresponding to si_syscall number; print
22762 2016-12-01 Eugene Syromyatnikov <evgsyr@gmail.com>
22770 which, in turn, is an array of two elements that used to be printed
22776 * swapon.c (SYS_FUNC(swapon)): Do not check for non-zero the value
22780 2016-12-01 Elvira Khabirova <lineprinter0@gmail.com>
22786 pattern line read, print it as a prefix for non-matched pattern.
22788 2016-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
22792 It is a number which consists of several xlat values, not a structure.
22798 2016-11-30 Eugene Syromyatnikov <evgsyr@gmail.com>
22800 tests: additional checks for prctl-* tests.
22801 * tests/prctl-pdeathsig.c (main): Additional checks.
22802 * tests/prctl-tsc.c (main): Likewise.
22803 * tests/prctl-pdeathsig.test: Update value of -a argument.
22804 * tests/prctl-tsc.test: Likewise.
22806 2016-11-30 JingPiao Chen <chenjingpiao@foxmail.com>
22808 tests: add prctl-pdeathsig.test and prctl-tsc.test.
22809 * tests/prctl-pdeathsig.c: New file.
22810 * tests/prctl-tsc.c: Likewise.
22811 * tests/prctl-pdeathsig.test: New test.
22812 * tests/prctl-tsc.test: Likewise.
22813 * tests/.gitignore: Add prctl-pdeathsig and prctl-tsc.
22815 (DECODER_TESTS): Add prctl-pdeathsig.test and prctl-tsc.test.
22817 2016-11-30 Dmitry V. Levin <ldv@altlinux.org>
22838 * syscall.c (dumpio): Remove SEN_printargs check. Use tcp->s_ent->sen
22841 2016-11-29 Dmitry V. Levin <ldv@altlinux.org>
22846 * tests/read-write.c: Include <asm/unistd.h> and "kernel_types.h".
22850 x32: fix preadv2-pwritev2.test.
22851 * tests/preadv2-pwritev2.c: Include "kernel_types.h".
22859 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22867 2016-11-29 Elvira Khabirova <lineprinter0@gmail.com>
22874 2016-11-29 Dmitry V. Levin <ldv@altlinux.org>
22882 2016-11-29 Dmitry V. Levin <ldv@altlinux.org>
22886 -e fault=!SET
22889 -e fault=!SET1:error=ERRNO1, -e fault=!SET2:error=ERRNO2
22898 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22922 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22925 This is necessary for the upcoming change in the output format
22934 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22937 This is necessary for the upcoming change in the output format
22940 * util.c (printxvals): Do not print dflt if it is NULL.
22942 2016-11-29 Eugene Syromyatnikov <evgsyr@gmail.com>
22949 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
22953 * tests/preadv2-pwritev2.c (dumpio): Likewise.
22963 tests: check -C option.
22964 * tests/strace-C.expected: New file.
22965 * tests/strace-C.test: New test.
22966 * tests/Makefile.am (MISC_TESTS): Add strace-C.test.
22967 (EXTRA_DIST): Add strace-C.expected.
22970 * tests/options-syntax.test: New file.
22973 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
22975 Fix -r option syntax.
22976 While -r option implies -t, it should not literally have the effect
22977 of -t option, e.g. -rr should not increment tflag twice.
22980 occurrence of -r option. After the getopt loop, if rflag is set, set
22981 tflag to 1. Issue a warning that -tt has no effect with -r.
22983 2016-11-28 Eugene Syromyatnikov <evgsyr@gmail.com>
22995 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23005 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23017 Suggested-by: Eugene Syromyatnikov <evgsyr@gmail.com>
23019 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23022 After commit v4.14-136-g151d1d1 that removed the last object common
23023 for timespec and timeval parsers there is no need to keep them all
23032 2016-11-28 Dmitry V. Levin <ldv@altlinux.org>
23034 tests: check decoding of threads when a non-leader thread invokes execve
23035 * tests/threads-execve.c: New file.
23036 * tests/threads-execve.test: New test.
23037 * tests/.gitignore: Add threads-execve.
23040 (MISC_TESTS): Add threads-execve.test.
23042 2016-11-27 Dmitry V. Levin <ldv@altlinux.org>
23046 * tests/fault_injection-exit_group.expected: Likewise.
23047 * tests/fault_injection-exit_group.test: New test.
23050 (DECODER_TESTS): Add fault_injection-exit_group.test.
23051 (EXTRA_DIST): Add fault_injection-exit_group.expected.
23053 2016-11-27 Dmitry V. Levin <ldv@altlinux.org>
23056 Do not assume that some syscalls do not generate syscall-exit-stops.
23057 When syscalls fail for any reason they may generate syscall-exit-stops.
23059 The solution is to wait for an actual exit reported by PTRACE_EVENT_EXIT
23071 2016-11-27 Dmitry V. Levin <ldv@altlinux.org>
23074 As printargs is invoked as a generic syscall decoder only and
23075 it is not supposed to print anything on exiting, change printargs
23080 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23085 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23088 There is little use in injections of faults into syscalls made by strace.
23091 tcp->qual_flg when tcp->flags has TCB_HIDE_LOG bit set.
23093 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23096 A simultaneous use of -p option and tracing of a command available
23097 since commit v4.11-183-gfa8c286 introduces a race condition because
23120 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23124 also when SEN_execveat is encountered.
23126 2016-11-25 Dmitry V. Levin <ldv@altlinux.org>
23143 2016-11-24 Dmitry V. Levin <ldv@altlinux.org>
23149 2016-11-26 Eugene Syromyatnikov <evgsyr@gmail.com>
23181 * tests/ppoll-v.expected: Likewise.
23184 * tests/recvmmsg-timeout.c (main): Likewise.
23189 * tests/strace-T.expected: Likewise.
23194 2016-11-26 Dmitry V. Levin <ldv@altlinux.org>
23196 tests: robustify prctl-name.test against unrelated prctl invocations.
23197 * tests/prctl-name.test: Filter out unrelated PR_GET_* prctl calls.
23199 2016-11-22 Dmitry V. Levin <ldv@altlinux.org>
23201 tests: cleanup prctl-name.c.
23202 * tests/prctl-name.c (main): Remove "len" variable, rename "len1"
23219 asm-generic/ioctls.h those macros that are defined using unavailable
23222 2016-11-22 Andreas Schwab <schwab@linux-m68k.org>
23224 Add ioctl definitions for 16-bit alignment.
23229 2016-11-22 Dmitry V. Levin <ldv@altlinux.org>
23235 2016-11-21 Dmitry V. Levin <ldv@altlinux.org>
23243 * maint/ioctls_sym.sh: Remove pre-include linux/kvm.h workarounds.
23245 Introduce post-process workarounds, add post-process workarounds
23248 2016-11-20 Elvira Khabirova <lineprinter0@gmail.com>
23255 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23263 prctl: add braces for conditional blocks with else/else-if blocks having braces
23265 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23268 Kernel code does this when compares it with -1 (apart from comparing it with
23269 PR_SET_PTRACER_ANY, which is also -1) in security/yama/yama_lsm.c.
23272 comparing it with -1.
23274 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23289 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23292 This is done in order to fix build error on old distributions where
23293 struct blkpg_ioctl_arg declaration is broken:
23308 2016-11-20 Eugene Syromyatnikov <evgsyr@gmail.com>
23316 2016-11-20 Dmitry V. Levin <ldv@altlinux.org>
23320 is provided by <linux/prctl.h> anyway.
23324 2016-11-20 Dmitry V. Levin <ldv@altlinux.org>
23327 * tests/prctl-name.c: New file.
23328 * tests/prctl-name.test: New test.
23329 * tests/.gitignore: Add prctl-name.
23331 (DECODER_TESTS): Add prctl-name.test.
23340 Do not artificially decrement size when QUOTE_0_TERMINATED bit is set.
23341 Ensure that str[size] byte is non-zero if it hasn't been fetched.
23343 2016-11-19 Dmitry V. Levin <ldv@altlinux.org>
23347 the fetched string as a NUL-terminated.
23348 After this change, the string is being fetched as a NUL-terminated, too.
23351 if QUOTE_0_TERMINATED bit is set.
23353 2016-11-19 Dmitry V. Levin <ldv@altlinux.org>
23358 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23362 ARCH_MAP_VDSO_64 introduced by linux kernel commit v4.9-rc1~155^2~6.
23366 by linux kernel commit v4.9-rc4~7^2~422.
23368 by linux kernel commit v4.9-rc4~7^2~422.
23372 v4.9-rc1~45^2^2~5.
23376 by linux kernel commit v4.9-rc1~57^2~1^2~7.
23380 by linux kernel commit v4.9-rc1~31^2~69.
23385 by linux kernel commit v4.9-rc1~7^2^2~4.
23389 by linux kernel commit v4.9-rc1~127^2~302^2~4.
23391 2016-11-18 Eugene Syromyatnikov <evgsyr@gmail.com>
23393 make-dist: use HEAD for making distribution package.
23394 * make-dist: Use HEAD commit instead of master branch by default.
23396 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23408 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23417 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23421 prefix, this is not always the case.
23426 2016-11-18 Dmitry V. Levin <ldv@altlinux.org>
23428 tests: check -e signal=set syntax.
23435 2016-11-17 Dmitry V. Levin <ldv@altlinux.org>
23437 Make -e fault= expressions cumulative.
23438 Change the way how subsequent -e fault= expressions are interpreted
23440 -e fault=file:when=3+ -e fault=chdir
23447 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23457 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23460 Introduce new -e fault=EXPR syntax that can be used to specify a subset
23466 where only SET is a required part and all the rest is optional.
23468 The method used to implement syscall fault injection is the following:
23469 on entering syscall the syscall number is substituted by an invalid
23470 syscall number -1, and on exiting syscall the error code returned by
23471 the kernel is substituted with the error code specified in the fault
23474 This implementaion is based on the prototype developed
23480 * strace.1: Document -e fault expression syntax.
23481 * strace.c (usage): Mention -e fault expression.
23515 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23583 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23586 The incomplete CRIS support introduced by commit v4.5.18-77-gea0e6e8
23596 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23608 2016-11-16 Dmitry V. Levin <ldv@altlinux.org>
23619 2016-11-15 Dmitry V. Levin <ldv@altlinux.org>
23624 2016-11-14 Dmitry V. Levin <ldv@altlinux.org>
23629 2016-11-13 Dmitry V. Levin <ldv@altlinux.org>
23637 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
23644 * linux/mips/syscallent-n32.h: Likewise.
23645 * linux/mips/syscallent-n64.h: Likewise.
23646 * linux/mips/syscallent-o32.h: Likewise.
23669 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
23671 tests: fix "constant is too large" compilation warnings.
23673 alarm.c:41: warning: integer constant is too large for 'long' type
23675 aio.c:162: warning: integer constant is too large for 'long' type
23677 btrfs.c:202: warning: integer constant is too large for 'long' type
23679 btrfs.c:289: warning: integer constant is too large for 'long' type
23680 btrfs.c:290: warning: integer constant is too large for 'long' type
23682 dup2.c:12: warning: integer constant is too large for 'long' type
23683 dup2.c:13: warning: integer constant is too large for 'long' type
23685 dup3.c:13: warning: integer constant is too large for 'long' type
23686 dup3.c:14: warning: integer constant is too large for 'long' type
23688 epoll_create.c:12: warning: integer constant is too large for 'long' type
23690 epoll_ctl.c:14: warning: integer constant is too large for 'long' type
23692 faccessat.c:13: warning: integer constant is too large for 'long' type
23694 fchdir.c:12: warning: integer constant is too large for 'long' type
23696 struct_flock.c:48: warning: integer constant is too large for 'long' type
23698 struct_flock.c:58: warning: integer constant is too large for 'long' type
23699 struct_flock.c:59: warning: integer constant is too large for 'long' type
23701 fcntl64.c:44: warning: integer constant is too large for 'long' type
23702 fcntl64.c:45: warning: integer constant is too large for 'long' type
23704 fcntl.c:44: warning: integer constant is too large for 'long' type
23705 fcntl.c:45: warning: integer constant is too large for 'long' type
23707 fdatasync.c:12: warning: integer constant is too large for 'long' type
23709 flock.c:13: warning: integer constant is too large for 'long' type
23711 xstatx.c:255: warning: integer constant is too large for 'long' type
23712 xstatx.c:290: warning: integer constant is too large for 'long' type
23713 xstatx.c:290: warning: integer constant is too large for 'long' type
23714 xstatx.c:290: warning: integer constant is too large for 'long' type
23715 xstatx.c:290: warning: integer constant is too large for 'long' type
23716 xstatx.c:290: warning: integer constant is too large for 'long' type
23717 xstatx.c:290: warning: integer constant is too large for 'long' type
23718 xstatx.c:290: warning: integer constant is too large for 'long' type
23719 xstatx.c:290: warning: integer constant is too large for 'long' type
23720 xstatx.c:290: warning: integer constant is too large for 'long' type
23721 xstatx.c:294: warning: integer constant is too large for 'long' type
23722 xstatx.c:294: warning: integer constant is too large for 'long' type
23723 xstatx.c:294: warning: integer constant is too large for 'long' type
23724 xstatx.c:294: warning: integer constant is too large for 'long' type
23725 xstatx.c:294: warning: integer constant is too large for 'long' type
23726 xstatx.c:294: warning: integer constant is too large for 'long' type
23727 xstatx.c:294: warning: integer constant is too large for 'long' type
23728 xstatx.c:294: warning: integer constant is too large for 'long' type
23729 xstatx.c:294: warning: integer constant is too large for 'long' type
23731 xstatfsx.c:113: warning: integer constant is too large for 'long' type
23733 fsync.c:12: warning: integer constant is too large for 'long' type
23735 ftruncate64.c:39: warning: integer constant is too large for 'long' type
23737 futimesat.c:52: warning: integer constant is too large for 'long' type
23738 futimesat.c:59: warning: integer constant is too large for 'long' type
23740 get_mempolicy.c:83: warning: integer constant is too large for 'long' type
23741 get_mempolicy.c:84: warning: integer constant is too large for 'long' type
23742 get_mempolicy.c:85: warning: integer constant is too large for 'long' type
23743 get_mempolicy.c:86: warning: integer constant is too large for 'long' type
23745 getdents.c:109: warning: integer constant is too large for 'long' type
23746 getdents.c:110: warning: integer constant is too large for 'long' type
23747 getdents.c:114: warning: integer constant is too large for 'long' type
23749 getdents64.c:114: warning: integer constant is too large for 'long' type
23750 getdents64.c:115: warning: integer constant is too large for 'long' type
23751 getdents64.c:119: warning: integer constant is too large for 'long' type
23753 xgetrlimit.c:71: warning: integer constant is too large for 'long' type
23754 ioctl_block.c:44: warning: integer constant is too large for 'long' type
23756 ioctl_block.c:136: warning: integer constant is too large for 'long' type
23757 ioctl_block.c:137: warning: integer constant is too large for 'long' type
23758 ioctl_block.c:161: warning: integer constant is too large for 'long' type
23759 ioctl_block.c:170: warning: integer constant is too large for 'long' type
23760 ioctl_block.c:171: warning: integer constant is too large for 'long' type
23761 ioctl_evdev.c:42: warning: integer constant is too large for 'long' type
23762 ioctl_mtd.c:46: warning: integer constant is too large for 'long' type
23763 ioctl_rtc.c:40: warning: integer constant is too large for 'long' type
23765 ioperm.c:12: warning: integer constant is too large for 'long' type
23767 ioctl_v4l2.c:409: warning: integer constant is too large for 'long' type
23769 ipc.c:52: warning: integer constant is too large for 'long' type
23771 kill.c:59: warning: integer constant is too large for 'long' type
23772 kill.c:62: warning: integer constant is too large for 'long' type
23773 kill.c:63: warning: integer constant is too large for 'long' type
23774 kill.c:68: warning: integer constant is too large for 'long' type
23776 linkat.c:14: warning: integer constant is too large for 'long' type
23777 linkat.c:15: warning: integer constant is too large for 'long' type
23779 mbind.c:41: warning: integer constant is too large for 'long' type
23780 mbind.c:43: warning: integer constant is too large for 'long' type
23781 mbind.c:44: warning: integer constant is too large for 'long' type
23783 migrate_pages.c:41: warning: integer constant is too large for 'long' type
23786 umode_t.c:47: warning: integer constant is too large for 'long' type
23788 mknod.c:16: warning: integer constant is too large for 'long' type
23790 mknod.c:23: warning: integer constant is too large for 'long' type
23791 mknod.c:49: warning: integer constant is too large for 'long' type
23792 mknod.c:56: warning: integer constant is too large for 'long' type
23793 mknodat.c:12: warning: integer constant is too large for 'long' type
23795 mknodat.c:17: warning: integer constant is too large for 'long' type
23797 mknodat.c:24: warning: integer constant is too large for 'long' type
23798 mknodat.c:50: warning: integer constant is too large for 'long' type
23799 mknodat.c:57: warning: integer constant is too large for 'long' type
23801 mmap.c:51: warning: integer constant is too large for 'long' type
23803 move_pages.c:139: warning: integer constant is too large for 'long' type
23805 move_pages.c:166: warning: integer constant is too large for 'long' type
23807 move_pages.c:188: warning: integer constant is too large for 'long' type
23809 mq_sendrecv.c:238: warning: integer constant is too large for 'long' type
23810 mq_sendrecv.c:401: warning: integer constant is too large for 'long' type
23811 mq_sendrecv.c:403: warning: integer constant is too large for 'long' type
23813 nsyscalls.c:64: warning: integer constant is too large for 'long' type
23814 nsyscalls.c:65: warning: integer constant is too large for 'long' type
23815 nsyscalls.c:66: warning: integer constant is too large for 'long' type
23816 nsyscalls.c:67: warning: integer constant is too large for 'long' type
23817 nsyscalls.c:68: warning: integer constant is too large for 'long' type
23818 nsyscalls.c:69: warning: integer constant is too large for 'long' type
23819 preadv-pwritev.c: In function 'main':
23820 preadv-pwritev.c:162: warning: comparison between signed and unsigned
23822 prlimit64.c:65: warning: integer constant is too large for 'long' type
23823 prlimit64.c:70: warning: integer constant is too large for 'long' type
23825 remap_file_pages.c:42: warning: integer constant is too large for 'long' type
23826 remap_file_pages.c:43: warning: integer constant is too large for 'long' type
23827 remap_file_pages.c:45: warning: integer constant is too large for 'long' type
23829 renameat.c:15: warning: integer constant is too large for 'long' type
23830 renameat.c:16: warning: integer constant is too large for 'long' type
23832 rt_sigqueueinfo.c:41: warning: integer constant is too large for 'long' type
23834 rt_tgsigqueueinfo.c:45: warning: integer constant is too large for 'long' type
23835 rt_tgsigqueueinfo.c:46: warning: integer constant is too large for 'long' type
23836 rt_tgsigqueueinfo.c:47: warning: integer constant is too large for 'long' type
23838 rt_tgsigqueueinfo.c:67: warning: integer constant is too large for 'long' type
23840 sendfile.c:110: warning: integer constant is too large for 'long' type
23842 sendfile64.c:100: warning: integer constant is too large for 'long' type
23844 set_mempolicy.c:129: warning: integer constant is too large for 'long' type
23845 set_mempolicy.c:130: warning: integer constant is too large for 'long' type
23847 setrlimit.c:44: warning: integer constant is too large for 'long' type
23849 socketcall.c:58: warning: integer constant is too large for 'long' type
23851 splice.c:41: warning: integer constant is too large for 'long' type
23852 splice.c:42: warning: integer constant is too large for 'long' type
23853 splice.c:45: warning: integer constant is too large for 'long' type
23854 splice.c:46: warning: integer constant is too large for 'long' type
23856 symlinkat.c:12: warning: integer constant is too large for 'long' type
23858 sync_file_range.c:42: warning: integer constant is too large for 'long' type
23859 sync_file_range.c:43: warning: integer constant is too large for 'long' type
23861 syslog.c:14: warning: integer constant is too large for 'long' type
23863 tee.c:41: warning: integer constant is too large for 'long' type
23864 tee.c:42: warning: integer constant is too large for 'long' type
23866 timer_create.c:52: warning: integer constant is too large for 'long' type
23867 timer_create.c:84: warning: integer constant is too large for 'long' type
23868 timer_create.c:85: warning: integer constant is too large for 'long' type
23870 truncate64.c:41: warning: integer constant is too large for 'long' type
23872 xgetrlimit.c:71: warning: integer constant is too large for 'long' type
23874 umode_t.c:46: warning: integer constant is too large for 'long' type
23876 unlinkat.c:13: warning: integer constant is too large for 'long' type
23878 waitpid.c:43: warning: integer constant is too large for 'long' type
23880 waitid.c:141: warning: integer constant is too large for 'long' type
23882 xetpriority.c:15: warning: integer constant is too large for 'long' type
23883 xetpriority.c:19: warning: integer constant is too large for 'long' type
23884 xetpriority.c:20: warning: integer constant is too large for 'long' type
23886 xetpgid.c:43: warning: integer constant is too large for 'long' type
23887 xetpgid.c:47: warning: integer constant is too large for 'long' type
23888 xetpgid.c:48: warning: integer constant is too large for 'long' type
23963 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
23966 preadv-pwritev.c: In function 'main':
23967 preadv-pwritev.c:162: warning: comparison between signed and unsigned
23973 * tests/preadv-pwritev.c (main): Cast r_len to int.
23977 2016-11-13 Dmitry V. Levin <ldv@altlinux.org>
24002 2016-11-13 Eugene Syromyatnikov <evgsyr@gmail.com>
24008 gcc -DHAVE_CONFIG_H -I./linux/x86_64 -I./linux -I. -Wall -O2 -c net.c
24015 gcc_compat.h:59:27: error: negative width in bit-field '<anonymous>'
24024 due to the fact BUILD_BUG_ON_ZERO is already defined in <linux/kernel.h>.
24029 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24037 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24043 2016-11-12 Andreas Schwab <schwab@linux-m68k.org>
24062 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24070 2016-11-12 Dmitry V. Levin <ldv@altlinux.org>
24076 2016-11-12 Eugene Syromyatnikov <evgsyr@gmail.com>
24079 Why gcc didn't complain about it? It is definitely an index clash.
24084 2016-11-11 Dmitry V. Levin <ldv@altlinux.org>
24094 2016-11-11 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
24103 2016-11-10 Eugene Syromyatnikov <evgsyr@gmail.com>
24107 2016-11-10 Mikulas Patocka <mpatocka@redhat.com>
24114 * configure.ac (AC_CHECK_HEADERS): Add linux/dm-ioctl.h.
24119 * tests/ioctl_dm-v.c: Likewise.
24121 * tests/ioctl_dm-v.test: Likewise.
24122 * tests/.gitignore: Add ioctl_dm and ioctl_dm-v.
24124 (DECODER_TESTS): Add ioctl_dm.test and ioctl_dm-v.test.
24126 2016-11-10 Dmitry V. Levin <ldv@altlinux.org>
24131 2016-11-10 Eugene Syromyatnikov <evgsyr@gmail.com>
24134 This enables printing size-limited (expectedly) ASCIZ strings.
24136 This is done by increasing umoven size limit for sized strings by one
24137 byte above max_strlen (enabling copying possible NUL byte in case len is
24139 in case QUOTE_0_TERMINATED is set (due to user_style or usage of len of
24140 -1). As a result, there is one excess byte for string_quote in case
24141 QUOTE_0_TERMINATED is set so string_quote can check for NUL termination
24142 of strings up to size bytes in size (which is len or max_strlen, whatever
24143 is greater).
24145 The catch here is that when string is not properly NUL-terminated and
24146 QUOTE_0_TERMINATED is provided in user_style and len is less than
24147 max_strlen then last non-NUL byte is not printed. But ellipsis is
24148 printed instead, being indication that string is not terminated
24150 behaviour is not intended.
24152 * util.c (printstr_ex): Copy one excess byte in case of non-negative len
24153 provided and it is more than max_strlen; handle case of max_strlen of 0
24154 in case QUOTE_0_TERMINATED is set separately; check for need of printing
24157 2016-11-09 Eugene Syromyatnikov <evgsyr@gmail.com>
24161 * tests/mq_sendrecv-read.c: Likewise.
24162 * tests/mq_sendrecv-write.c: Likewise.
24164 * tests/mq_sendrecv-read.test: Likewise.
24165 * tests/mq_sendrecv-write.test: Likewise.
24166 * tests/.gitignore: Add mq_sendrecv, mq_sendrecv-read,
24167 and mq_sendrecv-write.
24171 (DECODER_TESTS): Add mq_sendrecv.test, mq_sendrecv-read.test,
24172 and mq_sendrecv-write.test.
24174 2016-11-08 Dmitry V. Levin <ldv@altlinux.org>
24180 2016-10-31 Eugene Syromyatnikov <evgsyr@gmail.com>
24221 * tests/perf_event_open.test: add -e verbose=none in order to preserve
24222 output format being checked (in case verbose output is enabled,
24224 tests/perf_event_open_nonverbose.test; add -e trace=perf_event_open.
24228 2016-10-30 Eugene Syromyatnikov <evgsyr@gmail.com>
24240 * tests/quotactl-xfs.c (main): Likewise.
24267 * defs.h (ARRAY_SIZE): Add MUST_BE_ARRAY for build-time type check.
24282 print address only on non-successful rc.
24293 (main): Add a check for non-available pointer and a check
24298 2016-10-30 Eugene Syromyatnikov <evgsyr@gmail.com>
24312 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24319 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24328 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24333 * mq.c (SYS_FUNC(mq_timedreceive)): Check for syserror and non-negative
24337 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24343 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24347 flags are treated as invalid by mq_getsetattr). Moreover, this field is
24348 ignored by mq_open at all (O_NONBLOCK is set via oflag, not via attr
24355 print mq_flags as flags only in case decode_flags parameter is set
24363 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24375 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24378 It is defined as int in <linux/posix_types.h>.
24387 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24409 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24419 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24430 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24439 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24455 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24464 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24474 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24483 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24486 nstype is not flag set but specific type value against which it is
24492 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24494 tests: check non-verbose capget/capset output.
24495 * tests/caps-abbrev.awk: New file.
24496 * tests/caps-abbrev.c: Likewise.
24497 * tests/caps-abbrev.test: New test.
24498 * tests/.gitignore: Add caps-abbrev.
24500 (DECODER_TESTS): Add caps-abbrev.test.
24501 (EXTRA_DIST): Add caps-abbrev.awk.
24535 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24538 As init_module has no compat wrapper, its first parameter is a pointer
24539 and the second is length, they both have the same size as kernel_ulong_t
24546 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24554 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24562 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24565 Since create_module syscall is present only in kernels before Linux 2.6
24566 and strace does not support those kernels, there is no use to keep this
24572 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24590 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24593 This is similar to widen_to_long, but for unsigned values.
24597 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24604 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24613 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24617 (failed syscall doesn't mean that iovec itself is inaccessible and
24618 useless). One caveat here is that we should explicitly provide proper
24619 IOV_DECODE_* value based on syserror value in case printing is performed
24621 when syserror is up, since this may be called by code which tries to
24626 preadv test is updated to reflect this. It is notable, though, that this
24627 is the only place where this case is checked.
24635 with singe-item iovec failed.
24637 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24644 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24648 line with umoven_or_printaddr when verbose flag is disabled.
24651 when verbose flag is unset.
24653 2016-10-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24662 2016-10-28 Dmitry V. Levin <ldv@altlinux.org>
24668 2016-10-27 Eugene Syromyatnikov <evgsyr@gmail.com>
24690 2016-10-27 Eugene Syromyatnikov <evgsyr@gmail.com>
24693 It is size_t and without compat on x32/n32.
24699 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24703 field. Useful for checking whether specific field is present in obtained
24708 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24729 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24739 2016-10-26 Eugene Syromyatnikov <evgsyr@gmail.com>
24749 use it as a divisor in non-constant part of value.
24751 * tests/quotactl-xfs.c (main): Likewise.
24753 2016-10-05 Dmitry V. Levin <ldv@altlinux.org>
24755 Post-release administrivia.
24757 * debian/changelog.in: Add a changelog entry for 4.14-1.
24760 2016-10-04 Dmitry V. Levin <ldv@altlinux.org>
24768 2016-10-04 Dmitry V. Levin <ldv@altlinux.org>
24770 Assume that offsetof is provided by stddef.h.
24776 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24789 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24803 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24816 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24820 as NUL-terminated, which is not true. We fix it by adding parameter to
24821 keyctl_read_key signalising whether buffer is NUL-terminated and using
24822 printstr_ex for printing (expectedly) NUL-terminated strings.
24824 * keyctl.c (keyctl_read_key): Add has_nul parameter. Do not use -1 as
24830 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24833 This is useful for providing QUOTE_OMIT_TRAILING_0 and maybe other
24839 (printstr_ex) ... new function, add user_style argument which is or'ed
24842 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24844 util: add quote_string flag signalising that string is NUL-terminated.
24845 It is useful in cases strings with size provided are expected to be
24846 NUL-terminated but are not trustworthy enough to call just plain
24847 printstr(str, -1).
24851 QUOTE_OMIT_TRAILING_0 is set.
24853 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24860 2016-10-03 Dmitry V. Levin <ldv@altlinux.org>
24872 of open-coding it. Print unrecognized errno values using %lu format
24875 2016-10-03 Eugene Syromyatnikov <evgsyr@gmail.com>
24877 keyctl: print errno name in KEYCTL_REJECT in case it is available.
24879 and print it if it is not NULL.
24885 2016-10-03 Dmitry V. Levin <ldv@altlinux.org>
24888 This is the type actually used for the error code on architectures
24897 2016-10-02 Dmitry V. Levin <ldv@altlinux.org>
24908 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24912 not needed. Since this is the only command which lacks additional
24920 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24923 Otherwise it is erroneous on x32, for example.
24928 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24931 UID/GID are unsigned except special -1 value (which is also special in
24938 2016-10-02 Eugene Syromyatnikov <evgsyr@gmail.com>
24940 io: handle data_size of -1 as unlimited data in print_iovec.
24944 * io.c (print_iovec): Interpret c->data_size of -1 as unlimited data
24947 2016-10-01 Dmitry V. Levin <ldv@altlinux.org>
24950 Fix test regression introduced by commit v4.13-225-g55334ef.
24954 2016-09-30 Dmitry V. Levin <ldv@altlinux.org>
24956 Enhance -e abbrev=set, -e raw=set, and -e verbose=set.
24958 For example, this allows such syntax as -e verbose=file.
24965 2016-09-30 Dmitry V. Levin <ldv@altlinux.org>
24971 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24984 2016-09-28 Dmitry V. Levin <ldv@altlinux.org>
24988 argument of 7-arg syscalls.
24990 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
24999 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
25002 Since its type is size_t, it is 64-bit wide on x32 and special care
25008 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
25012 peculiarities of runtimes which employ tcp->ext_arg (e.g. x32).
25018 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
25028 2016-09-28 Dmitry V. Levin <ldv@altlinux.org>
25031 This change is no-op yet, but things will change when decoder
25038 2016-09-28 Eugene Syromyatnikov <evgsyr@gmail.com>
25048 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25058 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25066 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25077 in order to enable detection of potential 4-byte aligned shifts.
25085 * tests/.gitignore: Add quotactl, quotactl-v, quotactl-xfs,
25086 and quotactl-xfs-v.
25088 (DECODER_TESTS): Add quotactl.test, quotactl-v.test,
25089 quotactl-xfs.test, and quotactl-xfs-v.test.
25093 * quotactl-v.c: Likewise.
25094 * quotactl-xfs.c: Likewise.
25095 * quotactl-xfs-v.c: Likewise.
25097 * quotactl-v.test: Likewise.
25098 * quotactl-xfs.test: Likewise.
25099 * quotactl-xfs-v.test: Likewise.
25101 2016-09-27 Dmitry V. Levin <ldv@altlinux.org>
25117 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25132 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25138 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25141 Since the only difference between 32-bit and 64-bit environments
25142 regarding this structure is its padding, lets just add packed attribute
25147 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25153 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25156 Q_XQUOTASYNC is no-op, but it does not require id/addr arguments anyway.
25162 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25170 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25173 As id argument is not used for Q_QUOTAOFF, Q_GETFMT, Q_V2_GETINFO,
25185 2016-09-27 Eugene Syromyatnikov <evgsyr@gmail.com>
25188 * quota.c (SYS_FUNC(quotactl)): Since id call argument is used for
25189 user/group/project ID which all have special semantics for -1,
25196 2016-09-26 Dmitry V. Levin <ldv@altlinux.org>
25198 tests: use VERBOSE macro in waitid and waitid-v tests.
25199 * tests/waitid-v.c (VERBOSE_RUSAGE): Remove.
25204 tests: use VERBOSE macro in wait4 and wait4-v tests.
25205 * tests/wait4-v.c (VERBOSE_RUSAGE): Remove.
25210 tests: use VERBOSE macro in msg_control and msg_control-v tests.
25211 * tests/msg_control-v.c (VERBOSE_MSGHDR): Remove.
25216 tests: use VERBOSE macro in mmsg_name and mmsg_name-v tests.
25217 * tests/mmsg_name-v.c (VERBOSE_MMSGHDR): Remove.
25222 tests: use VERBOSE macro in ioctl_rtc and ioctl_rtc-v tests.
25223 * tests/ioctl_rtc-v.c (VERBOSE_IOCTL): Remove.
25228 tests: use VERBOSE macro in ioctl_evdev and ioctl_evdev-v tests.
25229 * tests/ioctl_evdev-v.c (VERBOSE_IOCTL): Remove.
25233 tests: use VERBOSE macro in execveat and execveat-v tests.
25234 * tests/execveat-v.c (VERBOSE_EXECVEAT): Remove.
25238 tests: use VERBOSE macro in execve and execve-v tests.
25239 * tests/execve-v.c (VERBOSE_EXECVE): Remove.
25243 2016-09-26 Dmitry V. Levin <ldv@altlinux.org>
25246 Introduce VERBOSE macro (defaults to 0) that is expected to be defined
25247 to 1 by code testing "strace -v" output.
25251 2016-09-20 Dmitry V. Levin <ldv@altlinux.org>
25253 decode_open: print the mode argument when O_TMPFILE flag is set.
25257 (decode_open): Print the mode argument when O_TMPFILE flag is set.
25261 2016-09-20 Dmitry V. Levin <ldv@altlinux.org>
25279 * tests/fchmod.test: Update the value specified for strace -a parameter.
25287 2016-09-19 Dmitry V. Levin <ldv@altlinux.org>
25303 2016-09-19 Dmitry V. Levin <ldv@altlinux.org>
25307 non-mainline filesystems.
25312 2016-09-15 Eugene Syromyatnikov <evgsyr@gmail.com>
25316 2016-09-14 Dmitry V. Levin <ldv@altlinux.org>
25329 2016-09-14 Dmitry V. Levin <ldv@altlinux.org>
25338 2016-09-13 Dmitry V. Levin <ldv@altlinux.org>
25346 2016-09-13 Eugene Syromyatnikov <evgsyr@gmail.com>
25355 * tests/semop.test: Add explicit -e parameter in order to trace both
25359 2016-09-12 Dmitry V. Levin <ldv@altlinux.org>
25365 2016-09-12 Eugene Syromyatnikov <evgsyr@gmail.com>
25368 This is needed due to apparent deviation in spelling of commit author
25373 2016-09-12 Dmitry V. Levin <ldv@altlinux.org>
25380 2016-09-12 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
25389 2016-09-12 Dmitry V. Levin <ldv@altlinux.org>
25397 2016-09-11 Dmitry V. Levin <ldv@altlinux.org>
25402 2016-09-10 Dmitry V. Levin <ldv@altlinux.org>
25407 2016-09-09 Dmitry V. Levin <ldv@altlinux.org>
25417 2016-09-09 Eugene Syromyatnikov <evgsyr@gmail.com>
25421 2016-09-09 Eugene Syromyatnikov <evgsyr@gmail.com>
25430 2016-09-09 Dmitry V. Levin <ldv@altlinux.org>
25437 sed -ri '/io_setup|io_destroy/ s/0,/TM,/' linux/*/syscallent*.h
25441 2016-09-08 Dmitry V. Levin <ldv@altlinux.org>
25444 * .travis.yml (matric): Add musl-gcc/x86.
25445 * travis-build.sh [TARGET == x86]: Specify --target along with --build
25447 * travis-install.sh [CC == musl-gcc && TARGET == x32]: Add -mx32 to $CC.
25448 [CC == musl-gcc && TARGET == x86]: Add -m32 to $CC. Specify --build
25449 and --target to musl configure invocation.
25451 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25460 specifiers for __*64-typed values.
25462 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25465 * ipc_msgctl.c (SYS_FUNC(msgctl)): As msqid argument is treated as int
25474 2016-09-08 Dmitry V. Levin <ldv@altlinux.org>
25478 is __kernel_key_t (i.e. int), cast key_t argument to int
25486 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25492 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25501 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25504 New sprintrc_grep function is sprintrc function equivalent suitable for
25505 tests where grep-base pattern matching is employed.
25514 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25524 2016-09-08 Eugene Syromyatnikov <evgsyr@gmail.com>
25529 2016-09-07 Dmitry V. Levin <ldv@altlinux.org>
25532 * tests/aio.c (main): Do not pass 64-bit aio_context_t to io_submit
25533 and io_getevents until strace learns how to print 64-bit pointers on x32
25536 2016-09-07 Dmitry V. Levin <ldv@altlinux.org>
25539 As aio_context_t is treated by the kernel as a pointer,
25549 2016-09-07 Dmitry V. Levin <ldv@altlinux.org>
25555 2016-09-06 Eugene Syromyatnikov <evgsyr@gmail.com>
25561 2016-09-06 Eugene Syromyatnikov <evgsyr@gmail.com>
25563 tests: add suffix and cast to 64-bit constants in aio test.
25565 "integer constant is too large for ‘long’ type"
25566 reported by some versions of gcc on 32-bit platforms.
25568 * tests/aio.c (main): Add ULL suffix to 64-bit constants
25571 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25584 2016-09-05 Dmitry V. Levin <ldv@altlinux.org>
25622 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25647 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25651 aio_resfd. It is quite reasonable to use the appropriate function for
25662 2016-09-05 Dmitry V. Levin <ldv@altlinux.org>
25667 2016-09-02 Dmitry V. Levin <ldv@altlinux.org>
25672 2016-09-05 Dmitry V. Levin <ldv@altlinux.org>
25678 2016-09-05 Eugene Syromyatnikov <evgsyr@gmail.com>
25688 2016-09-02 Eugene Syromyatnikov <evgsyr@gmail.com>
25696 tests/futex: add support to sprintrc for return codes other than 0 and -1
25707 2016-09-01 Eugene Syromyatnikov <evgsyr@gmail.com>
25710 According to documentation and kernel's syscalls.h, its type is size_t,
25716 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25727 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25732 2016-08-31 Eugene Syromiatnikov <evgsyr@gmail.com>
25740 2016-08-31 Dmitry V. Levin <ldv@altlinux.org>
25744 kernel commit v4.8-rc1~140^2~226.
25746 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25751 v4.8-rc1~140^2~148^2~5, v4.8-rc1~140^2~148^2~4, and
25752 v4.8-rc1~140^2~148^2~3, respectively.
25756 by linux kernel commits v4.8-rc1~147^2~82 and v4.8-rc1~147^2~74,
25761 kernel commit v4.8-rc1~16^2~41.
25765 commit v4.8-rc1~140^2~65^2~8.
25769 by linux kernel commit v4.8-rc1~140^2~212^2~2.
25771 by linux kernel commit v4.8-rc1~140^2~64^2~10.
25773 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25782 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25789 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25796 2016-08-30 Eugene Syromiatnikov <evgsyr@gmail.com>
25805 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25807 futex: do not pretend <linux/futex.h> is included.
25808 As configure.ac does not check for linux/futex.h, HAVE_LINUX_FUTEX_H is
25814 since kernel commit v2.6.24-6320-gcd68998 where these definitions
25815 were initially introduced and up to v2.6.31-7082-gf8d1e54 where they
25823 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25825 futex: avoid printing val when it is not used by the futex command.
25826 This is analogous to timeout argument omitting in FUTEX_WAKE_BITSET
25833 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25838 since commit v4.5-rc1~172^2.
25840 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25844 Use printaddr to print uaddr as the latter is interpreted as a pointer
25850 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25853 Since obsolete FUTEX_FD command is known and used to have some expected
25858 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25864 2016-08-30 Eugene Syromyatnikov <evgsyr@gmail.com>
25874 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25877 * bootstrap: Add -DMPERS_IS_$(MPERS_NAME) to ARCH_MFLAGS.
25893 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25896 As ptrace.h already ensures that PTRACE_LISTEN is defined,
25897 there is no need to check this fact in other places.
25899 * strace.c (ptrace_restart): Do not check that PTRACE_LISTEN is defined.
25901 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25908 2016-08-30 Dmitry V. Levin <ldv@altlinux.org>
25915 2016-08-30 James Clarke <jrtc27@jrtc27.com>
25920 PTRACE_SUNDETACH is also defined to the correct value by sys/ptrace.h,
25927 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25935 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25942 2016-08-28 Dmitry V. Levin <ldv@altlinux.org>
25950 2016-08-27 Dmitry V. Levin <ldv@altlinux.org>
25958 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25961 glibc, starting with commit glibc-2.24-28-gdbab657, has deprecated
25977 2016-08-29 Dmitry V. Levin <ldv@altlinux.org>
25980 This complements commit v4.11-719-gfb0c609.
25987 2016-08-29 Elvira Khabirova <lineprinter0@gmail.com>
25993 * mpers.awk (what_is): Print names of union_type members as is.
25995 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26006 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26041 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26047 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26050 This allows testing of MPERS_IS_* macros in pre-MPERS_DEFS parts
26053 * Makefile.am (mpers-m%.stamp): Add -DMPERS_IS_$(mpers_NAME) to CFLAGS
26057 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26065 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26068 For the reason described in commit v4.10-517-gcfde1e3, a correct
26069 definition of struct stat for x32 personality is necessary to enable
26070 "asm_stat.h" with -mx32 on x86_64.
26077 2016-08-24 Dmitry V. Levin <ldv@altlinux.org>
26080 This enables x32/asm_stat.h with -m32.
26087 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26100 * linux/mips/syscallent-o32.h: Likewise.
26110 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26113 Assume that the check for struct stat.st_mtime_nsec is enough.
26126 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26141 2016-08-23 Dmitry V. Levin <ldv@altlinux.org>
26145 This complements commit v4.10-45-gdf4dd8b.
26149 2016-08-22 Dmitry V. Levin <ldv@altlinux.org>
26159 2016-08-22 Eugene Syromyatnikov <evgsyr@gmail.com>
26162 This is needed in order to differentiate it from the value returned
26172 2016-08-22 Eugene Syromyatnikov <evgsyr@gmail.com>
26175 This is done similar to timer_settime syscall parser.
26181 2016-08-21 Richard W.M. Jones <rjones@redhat.com>
26183 Add RISC-V architecture support.
26206 2016-08-21 Eugene Syromyatnikov <evgsyr@gmail.com>
26208 Move SH-specific argument number calculation to getllval.
26209 This change prevents scattering of ll-related hacks and simplifies
26213 number is equal to 3.
26219 2016-08-21 Dmitry V. Levin <ldv@altlinux.org>
26228 2016-08-20 Dmitry V. Levin <ldv@altlinux.org>
26232 SIZEOF_LONG > 4]: Use LONG_LONG to convert sa_mask from 32-bit
26233 struct sigaction to 64-bit struct sigaction.
26235 2016-08-19 Dmitry V. Levin <ldv@altlinux.org>
26237 Fix decoding of indirect shmat's return code for non-native personalities
26241 2016-08-18 Dmitry V. Levin <ldv@altlinux.org>
26246 2016-08-19 Dmitry V. Levin <ldv@altlinux.org>
26249 On sparc64, unlike all other architectures where semctl is an indirect
26250 ipc subcall, the forth argument is passed directly.
26255 2016-08-16 Dmitry V. Levin <ldv@altlinux.org>
26262 * linux/sparc64/get_syscall_args.c (get_syscall_args): Zero-extend
26265 2016-08-16 Dmitry V. Levin <ldv@altlinux.org>
26275 2016-08-15 Dmitry V. Levin <ldv@altlinux.org>
26279 2016-08-15 Dmitry V. Levin <ldv@altlinux.org>
26283 by the kernel, there is no use supporting them.
26294 2016-08-15 Dmitry V. Levin <ldv@altlinux.org>
26306 2016-08-15 Dmitry V. Levin <ldv@altlinux.org>
26308 tests: fix pause.test when pause syscall is not available.
26310 is not available.
26312 2016-08-14 Dmitry V. Levin <ldv@altlinux.org>
26315 This fixes compilation warning that ARCH_PC_REG is redefined.
26321 2016-08-14 Dmitry V. Levin <ldv@altlinux.org>
26324 * linux/s390x/arch_regs.c (ARCH_PC_REG): Remove, it is already defined
26326 * linux/x32/arch_regs.c (ARCH_PC_REG): Remove, it is already defined
26329 2016-08-13 Dmitry V. Levin <ldv@altlinux.org>
26332 * tests/redirect-fds.c: New file.
26333 * tests/redirect-fds.test: New test.
26334 * tests/.gitignore: Add redirect-fds.
26336 (MISC_TESTS): Add redirect-fds.test.
26343 (run_strace_merge): When strace-log-merge fails, add its exit code
26346 2016-08-13 Dmitry V. Levin <ldv@altlinux.org>
26349 As a side effect of commit v4.11-211-g0736d4e, strace used to leak
26351 behaviour. Fix this by setting close-on-exec flag on placeholder
26354 * strace.c (open_dummy_desc): Set close-on-exec flag on the descriptor
26355 that is going to be returned to the caller.
26361 2016-08-12 Dmitry V. Levin <ldv@altlinux.org>
26363 sparc64: fix decoding of uid and gid-related syscalls.
26364 sparc64 has no native 16-bit uid/gid syscalls.
26368 setregid, setfsuid, setfsgid): Change handlers from 16-bit to 32-bit.
26370 2016-08-12 Dmitry V. Levin <ldv@altlinux.org>
26387 2016-08-11 Dmitry V. Levin <ldv@altlinux.org>
26389 tests: skip rt_tgsigqueueinfo.test when the syscall is not available.
26391 is not available.
26393 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26401 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26405 64-bit mips ABIs. Pass MIPS_ABI from the configure script through to
26412 2016-08-11 James Cowgill <james410@cowgill.org.uk>
26416 32-bit integers on mips64. Therefore, while it's possible to give a file a
26423 2016-08-11 Dmitry V. Levin <ldv@altlinux.org>
26431 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26448 * tests/attach-f-p.c: Likewise.
26546 * tests/prctl-seccomp-filter-v.c: Likewise.
26547 * tests/prctl-seccomp-strict.c: Likewise.
26548 * tests/preadv2-pwritev2.c: Likewise.
26573 * tests/seccomp-filter-v.c: Likewise.
26574 * tests/seccomp-filter.c: Likewise.
26575 * tests/seccomp-strict.c: Likewise.
26620 * tests/times-fail.c: Likewise.
26628 * tests/unix-pair-send-recv.c: Likewise.
26642 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26651 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26653 Make sure that tcp->s_ent and tcp->s_prev_ent do not point to freed memory
26654 This complements commit v4.13-33-g60d7ec8.
26660 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26673 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26677 This complements commit v4.10-45-gdf4dd8b.
26682 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26685 This complements commit v4.13-28-gaebfe83.
26689 2016-08-09 Dmitry V. Levin <ldv@altlinux.org>
26692 When the syscall number returned by arch_get_scno is a mapped indirect
26700 tcp->s_ent->sys_name instead of syscall_name.
26708 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26711 * linux/subcall.h: Remove definitions of non-existent socket
26717 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26728 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26736 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26751 2016-08-08 Dmitry V. Levin <ldv@altlinux.org>
26779 2016-08-07 Dmitry V. Levin <ldv@altlinux.org>
26797 2016-08-08 Eugene Syromyatnikov <evgsyr@gmail.com>
26800 This commit is an attempt to unify usage of include guards (in top-level
26802 have different semantics: for example, printargs.h is included multiple
26804 macro definitions - maybe it's better to change extension of such files
26821 2016-08-06 Dmitry V. Levin <ldv@altlinux.org>
26826 2016-08-05 Dmitry V. Levin <ldv@altlinux.org>
26836 2016-08-04 Dmitry V. Levin <ldv@altlinux.org>
26842 2016-08-04 Dmitry V. Levin <ldv@altlinux.org>
26849 * travis-install.sh (musl-gcc): Do not add an extra repository,
26850 do not install musl-tools and linux-musl-dev packages.
26853 2016-08-03 Dmitry V. Levin <ldv@altlinux.org>
26887 * tests/creat.test: Update the value specified for strace -a parameter.
26892 2016-08-02 Dmitry V. Levin <ldv@altlinux.org>
26894 tests: simplify attach-f-p.test.
26895 * tests/attach-f-p.c Simplify communications between threads
26896 by replacing per-thread timers with pipes.
26897 * tests/attach-f-p.test: Do not ignore signals.
26899 tests: cleanup attach-p-cmd.test.
26900 * tests/attach-p-cmd-cmd.c (main): Cleanup expected output.
26901 * tests/attach-p-cmd-p.c (main): Print expected output.
26902 * tests/attach-p-cmd.test: Do not print expected output.
26923 2016-07-31 Dmitry V. Levin <ldv@altlinux.org>
26934 2016-07-30 Dmitry V. Levin <ldv@altlinux.org>
26942 2016-07-29 Dmitry V. Levin <ldv@altlinux.org>
26951 * strace.c (attach_tcb): Attach to tcp->pid first.
26967 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
26969 Do not enable mpers runtime checks if mpers is not enabled.
26973 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
26976 Starting with commit v4.10-62-ga0bd374, function prototypes
26981 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
26984 This script has been created by commit v4.8-180-g0ed617b
26985 for the one-shot job of automatic convertion of xlat structures
26990 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
26999 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
27002 When grep or sed is used with basic regular expressions containing
27012 * make-dsc: Likewise.
27018 * tests/strace-S.test: Likewise.
27019 * tests/strace-V.test: Likewise.
27020 * tests/strace-k.test: Likewise.
27022 2016-07-28 Dmitry V. Levin <ldv@altlinux.org>
27029 2016-07-27 Dmitry V. Levin <ldv@altlinux.org>
27031 Post-release administrivia.
27033 * debian/changelog.in: Add a changelog entry for 4.13-1.
27036 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27043 to avoid breaking strict-aliasing rules reported by some gcc compilers.
27058 * tests/btrfs.c: Do not include <sys/fcntl.h>, <fcntl.h> is enough.
27061 * tests/accept4.c: Check that O_CLOEXEC is defined. Use O_CLOEXEC
27064 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27070 Reported-by: Yun-Chih Chen <b03902074@ntu.edu.tw>
27072 2016-07-26 Dmitry V. Levin <ldv@altlinux.org>
27075 * tests/chown.test: Fix the value specified for strace -a parameter.
27077 Reported-by: Yun-Chih Chen <b03902074@ntu.edu.tw>
27079 2016-07-25 Dmitry V. Levin <ldv@altlinux.org>
27087 2016-07-24 Dmitry V. Levin <ldv@altlinux.org>
27091 2016-07-23 Dmitry V. Levin <ldv@altlinux.org>
27093 debian: add gcc-multilib to Build-Depends for relevant architectures.
27094 * debian/control (Build-Depends) [amd64, ppc64, sparc64, x32]:
27095 Add gcc-multilib to enable multiple personalities support.
27097 2016-07-22 Dmitry V. Levin <ldv@altlinux.org>
27113 [S390 || S390X]: Skip ipc cubcalls that have non-zero version.
27116 * ipc_msg.c (SYS_FUNC(msgrcv)): Handle non-zero ipc subcall version.
27117 [SPARC64]: Handle non-ipc_kludge case for the native personality.
27122 2016-07-21 Dmitry V. Levin <ldv@altlinux.org>
27125 * tests/netlink_protocol.c: Check that HAVE_SYS_XATTR_H is defined.
27127 (main): Check that system.sockprotoname attribute is supported.
27135 2016-07-20 Dmitry V. Levin <ldv@altlinux.org>
27138 As most syscalls on x32 and mips n32 are actually 64-bit,
27139 check that 64-bit syscall arguments are decoded properly.
27148 2016-07-20 Dmitry V. Levin <ldv@altlinux.org>
27150 x32, mips n32: make printargs print full 64-bit syscall arguments.
27152 printed by default as 64-bit syscalls, and syscall parsers at their
27153 discretion might print syscalls differently. This is already
27154 implemented in 64-bit strace tracing x32 personality processes,
27162 2016-07-20 Dmitry V. Levin <ldv@altlinux.org>
27180 2016-07-19 Dmitry V. Levin <ldv@altlinux.org>
27183 * tests/unix-pair-send-recv.c: New file.
27184 * tests/unix-pair-send-recv.expected: Likewise.
27185 * tests/unix-pair-send-recv.test: New test.
27186 * tests/.gitignore: Add unix-pair-send-recv.
27188 (DECODER_TESTS): Add unix-pair-send-recv.test.
27189 (EXTRA_DIST): Add unix-pair-send-recv.expected.
27191 tests: rename unix-pair-send-recv to unix-pair-sendto-recvfrom.
27192 * dumpio.expected: Rename to unix-pair-sendto-recvfrom.expected.
27193 * dumpio.test: Rename to unix-pair-sendto-recvfrom.test.
27194 * unix-pair-send-recv.c: Rename to unix-pair-sendto-recvfrom.c
27195 * .gitignore: Rename unix-pair-send-recv to unix-pair-sendto-recvfrom.
27197 (DECODER_TESTS): Add unix-pair-sendto-recvfrom.test.
27200 to unix-pair-sendto-recvfrom.expected.
27210 * xlat/shutdown_modes.in: Replace open-coded xlat table with a list
27214 * tests/mmsg-silent.c: New file.
27215 * tests/mmsg-silent.test: New test.
27216 * tests/.gitignore: Add mmsg-silent.
27218 (DECODER_TESTS): Add mmsg-silent.test.
27239 * tests/mmsg_name-v.c: New file.
27240 * tests/mmsg_name-v.test: New test.
27241 * tests/.gitignore: Add mmsg_name-v.
27243 (DECODER_TESTS): Add mmsg_name-v.test.
27252 2016-07-19 Dmitry V. Levin <ldv@altlinux.org>
27256 the same read-write semantics as struct msghdr argument of recvmsg
27266 2016-07-19 Dmitry V. Levin <ldv@altlinux.org>
27276 * tests/recvmmsg-timeout.c: New file.
27277 * tests/recvmmsg-timeout.test: New test.
27278 * tests/.gitignore: Add recvmmsg-timeout.
27280 (DECODER_TESTS): Add recvmmsg-timeout.test.
27284 when the 5th syscall argument is NULL.
27303 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27312 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27320 instead of abusing tcp->auxstr.
27326 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27330 be overwritten by subsequent calls to sprint_timespec, it is not safe to
27338 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27342 be overwritten by subsequent calls to sprint_timespec, it is not safe to
27350 2016-07-18 Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
27355 must be provided along with the data. The callback is executed
27368 2016-07-18 Dmitry V. Levin <ldv@altlinux.org>
27391 2016-07-14 Dmitry V. Levin <ldv@altlinux.org>
27393 tests: disable part of msg_name test on non-glibc systems.
27400 2016-07-13 Dmitry V. Levin <ldv@altlinux.org>
27405 * tests/inet-cmsg.c (main): Likewise.
27408 * tests/preadv-pwritev.c (main): Likewise.
27409 * tests/preadv2-pwritev2.c (main): Likewise.
27415 * tests/scm_rights-fd.test: Likewise.
27425 2016-07-13 Dmitry V. Levin <ldv@altlinux.org>
27429 read-write semantics as the address length argument of recvfrom syscall,
27447 2016-07-12 Dmitry V. Levin <ldv@altlinux.org>
27454 2016-07-12 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
27462 2016-07-12 Dmitry V. Levin <ldv@altlinux.org>
27465 BLKDAXGET was removed by linux kernel commit v4.7-rc1~78^2^2~4.
27471 2016-07-12 Dmitry V. Levin <ldv@altlinux.org>
27490 is truncated.
27526 * tests/net-y-unix.c (main): Update expected output.
27527 * tests/net-yy-unix.c (main): Likewise.
27532 when the returned address is truncated.
27542 2016-07-11 Dmitry V. Levin <ldv@altlinux.org>
27545 * net.c (do_sockname): Rename to decode_sockname, drop second argument,
27552 2016-07-08 Dmitry V. Levin <ldv@altlinux.org>
27563 2016-07-07 Dmitry V. Levin <ldv@altlinux.org>
27567 of netlink message is fetched beyond the end of message.
27571 2016-07-07 Fabien Siron <fabien.siron@epita.fr>
27580 2016-07-07 Fabien Siron <fabien.siron@epita.fr>
27602 2016-07-07 Dmitry V. Levin <ldv@altlinux.org>
27606 by linux kernel commit v4.7-rc1~195^2.
27611 v3.19-rc1~53^2~7^2~1, v4.1-rc1~147^2~4, v4.4-rc1~141^2~17^2~1,
27612 and v4.7-rc1~161^2, respectively.
27614 2016-07-05 Dmitry V. Levin <ldv@altlinux.org>
27618 by linux kernel commit v4.7-rc1~124^2~2^2~2^2.
27622 by linux kernel commit v4.7-rc6~32^2~6^2.
27624 2016-07-04 Dmitry V. Levin <ldv@altlinux.org>
27628 by linux kernel commit v4.7-rc1~158^2~1.
27630 2016-07-07 Dmitry V. Levin <ldv@altlinux.org>
27634 by linux kernel commit v4.7-rc1~154^2~332^2~6.
27636 2016-07-03 Dmitry V. Levin <ldv@altlinux.org>
27640 struct msghdr.msg_controllen is greater than the maximum ancillary
27651 2016-07-03 Dmitry V. Levin <ldv@altlinux.org>
27658 2016-07-02 Dmitry V. Levin <ldv@altlinux.org>
27673 * tests/msg_control-v.c: New file.
27674 * tests/msg_control-v.test: New test.
27675 * tests/.gitignore: Add msg_control-v.
27677 (DECODER_TESTS): Add msg_control-v.test.
27679 2016-07-01 Dmitry V. Levin <ldv@altlinux.org>
27688 2016-06-30 Dmitry V. Levin <ldv@altlinux.org>
27731 * tests/inet-cmsg.c (print_opts): Update expected output.
27737 * tests/inet-cmsg.c (print_ttl, print_tos): Update expected output.
27744 * tests/inet-cmsg.c (print_pktinfo, print_ttl, print_tos, print_opts,
27746 * tests/scm_rights-fd.test: Likewise.
27748 2016-06-27 Dmitry V. Levin <ldv@altlinux.org>
27787 2016-06-26 Dmitry V. Levin <ldv@altlinux.org>
27792 * tests/inet-cmsg.c (main): Update expected output.
27795 * tests/scm_rights-fd.test: Likewise.
27810 * tests/inet-cmsg.c (main): Update expected output.
27811 * tests/scm_rights-fd.test: Likewise.
27817 2016-06-25 Dmitry V. Levin <ldv@altlinux.org>
27837 * tests/net-sockaddr.c: New file.
27838 * tests/net-sockaddr.test: New test.
27839 * tests/.gitignore: Add net-sockaddr.
27841 (DECODER_TESTS): Add net-sockaddr.test.
27843 2016-06-24 Dmitry V. Levin <ldv@altlinux.org>
27858 only when socket address length is greater or equal
27874 2016-06-24 Dmitry V. Levin <ldv@altlinux.org>
27878 is not a NUL-terminated string.
27885 2016-06-24 Dmitry V. Levin <ldv@altlinux.org>
27890 * tests/net-yy-netlink.c (main): Update.
27896 2016-06-23 Dmitry V. Levin <ldv@altlinux.org>
27901 print sockaddr_in6.sin6_scope_id only when it is specified.
27907 2016-06-23 Dmitry V. Levin <ldv@altlinux.org>
27915 the address size is greater than sizeof(struct sockaddr.sa_family).
27917 * tests/net-y-unix.c (main): Update expected pattern.
27918 * tests/net-yy-unix.c (main): Likewise.
27921 2016-06-22 Dmitry V. Levin <ldv@altlinux.org>
27936 2016-06-22 Fabien Siron <fabien.siron@epita.fr>
27958 2016-06-22 Dmitry V. Levin <ldv@altlinux.org>
27966 Do not clear memory that is going to be overwritten by umoven.
27969 2016-06-21 Fabien Siron <fabien.siron@epita.fr>
27974 and -1 in case of an error.
27976 2016-06-21 Dmitry V. Levin <ldv@altlinux.org>
28013 2016-06-20 Dmitry V. Levin <ldv@altlinux.org>
28020 * tests/net-accept-connect.c (main): Replace AF_LOCAL with AF_UNIX.
28021 * tests/net-y-unix.c: Likewise.
28022 * tests/net-yy-unix.c: Likewise.
28025 2016-06-19 Dmitry V. Levin <ldv@altlinux.org>
28039 2016-06-19 Fabien Siron <fabien.siron@epita.fr>
28054 2016-06-18 Dmitry V. Levin <ldv@altlinux.org>
28056 Split travis-ci.sh.
28057 * travis-ci.sh: Split into travis-build.sh, travis-install.sh,
28058 and travis-success.sh files.
28060 (script): Change to travis-build.sh.
28065 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28080 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28091 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28094 <linux/btrfs.h> was introduced in linux v3.9-rc1 while some
28096 and BTRFS_IOC_QUOTA_RESCAN_STATUS in v3.10-rc2,
28097 or BTRFS_IOC_QUOTA_RESCAN_WAIT in v3.11-rc1.
28105 Reported-by: Li Er <phoooyb@gmail.com>
28107 2016-06-17 Dmitry V. Levin <ldv@altlinux.org>
28114 2016-06-16 Elvira Khabirova <lineprinter0@gmail.com>
28118 2016-06-16 Fei Jie <feij.fnst@cn.fujitsu.com>
28132 2016-06-16 Dmitry V. Levin <ldv@altlinux.org>
28137 2016-06-16 Dmitry V. Levin <ldv@altlinux.org>
28140 The last user of <linux/in6.h> was removed by commit v4.9-252-gf362a33.
28144 2016-06-16 Dmitry V. Levin <ldv@altlinux.org>
28158 * net.c: Follow the example of tests/net-icmp_filter.c and include
28161 2016-06-14 Dmitry V. Levin <ldv@altlinux.org>
28171 2016-06-14 Elvira Khabirova <lineprinter0@gmail.com>
28174 Since UNDEFINED_SCNO is set if and only if !SCNO_IS_VALID
28175 and since tcp->s_ent can only be set to &sysent[tcp->scno]
28176 (or to &unknown, but only when !SCNO_IS_VALID), there is no need
28177 to check for UNDEFINED_SCNO before calling syscall_name(tcp->scno).
28183 2016-06-14 Dmitry V. Levin <ldv@altlinux.org>
28185 tests/attach-f-p.c: fix typo in comment.
28187 2016-06-14 Elvira Khabirova <lineprinter0@gmail.com>
28194 * configure.ac (gl_WARN_ADD): Add -Wempty-body, -Wformat-security,
28195 -Wignored-qualifiers, -Winit-self, -Wlogical-op,
28196 -Wmissing-parameter-type, -Wnested-externs, -Wold-style-declaration,
28197 -Wold-style-definition, -Wtype-limits.
28199 strace.c: fix a warning reported by -Wold-style-definition.
28202 2016-06-14 Dmitry V. Levin <ldv@altlinux.org>
28206 2016-06-14 Elvira Khabirova <lineprinter0@gmail.com>
28212 tests/xgetrlimit.c: fix a warning reported by -Wtype-limits.
28216 2016-06-11 Dmitry V. Levin <ldv@altlinux.org>
28232 * tests/net-icmp_filter.c (main): Update.
28236 2016-06-10 Dmitry V. Levin <ldv@altlinux.org>
28238 tests/attach-p-cmd-p.c: cleanup.
28239 * attach-p-cmd-p.c (handler): Move code ...
28258 * tests/waitid-v.c: Likewise.
28260 * tests/waitid-v.test: Likewise.
28261 * tests/.gitignore: Add waitid and waitid-v.
28263 (DECODER_TESTS): Add waitid.test and waitid-v.test.
28267 * tests/wait4-v.c: Likewise.
28269 * tests/wait4-v.test: Likewise.
28270 * tests/.gitignore: Add wait4 and wait4-v.
28272 (DECODER_TESTS): Add wait4.test and wait4-v.test.
28281 2016-06-09 Dmitry V. Levin <ldv@altlinux.org>
28290 2016-06-09 Fei Jie <feij.fnst@cn.fujitsu.com>
28292 tests: add strace-E.test.
28293 * tests/strace-E.expected: New file.
28294 * tests/strace-E.test: New test.
28296 (EXTRA_DIST): Add strace-E.expected.
28298 2016-06-08 Dmitry V. Levin <ldv@altlinux.org>
28301 * strace.spec.in: Add libunwind-devel to BuildRequires for RHEL8 family.
28303 2016-06-08 Dmitry V. Levin <ldv@altlinux.org>
28305 make-dist: generate strace-*.tar.gz, strace.dsc, and strace.spec.
28306 Change make-dist to generate strace-*.tar.gz, strace.dsc,
28307 and strace.spec in addition to strace-*.tar.xz.
28309 * configure.ac (AM_INIT_AUTOMAKE): Remove no-dist-gzip.
28310 * make-dsc: New file.
28311 * make-dist: Use it.
28312 * .gitignore: Add strace-*.tar.gz, strace.dsc, and strace.spec.
28314 2016-06-08 Dmitry V. Levin <ldv@altlinux.org>
28325 git-version-gen: replace '-' with '.' in generated version.
28326 * git-version-gen: Replace '-' with '.' so version conforms to policies
28331 2016-06-07 Dmitry V. Levin <ldv@altlinux.org>
28338 and the last %changelog entry. Initialize .tarball-version file.
28341 * strace.spec: Parametrize libunwind-devel BRs, BuildRoot, and %defattr.
28343 2016-06-07 Dmitry V. Levin <ldv@altlinux.org>
28345 tests: remove obsolete strace-f.test.
28346 strace-f.test is too inexact while fork-f.test does the right thing.
28348 * tests/strace-f.test: Remove.
28352 2016-06-07 Dmitry V. Levin <ldv@altlinux.org>
28354 tests: always distribute strace-k.test.
28355 Fix distribution of tests/strace-k.test file when configured
28358 * tests/Makefile.am (EXTRA_DIST): Add strace-k.test.
28360 2016-06-07 Dmitry V. Levin <ldv@altlinux.org>
28362 make-dist: skip news-check for non-releases.
28363 * make-dist: Run news-check only when the commit being built
28366 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28393 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28423 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28429 2016-06-06 Elvira Khabirova <lineprinter0@gmail.com>
28442 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28445 * debian/control (Build-Depends) [amd64]: Remove libunwind-dev.
28446 * debian/changelog: Sync with 4.12-3.
28449 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28451 tests/strace-S.test: fix testing 64-bit strace using a 32-bit userspace.
28452 * tests/strace-S.test: Measure wall clock time instead of system time.
28455 Reported-by: Steve McIntyre <steve@einval.com>
28457 2016-06-06 Dmitry V. Levin <ldv@altlinux.org>
28459 tests/strace-S.test: enhance error diagnostics.
28460 * tests/strace-S.test: If strace output does not meet expectations,
28463 2016-06-02 Dmitry V. Levin <ldv@altlinux.org>
28468 2016-06-01 Dmitry V. Levin <ldv@altlinux.org>
28470 maint: post-release administrivia.
28473 2016-05-31 Dmitry V. Levin <ldv@altlinux.org>
28477 * debian/changelog: 4.12-1.
28478 * strace.spec: 4.12-1.
28481 * debian/changelog: Sync with 4.11-1.
28482 * strace.spec: Sync with 4.11.0.163.9720-2.
28484 2016-05-30 Dmitry V. Levin <ldv@altlinux.org>
28491 2016-05-29 Dmitry V. Levin <ldv@altlinux.org>
28510 2016-05-28 Dmitry V. Levin <ldv@altlinux.org>
28540 * tests/ioctl_evdev-v.c: Likewise.
28542 * tests/ioctl_evdev-v.test: Likewise.
28543 * tests/.gitignore: Add ioctl_evdev and ioctl_evdev-v.
28545 (DECODER_TESTS): Add ioctl_evdev.test and ioctl_evdev-v.test.
28556 * evdev.c (bit_ioctl): If event type is not unrecognized,
28610 2016-05-28 Dmitry V. Levin <ldv@altlinux.org>
28614 1st, check for fixed-number fixed-length commands,
28615 2nd, check for fixed-number variable-length commands,
28616 3rd, check for multi-number fixed-length commands,
28617 4thm check for multi-number variable-length commands.
28622 2016-05-28 Dmitry V. Levin <ldv@altlinux.org>
28634 2016-05-28 Jeff Mahoney <jeffm@suse.com>
28642 2016-05-27 Dmitry V. Levin <ldv@altlinux.org>
28647 2016-05-27 Jeff Mahoney <jeffm@suse.com>
28650 * tests/btrfs-vw.test: New file.
28651 * tests/btrfs-w.test: New file.
28666 2016-05-26 Jeff Mahoney <jeffm@suse.com>
28668 tests/btrfs.c: fix btrfs-v for BTRFS_IOC_TREE_SEARCH.
28672 2016-05-26 Fabien Siron <fabien.siron@epita.fr>
28674 Fix -yy documentation.
28675 * strace.c (usage): Fix description of -yy option.
28678 2016-05-26 Dmitry V. Levin <ldv@altlinux.org>
28682 its lower 32-bit part closer to -1U.
28684 tests/btrfs.c: check basic decoding of read-only ioctls.
28748 2016-05-25 Dmitry V. Levin <ldv@altlinux.org>
28753 * tests/ioctl_rtc-v.c: Likewise.
28755 * tests/ioctl_rtc-v.test: Likewise.
28756 * tests/.gitignore: Add ioctl_rtc and ioctl_rtc-v.
28758 (DECODER_TESTS): Add ioctl_rtc.test and ioctl_rtc-v.test.
28796 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28801 2016-05-24 Fei Jie <feij.fnst@cn.fujitsu.com>
28810 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28814 2016-05-24 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
28819 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28823 is defined using unexported type "u64".
28827 if this constant is not defined.
28829 of the test if BTRFS_IOC_FILE_EXTENT_SAME is not defined.
28839 to make their lower 32-bit parts closer to -1U.
28852 is not BTRFS_SUPER_MAGIC.
28871 2016-05-24 Jeff Mahoney <jeffm@suse.com>
28876 * tests/btrfs-v.test: Likewise.
28879 (DECODER_TESTS): Add btrfs.test and btrfs-v.test.
28881 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28890 2016-05-24 Jeff Mahoney <jeffm@suse.com>
28893 This is limited to FIEMAP. FICLONE* and FIDEDUPERANGE originated in
28902 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28905 * btrfs.c: Mpersify 3 arch-specific structures
28935 btrfs.c: cleanup use of tcp->auxstr.
28936 * btrfs.c (btrfs_ioctl): Reset tcp->auxstr only if it is set.
28980 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
28988 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
29001 2016-05-24 Jeff Mahoney <jeffm@suse.com>
29009 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
29015 2016-05-24 Jeff Mahoney <jeffm@suse.com>
29054 2016-05-24 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
29059 2016-05-24 Dmitry V. Levin <ldv@altlinux.org>
29061 tests/attach-f-p.c: sleep a bit more to let the tracer catch up.
29066 * tests/attach-f-p.c (main): Change timerid into a static array.
29069 2016-05-23 Dmitry V. Levin <ldv@altlinux.org>
29071 tests/attach-p-cmd-cmd.c: fix potential errno clobbering.
29072 * tests/attach-p-cmd-cmd.c (main): Call getpid before chdir.
29074 tests/net-yy-netlink.c: robustify against libc specific issues.
29075 * tests/net-yy-netlink.c (main): Use getsockname instead of recvmsg
29079 tests/net-yy-netlink.c: robustify against os specific issues.
29080 * tests/net-yy-netlink.c (main): Pass a pointer to a real struct msghdr
29083 tests/net-yy-{inet,netlink}.test: cleanup.
29084 * tests/net-yy-inet.test: Do not pass arguments to net-yy-inet
29086 * tests/net-yy-netlink.test: Do not pass arguments to net-yy-netlink
29089 2016-05-22 Jeff Mahoney <jeffm@suse.com>
29099 2016-05-22 Dmitry V. Levin <ldv@altlinux.org>
29103 regular tail_alloc allocations. This is no longer needed since regular
29115 * tests/net-icmp_filter.c (main): Likewise.
29124 2016-05-22 Dmitry V. Levin <ldv@altlinux.org>
29130 2016-05-21 Dmitry V. Levin <ldv@altlinux.org>
29142 This is implemented by filtering all source files containing
29143 MPERS_PRINTER_DECL markers through CPP. As a nice side effect, this
29147 * README-mpers: Update description of MPERS_PRINTER_DECL syntax.
29161 2016-05-20 Dmitry V. Levin <ldv@altlinux.org>
29164 There is no need to declare mpers printers in defs.h because
29171 2016-05-21 Dmitry V. Levin <ldv@altlinux.org>
29180 2016-05-21 Fabien Siron <fabien.siron@epita.fr>
29182 tests: add check for netlink protocol decoding with -yy option.
29184 * tests/net-yy-netlink.c: New file.
29185 * tests/net-yy-netlink.test: New test.
29186 * tests/.gitignore: Add net-yy-netlink and netlink_netlink_diag
29188 (TESTS): Add net-yy-netlink.test.
29190 2016-05-18 Fabien Siron <fabien.siron@epita.fr>
29200 2016-05-18 Dmitry V. Levin <ldv@altlinux.org>
29202 tests/pread64-pwrite64.c: robustify against os specific issues.
29204 specified memory buffer is accessible. With some kernels, one
29205 accessible byte at the end of page is enough for pwrite64 syscall
29208 * tests/pread64-pwrite64.c (main): Tweak the test that can lead
29211 2016-05-18 Dmitry V. Levin <ldv@altlinux.org>
29213 tests/read-write.c: robustify against os specific issues.
29215 memory buffer is accessible. With some kernels, one accessible byte
29216 at the end of page is enough for write syscall to return 1.
29218 * tests/read-write.c (main): Tweak the test that can lead to a partial
29221 2016-05-18 Dmitry V. Levin <ldv@altlinux.org>
29225 (main): Test with each number between PATH_MAX-1 and 0.
29229 returned by timer_create, print whatever it is.
29234 * tests/inet-cmsg.c (print_origdstaddr): Define only
29255 2016-05-17 Fei Jie <feij.fnst@cn.fujitsu.com>
29264 2016-05-17 Dmitry V. Levin <ldv@altlinux.org>
29278 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29287 * tests/prctl-seccomp-strict.c (main): Update.
29339 to uint8_t to avoid potential sign-extension bug when printing
29344 to unsigned short to avoid potential sign-extension bug when printing
29347 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29357 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29367 to unsigned short to avoid potential sign-extension bug when printing
29372 to unsigned short to avoid potential sign-extension bug when printing
29377 to unsigned short to avoid potential sign-extension bug when printing
29382 fields to unsigned short to avoid potential sign-extension bug when
29388 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29400 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29404 potential sign-extension bug when printing invalid d_type.
29413 2016-05-16 Dmitry V. Levin <ldv@altlinux.org>
29427 2016-05-15 Dmitry V. Levin <ldv@altlinux.org>
29442 2016-05-14 Dmitry V. Levin <ldv@altlinux.org>
29464 2016-05-14 Dmitry V. Levin <ldv@altlinux.org>
29467 Prior to v2.6.25-rc3, <linux/videodev2.h> didn't include all
29476 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29479 Since sys/ioctl.h is included unconditionally when needed
29484 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29497 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29505 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29518 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29522 lower 32-bit parts closer to -1U.
29524 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29534 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29537 htole32 function is not portable enough.
29543 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29557 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29560 The data argument of PTRACE_PEEKSIGINFO request is a pointer
29568 2016-05-13 Dmitry V. Levin <ldv@altlinux.org>
29586 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29595 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29606 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29609 The addr argument of PTRACE_PEEKSIGINFO request is a pointer to
29617 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29629 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29636 right after printing addr argument if request is one of PTRACE_GETREGS,
29639 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29641 ptrace: do not print addr and data arguments of PTRACE_ATTACH-like requests
29647 RVAL_DECODED if request is one of PTRACE_ATTACH, PTRACE_INTERRUPT,
29650 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29656 * process.c (SYS_FUNC(ptrace)): If request is PTRACE_TRACEME,
29659 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29669 2016-05-12 Dmitry V. Levin <ldv@altlinux.org>
29671 Do not sign-extend siginfo_t.si_syscall.
29682 2016-05-11 Fei Jie <feij.fnst@cn.fujitsu.com>
29698 2016-05-11 Dmitry V. Levin <ldv@altlinux.org>
29701 * tests/preadv2-pwritev2.c: New file.
29702 * tests/preadv2-pwritev2.test: New test.
29703 * tests/.gitignore: Add preadv2-pwritev2.
29705 (DECODER_TESTS): Add preadv2-pwritev2.
29720 * linux/mips/syscallent-n32.h: Likewise.
29721 * linux/mips/syscallent-n64.h: Likewise.
29722 * linux/mips/syscallent-o32.h: Likewise.
29735 2016-05-10 Dmitry V. Levin <ldv@altlinux.org>
29753 (print_xattr_list): Do not decode string when size is zero.
29755 2016-05-10 Dr. David Alan Gilbert <dgilbert@redhat.com>
29764 2016-05-10 Dr. David Alan Gilbert <dgilbert@redhat.com>
29778 2016-05-10 Dmitry V. Levin <ldv@altlinux.org>
29786 strace-ff.test: fix race condition.
29787 * tests/strace-ff.test: Wait for completion of PR_SET_PTRACER command.
29793 strace-S.test: check "-S name"
29794 * tests/strace-S.test: Add a check for "-c -S name" output.
29796 Fix NULL dereference in "-S name" when syscall table has holes.
29799 strace-S.test: cleanup.
29800 * tests/strace-S.test: Rewrite using sed.
29802 2016-05-09 Fei Jie <feij.fnst@cn.fujitsu.com>
29804 tests: add strace-S.test.
29805 * tests/strace-S.test: New test.
29808 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29810 strace-ff.test: check that -ff does not create unexpected output files.
29811 * tests/strace-ff.expected: New file.
29813 * tests/strace-ff.test: Use it. Check that no other output files
29816 2016-05-09 Fei Jie <feij.fnst@cn.fujitsu.com>
29818 tests: add strace-ff.test.
29819 * tests/strace-ff.test: New test.
29822 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29824 strace-V.test: cleanup.
29825 * tests/strace-V.test: Move config.h parser to a function.
29828 2016-05-09 Fei Jie <feij.fnst@cn.fujitsu.com>
29830 tests: add strace-V.test.
29831 * tests/strace-V.test: New test.
29834 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29843 2016-05-09 Dmitry V. Levin <ldv@altlinux.org>
29846 This header file was added in glibc-2.3.2,
29855 2016-05-08 Fabien Siron <fabien.siron@epita.fr>
29861 2016-05-08 Dmitry V. Levin <ldv@altlinux.org>
29868 * tests/strace-T.expected: Likewise.
29869 * tests/strace-r.expected: Likewise.
29871 2016-05-07 Dmitry V. Levin <ldv@altlinux.org>
29873 tests/attach-f-p.c: increase timeouts.
29876 * tests/attach-f-p.c (its): Increase timeouts to 1, 2, and 3 seconds,
29879 2016-05-07 Dmitry V. Levin <ldv@altlinux.org>
29900 * tests/seccomp-filter-v.c (main): Update.
29965 2016-05-06 Dmitry V. Levin <ldv@altlinux.org>
29969 * tests/net-icmp_filter.c: New file.
29970 * tests/net-icmp_filter.test: New test.
29971 * tests/.gitignore: Add net-icmp_filter.
29973 (DECODER_TESTS): Add net-icmp_filter.test.
29975 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29982 Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
29984 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29987 mips o32 differs from all other 32-bit architectures by defining
29993 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
29996 * v4l2.c: Mpersify arch-specific structures.
30004 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30019 Acked-by: Elvira Khabirova <lineprinter0@gmail.com>
30021 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30027 2016-05-05 Dmitry V. Levin <ldv@altlinux.org>
30030 Out-of-range syscalls looks differently on mips o32.
30035 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30038 There is no need to explicitly initialize big holes after conversion
30041 big holes is no-op, for others it just inflates the table unnecessarily.
30054 * linux/mips/syscallent-n32.h: Likewise.
30063 * linux/mips/syscallent-compat.h: Remove explicit initialization
30065 * linux/mips/syscallent-n64.h: Remove explicit initialization
30067 * linux/mips/syscallent-o32.h: Likewise.
30069 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30071 xlat: make "1<<val" syntax work with 64-bit values.
30075 Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
30077 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30082 Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
30084 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30103 2016-04-29 Jeff Mahoney <jeffm@suse.com>
30106 Some ioctls have flags fields that are 64-bit. A 32-bit val means
30112 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30115 When #val_type directive is encountered, gen.sh starts using
30124 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30127 This is essentially a no-op change that makes the following change
30133 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30141 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30148 This is necessary for the upcoming change of xlat.val type.
30153 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30156 This is necessary for the upcoming change of xlat.val type.
30160 2016-04-29 Dmitry V. Levin <ldv@altlinux.org>
30163 As "flags" argument of sprint_open_modes and tprint_open_modes is
30170 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30174 long", so it is not correct to load most significant bits with garbage
30179 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30182 This is necessary for the upcoming change of xlat.val type.
30191 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30194 This is necessary for the upcoming change of xlat.val type.
30203 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30206 This is necessary for the upcoming change of xlat.val type.
30213 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30216 This is necessary for the upcoming change of xlat.val type.
30224 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30227 This is necessary for the upcoming change of xlat.val type.
30236 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30239 This is necessary for the upcoming change of xlat.val type.
30246 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30249 This is necessary for the upcoming change of xlat.val type.
30253 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30256 This is necessary for the upcoming change of xlat.val type.
30260 2016-04-28 Dmitry V. Levin <ldv@altlinux.org>
30293 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30315 2016-04-27 Fei Jie <feij.fnst@cn.fujitsu.com>
30331 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30337 2016-04-27 Fei Jie <feij.fnst@cn.fujitsu.com>
30346 2016-04-27 Dmitry V. Levin <ldv@altlinux.org>
30365 tests: check decoding of out-of-range syscalls.
30372 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30384 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30391 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30428 2016-04-26 Fei Jie <feij.fnst@cn.fujitsu.com>
30465 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30504 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30511 2016-04-26 Dmitry V. Levin <ldv@altlinux.org>
30521 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30527 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30532 it is probably too late to implement a decoder, so let's just print the
30538 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30540 statfs: print f_flags field only when ST_VALID flag is set.
30546 2016-04-25 Fei Jie <feij.fnst@cn.fujitsu.com>
30576 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30586 2016-04-25 Zev Weiss <zev@bewilderbeest.net>
30589 * statfs.c (sprintfstype): Don't add double-quotes to fs magic macros.
30590 * tests/statfs.expected: Remove double-quotes.
30592 2016-04-25 Dmitry V. Levin <ldv@altlinux.org>
30599 * tests/shmxt.c (main): Use SHM_RND in the second shmat call,
30602 2016-04-23 Dmitry V. Levin <ldv@altlinux.org>
30610 2016-04-23 Dmitry V. Levin <ldv@altlinux.org>
30618 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30622 as 32-bit integers.
30628 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30640 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30648 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30652 syscallent entry. When each parser is placed into a separate file,
30653 moving to libstrace ensures that only one of them that is need
30654 is linked into strace executable.
30662 2016-04-22 Dmitry V. Levin <ldv@altlinux.org>
30671 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30677 grep -q '\<assert(' "$f" ||
30678 sed -i '/# *include *<assert\.h>/d' "$f"
30681 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30687 grep -Fv errno.h "$f" |
30688 grep -Ewq '(si_)?errno|SOCK_FILTER_DENY_SYSCALL' ||
30689 sed -i '/# *include *<errno\.h>/d' "$f"
30692 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30736 tests/seccomp-strict.c: cleanup.
30737 * tests/seccomp-strict.c (main): Use errno2name, stop using assert.
30739 tests/seccomp-filter.c: cleanup.
30740 * tests/seccomp-filter.c (main): Use errno2name, stop using assert.
30754 tests/preadv-pwritev.c: cleanup.
30756 tests/prctl-seccomp-strict.c: cleanup.
30757 * tests/prctl-seccomp-strict.c (main): Use errno2name,
30840 sed -i 's/errno == E[[:alnum:]]\+ ? "E[[:alnum:]]\+" : "E[[:alnum:]]\+"/errno2name()/g'
30843 This is going to be necessary for the following commit.
30845 2016-04-21 Fei Jie <feij.fnst@cn.fujitsu.com>
30882 2016-04-21 Dmitry V. Levin <ldv@altlinux.org>
30893 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30898 Change the way how this constant is printed on hppa to be in line
30903 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30906 timerfd syscall was introduced in v2.6.22-rc1, but in v2.6.25-rc1
30913 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30915 tests: workaround kernel bugs in seccomp-strict.test and prctl-seccomp-strict.test
30916 If kernel implementation of strict seccomp mode is buggy, test programs
30917 will be killed by SIGKILL. This is a known problem at least on
30918 x32 and mips. Skip affected tests if this is the case.
30922 * tests/seccomp-strict.c (main): Remove workaround for x32.
30923 * tests/prctl-seccomp-strict.c: Likewise.
30924 * tests/seccomp-strict.test: Skip the test if the test program
30926 * tests/prctl-seccomp-strict.test: Likewise.
30928 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30930 tests/shmxt.c: do not use SHM_RND, it is unreliable.
30935 than sizeof(long) on the second iteration.
30937 prctl-seccomp-strict.test: robustify against unrelated prctl invocations
30938 * tests/prctl-seccomp-strict.test: Filter out PR_GET_* prctl calls.
30940 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30943 With linux kernels older than v3.9-rc1, compat rt_sigpending syscall
30950 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30953 With linux kernels older than v3.16-rc1, iovec based compat syscalls may
30957 * tests/preadv-pwritev.c: Include <errno.h>.
30962 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
30964 tests: remove obsolete non-strict uid tests.
30980 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31009 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31041 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31057 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31060 * linux/mips/syscallent-o32.h (iopl): Fix nargs.
31064 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31073 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31218 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31227 2016-04-20 Dmitry V. Levin <ldv@altlinux.org>
31230 On alpha, shmat syscall is known as osf_shmat.
31234 2016-04-20 Fei Jie <feij.fnst@cn.fujitsu.com>
31243 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31245 prctl-seccomp-filter-v.test: robustify against unrelated prctl invocations
31246 * tests/prctl-seccomp-filter-v.test: Filter out PR_GET_* prctl calls.
31248 Reported-by: Steve McIntyre <steve@einval.com>
31250 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31256 Reported-by: Steve McIntyre <steve@einval.com>
31258 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31304 Fix decoding of 16-bit uid_t/git_t.
31307 2016-04-18 Dmitry V. Levin <ldv@altlinux.org>
31318 2016-04-12 Dmitry V. Levin <ldv@altlinux.org>
31320 tests: skip seccomp-strict.test and prctl-seccomp-strict.test on x32.
31324 * tests/seccomp-strict.c (main) [__x86_64__ && __ILP32__]: Bail out
31326 * tests/prctl-seccomp-strict.c: Likewise.
31328 2016-04-12 Dmitry V. Levin <ldv@altlinux.org>
31330 tests: add seccomp-filter.test.
31331 * tests/seccomp-filter.c: New file.
31332 * tests/seccomp-filter.test: New test.
31333 * tests/.gitignore: Add seccomp-filter.
31335 (DECODER_TESTS): Add seccomp-filter.test.
31337 2016-04-12 Dmitry V. Levin <ldv@altlinux.org>
31347 * tests/prctl-seccomp-filter-v.c (main): Update.
31348 * tests/seccomp-filter-v.c: New file.
31349 * tests/seccomp-filter-v.test: New test.
31350 * tests/.gitignore: Add seccomp-filter-v.
31352 (DECODER_TESTS): Add seccomp-filter-v.test.
31354 2016-04-11 Dmitry V. Levin <ldv@altlinux.org>
31358 * tests/prctl-seccomp-filter-v.c: Update.
31360 tests: rename seccomp.test to prctl-seccomp-filter-v.test.
31361 * tests/.gitignore: Replace seccomp with prctl-seccomp-filter-v.
31363 (DECODER_TESTS): Replace seccomp.test with prctl-seccomp-filter-v.test.
31364 * tests/seccomp.c: Rename to tests/prctl-seccomp-filter-v.c.
31365 * tests/seccomp.test: Rename to tests/prctl-seccomp-filter-v.test.
31367 tests: add seccomp-strict.test.
31368 * tests/seccomp-strict.c: New file.
31369 * tests/seccomp-strict.test: New test.
31370 * tests/.gitignore: Add seccomp-strict.
31372 (DECODER_TESTS): Add seccomp-strict.test.
31374 tests: add prctl-seccomp-strict.test.
31375 * tests/prctl-seccomp-strict.c: New file.
31376 * tests/prctl-seccomp-strict.test: New test.
31377 * tests/.gitignore: Add prctl-seccomp-strict.
31379 (DECODER_TESTS): Add prctl-seccomp-strict.test.
31383 2016-04-10 Dmitry V. Levin <ldv@altlinux.org>
31393 2016-04-09 Dmitry V. Levin <ldv@altlinux.org>
31402 2016-04-08 Fei Jie <feij.fnst@cn.fujitsu.com>
31425 2016-04-08 Dmitry V. Levin <ldv@altlinux.org>
31427 tests/pread64-pwrite64.c: minor cleanup.
31428 * tests/pread64-pwrite64.c: Do not include <sys/uio.h>.
31430 2016-04-07 Dmitry V. Levin <ldv@altlinux.org>
31444 2016-04-06 Elliott Hughes <enh@google.com>
31458 * Hard-code PR_SET_VMA_ANON_NAME, the only current sub-option.
31461 2016-04-06 Fei Jie <feij.fnst@cn.fujitsu.com>
31491 2016-04-06 Dmitry V. Levin <ldv@altlinux.org>
31503 2016-04-05 Dmitry V. Levin <ldv@altlinux.org>
31508 2016-04-05 Elliott Hughes <enh@google.com>
31524 2016-04-04 Dmitry V. Levin <ldv@altlinux.org>
31534 * tests/inet-cmsg.c: Replace PF_INET with AF_INET.
31535 * tests/net-yy-inet.c: Likewise.
31537 * tests/net-accept-connect.c: Replace PF_LOCAL with AF_LOCAL.
31538 * tests/net-y-unix.c: Likewise.
31539 * tests/net-yy-unix.c: Likewise.
31543 2016-04-03 Dmitry V. Levin <ldv@altlinux.org>
31545 tests: add read-write.test.
31546 * tests/read-write.c: New file.
31547 * tests/read-write.test: New test.
31548 * tests/.gitignore: Add read-write.
31550 (DECODER_TESTS): Add read-write.test.
31552 2016-04-02 Dmitry V. Levin <ldv@altlinux.org>
31554 tests/pread64-pwrite64.test: extend dumpio coverage.
31555 * tests/pread64-pwrite64.c (dump_str, print_hex, test_dump):
31558 * tests/pread64-pwrite64.test: Update.
31582 * tests/pread64-pwrite64.c: New file.
31583 * tests/pread64-pwrite64.test: New test.
31584 * tests/.gitignore: Add pread64-pwrite64.
31587 (DECODER_TESTS): Add pread64-pwrite64.
31593 tests/preadv-pwritev.c: fix typo in error diagnostics.
31594 * tests/preadv-pwritev.c (main): Fix typo in error message.
31596 2016-04-01 Fei Jie <feij.fnst@cn.fujitsu.com>
31626 2016-04-01 Dmitry V. Levin <ldv@altlinux.org>
31635 2016-04-01 Dmitry V. Levin <ldv@altlinux.org>
31638 The second (level) and third (optname) arguments of getsockopt and
31646 2016-04-01 Dmitry V. Levin <ldv@altlinux.org>
31660 2016-03-31 Jeff Mahoney <jeffm@suse.com>
31668 2016-03-31 Dmitry V. Levin <ldv@altlinux.org>
31673 * tests/preadv-pwritev.c: New file.
31674 * tests/preadv-pwritev.test: New test.
31675 * tests/.gitignore: Add preadv-pwritev.
31678 (DECODER_TESTS): Add preadv-pwritev.
31680 2016-03-30 Dmitry V. Levin <ldv@altlinux.org>
31702 * io.c (tprint_iov_upto): If the first element of iovec array is
31720 * tests/execveat-v.test: Likewise.
31726 * tests/fork-f.test: Likewise.
31735 * tests/inet-cmsg.test: Likewise.
31775 * tests/times-fail.test: Likewise.
31797 * tests/net-y-unix.test: Likewise.
31798 * tests/net-yy-inet.test: Likewise.
31799 * tests/net-yy-unix.test: Likewise.
31809 2016-03-30 Dmitry V. Levin <ldv@altlinux.org>
31821 2016-03-29 Dmitry V. Levin <ldv@altlinux.org>
31831 2016-03-29 Dmitry V. Levin <ldv@altlinux.org>
31834 While -P option needs /proc to match descriptors, it does not use
31841 2016-03-29 Dmitry V. Levin <ldv@altlinux.org>
31849 by linux kernel commits v4.6-rc1~65^2~9^2~5 and v4.6-rc1~65^2~9^2~6.
31853 The former was removed by linux kernel commit v2.6.38-rc1~217.
31854 The latter was introduced by linux kernel commit v4.6-rc1~67^2~8.
31859 linux kernel commits v4.6-rc1~91^2~326^2~5, v4.6-rc1~91^2~326^2~4, and
31860 v4.6-rc1~91^2~212^2~1, respectively.
31864 commit v4.6-rc1~91^2~176.
31868 commit v4.6-rc1~68^2~23.
31873 2016-03-28 JayRJoshi <jay.r.joshi100@gmail.com>
31880 2016-03-28 Dmitry V. Levin <ldv@altlinux.org>
31890 * tests/openat.test: Use -P option to filter out openat syscalls
31900 2016-03-27 Dmitry V. Levin <ldv@altlinux.org>
31908 2016-03-26 Dmitry V. Levin <ldv@altlinux.org>
31913 Update path of saa6588.h and exynos-fimc.h files.
31915 2016-03-25 Dmitry V. Levin <ldv@altlinux.org>
31923 2016-03-25 Dmitry V. Levin <ldv@altlinux.org>
31928 personality. This complements commit v4.10-45-gdf4dd8b and fixes
31929 commit v4.10-46-g588a90f.
31933 2016-03-25 Katerina Koukiou <k.koukiou@googlemail.com>
31942 2016-03-25 Fei Jie <feij.fnst@cn.fujitsu.com>
31979 2016-03-23 JayRJoshi <jay.r.joshi100@gmail.com>
31981 tests/scm_rights-fd.test: fix pathname regex.
31982 Pathname containing >, }, or non-printable characters was resulting
31985 * tests/scm_rights-fd.test: Fix pathname regex and simplify things.
31987 2016-03-24 Dmitry V. Levin <ldv@altlinux.org>
31989 tests: add strace-r.test.
31990 * tests/strace-r.expected: New file.
31991 * tests/strace-r.test: New test.
31993 (EXTRA_DIST): Add strace-r.expected.
31995 tests: add strace-ttt.test.
31996 * tests/strace-ttt.test: New test.
31999 tests: add strace-tt.test.
32000 * tests/strace-tt.test: New test.
32003 tests: add strace-t.test.
32004 * tests/strace-t.test: New test.
32007 tests: add strace-T.test.
32008 * tests/strace-T.expected: New file.
32009 * tests/strace-T.test: New test.
32011 (EXTRA_DIST): Add strace-T.expected.
32013 2016-03-23 Dmitry V. Levin <ldv@altlinux.org>
32019 * tests/Makefile.am (TESTS): Move attach-f-p.test, attach-p-cmd.test,
32020 bexecve.test, count-f.test, count.test, detach-running.test,
32021 detach-sleeping.test, detach-stopped.test, dumpio.test,
32022 filter-unavailable.test, fork-f.test, ksysent.test, opipe.test,
32024 strace-f.test, and vfork-f.test to MISC_TESTS.
32028 2016-03-23 JayRJoshi <jay.r.joshi100@gmail.com>
32042 2016-03-17 Fei Jie <feij.fnst@cn.fujitsu.com>
32046 the second syscall argument using %d format.
32053 2016-03-15 Fei Jie <feij.fnst@cn.fujitsu.com>
32069 2016-03-15 Dmitry V. Levin <ldv@altlinux.org>
32072 This complements commit v4.9-368-g301c65c.
32078 2016-03-14 Dmitry V. Levin <ldv@altlinux.org>
32083 2016-03-12 Dmitry V. Levin <ldv@altlinux.org>
32085 tests: add count-f.test.
32086 * tests/count-f.c: New file.
32087 * tests/count-f.expected: Likewise.
32088 * tests/count-f.test: New test.
32089 * tests/.gitignore: Add count-f.
32092 (EXTRA_DIST): Add count-f.expected.
32093 (TESTS): Add count-f.test.
32095 2016-02-21 Dmitry V. Levin <ldv@altlinux.org>
32100 2016-03-11 Fei Jie <feij.fnst@cn.fujitsu.com>
32105 2016-03-10 Fei Jie <feij.fnst@cn.fujitsu.com>
32132 2016-03-10 Fabien Siron <fabien.siron@epita.fr>
32141 2016-03-09 Fei Jie <feij.fnst@cn.fujitsu.com>
32150 2016-03-07 Anchit Jain <anchitjain1234@gmail.com>
32159 2016-03-05 Nahim El Atmani <naam@lse.epita.fr>
32165 Reviewed-By: Gabriel Laskar <gabriel@lse.epita.fr>
32166 Reported-by: haris iqbal <haris.phnx@gmail.com>
32168 2016-03-01 Fei Jie <feij.fnst@cn.fujitsu.com>
32191 2016-02-20 Dmitry V. Levin <ldv@altlinux.org>
32194 * linux/mips/syscallent-n32.h [6324]: Add copy_file_range entry.
32195 * linux/mips/syscallent-n64.h [5320]: Likewise.
32196 * linux/mips/syscallent-o32.h [4360]: Likewise.
32198 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32210 (SYS_FUNC(rt_tgsigqueueinfo)): Print first and second syscall arguments
32222 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32230 2016-02-19 Fei Jie <feij.fnst@cn.fujitsu.com>
32239 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32260 Do not align length to 4-byte boundary. Align destination buffer
32261 to 4-byte boundary and initialize it with zeroes so that subsequent
32274 2016-02-19 Dmitry V. Levin <ldv@altlinux.org>
32277 Unfortunately, 64-bit linux kernel has a bug in matching inode numbers
32278 greater than INT_MAX, so unix_diag exact match is not reliable.
32291 2016-02-19 Michael Shigorin <mike@altlinux.org>
32293 tests: avoid using cpp -dD.
32294 -dD is less portable across some peculiar preprocessors.
32296 tests/Makefile.am (ksysent.h): Use cpp -dM instead of cpp -dD.
32298 2016-02-16 Dmitry V. Levin <ldv@altlinux.org>
32310 * tests/ppoll-v.expected: Update.
32323 * tests/llseek.c (main): Check that negative offset is printed properly.
32326 2016-02-14 Dmitry V. Levin <ldv@altlinux.org>
32355 redirect.test: fix the way how strace output is discarded.
32427 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32431 for an address that is more likely to be not yet mapped.
32438 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32441 This semi-automatic change brings syscall tables in sync with kernel's
32460 * linux/mips/syscallent-n32.h (getpgid, statfs, fstatfs, init_module,
32462 * linux/mips/syscallent-n64.h (getpgid, statfs, fstatfs, init_module,
32464 * linux/mips/syscallent-o32.h (signal, statfs, fstatfs, ioperm,
32486 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32493 * linux/mips/syscallent-n64.h (fadvise64): Replace SEN(fadvise64_64)
32499 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32507 * linux/mips/syscallent-n32.h (pipe): Likewise.
32508 * linux/mips/syscallent-n64.h (pipe): Likewise.
32509 * linux/mips/syscallent-o32.h (pipe): Likewise.
32513 2016-02-13 Dmitry V. Levin <ldv@altlinux.org>
32528 2016-02-12 Dmitry V. Levin <ldv@altlinux.org>
32536 2016-02-11 Dmitry V. Levin <ldv@altlinux.org>
32543 * wait.c (SYS_FUNC(waitid)): As the type of second syscall argument
32544 in the kernel is pid_t, print it as int.
32547 * wait.c (SYS_FUNC(waitid)): Do not check for tcp->s_ent->nargs
32569 is specified.
32571 2016-02-09 Dmitry V. Levin <ldv@altlinux.org>
32573 tests: check that -f -p attaches to threads properly.
32574 Check that -f -p attaches and follows all threads of the given pid.
32576 * tests/attach-f-p.c: New file.
32577 * tests/attach-f-p.test: New test.
32578 * tests/.gitignore: Add attach-f-p.
32581 (TESTS): Add attach-f-p.test.
32583 2016-02-09 Dmitry V. Levin <ldv@altlinux.org>
32597 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32599 travis-ci: pass more gcov arguments to codecov.
32616 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32621 * tests/execve-v.c: New file.
32622 * tests/execveat-v.c: Likewise.
32623 * tests/execve-v.test: New test.
32624 * tests/execveat-v.test: Likewise.
32630 * tests/execve-v.expected: Likewise.
32632 * tests/execveat-v.expected: Likewise.
32633 * tests/.gitignore: Add execve-v and execveat-v.
32635 (TESTS): Add execve-v.test and execveat-v.test.
32636 (EXTRA_DIST): Remove execve.expected, execve-v.expected,
32637 execveat.expected, and execveat-v.expected.
32639 2016-02-08 Dmitry V. Levin <ldv@altlinux.org>
32681 2016-02-08 Denys Vlasenko <dvlasenk@redhat.com>
32684 Otherwise, -oLOGFILE may end up using one of them. This conflicts
32691 2016-02-08 Denys Vlasenko <dvlasenk@redhat.com>
32693 Close stdin/out after child is forked.
32696 { sleep 1; yes | head -n99999; } | strace -o/dev/null sh -c 'exec <&-; sleep 9'
32705 2016-02-05 Dmitry V. Levin <ldv@altlinux.org>
32708 Check that -o |pipe_command works. In particular, check that
32714 2016-02-05 Keith Owens <kaos.ocs@gmail.com>
32716 strace-graph: print the pid in the graph.
32717 * strace-graph: Prefix each command with its pid.
32719 strace-graph: cope with clone immediately followed by exit.
32720 * strace-graph: A clone() followed by exit() with no intervening fork
32725 strace-graph: handle recent strace output.
32726 * strace-graph: Fix regex for --SIG. Ignore '+++ exited with <n> +++'
32729 strace-graph: handle strace -T.
32730 * strace-graph: Ignore extra ' <time.spent>' field added by strace -T.
32732 strace-graph: use "strict" and "warnings" pragmas.
32733 * strace-graph: Set "use strict" and "use warnings" options. Fix errors
32734 detected by strict/warnings. $result is really a string, it can be "-1"
32737 2016-02-04 Dmitry V. Levin <ldv@altlinux.org>
32741 travis-ci: prepare and submit test coverage report.
32761 2016-02-04 Gabriel Laskar <gabriel@lse.epita.fr>
32763 Add configure --enable-code-coverage option.
32774 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32786 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32788 tests: replace net-fd.test with net-y-unix.test.
32792 * tests/net-y-unix.c: New file.
32793 * tests/net-y-unix.test: New test.
32794 * tests/net-fd.test: Remove.
32795 * tests/net-fd.expected: Remove.
32796 * tests/.gitignore: Add net-y-unix.
32798 (TESTS): Replace net-fd.test with net-y-unix.test.
32799 (net-fd.log): Remove.
32800 (EXTRA_DIST): Remove net-fd.expected.
32802 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32805 As -yy parser, compared to -y, needs to do at least 5 extra syscalls
32810 The caching is safe since sockets do not change their addresses after
32824 * tests/unix-yy.c (main): Update.
32826 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32839 return type from bool to int, return -1 on all parse errors except
32841 (receive_responses): Stop on the first nlmsg_type that is not
32842 SOCK_DIAG_BY_FAMILY, also stop when the parser returns -1.
32844 on first nlmsg_type that is not SOCK_DIAG_BY_FAMILY, print more verbose
32850 is large enough to contain a inet_diag_msg structure.
32856 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32858 tests: replace net-yy.test with net-yy-inet.test.
32862 * tests/net-yy-inet.c: New file.
32863 * tests/net-yy-inet.test: New test.
32864 * tests/net-yy.test: Remove.
32865 * tests/net-yy-accept.awk: Remove.
32866 * tests/net-yy-connect.awk: Remove.
32867 * tests/inet-accept-connect-send-recv.c: Remove.
32868 * tests/.gitignore: Replace inet-accept-connect-send-recv
32869 with net-yy-inet.
32871 (TESTS): Replace net-yy.test with net-yy-inet.test.
32872 (EXTRA_DIST): Remove net-yy-accept.awk and net-yy-connect.awk.
32874 2016-02-03 Dmitry V. Levin <ldv@altlinux.org>
32876 tests: replace unix-yy.test with net-yy-unix.test.
32880 * tests/net-yy-unix.c: New file.
32881 * tests/net-yy-unix.test: New test.
32882 * tests/unix-yy.test: Remove.
32883 * tests/unix-yy-accept.awk: Remove.
32884 * tests/unix-yy-connect.awk: Remove.
32885 * tests/.gitignore: Add net-yy-unix.
32887 (TESTS): Replace unix-yy.test with net-yy-unix.test.
32888 (EXTRA_DIST): Remove unix-yy-accept.awk and unix-yy-connect.awk.
32890 2016-02-02 Dmitry V. Levin <ldv@altlinux.org>
32899 is large enough to contain a unix_diag_msg structure.
32901 2016-01-29 Dmitry V. Levin <ldv@altlinux.org>
32913 2016-01-23 Dmitry V. Levin <ldv@altlinux.org>
32915 Move fallback -yy socket print from printfd to print_sockaddr_by_inode.
32916 * util.c (printfd): In -yy mode, move fallback print of proto:[inode] ...
32919 2016-01-22 Dmitry V. Levin <ldv@altlinux.org>
32921 Implement simultaneous use of -p option and tracing of a command.
32922 * strace.c (init): Allow -p option along with a command.
32923 (startup_child): In -D mode, record the parent of the tracer process
32925 (startup_attach): Save trace_tracer_pid before -D mode fork.
32926 When tracing a command in -f mode, do not check for the command's
32929 In -D mode, never attach to the parent of the tracer process,
32932 * strace.1: Document that -p option can be used along with tracing
32935 * tests/attach-p-cmd-cmd.c: New file.
32936 * tests/attach-p-cmd-p.c: Likewise.
32937 * tests/attach-p-cmd.test: New test.
32938 * tests/.gitignore: Add attach-p-cmd-cmd and attach-p-cmd-p.
32940 (TESTS): Add attach-p-cmd.test.
32944 2016-01-22 Dmitry V. Levin <ldv@altlinux.org>
32946 strace.1: fix format of -P description.
32947 * strace.1 (-P): Write trailing using regular font.
32949 2016-01-21 Dmitry V. Levin <ldv@altlinux.org>
32961 2016-01-20 Dmitry V. Levin <ldv@altlinux.org>
33013 2016-01-19 Dmitry V. Levin <ldv@altlinux.org>
33046 are in-memory constants, print it like an array of one element instead
33049 2016-01-17 Dmitry V. Levin <ldv@altlinux.org>
33057 2016-01-19 Dmitry V. Levin <ldv@altlinux.org>
33072 2016-01-15 Dmitry V. Levin <ldv@altlinux.org>
33075 * tests/llseek.test: Filter out _llseek calls made with non-negative
33079 * tests/lseek.test: Filter out lseek calls made with non-negative
33082 2016-01-14 Dmitry V. Levin <ldv@altlinux.org>
33084 mmsg.test: fix regression introduced by commit v4.11-138-g6e815ce.
33086 HAVE_SENDMMSG are defined but the former is not implemented by the
33087 kernel and the second is implemented as an indirect syscall.
33097 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33103 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33107 directly using "svc NR", for NR >= 256 "svc 0" with %r1=NR is used.
33108 The latter method is allowed for NR < 256, too.
33110 When the syscall number specified directly or indirectly is recognized
33111 by the kernel, i.e. it is less than its NR_syscalls value, it is stored
33112 in %r2 and is available to arch_get_scno via s390_regset.gprs[2].
33113 For syscall numbers >= NR_syscalls this register is set to 0,
33115 via s390_regset.gprs[1] to decide what the syscall number is.
33117 * linux/s390/get_scno.c (arch_get_scno): If s390_regset.gprs[2] is zero,
33123 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33133 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33135 travis-ci: update build matrix.
33136 Add clang-3.6/x86_64, clang-3.6/x86, and musl-gcc/x86_64 to the matrix.
33138 * .travis.yml (compiler): Add gcc, clang-3.6, and musl-gcc.
33141 * travis-ci.sh: Add support for clang and musl-gcc.
33142 Use --enable-gcc-Werror for gcc build unconditionally.
33144 2016-01-13 Dmitry V. Levin <ldv@altlinux.org>
33152 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33159 scm_rights-fd.test: rewrite without fork.
33163 * tests/scm_rights-fd.test: Update.
33166 * tests/ksysent.c (pstr_t): Remove second const specifier.
33167 * tests/mmsg.c (main): Remove second const specifier from one[], two[],
33173 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33182 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33185 Linux kernel commit v4.3-rc1-50-g8d4bd0e corrected uc_sigmask
33190 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33196 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33215 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33219 This complements commit v4.10-184-g0e946ab.
33223 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33227 which obviously makes gcc -Wsign-compare unhappy.
33231 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33267 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33270 The size of off_t is not something one can rely upon. For example,
33278 2016-01-12 Dmitry V. Levin <ldv@altlinux.org>
33280 tests/inet-cmsg.c: fix musl libc compilation warnings.
33283 For example, glibc defines them as size_t, while musl libc - as type
33287 * tests/inet-cmsg.c (main): Cast mh.msg_controllen and c->cmsg_len
33290 2016-01-11 Dmitry V. Levin <ldv@altlinux.org>
33306 2016-01-11 Dmitry V. Levin <ldv@altlinux.org>
33315 Reported-by: Szabolcs Nagy <nsz@port70.net>
33317 2016-01-10 Dmitry V. Levin <ldv@altlinux.org>
33325 Reported-by: Szabolcs Nagy <nsz@port70.net>
33327 2016-01-10 Dmitry V. Levin <ldv@altlinux.org>
33332 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33352 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33359 Reported-by: Szabolcs Nagy <nsz@port70.net>
33361 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33367 Reported-by: Szabolcs Nagy <nsz@port70.net>
33369 2016-01-09 Dmitry V. Levin <ldv@altlinux.org>
33372 Print the second return value of getxpid, getxuid, and getxgid syscalls
33389 2016-01-08 Dmitry V. Levin <ldv@altlinux.org>
33398 2016-01-08 Dmitry V. Levin <ldv@altlinux.org>
33400 tests: change text marker in fork-f and vfork-f tests.
33404 * tests/fork-f.c (logit): Rename to logit_. Use chdir instead of pwrite.
33407 * tests/vfork-f.c: Likewise.
33408 * tests/fork-f.test: Update.
33410 2016-01-07 Dmitry V. Levin <ldv@altlinux.org>
33412 Fix printing of 32-bit times syscall return value on 64-bit architectures
33413 This change complements commit v4.9-359-gd93d9f8 by fixing
33415 The only syscall that appears to be affected is the times syscall.
33418 when current personality is 32-bit, print 32-bit return code.
33421 Reported-by: Steve McIntyre <steve@einval.com>
33423 2016-01-07 Dmitry V. Levin <ldv@altlinux.org>
33425 tests/vfork-f.c: support platforms without vfork.
33426 On some platforms, e.g. hppa glibc, vfork() is implemented using fork
33430 * tests/vfork-f.c (main): Explicitly block the parent until the child
33433 2016-01-07 Dmitry V. Levin <ldv@altlinux.org>
33437 fd_set is printed as a set of descriptors.
33450 Reported-by: Joe Korty <joe.korty@ccur.com>
33452 2016-01-06 Dmitry V. Levin <ldv@altlinux.org>
33575 tests/vfork-f.c: use libtests.
33576 * tests/vfork-f.c (main): Use assert and perror_msg_and_fail.
33578 tests/fork-f.c: use libtests.
33579 * tests/fork-f.c (main): Use assert and perror_msg_and_fail.
33632 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33662 tests/inet-cmsg.c: use libtests.
33663 * tests/inet-cmsg.c (main): Use perror_msg_and_skip.
33679 tests/inet-accept-connect-send-recv.c: use libtests.
33680 * tests/inet-accept-connect-send-recv.c (main): Use perror_msg_and_skip
33683 tests/net-accept-connect.c: use libtests.
33684 * tests/net-accept-connect.c (main): Use perror_msg_and_skip
33687 tests/unix-pair-send-recv.c: use libtests.
33688 * tests/unix-pair-send-recv.c (main): Use perror_msg_and_skip
33691 2016-01-06 Dmitry V. Levin <ldv@altlinux.org>
33701 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33746 2016-01-06 Dmitry V. Levin <ldv@altlinux.org>
33754 tests/filter-unavailable.c: use libtests.
33755 * tests/filter-unavailable.c (main): Use perror_msg_and_fail.
33773 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33778 2016-01-04 Dmitry V. Levin <ldv@altlinux.org>
33780 tests/times-fail.c: use assert.
33781 * tests/times-fail.c (main): Use assert.
33792 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33827 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33830 Automatically edit tests/*.c files using the following perl one-liner:
33832 perl -0777 -pi -e \
33836 2016-01-05 Dmitry V. Levin <ldv@altlinux.org>
33851 2016-01-01 Dmitry V. Levin <ldv@altlinux.org>
33853 tests: enable strace-k.test only for --with-libunwind configurations.
33854 Also, since -k option does not support multiple personalities,
33855 add strace-k.test to XFAIL_TESTS when running mpers tests.
33859 [USE_LIBUNWIND] (LIBUNWIND_TESTS): Add strace-k.test.
33860 (TESTS): Replace strace-k.test with $(LIBUNWIND_TESTS).
33861 * bootstrap: Substitute MPERS_NAME variable in tests-*/Makefile.am.
33862 * tests/strace-k.test: Do not check for -k option availability.
33864 2016-01-02 Dmitry V. Levin <ldv@altlinux.org>
33874 2015-12-31 Dmitry V. Levin <ldv@altlinux.org>
33880 2015-12-30 Dmitry V. Levin <ldv@altlinux.org>
33883 These manual tests are obsoleted by fork-f.test and vfork-f.test.
33890 2015-12-30 Dmitry V. Levin <ldv@altlinux.org>
33892 tests: add fork-f.test and vfork-f.test.
33893 Check how strace -f follows fork and vfork syscalls.
33895 * tests/fork-f.c: New file.
33896 * tests/fork-f.test: New test.
33897 * tests/vfork-f.c: New file.
33898 * tests/vfork-f.test: New test.
33899 * tests/Makefile.am (check_PROGRAMS): Add fork-f and vfork-f.
33900 (TESTS): Add fork-f.test and vfork-f.test.
33901 * tests/.gitignore: Add fork-f and vfork-f.
33903 2015-12-29 Dmitry V. Levin <ldv@altlinux.org>
33908 2015-12-29 Dmitry V. Levin <ldv@altlinux.org>
33916 2015-12-27 Dmitry V. Levin <ldv@altlinux.org>
33922 semantics, there is no way to distinguish a syscall error from a valid
33935 2015-12-27 Dmitry V. Levin <ldv@altlinux.org>
33946 2015-12-27 Dmitry V. Levin <ldv@altlinux.org>
33951 what is going on.
33954 tcp->u_rval to uid_t on exiting syscall, return RVAL_DECODED.
33956 2015-12-26 Dmitry V. Levin <ldv@altlinux.org>
33969 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
33977 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
33981 meaning, it is not a set of personality flags.
33987 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
34002 2015-12-25 Dmitry V. Levin <ldv@altlinux.org>
34006 v2.6.29-6609-g11d06b2a1e5658f448a308aa3beb97bacd64a940, personality
34008 v2.6.35-rc1-372-g485d527 it still could return an error.
34014 2015-12-24 Dmitry V. Levin <ldv@altlinux.org>
34022 2015-12-24 Dmitry V. Levin <ldv@altlinux.org>
34036 Reported-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
34038 2015-12-24 Dmitry V. Levin <ldv@altlinux.org>
34041 Starting with commit v4.9-46-g681452b that removed all references
34044 * .travis.yml (addons.apt.packages): Remove libacl1-dev.
34045 * strace.spec (BuildRequires): Remove libacl-devel.
34047 2015-12-23 Dmitry V. Levin <ldv@altlinux.org>
34049 packages/x86_64: enable experimental -k option.
34050 * debian/control (Build-Depends) [amd64]: Add libunwind-dev.
34051 * strace.spec (BuildRequires) [x86_64]: Add libunwind-devel.
34053 maint: post-release administrivia.
34056 2015-12-21 Dmitry V. Levin <ldv@altlinux.org>
34060 * debian/changelog: 4.11-1.
34061 * strace.spec: 4.11-1.
34063 2015-12-20 Dmitry V. Levin <ldv@altlinux.org>
34066 * debian/changelog: Sync with 4.10-3.
34069 * strace.spec: Sync with 4.10-3.
34075 2015-12-19 Dmitry V. Levin <ldv@altlinux.org>
34079 2015-12-18 Dmitry V. Levin <ldv@altlinux.org>
34084 2015-12-17 Dmitry V. Levin <ldv@altlinux.org>
34092 git history provides much better information on this subject and is much
34095 2015-12-16 Dmitry V. Levin <ldv@altlinux.org>
34100 Reported-by: Szabolcs Nagy <nsz@port70.net>
34102 2015-12-16 Dmitry V. Levin <ldv@altlinux.org>
34105 * mpers.sh (CFLAGS): Replace -gdwarf-4 with -gdwarf-2.
34110 2015-12-16 Dmitry V. Levin <ldv@altlinux.org>
34131 Reported-by: Szabolcs Nagy <nsz@port70.net>
34133 2015-12-16 Szabolcs Nagy <nsz@port70.net>
34142 This change adds the prefix before the name is passed to other macros,
34143 i.e. the argument of SYS_FUNC_NAME is already prefixed with sys_.
34153 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34156 As glibc times wrapper on x32 is known to wrongly truncate and then sign
34162 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34170 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34180 2015-12-15 Dmitry V. Levin <ldv@altlinux.org>
34184 are expected to have non-empty values really meet this requirement.
34190 Reported-by: Mike Frysinger <vapier@gentoo.org>
34192 2015-12-14 Dmitry V. Levin <ldv@altlinux.org>
34199 2015-12-14 Dmitry V. Levin <ldv@altlinux.org>
34203 v4.10-45-gdf4dd8b.
34207 2015-12-13 Dmitry V. Levin <ldv@altlinux.org>
34210 As arm kernels used to overwrite ARM_r0 with -EINTR after
34216 2015-12-12 Dmitry V. Levin <ldv@altlinux.org>
34219 tests/ksysent.h is a generated file listed in CLEANFILES.
34220 This change complements commit v4.10-566-gbab4ef4.
34224 2015-12-11 Dmitry V. Levin <ldv@altlinux.org>
34230 This also fixes --enable-gcc-Werror build.
34235 Reported-by: Sergey Bolshakov <sbolshakov@altlinux.org>
34237 2015-12-10 Dmitry V. Levin <ldv@altlinux.org>
34246 x86_64: 4.4-rc, 4.3, 4.2, 4.1, 3.19, 3.17, 3.16, 3.12, 3.11,
34247 3.10-rhel, 2.6.32-rhel, 2.6.27-sle, 2.6.18-rhel
34248 i386: 4.4-rc, 4.3, 4.2, 4.1, 3.19, 3.17, 3.16, 3.11,
34249 3.10-rhel, 2.6.32-rhel, 2.6.27-sle, 2.6.18-rhel
34250 aarch64: 4.4-rc
34252 arm eabi: 4.4-rc, 4.2, 4.1
34257 ppc64: 3.10-rhel, 2.6.32-rhel
34264 The only platform which is known at this moment to fail the test
34265 is CentOS-5 provided by OBS. On x86_64 instance it fails with
34266 error: "prlimit64" syscall #300 is "fanotify_init" in syscallent.h
34268 error: "prlimit64" syscall #338 is "fanotify_init" in syscallent.h
34269 So this is a real platform bug that is not likely to be worked around
34275 * tests/Makefile.am (AM_CPPFLAGS): Add -I$(builddir).
34283 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34289 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34300 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34302 Fix build on architectures for which arch_sigreturn is not implemented.
34307 2015-12-09 Dmitry V. Levin <ldv@altlinux.org>
34309 aarch64: swap 64-bit and 32-bit personalities.
34310 Let native 64-bit personality be personality 0, and 32-bit personality
34321 * linux/aarch64/get_error.c (get_error): Adjust tcp->currpers check.
34333 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34336 * linux/mips/syscallent-n32.h [6216]: Change syscall handler
34338 * linux/mips/syscallent-n64.h [5215]: Rename from "fadvise64_64"
34340 * linux/mips/syscallent-o32.h [4254]: Likewise.
34384 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34399 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34416 * linux/mips/syscallent-n32.h [6022]: Rename "select" to "_newselect".
34417 * linux/mips/syscallent-n64.h [5022]: Likewise.
34418 * linux/mips/syscallent-o32.h [4142]: Likewise.
34434 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34449 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34465 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34478 build: add -D_FILE_OFFSET_BITS=64 to _CPPFLAGS instead of _CFLAGS.
34500 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34503 As tests-m*32/Makefile.am files now refer to proper arch specific
34511 2015-12-08 Dmitry V. Levin <ldv@altlinux.org>
34513 build: set arch specific -m switches in tests-m*32/Makefile.am files properly
34516 * bootstrap: In tests-m32/Makefile.am and tests-mx32/Makefile.am,
34517 add -m32 and -mx32, respectively, to ARCH_MFLAGS instead of AM_CFLAGS.
34519 build: initialize ARCH variable in tests-m*32/Makefile.am files properly
34524 * bootstrap: Substitute @arch@ with @arch_m32@ in tests-m32/Makefile.am.
34525 Substitute @arch@ with @arch_mx32@ in tests-mx32/Makefile.am.
34527 2015-12-07 Dmitry V. Levin <ldv@altlinux.org>
34545 2015-12-07 Dmitry V. Levin <ldv@altlinux.org>
34552 2015-12-06 Dmitry V. Levin <ldv@altlinux.org>
34571 the latter is more prone to return value truncation.
34579 2015-12-06 Dmitry V. Levin <ldv@altlinux.org>
34583 RVAL_LUDECIMAL on systems where long type is less than kernel's long.
34588 2015-12-06 Dmitry V. Levin <ldv@altlinux.org>
34590 unix-yy.test: fix portability issue.
34591 * tests/unix-yy-connect.awk (r_close_listen): Quote square brackets
34594 inet-cmsg.test: skip the test when the network is not functional.
34595 * tests/inet-cmsg.c (main): Return 77 if inet datagram socket
34598 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34624 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34629 2015-12-04 Elvira Khabirova <lineprinter0@gmail.com>
34642 * linux/mips/syscallent-n32.h: Likewise.
34643 * linux/mips/syscallent-o32.h: Likewise.
34651 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34653 travis-ci: add build matrix.
34658 * tests/stat32-v.test: Remove.
34660 * tests/stat64-v.test: Remove.
34665 (TESTS): Replace stat32-v.test and stat64-v.test with stat64.test.
34692 2015-12-05 Dmitry V. Levin <ldv@altlinux.org>
34707 2015-12-04 Gabriel Laskar <gabriel@lse.epita.fr>
34711 is done by custom code. Specifying IOCTL_NUMBER_STOP_LOOKUP on
34720 IOCTL_NUMBER_STOP_LOOKUP flag is set.
34722 Suggested-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
34724 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34728 of ERESTART_RESTARTBLOCK is broken on x32 from the beginning, see
34735 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34738 On x32, tcp->ext_arg is not initialized for i386 personality,
34739 so tcp->u_arg has to be used instead.
34743 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34754 2015-12-04 Dmitry V. Levin <ldv@altlinux.org>
34764 2015-12-03 Dmitry V. Levin <ldv@altlinux.org>
34767 While -P option needs /proc to match descriptors, it does not use
34773 2015-12-02 Dmitry V. Levin <ldv@altlinux.org>
34788 2015-12-01 Dmitry V. Levin <ldv@altlinux.org>
34828 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34834 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34847 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34855 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34900 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34903 Make get_scno.c files more self-contained. While they are still
34937 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
34939 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34942 Make get_syscall_args.c files more self-contained. While they are
34975 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
34977 2015-11-30 Dmitry V. Levin <ldv@altlinux.org>
34980 Make get_syscall_result.c files more self-contained. While they are
34999 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
35001 2015-11-29 Dmitry V. Levin <ldv@altlinux.org>
35004 Make get_error.c files more self-sustained. While they are still being
35038 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
35040 2015-11-28 Dmitry V. Levin <ldv@altlinux.org>
35043 Make arch_sigreturn.c files more self-sustained. While they are
35067 Requested-by: Denys Vlasenko <dvlasenk@redhat.com>
35069 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35073 * travis-ci.sh: Likewise.
35075 2015-11-27 Dmitry V. Levin <ldv@altlinux.org>
35078 * tests/net-yy.test: Remove "$LOG"-connect and "$LOG"-accept.
35079 * tests/unix-yy.test: Likewise.
35081 2015-11-27 Dmitry V. Levin <ldv@altlinux.org>
35083 tests: skip stat32-v.test on x32.
35084 Explicitly skip 32-bit stat test on x32 even if libc pretends
35089 2015-11-27 Dmitry V. Levin <ldv@altlinux.org>
35122 2015-11-26 Elvira Khabirova <lineprinter0@gmail.com>
35124 Refer to -h on incorrect usage.
35133 * tests/strace-k.test: Change the option detecting regexp accordingly.
35135 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35137 tests: run in "set -x" mode if VERBOSE variable is non-null.
35138 * tests/init.sh: Enter "set -x" mode if $VERBOSE is non-null.
35140 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35145 the second argument has to be expected output.
35154 * tests/inet-cmsg.test: Likewise.
35174 * tests/times-fail.test: Likewise.
35184 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35187 x86 is the only personality supported on x86_64
35188 that has 32-bit syscall arguments.
35193 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35196 x86 is the only personality supported on x86_64
35197 that has 32-bit syscall arguments.
35201 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35211 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35214 Ignore mpers_xlat.h generated since commit v4.10-454-g5cb45b2.
35218 Reported-by: Elvira Khabirova <lineprinter0@gmail.com>
35220 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35268 2015-11-26 Dmitry V. Levin <ldv@altlinux.org>
35283 2015-11-26 Elvira Khabirova <lineprinter0@gmail.com>
35290 2015-11-26 Mike Frysinger <vapier@gentoo.org>
35299 there is no guarantee or requirement that the structure layout between
35300 apps and the C library match that what is passed to the kernel.
35306 on what is available.
35310 based on what is available. Note missing support for old ipc structs.
35312 on what is available. Only decode sembuf when available.
35315 based on what is available. Note missing support for old ipc structs.
35318 2015-11-25 Dmitry V. Levin <ldv@altlinux.org>
35326 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35332 * linux/mips/syscallent-n32.h: Likewise.
35333 * linux/mips/syscallent-n64.h: Likewise.
35334 * linux/mips/syscallent-o32.h: Likewise.
35347 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35358 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35361 Since query_module syscall is present only in kernels before Linux 2.6
35362 and strace does not support those kernels, there is no use to keep this
35373 2015-11-24 Dmitry V. Levin <ldv@altlinux.org>
35378 * linux/mips/syscallent-n32.h (sysfs): Likewise.
35379 * linux/mips/syscallent-n64.h (sysfs): Likewise.
35401 2015-11-22 Dmitry V. Levin <ldv@altlinux.org>
35449 2015-11-22 Dmitry V. Levin <ldv@altlinux.org>
35462 * tests/inet-cmsg.c: New file.
35463 * tests/inet-cmsg.test: New test.
35464 * tests/Makefile.am (check_PROGRAMS): Add inet-cmsg.
35465 (TESTS): Add inet-cmsg.test.
35466 * tests/.gitignore: Add inet-cmsg.
35468 Suggested-by: Orion Poplawski <orion@cora.nwra.com>
35470 2015-11-22 Dmitry V. Levin <ldv@altlinux.org>
35481 2015-11-21 Dmitry V. Levin <ldv@altlinux.org>
35488 2015-11-20 Dmitry V. Levin <ldv@altlinux.org>
35497 - if xlat struct declaration is available in defs.h,
35498 a global definition is provided in regular mode,
35499 and nothing is provided in mpers mode;
35500 - otherwise, if xlat file is included by a mpers source file,
35501 a global definition is provided in regular mode
35502 (unless no mpers mode is supported on this architecture,
35503 in that case, a local definition is provided instead),
35504 and a declaration is provided in mpers mode;
35505 - otherwise, a local definition is provided in regular mode,
35506 and an error message is printed in mpers mode.
35523 only, second time print everything.
35527 2015-11-20 Dmitry V. Levin <ldv@altlinux.org>
35541 2015-11-19 Dmitry V. Levin <ldv@altlinux.org>
35563 2015-11-19 Gabriel Laskar <gabriel@lse.epita.fr>
35574 2015-11-19 Dmitry V. Levin <ldv@altlinux.org>
35582 2015-11-18 Dmitry V. Levin <ldv@altlinux.org>
35585 Starting with commit v4.6-281-g7af9f35, we implicitly assume that
35586 HAVE_SENDMSG is always defined. Therefore, the check for sendmsg
35587 availability is redundant and could be safely removed.
35595 2015-11-18 Dmitry V. Levin <ldv@altlinux.org>
35601 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35637 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35641 v4.3-rc7-1-gd305c47.
35645 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35648 Starting with linux commit v4.3-rc3-33-ga342361, powerpc has
35654 2015-11-17 Dmitry V. Levin <ldv@altlinux.org>
35666 * linux/mips/syscallent-n32.h (userfaultfd, membarrier, mlock2): Likewise.
35667 * linux/mips/syscallent-n64.h (userfaultfd, membarrier, mlock2): Likewise.
35668 * linux/mips/syscallent-o32.h (userfaultfd, membarrier, mlock2): Likewise.
35676 2015-11-16 Dmitry V. Levin <ldv@altlinux.org>
35682 to sprintflags is also zero.
35684 2015-11-16 Mike Frysinger <vapier@gentoo.org>
35691 * util.c (printflags): Check xlat->str is not NULL.
35693 2015-11-16 Dmitry V. Levin <ldv@altlinux.org>
35699 * Makefile.am (mpers-m%.stamp): Add the whole $(mpers_sh_opts) set of
35702 2015-11-16 Dmitry V. Levin <ldv@altlinux.org>
35707 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35711 v4.0-rc4-67-g529d235.
35715 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35723 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35726 Starting with linux commit v4.3-rc3-1-g5b3f33e, m68k has direct
35733 2015-11-15 Dmitry V. Levin <ldv@altlinux.org>
35736 Starting with linux commit v4.2-rc1-64-g9dea5dc, x86 has direct
35743 2015-11-11 Heiko Carstens <heiko.carstens@de.ibm.com>
35749 2015-11-07 Dmitry V. Levin <ldv@altlinux.org>
35752 There is an ambiguousness in *_printer_defs.h rules definition:
35767 Reported-by: Elliott Hughes <enh@google.com>
35769 2015-10-09 Dmitry V. Levin <ldv@altlinux.org>
35772 * fcntl.c (SYS_FUNC(fcntl)): Return RVAL_DECODED for write-only operations.
35774 2015-10-08 Dmitry V. Levin <ldv@altlinux.org>
35786 2015-10-08 Dmitry V. Levin <ldv@altlinux.org>
35793 Reported-by: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
35795 2015-10-01 Gabriel Laskar <gabriel@lse.epita.fr>
35797 Fix make -j builds.
35801 which is a generated header.
35806 * Makefile.am (mpers-m%.stamp): Add printers.h to order-only
35809 2015-09-29 Mike Frysinger <vapier@gentoo.org>
35812 The `echo -n` behavior is non-portable, so use printf instead.
35814 * generate_mpers_am.sh: Change `echo -n` to `printf`.
35816 2015-09-23 Gabriel Laskar <gabriel@lse.epita.fr>
35833 2015-09-23 Dmitry V. Levin <ldv@altlinux.org>
35841 2015-09-20 Dmitry V. Levin <ldv@altlinux.org>
35850 2015-09-19 Dmitry V. Levin <ldv@altlinux.org>
35860 * tests/select.c (main): Check how timeout is printed
35877 * tests/pselect6.c (main): Check how timeout is printed
35914 Use it to check how ERESTARTNOHAND is printed.
36029 2015-09-17 Dmitry V. Levin <ldv@altlinux.org>
36097 2015-09-16 Dmitry V. Levin <ldv@altlinux.org>
36129 * README-mpers: Update instructions for using mpers printers.
36140 2015-09-15 Dmitry V. Levin <ldv@altlinux.org>
36145 * desc.c (sys_pselect6): Use it instead of open-coding
36147 * io.c (tprint_iov_upto): Use it instead of open-coding
36149 * kexec.c (print_kexec_segments): Use it instead of open-coding
36160 2015-09-14 Dmitry V. Levin <ldv@altlinux.org>
36171 2015-09-14 Dmitry V. Levin <ldv@altlinux.org>
36183 2015-09-14 Anton Blanchard <anton@samba.org>
36188 2015-09-14 Dmitry V. Levin <ldv@altlinux.org>
36253 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36255 mpers.m4: workaround missing gnu/stubs-*.h files.
36256 On some systems missing gnu/stubs-*.h files make -m32/-mx32 compilation
36262 gnu stub file if the system one is missing.
36263 * Makefile.am (DISTCLEANFILES): Add gnu/stubs-32.h and gnu/stubs-x32.h.
36265 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36267 tests: add times-fail.test.
36268 * tests/times-fail.c: New file.
36269 * tests/times-fail.test: New test.
36270 * tests/Makefile.am (check_PROGRAMS): Add times-fail.
36271 (TESTS): Add times-fail.test.
36272 * tests/.gitignore: Add times-fail.
36274 2015-08-28 Eugene Syromyatnikov <evgsyr@gmail.com>
36284 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36293 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36302 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36311 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36321 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36331 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36342 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36354 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36363 (mq_LDADD): Add -lrt.
36366 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36377 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36388 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36402 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36411 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36426 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36435 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36444 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36454 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36468 2015-08-28 Elvira Khabirova <lineprinter0@gmail.com>
36471 Add a subsystem for semi-automatical definition of how parsers should
36472 work with personality-dependent (mpers) types of tracee's data. Create
36478 this is the case, long integers, pointers, and all compound
36489 is being compiled for this personality (using -m32 or -mx32 compiler
36490 flag). Information about the type is then being extracted from
36500 For each possible nonnative target personality a library is being
36506 generate_mpers_am.sh is called by bootstrap to find the files
36515 pointer printers is being updated on every set_personality.
36517 * README-mpers: New README explaining how to use mpers support.
36527 (strace_LDADD, noinst_LIBRARIES): Add libmpers-%.a.
36536 (mpers-m[x]32.stamp, m[x]32_defs.h, m[x]32_funcs.h, printers.h,
36537 %_printer_decls.h, %_printer_defs.h, clean-local,
36563 * .gitignore: Add libmpers-m32.a, libmpers-mx32.a, m32_defs.h,
36564 m32_funcs.h, m32_printer_decls.h, m32_printer_defs.h, mpers-m32,
36565 mpers-m32.stamp, mpers-mx32, mpers-mx32.stamp, mpers.am, mx32_defs.h,
36569 2015-08-28 Dmitry V. Levin <ldv@altlinux.org>
36586 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36606 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36610 output, the second argument - the file with actual output.
36617 2015-08-27 Dmitry V. Levin <ldv@altlinux.org>
36619 build: fix -I options.
36621 * Makefile.am (AM_CPPFLAGS): Append -I$(builddir) and -I$(srcdir).
36624 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36628 * aio.c: Assume that <linux/aio_abi.h> is available,
36639 * strace.spec (BuildRequires): Remove libaio-devel.
36644 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36659 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36662 * tests/epoll_create1.c (main): Check that O_CLOEXEC is defined.
36668 (main): Replace AT_FDCWD with -100.
36673 2015-08-26 Mike Frysinger <vapier@gentoo.org>
36678 kernel unfortunately does not do this -- it allows for different opts
36686 A simple example is iptables; before:
36711 2015-08-26 Dmitry V. Levin <ldv@altlinux.org>
36714 * v4l2.c (v4l2_ioctl): Check that v4l2_ioctl is defined.
36720 2015-08-25 Dmitry V. Levin <ldv@altlinux.org>
36727 * xlat/efd_flags.in: Check that O_CLOEXEC is defined.
36732 2015-08-21 Elvira Khabirova <lineprinter0@gmail.com>
36739 2015-08-20 Dmitry V. Levin <ldv@altlinux.org>
36747 2015-08-20 Elvira Khabirova <lineprinter0@gmail.com>
36753 2015-08-20 Elvira Khabirova <lineprinter0@gmail.com>
36756 When msgrcv syscall is an ipc subcall, msgp (pointer to struct msgbuf)
36764 2015-08-20 Elvira Khabirova <lineprinter0@gmail.com>
36767 In preparation for upcoming mpers-related changes,
36797 2015-08-20 Elvira Khabirova <lineprinter0@gmail.com>
36801 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36812 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36815 When sendfile is called with a valid pointer to a file offset variable,
36818 * sendfile.c (sys_sendfile, sys_sendfile64): Print tcp->u_arg[2]
36821 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36828 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36838 2015-08-19 Dmitry V. Levin <ldv@altlinux.org>
36851 2015-08-18 Dmitry V. Levin <ldv@altlinux.org>
36864 2015-08-18 Elvira Khabirova <lineprinter0@gmail.com>
36869 2015-08-18 Dmitry V. Levin <ldv@altlinux.org>
36897 2015-08-18 Dmitry V. Levin <ldv@altlinux.org>
36909 2015-08-18 Mike Frysinger <vapier@gentoo.org>
36925 2015-08-18 Elvira Khabirova <lineprinter0@gmail.com>
36928 * ipc.c (PRINTCTL): Remove #ifdef IPC_64 check as IPC_64 is always
36931 2015-08-16 Elvira Khabirova <lineprinter0@gmail.com>
36938 2015-08-16 Elvira Khabirova <lineprinter0@gmail.com>
36946 2015-08-16 Elvira Khabirova <lineprinter0@gmail.com>
36955 2015-08-15 Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
36969 2015-08-09 Dmitry V. Levin <ldv@altlinux.org>
36987 2015-08-03 Dmitry V. Levin <ldv@altlinux.org>
37022 * tests/net-yy-accept.awk: Update socket and bind regexps.
37023 * tests/unix-yy-accept.awk: Likewise.
37024 * tests/net-yy-connect.awk: Update socket and connect regexps.
37025 * tests/unix-yy-connect.awk: Likewise.
37031 2015-08-02 Dmitry V. Levin <ldv@altlinux.org>
37060 2015-08-01 Dmitry V. Levin <ldv@altlinux.org>
37104 2015-08-01 Elvira Khabirova <lineprinter0@gmail.com>
37111 2015-08-01 Elvira Khabirova <lineprinter0@gmail.com>
37118 2015-08-01 Dmitry V. Levin <ldv@altlinux.org>
37122 is more portable across architectures.
37126 * tests/ppoll-v.expected: Likewise.
37128 2015-08-01 Dmitry V. Levin <ldv@altlinux.org>
37133 2015-07-30 Dmitry V. Levin <ldv@altlinux.org>
37141 * tests/ppoll-v.expected: Likewise.
37145 (EXTRA_DIST): Add ppoll.expected and ppoll-v.expected.
37156 Assume that <poll.h> is available.
37172 2015-07-30 Elvira Khabirova <lineprinter0@gmail.com>
37174 Fix oldselect decoding on 64-bit architectures.
37175 As struct sel_arg_struct is an array of 32-bit values,
37176 fetch it using an intermediate array on 64-bit architectures.
37183 2015-07-30 Dmitry V. Levin <ldv@altlinux.org>
37188 2015-07-30 Denys Vlasenko <dvlasenk@redhat.com>
37191 This change fixes these three problems (before/after is shown):
37195 -recvfrom(3, 0x7fff0a41e306, 10, 2, 0, 0) = ? ERESTARTSYS
37198 If peer address is unavalable (example: anon sockets from socketpair()),
37201-recvfrom(3, "123456789\0", 10, MSG_PEEK, {sa_family=0x7777 /* AF_??? */, sa_data="wwwwwwwwwwwwww"…
37206 - printsock(tcp, tcp->u_arg[4], tcp->u_arg[5]);
37207 + printsock(tcp, tcp->u_arg[4], fromlen);
37209 2015-07-29 Elliott Hughes <enh@google.com>
37211 prctl: decode Android-specific PR_SET_VMA.
37216 2015-07-29 Dmitry V. Levin <ldv@altlinux.org>
37223 Reported-by: Elliott Hughes <enh@google.com>
37225 2015-07-29 Dmitry V. Levin <ldv@altlinux.org>
37256 2015-07-28 Elliott Hughes <enh@google.com>
37263 2015-07-27 Dmitry V. Levin <ldv@altlinux.org>
37266 * tests/restart_syscall.test: Skip if restart_syscall is not detected
37276 * tests/execveat-v.expected: Likewise.
37280 (EXTRA_DIST): Add execveat.expected and execveat-v.expected.
37288 * tests/execve-v.expected: Likewise.
37292 (EXTRA_DIST): Add execve.expected and execve-v.expected.
37311 2015-07-25 Dmitry V. Levin <ldv@altlinux.org>
37314 The use of printargs introduced by commit v4.10-179-g210a6b6 is wrong:
37315 when the first argument is already printed, printargs cannot be called.
37320 2015-07-23 Dmitry V. Levin <ldv@altlinux.org>
37322 Macroize -m32/-mx32 configure checks.
37329 2015-07-22 Dmitry V. Levin <ldv@altlinux.org>
37335 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37363 * linux/mips/syscallent-n32.h (semop): Likewise.
37364 * linux/mips/syscallent-n64.h (semop): Likewise.
37376 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37378 tests: use -lpthread instead of -pthread.
37379 On some obscure systems, -lpthread is more likely to work than -pthread.
37382 filter_unavailable_LDADD and change to -lpthread.
37384 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37387 * linux/mips/syscallent-o32.h (utimensat): set sys_flags and sys_func.
37389 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37391 linux/mips/syscallent-compat.h: use designated initializers.
37392 Change linux/mips/syscallent-compat.h to use designated initializers
37395 * linux/mips/syscallent-compat.h: Use designated initializers.
37397 2015-07-21 Dmitry V. Levin <ldv@altlinux.org>
37399 linux/mips/syscallent-compat.h: fix initalization of empty entries.
37402 * linux/mips/syscallent-compat.h: Fix initalization of empty entries.
37404 2015-07-20 Dmitry V. Levin <ldv@altlinux.org>
37681 2015-07-18 Elvira Khabirova <lineprinter0@gmail.com>
37693 * bootstrap: Delete tests-m32 and tests-mx32 directories
37696 2015-07-18 Dmitry V. Levin <ldv@altlinux.org>
37783 2015-07-17 Dmitry V. Levin <ldv@altlinux.org>
37809 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37888 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37897 * tests/uid.test: If getuid syscall is not available, probe for
37900 2015-07-16 Dmitry V. Levin <ldv@altlinux.org>
37936 2015-07-15 Dmitry V. Levin <ldv@altlinux.org>
37957 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
37986 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
37994 2015-07-14 Dmitry V. Levin <ldv@altlinux.org>
38006 2015-07-13 Dmitry V. Levin <ldv@altlinux.org>
38015 2015-07-12 Elvira Khabirova <lineprinter0@gmail.com>
38042 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38053 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38060 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38071 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38082 2015-07-10 Dmitry V. Levin <ldv@altlinux.org>
38091 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38096 Reported-by: Christian Neukirchen <chneukirchen@gmail.com>
38098 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38111 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38125 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38140 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38151 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38154 printaddr is a simple function implementing "print NULL or address"
38156 umoven_or_printaddr is a wrapper around umoven that has the same return
38158 is not going to be fetched (in case of exiting(tcp) && syserror(tcp))
38160 umove_or_printaddr is a macro wrapper around umoven_or_printaddr that
38167 2015-07-09 Dmitry V. Levin <ldv@altlinux.org>
38174 with RVAL_DECODED bit set, record this value in tcp->sys_func_rval
38179 SYS_FUNC(ioctl) that the decoding is finished but fallback printing of
38180 the ioctl command argument is needed, while e.g. RVAL_DONE+1 would mean
38181 that the decoding is finished and no fallback decoding is needed.
38185 * syscall.c (trace_syscall_entering): Initialize tcp->sys_func_rval
38187 (trace_syscall_exiting): Use tcp->sys_func_rval instead of calling
38188 tcp->s_ent->sys_func when the former has RVAL_DECODED flag set.
38189 Reset tcp->sys_func_rval along with clearing TCB_INSYSCALL flag.
38191 Print ioctl argument iff RVAL_DECODED is set and fallback decoding
38192 is requested.
38194 2015-07-05 Dmitry V. Levin <ldv@altlinux.org>
38208 2015-07-02 Dmitry V. Levin <ldv@altlinux.org>
38233 2015-06-30 Dmitry V. Levin <ldv@altlinux.org>
38238 * tests/filter-unavailable.c: New file.
38239 * tests/filter-unavailable.expected: Likewise.
38240 * tests/filter-unavailable.test: New test.
38241 * tests/Makefile.am (check_PROGRAMS): Add filter-unavailable.
38242 (filter_unavailable_LDFLAGS): Add -pthread.
38243 (TESTS): Add filter-unavailable.test.
38244 (EXTRA_DIST): Add filter-unavailable.expected.
38245 * tests/.gitignore: Add filter-unavailable.
38247 Reported-by: Bryan Matsuo <bryan.matsuo@gmail.com>
38249 2015-06-30 Dmitry V. Levin <ldv@altlinux.org>
38251 Fix -qq option in conjunction with -o option.
38252 This change makes -qq option work in conjunction with -o option,
38253 thus complementing commit v4.7-222-g01997cf.
38257 2015-06-30 Dmitry V. Levin <ldv@altlinux.org>
38271 2015-06-17 Dmitry V. Levin <ldv@altlinux.org>
38273 tests: skip stat32 test if struct stat is defined incorrectly.
38274 If stat.st_mode returned by syscall is 0, it means that the definition
38275 of struct stat in <asm/stat.h> is incorrect. This is the case e.g. on
38276 mips n32 where the only available stat syscall is 64-bit but at the same
38277 time struct stat defined by <asm/stat.h> is 32-bit.
38279 * tests/stat.c (main) [NR_stat]: Return 77 if st_mode is 0.
38281 2015-06-17 Dmitry V. Levin <ldv@altlinux.org>
38319 2015-06-16 Dmitry V. Levin <ldv@altlinux.org>
38334 2015-06-08 Dmitry V. Levin <ldv@altlinux.org>
38352 2015-06-08 Dmitry V. Levin <ldv@altlinux.org>
38357 2015-06-05 Dmitry V. Levin <ldv@altlinux.org>
38363 2015-05-25 Dmitry V. Levin <ldv@altlinux.org>
38380 * tests/detach-stopped.test: Likewise.
38386 2015-05-25 Dmitry V. Levin <ldv@altlinux.org>
38392 This commit is a follow-up to the related discussions in strace-devel ML:
38418 2015-05-21 Dmitry V. Levin <ldv@altlinux.org>
38420 Fix ioctl entries on 32-bit architectures with 64-bit aligned structures
38421 Some ioctl constants are defined to different values on those 32-bit
38422 architectures where structures containing a 64-bit field are aligned on
38423 a 8-byte boundary and have a size multiple of 8 bytes, and on other
38424 32-bit architectures.
38426 * configure.ac: Check the size of a structure containing a 64-bit field.
38437 Reported-by: Philippe De Muyter <phdm@macqel.be>
38439 2015-05-21 Dmitry V. Levin <ldv@altlinux.org>
38445 2015-05-21 Philippe De Muyter <phdm@macqel.be>
38450 2015-05-19 Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
38452 Add support for Altera's Nios-II softcore architecture.
38453 This commit adds strace support for Altera's Nios-II. The architecture
38454 is supported by Linux since v3.19, and it implements the generic syscall
38459 * linux/nios2/*: New Nios-II specific files.
38462 2015-05-19 Philippe De Muyter <phdm@macqel.be>
38468 2015-05-19 Dmitry V. Levin <ldv@altlinux.org>
38475 Reported-by: Philippe De Muyter <phdm@macqel.be>
38477 2015-04-18 Philippe De Muyter <phdm@macqel.be>
38482 2015-04-17 Dmitry V. Levin <ldv@altlinux.org>
38490 * linux/mips/syscallent-o32.h (4000): Change sys_func to sys_syscall.
38492 Reported-and-tested-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
38494 2015-04-14 Dmitry V. Levin <ldv@altlinux.org>
38496 debian: add gawk to Build-Depends.
38497 * debian/control (Build-Depends): Add gawk.
38498 Patch by Reiner Herrmann <reiner@reiner-h.de>.
38502 2015-04-14 Dmitry V. Levin <ldv@altlinux.org>
38511 2015-04-07 Dmitry V. Levin <ldv@altlinux.org>
38525 2015-04-07 Dmitry V. Levin <ldv@altlinux.org>
38540 2015-04-07 Denys Vlasenko <dvlasenk@redhat.com>
38545 $ sleep 2 & sleep 1; ./strace -erestart_syscall -p $!
38552 2015-04-07 Dmitry V. Levin <ldv@altlinux.org>
38562 2015-04-06 Dmitry V. Levin <ldv@altlinux.org>
38566 page size is too big for GNU grep. Rewrite the test to use diff
38572 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38576 it is not applicable on entering syscall.
38586 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38600 Reported-by: Josef T. Burger <bolo@cs.wisc.edu>
38602 2015-03-31 Dmitry V. Levin <ldv@altlinux.org>
38606 control rules wrt traced processes: process_vm_readv() is more likely to
38613 Reported-by: Andrew Guertin <lists@dolphinling.net>
38615 2015-03-30 Dmitry V. Levin <ldv@altlinux.org>
38625 * linux/ubi-user.h: Likewise.
38627 2015-03-30 Dmitry V. Levin <ldv@altlinux.org>
38637 2015-03-28 Felix Janda <felix.janda@posteo.de>
38646 Reported-by: Dima Krasner <dima@dimakrasner.com>
38647 Acked-by: Mike Frysinger <vapier@gentoo.org>
38649 2015-03-28 Felix Janda <felix.janda@posteo.de>
38657 Reported-by: Dima Krasner <dima@dimakrasner.com>
38658 Acked-by: Mike Frysinger <vapier@gentoo.org>
38660 2015-03-27 Dmitry V. Levin <ldv@altlinux.org>
38665 * defs.h (printsiginfo): Change second argument's type from int to bool.
38669 (printsiginfo): Change second argument's type from int to bool,
38686 2015-03-26 Dmitry V. Levin <ldv@altlinux.org>
38694 2015-03-25 Denys Vlasenko <dvlasenk@redhat.com>
38699 Run-tested in qemu 32-bit sparc.
38701 2015-03-25 Denys Vlasenko <dvlasenk@redhat.com>
38710 This change deletes personality 1. Now sparc is an one-personality
38711 arch, and sparc64 is a two-personality one.
38714 is performed in the next commit - this prevents a state where syscallent1.h
38715 seems to indergo a lot of changes, where in fact in is deleted, and then
38720 2015-03-24 Denys Vlasenko <dvlasenk@redhat.com>
38724 2015-03-24 Denys Vlasenko <dvlasenk@redhat.com>
38726 sparc: fix v4.10-25-g8497b62 fallout.
38729 $ sleep 3 & ./strace -p $!
38738 $ sleep 3 & ./strace -p $!
38744 2015-03-24 Dmitry V. Levin <ldv@altlinux.org>
38750 2015-03-24 Dmitry V. Levin <ldv@altlinux.org>
38752 arm: fix v4.10-25-g8497b62 fallout.
38753 Starting with commit v4.10-25-g8497b62,
38761 other code assumes that s_ent is properly initialized when this flag
38762 is set.
38769 2015-03-24 Dmitry V. Levin <ldv@altlinux.org>
38776 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38779 Split code that use arch-specific registers to separate arch files.
38781 * sigreturn.c (sys_sigreturn): Move arch-specific code
38787 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38790 Split code that use arch-specific registers to separate arch files.
38794 [HAVE_GETRVAL2] (getrval2): Move arch-specific code
38796 (print_pc): Move arch-specific code to linux/*/print_pc.c files,
38803 (get_scno): Move arch-specific code to linux/*/get_scno.c,
38805 (get_syscall_args): Move arch-specific code
38807 (get_error): Move arch-specific code to linux/*/get_error.c,
38809 (get_syscall_result): Move arch-specific code
38813 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38816 Move functions that use arch-specific registers to the end of file.
38818 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38821 Starting with commit v4.10-25-g8497b62, get_scno() can be called outside
38828 2015-03-23 Dmitry V. Levin <ldv@altlinux.org>
38850 2015-03-22 Dmitry V. Levin <ldv@altlinux.org>
38856 2015-03-21 Denys Vlasenko <dvlasenk@redhat.com>
38868 It is unused since we dropped support for kernels without PTRACE_SETOPTIONS.
38876 2015-03-21 Denys Vlasenko <dvlasenk@redhat.com>
38879 When signal is received, or if we have attached to a process,
38880 current syscall (if process is in one) gets restarted.
38888 Kernel does expose this information. The only thing we need is
38891 This patch does this. It adds tcp->s_prev_ent, which is
38895 sys_restart_syscall() is made to use it when the message is generated.
38899 in the same member (tcp->s_prev_ent).
38903 $ sleep 3 & strace -p $!
38909 2015-03-20 Dmitry V. Levin <ldv@altlinux.org>
38927 2015-03-19 Dmitry V. Levin <ldv@altlinux.org>
38936 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38951 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38958 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38961 According to arch/arm/kernel/sys_oabi-compat.c,
38971 Reported-and-tested-by: Elliott Hughes <enh@google.com>
38973 2015-03-18 Dmitry V. Levin <ldv@altlinux.org>
38980 * tests/net-fd.expected: New file.
38992 2015-03-18 Elliott Hughes <enh@google.com>
39000 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39016 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39018 stat64-v.test: add newfstatat syscall support.
39019 Newer architectures have no stat syscall, so stat() is implemented there
39026 Reported-by: Andreas Schwab <schwab@suse.de>
39028 2015-03-16 Andreas Schwab <schwab@suse.de>
39037 * tests/stat32-v.test: Likewise.
39038 * tests/stat64-v.test: Likewise.
39040 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39042 Fix stat64 st_[acm]time decoding for personalities with 32-bit time_t.
39044 personalities, while time_t is signed.
39048 * tests/stat64-v.test: Test that negative time_t is decoded properly.
39050 Reported-by: Andreas Schwab <schwab@suse.de>
39052 2015-03-16 Dmitry V. Levin <ldv@altlinux.org>
39055 On architectures where the semctl call is implemented by the ipc syscall
39056 the 4th argument is passed by reference.
39062 Reported-by: Andreas Schwab <schwab@suse.de>
39064 2015-03-16 Andreas Schwab <schwab@suse.de>
39072 2015-03-16 Andreas Schwab <schwab@suse.de>
39081 2015-03-16 Andreas Schwab <schwab@suse.de>
39093 2015-03-12 Andreas Schwab <schwab@suse.de>
39107 2015-03-12 Andreas Schwab <schwab@suse.de>
39115 2015-03-11 Dmitry V. Levin <ldv@altlinux.org>
39120 2015-03-09 Dmitry V. Levin <ldv@altlinux.org>
39122 maint: post-release administrivia.
39125 2015-03-06 Dmitry V. Levin <ldv@altlinux.org>
39129 * debian/changelog: 4.10-1.
39130 * strace.spec: 4.10-1.
39141 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39172 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39174 tests: robustify unix-yy.test.
39181 * tests/net-accept-connect.c: Implement additional synchronization
39183 * tests/unix-yy-connect.awk: Update.
39185 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39191 Use lower RT_* numbers to support pre-3.18 hppa kernels.
39194 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39203 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39209 signal.c:702:45: warning: signed and unsigned type in conditional expression [-Wsign-compare]
39216 Reported-by: Mike Frysinger <vapier@gentoo.org>
39218 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39224 2015-03-05 Dmitry V. Levin <ldv@altlinux.org>
39238 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39253 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39285 for non-i386 personalities.
39298 architectures for which signal mask decoding is not implemented yet.
39300 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39306 Reported-by: Christopher Covington <cov@codeaurora.org>
39308 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39314 2015-03-04 Dmitry V. Levin <ldv@altlinux.org>
39317 This complements commit v4.9-321-gfcf7f8d.
39322 2015-03-04 Giedrius Statkevičius <giedrius.statkevicius@gmail.com>
39324 Document that -k is available only with libunwind.
39328 * strace.1: Note that -k is available only if strace is built
39331 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39334 * debian/control (strace, strace-udeb): Add mips64 and mips64el
39340 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39342 debian: sync with 4.9-2 package.
39343 * debian/changelog: Sync with 4.9-2.
39346 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39348 Add arch-specific PTRACE_* constants.
39349 * xlat/ptrace_cmds.in: Add arch-specific ptrace commands.
39355 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39357 Clarify bootstrap-vs-autoreconf usage.
39358 * README-hacking: Tell people to run ./bootstrap.
39360 2015-03-03 Dmitry V. Levin <ldv@altlinux.org>
39363 In mips n32 abi, like in most of 32-bit architectures, offset
39364 is passed to preadv/pwritev syscalls using two syscall arguments.
39368 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39376 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39385 2015-03-03 Mike Frysinger <vapier@gentoo.org>
39387 tests: note the kernel configs for -yy options.
39388 * tests/net-yy.test: Note CONFIG_INET_TCP_DIAG.
39389 * tests/unix-yy.test: Note CONFIG_UNIX_DIAG.
39391 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39393 alpha: fix -yy decoding.
39396 Reported-and-tested-by: Mike Frysinger <vapier@gentoo.org>
39398 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39412 aarch64: add -i option support.
39415 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39429 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39431 tests/uid16: skip if real uid is larger than 16bit.
39435 2015-03-02 Dmitry V. Levin <ldv@altlinux.org>
39446 Reported-by: Mike Frysinger <vapier@gentoo.org>
39448 2015-03-01 Mike Frysinger <vapier@gentoo.org>
39452 passed back, or the arch is old (like Alpha) and can't pass back in
39457 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39460 * syscall.c (trace_syscall_exiting): When current personality is 32bit,
39463 Update generic 64-bit ioctlent from linux v3.19.
39466 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39469 Fix regression introduced by commit v4.9-9-gc3a5c01.
39478 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39480 Fix stack buffer overflow when specified command is too long.
39482 is going to execute does not exceed PATH_MAX limit.
39484 Reported-by: Cheolung Lee <chpie@grayhash.com>
39486 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39490 headers that was inadvertently changed by commit v4.9-280-g5503dd2.
39501 2015-02-28 Dmitry V. Levin <ldv@altlinux.org>
39504 As time_t is a 64-bit type in x32 personality, it is not correct to
39514 2015-02-28 Mike Frysinger <vapier@gentoo.org>
39520 * tests/ipc_sem.c: Return 99 when errno is EFAULT.
39524 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39526 build: do not link strace with -ldl.
39529 2015-02-27 Mike Frysinger <vapier@gentoo.org>
39535 * ptrace.h [PTRACE_EVENT_STOP]: Redefine if PTRACE_EVENT_STOP is 7.
39537 2015-02-27 Mike Frysinger <vapier@gentoo.org>
39546 2015-02-27 Mike Frysinger <vapier@gentoo.org>
39548 Fix cross-compiling of ioctlsort.
39559 * m4/ax_prog_cc_for_build.m4: Import from the autoconf-archive package.
39561 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39564 * configure.ac: Check for dladdr in -ldl.
39569 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39575 * tests/select.test: Skip if select syscall is not supported.
39577 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39586 * linux/mips/syscallent-n32.h (6022): Likewise.
39587 * linux/mips/syscallent-n64.h (5022): Likewise.
39588 * linux/mips/syscallent-o32.h (4142): Likewise.
39591 2015-02-27 Dmitry V. Levin <ldv@altlinux.org>
39601 2015-02-26 Dmitry V. Levin <ldv@altlinux.org>
39608 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39617 2015-02-26 Dmitry V. Levin <ldv@altlinux.org>
39653 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39661 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39671 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39680 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39683 There is no guarantee that the backing value for the various time fields
39689 2015-02-26 Mike Frysinger <vapier@gentoo.org>
39696 2015-02-24 Dmitry V. Levin <ldv@altlinux.org>
39700 2015-02-24 Dmitry V. Levin <ldv@altlinux.org>
39703 Assume that the kernel is v2.5.46 or newer, i.e. PTRACE_SETOPTIONS
39707 This change removes all code that implemented post-execve SIGTRAP
39708 handling and fork/vfork/clone->CLONE_PTRACE substitution.
39735 2015-02-24 Dmitry V. Levin <ldv@altlinux.org>
39743 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39751 * tests/getdents.test: Check whether awk is capable of matching long
39754 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39759 that __s64/__u64 type is not compatible with long long format.
39760 From my PoV, this is nonsense, but the workaround costs nothing.
39766 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39791 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39794 On x86_64/x32, sys_sigreturn is defined only for i386 personality.
39799 2015-02-23 Dmitry V. Levin <ldv@altlinux.org>
39802 * syscall.c (print_pc): Use current_wordsize iff it is defined.
39839 2015-02-22 Dmitry V. Levin <ldv@altlinux.org>
39850 * configure.ac: Check whether struct input_absinfo.resolution is defined
39860 2015-02-22 Etienne Gemsa <etienne.gemsa@lse.epita.fr>
39864 first members are decoded, the union is not. The code was compiled and
39884 2015-02-22 Dmitry V. Levin <ldv@altlinux.org>
39897 * Makefile.am (EXTRA_DIST): Remove README-linux.
39899 2015-02-20 Elliott Hughes <enh@google.com>
39903 2015-02-19 Dmitry V. Levin <ldv@altlinux.org>
39951 2015-02-19 Dmitry V. Levin <ldv@altlinux.org>
39956 v3.4-rc2-13-gacf3b2c71ed20c53dc69826683417703c2a88059 inadvertently
39957 broke it. The guarantee is back with kernel commit
39958 v3.19-8275-g580c57f1076872ebc2427f898b927944ce170f2d.
39962 2015-02-19 Mike Frysinger <vapier@gentoo.org>
39964 README-linux: punt.
39965 Considering we're requiring linux-2.6 era kernels, the discussion of
39968 * README-linux: Delete.
39970 2015-02-19 Dmitry V. Levin <ldv@altlinux.org>
39984 * xlat/prctl_options.in: Remove non-linux constants, add fallback
39989 * xlat/gen.sh (gen_header): If the name of constant is specified with a
40005 2015-02-18 Dmitry V. Levin <ldv@altlinux.org>
40012 2015-02-17 Dmitry V. Levin <ldv@altlinux.org>
40025 2015-02-16 Dmitry V. Levin <ldv@altlinux.org>
40045 (get_syscall_args) [MIPS]: Use mips_REG_A[0-5].
40058 2015-02-15 Dmitry V. Levin <ldv@altlinux.org>
40068 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40071 As get_regs() is now guaranteed to set get_regs_error,
40072 there is no need to reset get_regs_error before get_regs() call.
40076 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40079 As get_regs() is now guaranteed to fetch registers when either
40080 ARCH_REGS_FOR_GETREGSET or ARCH_REGS_FOR_GETREGS is defined, we can
40088 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40103 get_regset: define iff PTRACE_GETREGSET is used.
40106 (get_regset): Define iff ARCH_REGS_FOR_GETREGSET is defined; change
40112 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40117 is a bit more costly, so choose the method that costs less.
40118 This partially reverts commit v4.7-149-gfaa177e.
40124 2015-02-14 Dmitry V. Levin <ldv@altlinux.org>
40130 syscall.c: ensure that NT_PRSTATUS is defined.
40134 2015-02-13 Dmitry V. Levin <ldv@altlinux.org>
40136 Move regs-related macros and declarations from defs.h to regs.h.
40172 Move all ptrace-related macros and declarations from defs.h to ptrace.h.
40185 2015-02-12 Dmitry V. Levin <ldv@altlinux.org>
40195 2015-02-08 Bart Van Assche <bart.vanassche@sandisk.com>
40201 4 of this API is used if /dev/bsg/H:C:I:L is used as device name.
40207 dev=$(lsscsi | sed -n '/ scsi_debug /s,^[^/]*,,p')
40208 ./strace -eioctl -s256 sg_inq $dev
40210 bsg=/dev/bsg/$(lsscsi | sed -n '/ scsi_debug /s,^\[\([^]]\+\)\].*,\1,p')
40212 ./strace -eioctl -s256 sg_raw -s 512 -r 1024 $bsg 53 00 00 00 00 01 00 00 01 00
40223 2015-02-08 Bart Van Assche <bart.vanassche@sandisk.com>
40238 2015-02-08 Bart Van Assche <bart.vanassche@sandisk.com>
40243 * scsi.c (print_sg_io_buffer): Change second argument's type to
40247 2015-02-08 Dmitry V. Levin <ldv@altlinux.org>
40253 2015-02-08 Dmitry V. Levin <ldv@altlinux.org>
40255 print_setsockopt: fix fall-through bug in SOL_IP switch case.
40256 This fixes the bug introduced by commit v4.9-250-ga0a4909.
40260 Reported-by: Ben Noordhuis <info@bnoordhuis.nl>
40262 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40264 Do not watch for post-execve SIGTRAP if PTRACE_O_TRACEEXEC is enabled.
40265 If PTRACE_O_TRACEEXEC option is enabled, then post-execve SIGTRAPs are
40266 suppressed and we can safely skip -ENOSYS heuristics. This partially
40267 reverts commits v4.9-258-g8e398b6 and v4.9-261-gd70c41d.
40270 flag is set in ptrace_setoptions. Remove all SECCOMP_RET_ERRNO
40271 workarounds as they are not needed when PTRACE_O_TRACEEXEC is not
40274 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40285 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40287 -b execve: avoid misleading warning about unknown pid.
40288 * strace.c (maybe_allocate_tcb): If detach_on_execve is set, do not warn
40293 -b execve: do not use struct tcb after detach.
40296 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40308 2015-02-07 Dmitry V. Levin <ldv@altlinux.org>
40315 is no longer used.
40317 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40348 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40352 values could be easily seen when a seccomp filter is used, e.g.
40357 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40360 This is required to process SECCOMP_RET_ERRNO filtered syscalls on
40361 systems where linux kernel does not change the syscall number to -1.
40367 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40374 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40382 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40384 x86, x32, x86_64: do not skip syscall number -1.
40385 Syscall number -1 might be a side effect of SECCOMP_RET_ERRNO filtering.
40388 Do not skip syscalls that have number -1.
40390 2015-02-06 Dmitry V. Levin <ldv@altlinux.org>
40392 x86_64: do not interpet syscall number -1 as a x32 personality syscall.
40393 Syscall number -1 might be a side effect of SECCOMP_RET_ERRNO filtering.
40395 * syscall.c (get_scno) [X86_64]: Handle the case of scno == -1.
40397 2015-02-05 Dmitry V. Levin <ldv@altlinux.org>
40413 2015-02-04 Dmitry V. Levin <ldv@altlinux.org>
40429 2015-02-01 Dmitry V. Levin <ldv@altlinux.org>
40433 * tests/unix-pair-send-recv.c: New file.
40435 * tests/Makefile.am (check_PROGRAMS): Add unix-pair-send-recv.
40438 * tests/.gitignore: Add unix-pair-send-recv.
40440 2015-02-01 Aurelien Jacobs <aurel@gnuage.org>
40442 Fix simultaneous -e read and -e write usage.
40443 This allows using both -e read=FD and -e write=FD at the same time
40445 Without this patch, the -e write=FD is ignored if -e read=FD is used
40448 2015-01-31 Dmitry V. Levin <ldv@altlinux.org>
40450 net.c: remove unused HAVE_SIN6_SCOPE_ID_LINUX-based code.
40452 HAVE_SIN6_SCOPE_ID_LINUX was removed by commit v4.4-98-g64f793a.
40456 2015-01-30 Dmitry V. Levin <ldv@altlinux.org>
40465 2015-01-29 Dmitry V. Levin <ldv@altlinux.org>
40468 * tests/net-accept-connect.c: Allow long socket addresses.
40473 * net.c (printsock): If sockaddr_un.sun_path is not NUL-terminated,
40480 2015-01-29 Dmitry V. Levin <ldv@altlinux.org>
40491 2015-01-29 Dmitry V. Levin <ldv@altlinux.org>
40499 2015-01-29 Dmitry V. Levin <ldv@altlinux.org>
40501 getsockopt, setsockopt: do not decode structures in non-verbose mode.
40502 Move the code that is common between getsockopt and setsockopt parsers
40515 2015-01-28 Dmitry V. Levin <ldv@altlinux.org>
40517 sendmsg: do not decode msghdr in non-verbose mode.
40518 * net.c (printmsghdr): Do not decode struct msghdr in non-verbose mode.
40522 in non-verbose mode.
40524 2015-01-26 Dmitry V. Levin <ldv@altlinux.org>
40563 2015-01-26 Dmitry V. Levin <ldv@altlinux.org>
40569 * util.c (printfd): Print non-socket paths using print_quoted_string.
40570 * tests/scm_rights-fd.test: Test it.
40573 2015-01-26 Dmitry V. Levin <ldv@altlinux.org>
40583 of "len", treat QUOTE_0_TERMINATED style flag as former (len == -1);
40593 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40602 2015-01-24 Helge Deller <deller@gmx.de>
40610 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40626 * tests/scm_rights-fd.test: Update.
40628 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40635 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40641 * bootstrap: Create tests-m32 and tests-mx32 subtrees from tests.
40642 * configure.ac: Check for -m32 and -mx32 runtime support.
40643 (AC_CONFIG_FILES): Add tests-m32/Makefile and tests-mx32/Makefile.
40647 * .gitignore: Add /tests-m32 and /tests-mx32.
40649 2015-01-24 Dmitry V. Levin <ldv@altlinux.org>
40661 2015-01-22 Dmitry V. Levin <ldv@altlinux.org>
40664 Historically, only 16 bits (8-bit number and 8-bit type) of 32-bit ioctl
40669 …AMS or MMTIMER_GETRES or MTIOCTOP or SNDCTL_MIDI_MPUMODE, 0x7fffd47f7338) = -1 ENOTTY (Inappropria…
40671 The solution is to use all 32 bits for decoding, not just "number" and
40674 As some architectures override defaults that come from asm-generic/ and
40676 per-architecture ioctl definitions and merge them with common
40678 generic and architecture-specific definitions, now architecture-specific
40679 definitions have precedence over generic ones -- ioctlsort omits
40680 definitions from asm-generic/ for those ioctl names that have different
40683 Additional bits of "direction" are architecture specific -- the number
40688 Additional bits of "size" are also architecture specific -- not only the
40691 source code, we keep 32-bit and 64-bit versions of common ioctl
40806 * Makefile.am: Remove all ioctlent-related definitions.
40815 * HACKING-scripts: Update for ioctlent.sh -> ioctls_gen.sh migration.
40825 2015-01-21 Gabriel Laskar <gabriel@lse.epita.fr>
40839 2015-01-21 Dmitry V. Levin <ldv@altlinux.org>
40842 * git-set-file-times: Update from rsync.
40843 * git-version-gen: Update from gnulib.
40844 * gitlog-to-changelog: Likewise.
40849 2015-01-21 Dmitry V. Levin <ldv@altlinux.org>
40870 2015-01-21 Dmitry V. Levin <ldv@altlinux.org>
40883 2015-01-20 Dmitry V. Levin <ldv@altlinux.org>
40886 In linux, ioctl command number has a 32-bit unsigned integer type:
40888 If the kernel completely ignores other bits on 64-bit architectures,
40909 2015-01-16 Dmitry V. Levin <ldv@altlinux.org>
40923 * qemu_multiarch_testing/make-hdc-img.sh: Robustify,
40925 * qemu_multiarch_testing/parallel-build-hdc-img.sh: Reduce
40928 2015-01-14 Dmitry V. Levin <ldv@altlinux.org>
40947 tests: skip ip network tests when the network is not functional.
40948 * tests/inet-accept-connect-send-recv.c (main): Return 77 if inet stream
40950 * tests/net-yy.test: Skip the test if inet-accept-connect-send-recv
40954 * tests/caps.awk: Handle the case when all bits of 64-bit capability
40962 * tests/detach-running.test: Skip if "kill -0" does not work.
40963 * tests/detach-sleeping.test: Likewise.
40964 * tests/detach-stopped.test: Likewise.
40975 2015-01-13 Dmitry V. Levin <ldv@altlinux.org>
40978 Starting with commit v4.9-27-g3e252ca, header file names should not be
40984 2015-01-13 Dmitry V. Levin <ldv@altlinux.org>
40987 * linux/mips/syscallent-n32.h [LINUX_MIPSN32]: Define SYS_socket_subcall,
40989 * linux/mips/syscallent-n64.h [LINUX_MIPSN64]: Likewise.
40990 * linux/mips/syscallent-o32.h [LINUX_MIPSO32]: Likewise.
40997 * linux/mips/syscallent-n32.h: Remove stub entries, include
40999 * linux/mips/syscallent-n64.h: Likewise.
41000 * linux/mips/syscallent-o32.h: Likewise.
41003 * Makefile.am (AM_CPPFLAGS): Add -I$(builddir)/$(OS)/$(ARCH) before
41004 -I$(srcdir)/$(OS)/$(ARCH).
41016 * tests/stat.test: dd obs= is not portable, use bs= instead.
41017 * tests/stat32-v.test: Likewise.
41018 * tests/stat64-v.test: Likewise.
41020 * tests/net-fd.test: Likewise.
41024 * tests/net-yy-accept.awk: Likewise.
41025 * tests/net-yy-connect.awk: Likewise.
41027 * tests/unix-yy-accept.awk: Likewise.
41028 * tests/unix-yy-connect.awk: Likewise.
41030 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41042 * linux/mips/syscallent-n32.h: Likewise.
41043 * linux/mips/syscallent-n64.h: Likewise.
41044 * linux/mips/syscallent-o32.h: Likewise.
41059 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41062 According to linux/arch/s390/include/uapi/asm/unistd.h, readdir is
41069 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41085 * linux/mips/syscallent-n32.h: Likewise.
41086 * linux/mips/syscallent-n64.h: Likewise.
41087 * linux/mips/syscallent-o32.h: Likewise.
41098 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41100 Create generic 32-bit syscallent.h.
41103 <asm-generic/unistd.h>, move these entries to a new file 32/syscallent.h
41107-e 's|^[[:space:]]*\({[^}]\+},\)[[:space:]]*/\*[[:space:]]\([[:space:]]*[0-9]\+\)[[:space:]]*\*/|[…
41112 remove generic 32-bit syscall entries, use designated initializers.
41117 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41126 printargs until special parsers for 31-bit 31 s390 emulation wrappers
41188 * linux/mips/syscallent-n32.h (semtimedop): Likewise.
41189 * linux/mips/syscallent-n64.h (semtimedop): Likewise.
41202 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41204 Create generic 64-bit syscallent.h.
41206 identical syscall entries described in <asm-generic/unistd.h>, move
41211 …sed -e 's|^[[:space:]]*\({[^}]\+},\)[[:space:]]*/\*[[:space:]]\([[:space:]]*[0-9]\+\)[[:space:]]*\…
41216 remove generic 64-bit syscall entries, use designated initializers.
41219 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41240 * linux/mips/syscallent-n32.h (move_pages): Set sys_func.
41241 * linux/mips/syscallent-n64.h (move_pages): Likewise.
41242 * linux/mips/syscallent-o32.h (mbind): Fix nargs.
41300 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41303 Reserve the same space for new syscalls on EABI as it is already
41309 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41327 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41330 indirect_ipccall used to guess whether currently decoded ipc syscall is
41331 an indirect subcall or not based on generic knowledge, while there is a
41338 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41356 2015-01-12 Dmitry V. Levin <ldv@altlinux.org>
41358 sh: fix typo introduced by commit v4.9-121-gd535b8b.
41361 2015-01-10 Dmitry V. Levin <ldv@altlinux.org>
41363 Fix fanotify_mark decoding on 32-bit architectures.
41364 The fanotify_mark syscall takes a 64-bit mask, and on 32-bit
41365 architectures it is split up into two syscall arguments.
41373 64-bit mask and two syscall arguments followed by it.
41380 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41384 V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY unless it is defined.
41388 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41390 tests: fix build with awk that does not support switch-case.
41391 The switch-case statement is a gawk-specific feature which is not
41392 necessarily available, let's use traditional if-else statements instead.
41394 * tests/uid.awk: Rewrite without switch-case statements.
41396 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41399 * xlat/timerfdflags.in [!TFD_CLOEXEC]: Check that O_CLOEXEC is defined.
41401 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41412 2015-01-09 Dmitry V. Levin <ldv@altlinux.org>
41418 Fix "make dist" regression introduced by commit v4.9-125-g120e5db.
41421 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41426 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41433 * linux/ioctlent.sh: Update the regexp that is used to lookup constants
41436 2015-01-08 Dmitry V. Levin <ldv@altlinux.org>
41439 * tests/stat32-v.test: Remove work files if the test is skipped.
41443 * tests/stat64-v.test: Try to set modification time of the sample file
41458 file.c: fix 32-bit stat decoding on 64-bit architectures.
41520 * file.c (realprintstat): Adjust format strings so that all 64-bit
41521 integer fields are printed with %llu format, and %u format is used for
41528 tests: check verbose decoding of 32-bit and 64-bit struct stat.
41531 * tests/stat32-v.test: New file.
41532 * tests/stat64-v.test: Likewise.
41535 (TESTS): Add stat32-v.test and stat64-v.test.
41538 2015-01-07 Dmitry V. Levin <ldv@altlinux.org>
41548 2015-01-07 Dmitry V. Levin <ldv@altlinux.org>
41552 decoding -- these fields are not defined in system headers.
41559 2015-01-07 Dmitry V. Levin <ldv@altlinux.org>
41561 tests: fix race condition in net-accept-connect based tests.
41562 Change all net-accept-connect based tests to use different unix domain
41565 * tests/net-accept-connect.c: Parametrize unix domain socket address.
41566 * tests/net-fd.test: Pass socket address to net-accept-connect.
41568 * tests/unix-yy.test: Likewise.
41569 * tests/unix-yy-accept.awk: Update regexps.
41570 * tests/unix-yy-connect.awk: Likewise.
41572 2014-12-31 Mike Frysinger <vapier@gentoo.org>
41583 2014-12-29 Dmitry V. Levin <ldv@altlinux.org>
41589 2014-12-29 Dmitry V. Levin <ldv@altlinux.org>
41592 Starting with commit v4.6-240-g5afdf12, nobody compiles this
41593 non-Linux code.
41598 2014-12-29 Dmitry V. Levin <ldv@altlinux.org>
41605 2014-12-28 Dmitry V. Levin <ldv@altlinux.org>
41610 2014-12-27 Dmitry V. Levin <ldv@altlinux.org>
41619 2014-12-27 Elliott Hughes <enh@google.com>
41622 The kernel doesn't actually care what tv_sec is set to --- it only checks
41625 2014-12-26 Dmitry V. Levin <ldv@altlinux.org>
41627 Make -yy output for inet sockets consistent with unix domain sockets.
41628 Prepend -yy output generated for INET/INET6 TCP/UDP sockets with their
41637 * tests/net-yy-accept.awk: Update to match new output format.
41638 * tests/net-yy-connect.awk: Likewise.
41640 2014-12-25 Dmitry V. Levin <ldv@altlinux.org>
41643 Unix domain socket address family name is not universally decoded as
41650 2014-12-25 Dmitry V. Levin <ldv@altlinux.org>
41657 * tests/unix-yy.test: Use it.
41661 2014-12-25 Masatake YAMATO <yamato@redhat.com>
41664 * tests/unix-yy-accept.awk: New file.
41665 * tests/unix-yy-connect.awk: New file.
41666 * tests/unix-yy.test: New test.
41668 (EXTRA_DIST): Add unix-yy-accept.awk and unix-yy-connect.awk.
41670 2014-12-25 Masatake YAMATO <yamato@redhat.com>
41672 Support unix domain sockets in -yy option.
41673 This change extends -yy option to handle unix domain sockets:
41683 $ ./strace -yy -e network nc -l -U /tmp/example.sock
41688 …8,"/tmp/example.sock"]>, {sa_family=AF_LOCAL, NULL}, [2]) = 4<UNIX:[14727246->14727245,"/tmp/examp…
41689 recvfrom(4<UNIX:[14727246->14727245,"/tmp/example.sock"]>, "INPUT\n", 8192, 0, NULL, NULL) = 6
41694 $ ./strace -yy -e network nc -U /tmp/example.sock
41700 sendto(3<UNIX:[14727245->14727246]>, "INPUT\n", 6, 0, NULL, 0) = 6
41712 2014-12-16 Masatake YAMATO <yamato@redhat.com>
41723 address. If the protocol name is NULL, resolve the address
41729 2014-12-16 Dmitry V. Levin <ldv@altlinux.org>
41734 That is, define two sets of parsers on architectures that support
41735 (either directly or via multiarch) 16-bit and 32-bit gid getgroups
41761 2014-12-16 Dmitry V. Levin <ldv@altlinux.org>
41763 Fix decoding of 16-bit *chown and [gs]et*[gu]id syscalls.
41765 directly or via multiarch) 16-bit and 32-bit uid/gid syscalls
41766 simultaneously. Since the code in these two sets is essentially
41767 the same and the key difference between them is the size of uid_t,
41782 (printuid): Check for (uid_t) -1.
41804 2014-12-16 Dmitry V. Levin <ldv@altlinux.org>
41820 2014-12-15 Dmitry V. Levin <ldv@altlinux.org>
41830 2014-12-15 Dmitry V. Levin <ldv@altlinux.org>
41838 2014-12-15 Dmitry V. Levin <ldv@altlinux.org>
41841 Since the test is virtually a FSM, rewrite it as a FSM.
41843 2014-12-14 Dmitry V. Levin <ldv@altlinux.org>
41845 printuid: fix uid_t decoding on 64-bit architectures.
41847 the latter is twice larger than uid_t on 64-bit architectures.
41851 * util.c (printuid): Likewise. When uid equals to -1, print "-1".
41862 2014-12-13 Dmitry V. Levin <ldv@altlinux.org>
41874 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41884 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41887 Since sys_prctl is referenced by syscallent files unconditionally,
41888 conditional compilation of sys_prctl depending on prctl availability is
41893 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41895 process.c: split struct_user_offsets into architecture-specific include files
41908 * process.c (struct_user_offsets): Split into architecture-specific
41919 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
41925 …for n in $(sed -n 's/^[[:space:]]*{[[:space:]]*uoff(\([a-z_0-9]\+\)),.*/\1/p' process.c |sort -u);…
41926 …sed -i 's/^\([[:space:]]*\){[[:space:]]*uoff('"$n"'),[[:space:]]*"offsetof(struct user,[[:space:]]…
41932 2014-12-11 Dmitry V. Levin <ldv@altlinux.org>
42157 2014-12-06 Dmitry V. Levin <ldv@altlinux.org>
42159 Implement full decoding of 64-bit capabilities.
42160 Unlike v1 capabilities which are 32-bit, v2 and v3 are 64-bit, but
42179 2014-12-06 Dmitry V. Levin <ldv@altlinux.org>
42181 Make parsers of capget and capset syscalls self-contained.
42194 2014-12-04 Dmitry V. Levin <ldv@altlinux.org>
42202 2014-12-04 Dmitry V. Levin <ldv@altlinux.org>
42243 2014-12-03 Dmitry V. Levin <ldv@altlinux.org>
42262 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42272 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42282 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42292 2014-12-02 Dmitry V. Levin <ldv@altlinux.org>
42295 Starting with commit v4.6-240-g5afdf12, nobody compiles this
42296 non-Linux code.
42302 2014-12-01 Dmitry V. Levin <ldv@altlinux.org>
42314 2014-12-01 Dmitry V. Levin <ldv@altlinux.org>
42317 Starting with commit v4.6-240-g5afdf12, nobody compiles this
42318 non-Linux code.
42324 2014-12-01 Dmitry V. Levin <ldv@altlinux.org>
42327 Starting with commit v4.6-240-g5afdf12, nobody compiles this
42328 non-Linux code.
42333 2014-11-27 Masatake YAMATO <yamato@redhat.com>
42335 Print protocol name of socket descriptors with -yy option.
42337 (or when this information is not available), -yy option prints
42338 the same <socket:[INODE]> information as -y option, e.g.
42340 $ strace -e sendto -yy ip l > /dev/null
42343 This change makes -yy output more informative: instead of just
42350 * tests/net-yy-accept.awk: Update to support protocol names.
42351 * tests/net-yy-connect.awk: Likewise.
42356 2014-11-21 Dmitry V. Levin <ldv@altlinux.org>
42359 MAXPATHLEN is defined to PATH_MAX, so replace the former with the latter.
42364 2014-11-21 Mike Frysinger <vapier@gentoo.org>
42367 The freeze/thaw ones are simple, but the trim is an interesting struct.
42372 2014-11-21 Dmitry V. Levin <ldv@altlinux.org>
42375 Since <sys/uio.h> is standardized by POSIX and is present in all
42388 2014-11-21 Dmitry V. Levin <ldv@altlinux.org>
42395 2014-11-20 Mike Frysinger <vapier@gentoo.org>
42400 2014-11-11 Helge Deller <deller@gmx.de>
42416 2014-11-11 Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
42419 The output format of the stack trace is supposed to be different
42427 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x5e000
42428 > /lib/libc-2.10.1.so(_IO_file_doallocate+0x8c) [0x68a38]
42429 > /lib/libc-2.10.1.so(_IO_doallocbuf+0x6c) [0x78574]
42430 > /lib/libc-2.10.1.so(_IO_file_overflow+0x184) [0x7763c]
42431 > /lib/libc-2.10.1.so(_IO_file_xsputn+0x88) [0x76aac]
42432 > /lib/libc-2.10.1.so(_IO_puts+0xc8) [0x6b64c]
42437 > /lib/libc-2.10.1.so(__libc_init_first+0x30c) [0x1f84c]
42438 > /lib/libc-2.10.1.so(__libc_start_main+0xd8) [0x1f9f8]
42442 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x5e000
42443 > /lib/libc-2.10.1.so(_IO_file_doallocate+0x8c) [0x68a38]
42444 > /lib/libc-2.10.1.so(_IO_doallocbuf+0x6c) [0x78574]
42445 > /lib/libc-2.10.1.so(_IO_file_overflow+0x184) [0x7763c]
42446 > /lib/libc-2.10.1.so(_IO_file_xsputn+0x88) [0x76aac]
42447 > /lib/libc-2.10.1.so(_IO_puts+0xc8) [0x6b64c]
42452 > /lib/libc-2.10.1.so(__libc_init_first+0x30c) [0x1f84c]
42453 > /lib/libc-2.10.1.so(__libc_start_main+0xd8) [0x1f9f8]
42455 Acked-by: Masatake YAMATO <yamato@redhat.com>
42457 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42469 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42472 This patch is similar to what I did in commit
42475 This one is for sendmmsg and recvmmsg system calls.
42484 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42486 Use the definition of struct mmsghdr if it is defined in build environment
42487 mmsghrd structure type is defined locally in printmmsghdr function.
42490 supporting "-e write=set" and "-e read=set" option for sendmmsg and
42494 if configure reports it is available, falling back to the old local
42501 2014-11-11 Masatake YAMATO <yamato@redhat.com>
42504 This patch is an initial step for supporting "-e write=set" and
42505 "-e read=set" option for sendmmsg and recvmmsg system calls.
42507 Coverting a data of msghdr32 to msghdr is needed both for
42510 function named copy_from_msghdr32 is introduced.
42516 2014-11-11 Dmitry V. Levin <ldv@altlinux.org>
42528 2014-11-11 Lubomir Rintel <lkundrak@v3.sk>
42531 While most of ioctl-related kernel headers are now exported by kernel's
42534 therefore don't contain some internal headers we need. The solution is
42538 2014-11-04 Lubomir Rintel <lkundrak@v3.sk>
42551 2014-11-04 Philippe De Muyter <phdm@macqel.be>
42553 Implement Video4Linux video-input ioctls decoder.
42554 Introduce v4l2.c, a decoder for the arguments of the video-input subset
42555 of the v4l2 ioctl's. This is a combination of
42556 - previous work by Peter Zotov <whitequark@whitequark.org>, found at
42557 https://gist.githubusercontent.com/whitequark/1263207/raw/strace-4.6-v4l2-ioctls.patch
42558 - previous work by William Manley <will@williammanley.net>, found at
42560 - forward port, additions and fixes by Philippe De Muyter <phdm@macqel.be>
42562 As v4l2 is a moving target, I have made v4l2.c compilable with ancient
42577 2014-11-04 Dmitry V. Levin <ldv@altlinux.org>
42586 2014-11-04 Dmitry V. Levin <ldv@altlinux.org>
42589 For two ioctl entries with the same code, if one's name is a prefix
42596 * linux/ioctlent-filter.awk: Remove.
42597 * Makefile.am (EXTRA_DIST): Remove linux/ioctlent-filter.awk.
42598 ($(ioctlent_h)): Don't use linux/ioctlent-filter.awk.
42600 2014-11-03 Dmitry V. Levin <ldv@altlinux.org>
42605 2014-11-01 Masatake YAMATO <yamato@redhat.com>
42608 Here is an example session:
42610 $ ./strace -e write=all ip link change dev enp0s25 mtu 1501 > /dev/null
42618 $ ./strace -e read=all ip link show > /dev/null
42632 2014-10-31 Maarten ter Huurne <maarten@treewalker.org>
42636 This approach was already used in process.c, so I assume it is safe.
42642 2014-10-31 Dmitry V. Levin <ldv@altlinux.org>
42647 2014-10-31 Mike Frysinger <vapier@gentoo.org>
42650 The decoding of SIOCSIFNAME is incorrect. It does not use
42656 2014-10-31 Mike Frysinger <vapier@gentoo.org>
42665 2014-10-03 Elliott Hughes <enh@google.com>
42668 On Android, 32-bit arm and x86 use __kernel_mode_t (an unsigned short)
42676 2014-09-29 Dmitry V. Levin <ldv@altlinux.org>
42690 2014-09-29 Dmitry V. Levin <ldv@altlinux.org>
42695 Reported-by: Steven Honeyman <stevenhoneyman@gmail.com>
42697 2014-09-23 Dmitry V. Levin <ldv@altlinux.org>
42703 * tests/net-fd.test: Do not check for rm.
42705 * tests/scm_rights-fd.test: Likewise.
42709 tests: add a test for -yy option.
42710 * tests/net-yy.test: New test.
42711 * tests/inet-accept-connect-send-recv.c: New file.
42713 * tests/net-yy-accept.awk: Likewise.
42714 * tests/net-yy-connect.awk: Likewise.
42715 * tests/.gitignore: Add inet-accept-connect-send-recv,
42716 netlink_inet_diag, *.tmp-*, and *.tmp.*.
42717 * tests/Makefile.am (check_PROGRAMS): Add inet-accept-connect-send-recv
42719 (TESTS): Add net-yy.test.
42720 (EXTRA_DIST): Add net-yy-accept.awk and net-yy-connect.awk.
42722 2014-09-22 Dmitry V. Levin <ldv@altlinux.org>
42737 * xlat/fsmagic.in: Sort by value and mark as not NULL-terminated.
42745 2014-09-21 Dmitry V. Levin <ldv@altlinux.org>
42751 2014-09-17 Dmitry V. Levin <ldv@altlinux.org>
42753 Add -yy option: print ip and port associated with socket descriptors.
42754 When two ore more -y options are given, print local and remote ip:port
42765 * strace.1: Document -yy option.
42769 2014-09-17 Vicente Olivert Riera <vincent@gentoo.org>
42789 2014-09-17 Dmitry V. Levin <ldv@altlinux.org>
42791 Fix compilation warnings reported by gcc -Wsign-compare.
42792 * configure.ac (gl_WARN_ADD): Add -Wsign-compare.
42858 2014-09-11 Dmitry V. Levin <ldv@altlinux.org>
42866 getdents, getdents64: fix potential out-of-bounds read issues.
42875 2014-09-10 Dmitry V. Levin <ldv@altlinux.org>
42884 2014-09-09 Dmitry V. Levin <ldv@altlinux.org>
42891 Reported-by: Zubin Mithra <zubin.mithra@gmail.com>
42893 2014-09-08 Dmitry V. Levin <ldv@altlinux.org>
42906 2014-08-19 Dmitry V. Levin <ldv@altlinux.org>
42908 maint: post-release administrivia.
42911 2014-08-15 Dmitry V. Levin <ldv@altlinux.org>
42915 * debian/changelog: 4.9-1.
42916 * strace.spec: 4.9-1.
42919 * debian/changelog: Sync with 4.8-1.1.
42922 * strace.spec: Sync with 4.8-5.
42926 2014-08-15 Mike Frysinger <vapier@gentoo.org>
42940 * linux/mips/syscallent-n32.h: Likewise.
42941 * linux/mips/syscallent-n64.h: Add getdents64/sched_setattr/sched_getattr/
42943 * linux/mips/syscallent-o32.h: Add sched_setattr/sched_getattr/renameat2.
42960 2014-08-14 Mike Frysinger <vapier@gentoo.org>
42969 2014-08-14 Mike Frysinger <vapier@gentoo.org>
42976 Add the missing syscalls before preadv which also re-aligns all the
42981 2014-08-14 Mike Frysinger <vapier@gentoo.org>
42985 SA_RESTORER. Deploy the same trick that HPPA is using to make the
42988 * signal.c (SA_RESTORER): Undefine when IA64 is defined.
42991 2014-08-12 Dmitry V. Levin <ldv@altlinux.org>
42993 tests: skip detach-stopped.test when PTRACE_SEIZE doesn't work.
42994 detach-stopped.test is known to fail when PTRACE_SEIZE is not available,
42997 * tests/detach-stopped.test: Check for "strace -d" output and skip the
43000 2014-08-11 Erik Johansson <erik@ejohansson.se>
43005 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43017 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43024 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43028 set -e
43039 The problem is that while `set -e` is disabled for the body of the
43042 is non-zero, the script ends up failing overall.
43047 * tests/detach-running.test (cleanup): Add return 0.
43048 * tests/detach-sleeping.test (cleanup): Likewise.
43049 * tests/detach-stopped.test (cleanup): Likewise.
43051 2014-08-11 Mike Frysinger <vapier@gentoo.org>
43059 2014-08-10 Mike Frysinger <vapier@gentoo.org>
43062 Previous commit here re-added the bugs trying to be fixed due to a
43068 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43078 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43086 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43096 * signal.c (SA_RESTORER): Undefine when HPPA is defined.
43099 2014-08-09 Mike Frysinger <vapier@gentoo.org>
43107 2014-08-08 Dmitry V. Levin <ldv@altlinux.org>
43109 Prepare for -yy option support.
43112 (init): Handle repeated -y option.
43114 2014-08-07 Dmitry V. Levin <ldv@altlinux.org>
43122 2014-08-07 Dmitry V. Levin <ldv@altlinux.org>
43137 2014-08-06 Dmitry V. Levin <ldv@altlinux.org>
43143 * tests/net-fd.test: Update.
43145 2014-08-01 Mike Frysinger <vapier@gentoo.org>
43154 2014-06-18 Max Filippov <jcmvbkbc@gmail.com>
43157 Otherwise ptrace syscall argument decoding is wrong:
43168 2014-06-18 Dmitry V. Levin <ldv@altlinux.org>
43170 Document -k option as experimental.
43171 strace -k does not produce a reliable output on all supported
43172 configurations yet, even basic strace-k.test is known to fail
43175 * strace.c (usage): Document -k option as experimental.
43179 2014-06-18 Dmitry V. Levin <ldv@altlinux.org>
43181 tests: robustify -k test.
43182 Split stack-fcall.c into several compilation units so that intermediate
43185 * tests/stack-fcall.c: Move intermediate functions to ...
43186 * tests/stack-fcall-*.c: ... new files.
43187 * tests/Makefile.am (stack_fcall_SOURCES): Add stack-fcall-*.c.
43189 2014-06-13 Dmitry V. Levin <ldv@altlinux.org>
43191 tests: enhance -k test.
43194 * tests/stack-fcall.c (f1): Rename to f3.
43196 * tests/strace-k.test: Update.
43198 2014-06-13 Dmitry V. Levin <ldv@altlinux.org>
43202 save its PROT_EXEC bit and skip the mapping if it is not set.
43214 2014-06-12 Dmitry V. Levin <ldv@altlinux.org>
43225 2014-06-11 Luca Clementi <luca.clementi@gmail.com>
43229 unwind_capture_stacktrace): Disable stack tracing of non-default
43232 2014-06-05 Dmitry V. Levin <ldv@altlinux.org>
43240 * unwind.c (print_stacktrace): Fix another off-by-one error in binary search.
43247 2014-06-05 Dmitry V. Levin <ldv@altlinux.org>
43249 unwind: fix build on 32-bit architectures.
43250 Fix compilation warnings in unwind.c on 32-bit architectures.
43251 On some architectures getuid is actually getuid32, so change the test
43257 * tests/stack-fcall.c (f1): Use getpid instead of getuid.
43258 * tests/strace-k.test: Likewise.
43260 2014-06-05 Dmitry V. Levin <ldv@altlinux.org>
43262 tests: robustify -w option test.
43263 * tests/count.test: Allow nanosleep to spend a bit less time than 1 second.
43265 2014-06-04 Dmitry V. Levin <ldv@altlinux.org>
43274 2014-06-04 Zubin Mithra <zubin.mithra@gmail.com>
43285 2014-06-03 Dmitry V. Levin <ldv@altlinux.org>
43289 Warn about flags that have no effect with -c.
43290 * strace.c (init): Issue a warning if -i, -k, -r, -t, -T, or -y is used
43291 along with -c.
43299 2014-06-03 Dmitry V. Levin <ldv@altlinux.org>
43304 (strace, strace-udeb): Add x32 to architecture list.
43306 (strace, strace-udeb): Add or1k to architecture list.
43308 (strace, strace-udeb): Add arm64 to architecture list,
43314 2014-06-03 Dmitry V. Levin <ldv@altlinux.org>
43317 $ groff -ww -mandoc -z strace.1
43321 Change remaining '-' as minus to '\-'.
43324 Based on patch by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
43327 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43329 unwind: tests: add a test for -k option.
43330 * tests/stack-fcall.c: New test target.
43331 * tests/strace-k.test: New test driver.
43332 * tests/Makefile.am (check_PROGRAMS): Add stack-fcall.
43333 (TESTS): Add strace-k.test.
43334 * tests/.gitignore: Add stack-fcall.
43336 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43343 The patch is simpler than its older version(v3). The value of
43344 hide_log_until_execve is just ignored. I found the value is nothing
43345 to do with this patch. unwind_cache_invalidate is mentioned only
43349 2014-05-30 Dmitry V. Levin <ldv@altlinux.org>
43356 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43360 processed in kernel. Typical one is execve. Some system calls require
43364 appropriate syscall handlers. However, it is difficult to keep the
43368 A more generic way to implement this is to flag all syscalls that
43377 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43380 Here is the benchmark of the dwarf cache.
43395 ./strace -o /dev/null -k a.out
43409 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43412 When a file mmap'ed to the target process is unlink'ed, backtracing the
43414 "backtracing_error". To avoid confusion, the message is changed to
43417 Here is the reproducer:
43419 $ cat ./p-deleted.c
43426 $ strace -e unlink -k ./p-deleted
43427 unlink("./p-deleted") = 0
43428 > /usr/lib64/libc-2.18.so(unlink+0x7) [0xe7f17]
43429 > /home/yamato/var/strace/t_unwind/p-deleted (deleted)(+0x0) [0x575]
43430 > /usr/lib64/libc-2.18.so(__libc_start_main+0xf5) [0x21d65]
43434 p-deleted is deleted therefore backtracing_error is reported. This
43439 Here is the output of this patch:
43441 $ strace -e unlink -k ./p-deleted
43442 unlink("./p-deleted") = 0
43443 > /usr/lib64/libc-2.18.so(unlink+0x7) [0xe7f17]
43444 > /home/yamato/var/strace/t_unwind/p-deleted (deleted)(+0x0) [0x575]
43445 > /usr/lib64/libc-2.18.so(__libc_start_main+0xf5) [0x21d65]
43449 This solution is not perfect: if a file is unlink'ed after making the
43454 string is replaced with strlen as suggested by Dmitry Levin.
43461 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43464 captured stacktrace is printed in unwind_tcb_fin if tcp->queue is not
43466 unwind_tcb_fin is moved to the top of droptcb.
43468 This is implicitly suggested by Dmitry Levin in patch review process.
43470 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43475 the mapping was changed only by the tcb. However, this assumption is
43476 incorrect if the target application is multi-threaded; more than two
43482 is incremented each time a process enters a syscall that can modify its
43488 This implementation is inefficient. If strace attaches two processes
43490 triggered by another tcb's mmap system call is not necessary.
43492 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43495 This is the second step for splitting capturing from printing.
43497 New `queue' field is added to tcb. Captured stacktrace is stored here.
43498 The field is initialized/finalized at unwind_tcb_init/unwind_tcb_fin.
43500 New API function unwind_capture_stacktrace is added. This function
43502 tcb. It's printing is delayed to the next call of
43505 unwind_print_stacktrace is extended. Now it checks queue field of
43507 captured stack trace, the latter is printed using stracktrace_walker.
43512 Here is the difference of output with/without patch:
43515 execve("./test-fork", ["./test-fork"], [/* 56 vars */]) = 0
43516 > /usr/lib64/ld-2.18.so(check_one_fd.part.0+0x82) [0x11f0]
43519 execve("./test-fork", ["./test-fork"], [/* 54 vars */]) = 0
43520 > /usr/lib64/libc-2.18.so(execve+0x7) [0xbcd27]
43525 > /usr/lib64/libc-2.18.so(__libc_start_main+0xf5) [0x21d65]
43537 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43543 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43546 In current implementation, the stack trace is captured and printed at
43557 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43571 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43574 free_libunwind_ui is expected to release all unwind related resources
43580 2014-05-30 Masatake YAMATO <yamato@redhat.com>
43587 * unwind.c (print_stacktrace): Fix off-by-one error in binary search.
43589 2014-05-30 Luca Clementi <luca.clementi@gmail.com>
43591 Add -k option to print stack trace after each syscall.
43593 -k option is specified. It is implemented using libunwind to unwind the
43596 Based on the code that was originally taken from strace-plus
43599 * configure.ac: Add --with-libunwind option. Check libunwind support.
43609 * strace.1: Document -k option.
43611 2014-05-30 Dmitry V. Levin <ldv@altlinux.org>
43649 2014-05-30 Dmitry V. Levin <ldv@altlinux.org>
43657 * make-dist: Likewise.
43660 2014-05-30 Mike Frysinger <vapier@gentoo.org>
43669 2014-05-30 Dmitry V. Levin <ldv@altlinux.org>
43671 tests: fix SCM_RIGHTS test for big-endian systems.
43674 * tests/scm_rights-fd.test: Update grep patterns.
43680 * tests/scm_rights-fd.test: New test.
43682 (TESTS): Add scm_rights-fd.test.
43685 tests: add a test for -c and -w options.
43689 2014-05-29 Mark Hills <Mark.Hills@framestore.com>
43692 Time spent in system time is not useful where a syscall depends on some
43693 non-CPU resource, eg. typically open() or stat() to a network drive.
43695 This patch adds a new flag (-w) to produce a summary of the time
43699 are not CPU-bound.
43701 2014-05-29 Dmitry V. Levin <ldv@altlinux.org>
43716 2014-05-28 Dmitry V. Levin <ldv@altlinux.org>
43720 as the string returned by gethostname syscall, is not a pathname, so
43721 printpathn is not the right method for its decoding.
43727 2014-05-21 James Hogan <james.hogan@imgtec.com>
43730 When strace is built with large file support definitions in CFLAGS (as
43731 may be provided by buildroot) the C library headers may expose a 64-bit
43733 interface are only 32-bit. The SIZEOF_RLIM_T will then be 8 which
43736 This is fixed by replacing unreliable SIZEOF_RLIM_T based checks with
43739 2014-05-13 Masatake YAMATO <yamato@redhat.com>
43747 2014-05-12 Dmitry V. Levin <ldv@altlinux.org>
43765 2014-04-17 Dmitry V. Levin <ldv@altlinux.org>
43771 Reported-by: Марк Коренберг <socketpair@gmail.com>
43773 2014-04-17 Dmitry V. Levin <ldv@altlinux.org>
43780 2014-04-17 Dmitry V. Levin <ldv@altlinux.org>
43794 * linux/mips/syscallent-o32.h: Likewise.
43799 Reported-by: Dima Kogan <dima@secretsauce.net>
43801 2014-04-16 Dmitry V. Levin <ldv@altlinux.org>
43810 2014-04-10 Dmitry V. Levin <ldv@altlinux.org>
43823 2014-04-10 Denys Vlasenko <dvlasenk@redhat.com>
43825 Make int3 example in comments more cut-n-pastable.
43827 after cut-n-pasting it into a file, there is no need
43831 2014-04-09 Dmitry V. Levin <ldv@altlinux.org>
43848 2014-04-09 Elliott Hughes <enh@google.com>
43850 x86-64: decode clone LDT user_desc entries for x86 processes.
43857 2014-04-09 Dmitry V. Levin <ldv@altlinux.org>
43865 2014-04-09 Elliott Hughes <enh@google.com>
43867 x86-64: fix clone(2) argument order for x86 processes.
43868 Without this patch, strace claims that parent_tidptr == tls, which is
43869 clearly wrong. It is expected that parent_tidptr == child_tidptr.
43874 2014-04-06 Elliott Hughes <enh@google.com>
43877 We need to handle this situation more like x86-64. 32-bit arm and i386
43879 packed. Additionally, on aarch64 the 32-bit personality is personality 0.
43881 2014-03-20 Dmitry V. Levin <ldv@altlinux.org>
43884 OABI is rarely used in ARM EABI systems nowadays, so disable its support
43885 by default. Add --enable-arm-oabi option to enable ARM OABI support.
43887 * configure.ac: New option --enable-arm-oabi.
43891 2014-03-12 Elliott Hughes <enh@google.com>
43899 2014-03-11 Masatake YAMATO <yamato@redhat.com>
43907 Acked-by: Mike Frysinger <vapier@gentoo.org>
43909 2014-03-11 Dmitry V. Levin <ldv@altlinux.org>
43912 The only supported domain for socketpair syscall is AF_UNIX, so
43913 no decoding related to other domains is required for socketpair.
43916 print the protocol argument as is.
43918 2014-03-11 Dmitry V. Levin <ldv@altlinux.org>
43933 2014-03-10 Elliott Hughes <enh@google.com>
43937 The 'pid' is actually a POSIX timer id, and the 'uid' is actually the
43941 2014-03-03 Elliott Hughes <enh@google.com>
43944 If an aarch64 strace is tracing a process using the arm personality, it
43945 also needs to call the shuffle_scno function for the ARM-specific
43949 (get_scno) [AARCH64]: Call shuffle_scno when the tracee is in 32-bit mode.
43951 2014-03-03 Dmitry V. Levin <ldv@altlinux.org>
43956 Do not assume that sizeof(off_t) < sizeof(long long) when F_SETLK64 is
43968 2014-03-01 Dmitry V. Levin <ldv@altlinux.org>
43972 and therefore the code implementing their decoding is useless.
43973 Besides that, F_FREESP64 decoding is too complicated to support.
43979 2014-02-28 Elliott Hughes <enh@google.com>
43981 Add multi-personality support to struct old_sigaction decoding.
43982 struct sigaction is another structure that contains members
43983 whose size differs between 32-bit and 64-bit personalities.
43986 [HAVE_SIGACTION] (decode_old_sigaction): Decode 32-bit struct
43987 old_sigaction on a 64-bit host.
43989 2014-02-28 Elliott Hughes <enh@google.com>
43993 To correctly decode a 32-bit process' s struct stat64 we need
43994 HAVE_STAT64, but then the build fails because there is no struct stat64.
43995 Luckily, the aarch64 struct stat is structurally equivalent to the arm
44000 2014-02-28 Dmitry V. Levin <ldv@altlinux.org>
44004 v4.6-240-g5afdf12 that removed its last non-Linux users.
44009 Reported-by: Elliott Hughes <enh@google.com>
44011 2014-02-27 Dmitry V. Levin <ldv@altlinux.org>
44013 Add multi-personality support to stack_t decoding.
44014 stack_t is one of many structures that contain members
44015 whose size differs between 32-bit and 64-bit personalities.
44017 * signal.c (print_stack_t): Decode 32-bit stack_t on a 64-bit host.
44019 Reported-by: Elliott Hughes <enh@google.com>
44021 2014-02-27 Dmitry V. Levin <ldv@altlinux.org>
44024 The sigset_t provided by libc is not quite convenient.
44025 In glibc, sigset_t is an array with space for 1024 bits, which is much
44028 In bionic libc, LP32 sigset_t is only 4 bytes long, which is less than
44031 With this change, signal mask is decoded without use of intermediate
44033 its inflated sigset_t, and enables build with libcs where sigset_t is
44038 New implementation is based on popcount and next_set_bit() so it's
44052 2014-02-26 Dmitry V. Levin <ldv@altlinux.org>
44065 Reported-by: Elliott Hughes <enh@google.com>
44067 2014-02-25 James Yang <james.yang@freescale.com>
44069 powerpc64: fix 64-bit process detection on embedded.
44070 * syscall.c (get_scno) [POWERPC64]: Fix 64-bit process detection
44073 2014-02-25 Dmitry V. Levin <ldv@altlinux.org>
44075 Do not compile scsi ioctl decoding if <scsi/sg.h> is not available.
44083 Reported-by: Elliott Hughes <enh@google.com>
44085 2014-02-14 Dmitry V. Levin <ldv@altlinux.org>
44087 Revert "Add support for Altera's Nios-II softcore architecture"
44092 syscall ABI is in progress.
44096 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
44101 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
44103 Fix sigaction reporting on non-x86 architectures.
44104 If SA_RESTORER is not defined by libc headers but defined by kernel
44108 * signal.c [!SA_RESTORER]: Define to ASM_SA_RESTORER if the latter is
44111 2014-02-08 Dmitry V. Levin <ldv@altlinux.org>
44115 because it conflicts with libc headers, but SA_RESTORER is needed in
44116 signal.c, so SA_RESTORER value is forwarded from <asm/signal.h> to
44119 * configure.ac (ASM_SA_RESTORER): Define if SA_RESTORER is defined
44122 2014-02-07 Dmitry V. Levin <ldv@altlinux.org>
44125 Fix "dereferencing type-punned pointer will break strict-aliasing rules"
44126 warning introduced by commit v4.8-54-g670b21b.
44128 * signal.c (sys_sigreturn) [ARM]: Avoid dereferencing type-punned pointers.
44130 2014-02-06 Dmitry V. Levin <ldv@altlinux.org>
44135 2014-02-06 Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
44137 Add support for Altera's Nios-II softcore architecture.
44138 This commit adds strace support for Altera's Nios-II official
44139 kernel port as found in git://git.rocketboards.org/linux-socfpga.git
44141 Notice that this an out-of-tree kernel architectural port, and uses the
44142 legacy (non-generic) system call ABI. In particular, the port doesn't
44143 support PTRACE_GETREGSET, so the implementation is based on PTRACE_GETREGS.
44146 syscall ABI and PTRACE_GETREGSET, if the nios2 architecure is ever
44147 mainlined, the strace support will have to be re-factored accordingly.
44162 Acked-by: Mike Frysinger <vapier@gentoo.org>
44164 2014-02-05 Dmitry V. Levin <ldv@altlinux.org>
44256 2014-02-05 Dmitry V. Levin <ldv@altlinux.org>
44261 Suggested-by: Mike Frysinger <vapier@gentoo.org>
44263 2014-02-04 Stefan Sørensen <stefan.sorensen@spectralink.com>
44267 * ioctl.c (ioctl_decode): Call ptp_ioctl when code is '='.
44273 2014-02-03 Stefan Sørensen <stefan.sorensen@spectralink.com>
44287 2014-02-02 Philippe Ombredanne <pombredanne@nexb.com>
44296 * tests/net-fd.test: New test for socket descriptor arguments decoding.
44297 * tests/Makefile.am (TESTS): Add net-fd.test.
44298 (net-fd.log): New dependency on net.log.
44300 2014-02-02 Dmitry V. Levin <ldv@altlinux.org>
44306 * tests/detach-running: Rename to detach-running.test.
44307 * tests/detach-sleeping: Rename to detach-sleeping.test.
44308 * tests/detach-stopped: Rename to detach-stopped.test.
44314 * tests/strace-f: Rename to strace-f.test.
44318 2014-01-31 Mike Frysinger <vapier@gentoo.org>
44321 This syncs with the defines as available in linux-3.13.
44331 2014-01-08 Chris Dearman <chris.dearman@imgtec.com>
44339 big endian and x86-64.
44345 2014-01-08 Dmitry V. Levin <ldv@altlinux.org>
44353 2014-01-08 Dmitry V. Levin <ldv@altlinux.org>
44357 decoding sometimes produces incorrect output. This test is expected
44370 2014-01-05 Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
44375 Acked-by: Mike Frysinger <vapier@gentoo.org>
44377 2013-12-31 Mike Frysinger <vapier@gentoo.org>
44389 2013-12-31 Mike Frysinger <vapier@gentoo.org>
44394 2013-11-13 Dmitry V. Levin <ldv@altlinux.org>
44400 2013-11-13 Dmitry V. Levin <ldv@altlinux.org>
44404 is known to provide a valid prototype for ptrace, and use a homegrown
44406 glibc is not the only libc available, so let's use ptrace prototype from
44411 NEED_PTRACE_PROTOTYPE_WORKAROUND is defined.
44413 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44416 There is only one place left in the code where strace guesses whether
44418 do there is to check for _LARGEFILE64_SOURCE - the macro provided by
44425 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44430 always defined by glibc when _GNU_SOURCE is defined.
44435 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44437 Define printflock64 only if it is referenced by other code.
44443 these constants are defined and differ from their non-64bit versions.
44445 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44455 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44466 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44477 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44486 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44495 2013-11-12 Dmitry V. Levin <ldv@altlinux.org>
44509 2013-11-11 Dmitry V. Levin <ldv@altlinux.org>
44515 2013-11-11 Dmitry V. Levin <ldv@altlinux.org>
44524 2013-11-11 Dmitry V. Levin <ldv@altlinux.org>
44526 Include <sys/poll.h> only if there is no <poll.h>
44527 * pathtrace.c: Do not include <sys/poll.h> if <poll.h> is available.
44536 2013-11-11 Denys Vlasenko <dvlasenk@redhat.com>
44542 Because we want to properly decode 32-bit aio calls
44543 by 64-bit strace. For that, we need more definitions than
44546 Keeping our local 32-bit compat defs in sync with libaio.h
44547 _without seeing libaio structs_ is hard/more bug prone.
44548 A smaller benefit is that we don't need libaio installed.
44550 2013-11-11 Denys Vlasenko <dvlasenk@redhat.com>
44559 Since function of the helper is different now,
44560 it is renamed to tprint_lio_opcode().
44562 2013-11-11 Denys Vlasenko <dvlasenk@redhat.com>
44570 2013-11-09 Denys Vlasenko <dvlasenk@redhat.com>
44574 Fix select decoding on e.g. 32-bit ppc process by 64-bit strace.
44581 2013-11-06 Denys Vlasenko <dvlasenk@redhat.com>
44585 2013-11-05 Dr. David Alan Gilbert <dave@treblig.org>
44590 2013-11-05 Dmitry V. Levin <ldv@altlinux.org>
44594 or equal to FD_SETSIZE is passed to FD_ISSET. Select family syscalls,
44602 2013-11-05 Dmitry V. Levin <ldv@altlinux.org>
44606 syscall. When arg[0] is negative, do not attempt to fetch and decode
44611 2013-11-05 Denys Vlasenko <dvlasenk@redhat.com>
44618 2013-11-05 Dr. David Alan Gilbert <dave@treblig.org>
44623 where arg[0] is not sanitized. This segfaults if arg[0] is huge
44628 2013-09-26 Ali Polatel <alip@exherbo.org>
44631 Since glibc-2.18~39 <sys/ptrace.h> defines ptrace_peeksiginfo_args
44642 2013-09-11 Vineet Gupta <Vineet.Gupta1@synopsys.com>
44649 The syscall ABI is asm-generic/unistd.h based (so no legacy syscalls),
44666 Acked-by: Mike Frysinger <vapier@gentoo.org>
44668 2013-09-11 William Manley <william.manley@youview.com>
44676 * linux/mips/syscallent-o32.h: Set the number of sync_file_range
44679 2013-09-11 Mike Frysinger <vapier@gentoo.org>
44693 * linux/mips/syscallent-o32.h: Likewise.
44701 Acked-by: Chris Metcalf <cmetcalf@tilera.com> [for tile]
44703 2013-09-11 Dmitry V. Levin <ldv@altlinux.org>
44706 Fix "dereferencing type-punned pointer will break strict-aliasing rules"
44707 warnings introduced by commit v4.8-52-gb51f364.
44709 * signal.c (sys_sigreturn): Avoid dereferencing type-punned pointers.
44711 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44718 is fine:
44720 IA64: 64-bit arch, all 64 signals fit in one word in any case.
44721 S390[x]: sc.oldmask is a sigset_t on kernel side,
44723 TILE: uc.uc_sigmask is a sigset_t on kernel side,
44726 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44737 &i386_regs.esp is a pointer to long, not unsigned long.
44740 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44750 sys_sigprocmask: print_sigset -> print_sigset_addr_len(current_wordsize),
44754 instead of open-coding it.
44756 sys_rt_sigprocmask: use print_sigset_addr_len instead of open-coding it.
44761 do_signalfd: print_sigset -> print_sigset_addr_len. This fixes
44766 copy_sigset_len() is folded into its only user, print_sigset_addr_len(),
44767 and copy_sigset() is gone.
44771 and where it allows word-sized sigset_size ([rt_]sigpending).
44773 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44782 Now we always copy NSIG / 8 bytes (which is 8 bytes, or 16 on mips).
44784 2013-07-18 Denys Vlasenko <dvlasenk@redhat.com>
44791 the only usage is:
44794 which is safe even if NSIG is way too big - signame(i)
44795 returns a well-formed string for any i.
44797 In signal.c, memcpy(&sigset, &sc.sc_mask, NSIG / 8) is used by
44799 usage is:
44802 Its only use is
44807 2013-07-17 Denys Vlasenko <dvlasenk@redhat.com>
44816 2013-07-16 Denys Vlasenko <dvlasenk@redhat.com>
44821 2013-07-16 Denys Vlasenko <dvlasenk@redhat.com>
44824 This includes decoding of 32-bit sigreturn by 64-bit strace,
44829 2013-07-12 Anton Blanchard <anton@samba.org>
44838 2013-07-12 Anton Blanchard <anton@samba.org>
44844 powerpc: fix iflag build issue (static -> extern)
44846 2013-07-10 Denys Vlasenko <dvlasenk@redhat.com>
44849 This eliminates some rare bugs, such as post-execve SIGTRAP
44853 2013-07-08 Denys Vlasenko <dvlasenk@redhat.com>
44855 If -o|logger is in use, exit trace loop if nprocs == 0.
44861 2013-07-07 Denys Vlasenko <dvlasenk@redhat.com>
44868 scno = syscall_mode unless syscall_mode == -ENOSYS
44869 (if -ENOSYS, scn is retrieved by decoding current insn)
44872 syscall_mode = scno unless syscall_mode == -ENOSYS
44878 syscall_mode = scno unless syscall_mode == -ENOSYS
44879 if (WAITEXECVE && gpr2 in (-ENOSYS, scno)) gpr2 = 0;
44881 gpr2 is retval
44884 regardless whether GPR2 is -ENOSYS or not, syscall_mode is always
44887 On sysexit path, syscall mode is never used.
44889 Therefore, syscall_mode variable is deleted. grp2 is read from
44890 GPR2 register in get_scno, redundant read in entry fixup is removed.
44893 gpr2 variable is renamed s390_gpr2 to match the convention used
44896 2013-07-04 Denys Vlasenko <dvlasenk@redhat.com>
44902 2013-07-02 Denys Vlasenko <dvlasenk@redhat.com>
44911 2013-07-02 Denys Vlasenko <dvlasenk@redhat.com>
44922 This change makes it so that assignment is done only in parent.
44924 2013-07-01 Denys Vlasenko <dvlasenk@redhat.com>
44930 Remove ia64-specific printing of current address on signal delivery.
44931 The address is printed anyway by printleader() if -i is active.
44936 2013-06-30 Denys Vlasenko <dvlasenk@redhat.com>
44940 2013-06-29 Denys Vlasenko <dvlasenk@redhat.com>
44944 2013-06-28 Denys Vlasenko <dvlasenk@redhat.com>
44951 POWERPC: read ppc_regs.nip if -i.
44960 2013-06-26 Anton Blanchard <anton@samba.org>
44968 (get_regs): Call powerpc_getregs_old if PTRACE_GETREGS is not supported.
44970 2013-06-26 Anton Blanchard <anton@samba.org>
44980 2013-06-26 Denys Vlasenko <dvlasenk@redhat.com>
44987 Now it also contains a tested example of i686 build on 64-bit host.
44989 In -f mode, do not assume that new pid is stopped - handle exits too.
44991 2013-06-26 Denys Vlasenko <dvlasenk@redhat.com>
44997 After this change, strace_child is set to nonzero only
45000 2013-06-26 Denys Vlasenko <dvlasenk@redhat.com>
45007 2013-06-21 Denys Vlasenko <dvlasenk@redhat.com>
45013 2013-06-21 Denys Vlasenko <dvlasenk@redhat.com>
45020 2013-06-21 Denys Vlasenko <dvlasenk@redhat.com>
45022 detach(): Reorganize code. Logic is the same.
45027 * strace.c (detach): If TCB_IGNORE_ONE_SIGSTOP is set,
45028 di not PTRACE_DETACH - wait for SIGSTOP first.
45030 2013-06-20 Denys Vlasenko <dvlasenk@redhat.com>
45036 (the "break" there is a "I'm confused, bailing out" code style)..
45042 2013-06-20 Denys Vlasenko <dvlasenk@redhat.com>
45045 __WALL is available and working at least since 2.4 kernels: 10 years ago.
45052 2013-06-20 Denys Vlasenko <dvlasenk@redhat.com>
45060 * strace.c (detach): If PTRACE_SEIZE API is in use, stop the tracee
45066 2013-06-19 Dmitry V. Levin <ldv@altlinux.org>
45068 tests: disable /proc based checks when /proc is not mounted.
45069 * tests/detach-running: Disable /proc based checks when
45070 /proc/self/status is not available.
45071 * tests/detach-sleeping: Likewise.
45072 * tests/detach-stopped: Likewise.
45074 2013-06-19 Denys Vlasenko <dvlasenk@redhat.com>
45076 tests/detach-{running,sleeping,stopped}: check post-detach state.
45077 Check that traced process still exists and is in a right state
45080 2013-06-19 Dmitry V. Levin <ldv@altlinux.org>
45083 * tests/detach-running: New test.
45087 * tests/detach-sleeping: Do not send SIGCONT to the sleeping process.
45089 2013-06-18 Dmitry V. Levin <ldv@altlinux.org>
45091 tests: fix parallel-tests support in detach-* tests.
45092 * tests/detach-sleeping: Use $LOG file for set_ptracer_any output.
45093 * tests/detach-stopped: Likewise.
45097 * tests/detach-sleeping: Use it.
45098 * tests/detach-stopped: Likewise.
45102 * tests/detach-sleeping: New test.
45103 * tests/detach-stopped: Likewise.
45105 (TESTS): Add detach-sleeping and detach-stopped.
45108 2013-06-18 Dmitry V. Levin <ldv@altlinux.org>
45116 * tests/detach-stopped: Update callers.
45121 * tests/strace-f: Likewise.
45123 2013-06-18 Dmitry V. Levin <ldv@altlinux.org>
45125 tests: enable parallel-tests support.
45126 * configure.ac (AM_INIT_AUTOMAKE): Add parallel-tests.
45128 tests: prepare for parallel-tests support.
45131 * tests/detach-stopped: Use it.
45135 * tests/strace-f: Likewise.
45137 2013-06-18 Denys Vlasenko <dvlasenk@redhat.com>
45144 2013-06-05 Dmitry V. Levin <ldv@altlinux.org>
45146 maint: post-release administrivia.
45149 2013-06-03 Dmitry V. Levin <ldv@altlinux.org>
45161 * debian/changelog: 4.8-1.
45162 * strace.spec: 4.8-1.
45164 2013-06-02 Dmitry V. Levin <ldv@altlinux.org>
45173 linux/tile/signalent1.h, linux/tile/syscallent1.h, linux/ubi-user.h,
45176 Fix "make dist" regression introduced by commit v4.7-184-gd648f29.
45177 * Makefile.am (EXTRA_DIST): Add linux/ubi-user.h.
45179 2013-05-28 Dmitry V. Levin <ldv@altlinux.org>
45181 Do not suppress signal delivery messages with -qq.
45182 Current implementation of -qq does not allow suppressing exit status
45183 messages without suppressing signal delivery messages, which is not
45184 good. There is a traditional "-e signal=none" syntax that can be used
45186 This partially reverts commit v4.7-222-g01997cf.
45188 * strace.c (trace): Do not suppress signal delivery messages with -qq.
45189 * strace.1: Update documentation about -qq option.
45191 2013-05-23 Chris Metcalf <cmetcalf@tilera.com>
45194 As of glibc 2.16, "struct siginfo" is no longer supported,
45206 2013-05-17 Mike Frysinger <vapier@gentoo.org>
45209 The standard name people have adopted is "COPYING" rather than
45218 2013-05-17 Dmitry V. Levin <ldv@altlinux.org>
45221 * debian/changelog: Sync with 4.7-1.
45223 * strace.spec: Sync with 4.7-3.
45232 2013-05-14 Dmitry V. Levin <ldv@altlinux.org>
45234 NOMMU: do not hide startup syscalls unless in -D mode.
45236 the tracee before it calls execve unless in -D mode. That is, the
45237 first execve call is very likely to be missed, and setting
45241 unless in -D mode.
45243 2013-05-14 Dmitry V. Levin <ldv@altlinux.org>
45245 Make -D mode work when the Yama LSM is enabled.
45248 In -D mode, allow tracing the process that is going to become the
45254 2013-05-14 Denys Vlasenko <dvlasenk@redhat.com>
45257 Tested with "./strace [-D] [-q] [-bexecve] env true",
45264 (init): If "strace PROG" case (as opposed to "strace -pPID"),
45272 2013-05-13 Daniel P. Berrange <berrange@redhat.com>
45274 Allow -q to be repeated for very quiet output.
45275 Even with the -q flag specified, tracing output is still mixed
45276 with messages about signals and process exit status, which is
45277 often irrelevant. Allow the -q option to be repeated to force
45281 * strace.1: Document ability to repeat '-q' option.
45282 * strace.c: Allow '-q' to be repeated to quieten process
45285 2013-05-11 Dmitry V. Levin <ldv@altlinux.org>
45288 * linux/mips/syscallent-o32.h: Add entries for getpmsg, putpmsg,
45293 2013-05-10 Dmitry V. Levin <ldv@altlinux.org>
45296 * linux/mips/syscallent-n64.h: Add entries for get_mempolicy,
45302 * linux/mips/syscallent-n32.h: Add entries for mbind, get_mempolicy,
45308 2013-05-08 Dmitry V. Levin <ldv@altlinux.org>
45318 * linux/mips/syscallent-o32.h: Likewise.
45347 * linux/mips/syscallent-n32.h: Likewise.
45348 * linux/mips/syscallent-n64.h: Likewise.
45349 * linux/mips/syscallent-o32.h: Likewise.
45364 * tests/net-accept-connect.c: Fix address length passed to bind()
45369 * tests/.gitignore: Add net-accept-connect, *.o and *.log.*.
45371 (check_PROGRAMS): Add net-accept-connect.
45373 * tests/net-accept-connect.c: New file.
45376 tests: do not skip tests when timeout utility is not available.
45381 * tests/strace-f: Likewise.
45383 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45402 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45411 2013-05-07 Mike Frysinger <vapier@gentoo.org>
45422 2013-05-07 James Hogan <james.hogan@imgtec.com>
45425 The raw llseek syscall is called _llseek from userland, so fix the
45430 2013-05-07 James Hogan <james.hogan@imgtec.com>
45439 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45449 * linux/mips/syscallent-n32.h: Likewise.
45450 * linux/mips/syscallent-n64.h: Likewise.
45459 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45470 * linux/mips/syscallent-n32.h: Likewise.
45471 * linux/mips/syscallent-n64.h: Likewise.
45482 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45498 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45508 * linux/mips/syscallent-n32.h: Likewise.
45509 * linux/mips/syscallent-n64.h: Likewise.
45517 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45524 The number of fadvise64_64 arguments is 4 for 64bit and ilp32, for
45534 * linux/mips/syscallent-n32.h: Likewise.
45537 * linux/mips/syscallent-o32.h: Change the number of fadvise64_64
45547 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45554 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45560 * linux/mips/syscallent-compat.h: New file.
45561 * linux/mips/syscallent-n32.h: Likewise.
45562 * linux/mips/syscallent-n64.h: Likewise.
45563 * linux/mips/syscallent-o32.h: Likewise.
45567 2013-05-07 Dmitry V. Levin <ldv@altlinux.org>
45586 2013-05-06 Dmitry V. Levin <ldv@altlinux.org>
45590 add a comment why subcall decoding support is not enabled
45593 2013-05-06 Chris Zankel <chris@zankel.net>
45602 2013-05-06 Dmitry V. Levin <ldv@altlinux.org>
45655 2013-05-06 Chris Metcalf <cmetcalf@tilera.com>
45660 Support seeing this output in the 'strace -efile' test.
45662 As part of this change, use "grep -E -x" syntax consistently for
45667 that use fstatat instead. Use "grep -E -x" syntax consistently.
45669 2013-05-06 Dmitry V. Levin <ldv@altlinux.org>
45671 ARM OABI: fix 64-bit arguments decoding.
45673 see commit v4.6-11-g7a5b08f for details.
45678 2013-05-06 Mike Frysinger <vapier@gentoo.org>
45685 mips/o32 ABI is funky and doesn't shift -- it has 7 args. So just add
45691 2013-05-06 Chris Metcalf <cmetcalf@tilera.com>
45700 2013-05-06 Mike Frysinger <vapier@gentoo.org>
45709 2013-05-05 Mike Frysinger <vapier@gentoo.org>
45714 2013-05-05 Mike Frysinger <vapier@gentoo.org>
45724 2013-05-04 Dmitry V. Levin <ldv@altlinux.org>
45731 2013-05-04 Mike Frysinger <vapier@gentoo.org>
45739 2013-05-03 Dmitry V. Levin <ldv@altlinux.org>
45744 arm, aarch64, ppc: fix printllval-based decoders.
45751 2013-05-02 Mike Frysinger <vapier@gentoo.org>
45755 doing. Not entirely sure about the decoding of UBI_IOCVOLUP -- it takes
45762 * ioctl.c (ioctl_decode): Call ubi_ioctl when code is 'o' or 'O'.
45767 * linux/ubi-user.h: Import from linux 3.8.
45769 2013-05-02 Mike Frysinger <vapier@gentoo.org>
45782 2013-05-02 Mike Frysinger <vapier@gentoo.org>
45788 * test/Makefile: Add -Wall to CFLAGS.
45796 2013-05-02 Dmitry V. Levin <ldv@altlinux.org>
45798 ia64: fix compilation warnings introduced by commit v4.7-174-g44f0ed1.
45802 Reported-by: Mike Frysinger <vapier@gentoo.org>
45804 2013-05-02 Mike Frysinger <vapier@gentoo.org>
45813 2013-05-02 Dmitry V. Levin <ldv@altlinux.org>
45818 x32: fix printllval-based decoders of i386 syscalls.
45825 2013-05-01 Dmitry V. Levin <ldv@altlinux.org>
45827 x32: fix build regressions introduced by commit v4.7-96-g8435d67.
45835 (sys_stat64, sys_fstat64) [X32]: Remove second definitions of these
45855 2013-05-01 James Hogan <james.hogan@imgtec.com>
45864 2013-05-01 James Hogan <james.hogan@imgtec.com>
45868 vary between architectures (as far as I can tell the use of MAP_FIXED is
45870 by open call is 3 when passing it to mmap.
45872 2013-05-01 Mike Frysinger <vapier@gentoo.org>
45875 This is a 64bit arch w/no personalities, so fix printing.
45878 main(){readahead(-1, (unsigned long long)1 << 50, 0);}
45880 $ ./strace -ereadahead ./a.out
45881 readahead(-1, 1125899906842624, 0) = -1 EBADF (Bad file descriptor)
45885 2013-05-01 Mike Frysinger <vapier@gentoo.org>
45888 Building with automake-1.13 throws an error:
45889 configure.ac:6: error: 'AM_CONFIG_HEADER': this macro is obsolete.
45894 2013-04-30 Dmitry V. Levin <ldv@altlinux.org>
45896 build: introduce git-version-gen.
45900 $(distdir)/.tarball-version files.
45904 * configure.ac (AC_INIT): Use git-version-gen.
45905 (AM_INIT_AUTOMAKE): Remove check-news.
45906 * git-version-gen: Import from gnulib.
45907 * make-dist: Check NEWS.
45913 build: fix "make dist" regression introduced by commit v4.7-105-g7270de5
45917 build: fix "make dist" regression introduced by commit v4.7-29-g17e3860.
45918 * Makefile.am (EXTRA_DIST): Add linux/ioctlent-filter.awk.
45920 2013-04-30 Mike Frysinger <vapier@gentoo.org>
45924 is a bit field, not a specific value, so decode it as such.
45926 2013-03-31 Zev Weiss <zev@bewilderbeest.net>
45934 2013-03-30 Andreas Schwab <schwab@suse.de>
45937 The file linux/ioctlent.h is generated in the build directory, so
45947 2013-03-30 Andreas Schwab <schwab@suse.de>
45953 2013-03-27 Dmitry V. Levin <ldv@altlinux.org>
45958 2013-03-25 Chris Zankel <chris@zankel.net>
45971 2013-03-22 Denys Vlasenko <vda.linux@googlemail.com>
45973 Add example script which builds static (possibly cross-compiled) strace.
45975 2013-03-21 Dmitry V. Levin <ldv@altlinux.org>
45977 Use 64-bit versions of stat, readdir and setrlimit functions when available
45978 strace already has a mechanism to use fopen64 for output when the 64-bit
45979 version of fopen is available on 32-bit architectures. Apply this
45981 64-bit types.
45989 2013-03-20 Dmitry V. Levin <ldv@altlinux.org>
45997 [!SH64]: Decode using an open-coded struct with 32-bit d_ino and d_off.
46000 2013-03-20 Dmitry V. Levin <ldv@altlinux.org>
46004 off_t type. With this change, it is decoded as a pointer to target long
46017 2013-03-18 Dmitry V. Levin <ldv@altlinux.org>
46020 * configure.ac: When libaio.h is available, check for
46030 2013-03-18 Maxin B. John <maxin.john@enea.com>
46033 Busybox version of timeout doesn't have --version option.
46039 2013-03-18 Dmitry V. Levin <ldv@altlinux.org>
46054 x86-64: enhance PTRACE_GETREGSET test.
46062 x86-64, x32: do not include linux/ptrace.h unnecessarily.
46074 2013-03-14 Dmitry V. Levin <ldv@altlinux.org>
46078 asm-generic/mman-common.h
46080 Reported-by: Robin Hack <hack.robin@gmail.com>
46082 2013-03-07 Denys Vlasenko <vda.linux@googlemail.com>
46084 Tweaks for -c: fixed setitimer/getitimer hack; optimized call_summary_pers()
46088 The code assumed that this "tick" is not zero... but it is zero
46089 on linux-3.6.11. Which means that this hack doesn't work...
46092 _repeatedly_, by initializing one_tick to -1, not 0.
46096 Optimized call_summary_pers() a bit, by eliminating redundant tv -> float
46098 being shown as "-nan" if total CPU time spent was 0.000000
46099 (try "strace -c /bin/true").
46102 "strace -c ls -lR /usr/share >/dev/null" shows total time spent
46103 in syscalls to be only ~10..20% of what "time ls -lR /usr/share >/dev/null"
46113 2013-03-06 Denys Vlasenko <vda.linux@googlemail.com>
46115 Open-code isprint(c) and isspace(c)
46118 its ctype interface is general and at times inefficient.
46123 By open-coding ctype checks (we have only 4 of them)
46132 2013-03-06 Denys Vlasenko <vda.linux@googlemail.com>
46134 Makefile: add commented-out tweak to generate link map.
46141 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46147 2013-03-05 Dmitry V. Levin <ldv@altlinux.org>
46158 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46162 Disable STREAMS syscalls for non-SPARC.
46171 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46173 Use dynamically-sized selected[] array for -P PATH.
46181 2013-03-05 Denys Vlasenko <vda.linux@googlemail.com>
46186 or1k was missing TM on many memory-related syscalls
46187 sys_lookup_dcookie is 3-arg on 64-bit arches, and isn't TF
46188 sys_recvmsg is 3-arg on all arches
46189 sys_nfsservctl is 3-arg on all arches
46190 sys_timerfd_create is 2-arg on all arches
46191 sys_[f]truncate64 is 4-arg or 3-arg, never 5-arg
46192 truncate64 is TF
46193 sys_[l]lseek is TD
46194 fstat[64] is TD
46196 2013-03-05 James Hogan <james.hogan@imgtec.com>
46200 architecture/ABI is usually referred to as metag in code). The Meta
46201 Linux kernel port is in the process of being upstreamed for v3.9 so it
46206 nfsservctl appears to be set to sys_ni_syscall in asm-generic/unistd.h
46214 oldgetrlimit is just getrlimit for metag.
46223 2013-03-01 Denys Vlasenko <vda.linux@googlemail.com>
46227 2013-03-01 Dmitry V. Levin <ldv@altlinux.org>
46229 Fix trace=set regression introduced by commit v4.7-111-g9cbc15b.
46235 2013-03-01 Chris Metcalf <cmetcalf@tilera.com>
46243 2013-02-27 Denys Vlasenko <vda.linux@googlemail.com>
46245 Make -b take SYSCALL param, document it in --help and in manpage.
46247 extend -b to take a parameter:
46251 While at it, fixed (by removing non-Linux and stale info)
46252 and extended manpage text about -f.
46254 2013-02-26 Dmitry V. Levin <ldv@altlinux.org>
46259 First, EFAULT kind of errors from process_vm_readv by itself is not
46261 short read is detected.
46263 Second, clients of umoven and umovestr are not prepared to detect and
46265 way to handle them is to return an error code.
46270 2013-02-26 Dmitry V. Levin <ldv@altlinux.org>
46273 * pathtrace.c (upathmatch): Only NUL-terminated strings can be
46274 path-matched, so fix the umovestr return code check to filter out
46277 2013-02-26 Dmitry V. Levin <ldv@altlinux.org>
46279 Fix compilation errors uncovered by -Werror=enum-compare.
46280 This fixes regression introduced by commit v4.7-111-g9cbc15b.
46285 2013-02-26 Denys Vlasenko <vda.linux@googlemail.com>
46287 Mass replace error_msg("%s", "literal") -> error_msg("literal")
46288 There is no need to print literal strings through "%s".
46291 2013-02-26 Ben Noordhuis <info@bnoordhuis.nl>
46295 return value of that syscall, which is the number of bytes copied,
46298 It was causing syscalls that take a user-space argument to print
46310 2013-02-26 Denys Vlasenko <vda.linux@googlemail.com>
46313 With -D, strdup'ing of pathname is necessary only on NOMMU.
46316 (try "strace [-D] -b env echo HI" to see whether we detach on correct execve).
46321 2013-02-26 Denys Vlasenko <vda.linux@googlemail.com>
46323 Shorten help text - no need to show deprecated option -F.
46325 2013-02-23 Denys Vlasenko <vda.linux@googlemail.com>
46331 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46334 BTW, the new code from prev commit is 5 times faster
46337 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46340 This is a 14 year old bug (!).
46344 When dumpstr was changed to use on-stack buffer, the bug reared its ugly head.
46346 This is a rewrite which is smaller and should be significantly faster
46355 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46364 -e read=BIGNUM. As a precaution, BIGNUM should be < 2^15, but this limit
46367 qual_flags is now a define to qual_vec[current_personality].
46370 names in one-personality arches to their corresponding <foo>0 arrays,
46377 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46380 This is a preparatory mass replace patch with no code changes.
46386 2013-02-22 Denys Vlasenko <vda.linux@googlemail.com>
46388 Use tcp->qual_flg instead of qual_flags[] in verbose() and abbrev()
46390 Result is more efficient and 1.1 kbyte shorter code:
46396 2013-02-21 Denys Vlasenko <vda.linux@googlemail.com>
46398 Remove unused QUAL_FAULT code (was used by non-Linux code only).
46400 2013-02-21 Denys Vlasenko <vda.linux@googlemail.com>
46403 Resulting bss reduction is ~6kbytes:
46409 2013-02-21 Denys Vlasenko <vda.linux@googlemail.com>
46412 By adding tcp->s_ent pointer tot syscall table entry,
46413 we can replace sysent[tcp->scno] references by tcp->s_ent.
46414 More importantly, we may ensure that tcp->s_ent is always valid,
46415 regardless of tcp->scno value. This allows us to drop
46416 SCNO_IS_VALID(tcp->scno) checks before we access syscall
46419 We can optimize (qual_flags[tcp->scno] & QUAL_foo) checks
46431 in tcp->qual_flg.
46433 Use tcp->s_ent instead of sysent[tcp->scno].
46434 * process.c (sys_prctl): Use tcp->s_ent->nargs instead of tcp->u_nargs.
46436 * strace.c (init): Add compile-time check that DEFAULT_QUAL_FLAGS
46437 constant is consistent with init code.
46438 * syscall.c (decode_socket_subcall): Use tcp->s_ent->nargs
46439 instead of tcp->u_nargs. Set tcp->qual_flg and tcp->s_ent.
46441 (printargs): Use tcp->s_ent->nargs instead of tcp->u_nargs.
46445 If !SCNO_IS_VALID, set tcp->s_ent and tcp->qual_flg to default values.
46446 (internal_fork): Use tcp->s_ent instead of sysent[tcp->scno].
46448 Use tcp->s_ent instead of sysent[tcp->scno].
46450 (get_error): Drop SCNO_IS_VALID check where it is redundant.
46451 (dumpio): Drop SCNO_IS_VALID check where it is redundant.
46452 Use tcp->s_ent instead of sysent[tcp->scno].
46453 (trace_syscall_entering): Use (tcp->qual_flg & UNDEFINED_SCNO) instead
46454 of SCNO_IS_VALID check. Use tcp->s_ent instead of sysent[tcp->scno].
46455 Drop SCNO_IS_VALID check where it is redundant.
46458 * util.c (setbpt): Use tcp->s_ent instead of sysent[tcp->scno].
46460 2013-02-21 Denys Vlasenko <vda.linux@googlemail.com>
46462 ARM: make it one-personality arch.
46468 Extending syscall table to have [0x000f0005] index is of course
46474 But multi-personality arch does a bit more work in other parts.
46476 This patch is another alternative: "move" 0x000f00nn syscalls
46484 * defs.h: Remove multi-reprsonality defines from ARM.
46497 2013-02-20 Denys Vlasenko <vda.linux@googlemail.com>
46499 arm: shorten syscall table for EABI - no point in storing NULL entries.
46508 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46511 With constant current_wordsize == 4 and 32-bit longs,
46516 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46520 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46529 make a malloced copy instead. Explain "NOMMU + -D bug"
46532 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46535 And while using it, I discovered that -D doesn't work too well
46538 2013-02-19 Denys Vlasenko <vda.linux@googlemail.com>
46542 of decoding mmap. For example, sys_old_mmap is "params in memory"
46543 API... except SH[64], where it is "params in regs",
46548 and whether offset is in bytes, pages, or 4k blocks.
46568 * linux/arm/syscallent.h: mmap2 is sys_mmap_pgoff.
46569 * linux/avr32/syscallent.h: mmap is sys_mmap_pgoff.
46570 * linux/bfin/syscallent.h: old_mmap is ENOSYS, mmap2 is sys_mmap_pgoff.
46571 * linux/hppa/syscallent.h: mmap2 is sys_mmap_4koff.
46572 * linux/i386/syscallent.h: mmap2 is sys_mmap_pgoff.
46573 * linux/ia64/syscallent.h: mmap2 is sys_mmap_pgoff.
46574 * linux/m68k/syscallent.h: mmap2 is sys_mmap_pgoff.
46575 * linux/microblaze/syscallent.h: old_mmap is sys_mmap, mmap2 is sys_mmap_pgoff.
46576 * linux/mips/syscallent.h: mmap is sys_mmap_4kgoff.
46577 * linux/or1k/syscallent.h: mmap2 is sys_mmap_pgoff.
46578 * linux/powerpc/syscallent.h: mmap2 is sys_mmap_4kgoff.
46579 * linux/s390/syscallent.h: mmap2 is sys_old_mmap_pgoff.
46580 * linux/s390x/syscallent.h: mmap is sys_old_mmap and thus has 1 arg.
46581 * linux/sh/syscallent.h: old_mmap2 is sys_mmap, mmap2 is sys_mmap_4koff.
46583 * linux/sparc/syscallent1.h: mmap is TD|TM.
46584 * linux/tile/syscallent1.h: mmap2 is sys_mmap_4koff.
46586 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46589 No wonder that it is unused.
46594 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46606 Its size depends on libc, not on arch! I.e. it is essentially
46633 2013-02-18 Denys Vlasenko <vda.linux@googlemail.com>
46636 * mem.c (sys_mmap): Ensure unsigned expansion of tcp->u_arg[5].
46638 Use tcp->ext_arg[5] as offset for X32.
46639 (sys_old_mmap): [X32] Remove this function, X32 doesn't use is.
46649 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46660 (printllval): Add compile-time error check for using wrong
46664 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46673 * file.c: Make whence_codes[] non-static.
46676 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46678 Remove wrong x32-specific lseek.
46679 Testing confirmed what I suspected: x32 lseek uses kernel-sized
46687 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46696 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46708 2013-02-17 Denys Vlasenko <vda.linux@googlemail.com>
46712 2013-02-16 Denys Vlasenko <vda.linux@googlemail.com>
46727 * defs: Rename regs -> sparc_regs.
46729 * syscall.c: Rename regs -> sparc_regs, regs -> avr32_regs.
46733 2013-02-15 Denys Vlasenko <vda.linux@googlemail.com>
46735 Use the same type for i386_regs on 32-bit and 64-bit x86.
46742 it is never true on Tile, and stopped compiling when
46745 2013-02-15 Denys Vlasenko <vda.linux@googlemail.com>
46747 x86: zero-extend 32-bit args in syscall entry instead of sign-extension.
46748 Zero-extension is slightly more common that sign-extension:
46749 all pointers are zero-extended, and some other params are unsigned.
46752 _32-bit ints_ even by kernel, so just unconditionally casting
46753 such tcp->u_arg[N] to int works.
46755 * syscall.c (get_syscall_args): [X86] Zero-extend 32-bit args
46756 instead of sign-extension.
46758 2013-02-15 Denys Vlasenko <vda.linux@googlemail.com>
46762 * signal.c (sys_kill): Use it instead of open-coding it.
46766 2013-02-15 Denys Vlasenko <vda.linux@googlemail.com>
46782 (set_personality): Set current_wordsize only if non-constant.
46784 2013-02-15 Denys Vlasenko <vda.linux@googlemail.com>
46789 2013-02-14 Denys Vlasenko <vda.linux@googlemail.com>
46796 2013-02-14 Christian Svensson <blue@cmd.nu>
46815 2013-02-14 Denys Vlasenko <vda.linux@googlemail.com>
46818 Unlike PTRACE_GETREGS, this new method detects 32-bit processes
46825 * strace.c: Make os_release non-static, remove KERNEL_VERSION define.
46838 2013-02-13 Denys Vlasenko <vda.linux@googlemail.com>
46844 r0 -> bfin_r0,alpha_r0,sh_r0.
46845 a3 -> mips_a3.
46846 r2 -> mips_r2.
46851 2013-02-13 Denys Vlasenko <vda.linux@googlemail.com>
46864 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46876 with dummy "return 0" and a comment explaining why that is ok
46879 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46882 This is a leftover from sysenter/sysexit split.
46883 I can't run-test it, but from code inspection it seems to be correct.
46887 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46895 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46900 with dummy "return 0" and a comment explaining why that is ok
46906 with dummy "return 0" and a comment explaining why that is ok
46909 Handle recv[m]msg for non-native 32-bit personality syscalls.
46910 * net.c (printmsghdr): If current_wordsize is 4 and long is wider than it,
46911 read 32-bit struct msghdr and expand it into a native one before using it.
46914 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46917 X32's return value is 64-bit. We were truncating it to 32-bit long
46918 before checking for -errno.
46923 2013-02-12 Denys Vlasenko <vda.linux@googlemail.com>
46929 LINUX_MIPS64 is altogether unused.
46932 Move PTRACE_xxx compat defines up, before arch-specific
46938 2013-02-11 Denys Vlasenko <vda.linux@googlemail.com>
46947 Explain 64-bit check in X32 build better.
46949 2013-02-09 Dmitry V. Levin <ldv@altlinux.org>
46959 Reported-by: kawillia@ucalgary.ca
46961 2013-02-09 Mike Frysinger <vapier@gentoo.org>
46973 (nil), 0, 0x7fffe23c3960, 8}) = -1 EACCES (Permission denied)
46975 Since passing NULL for the old values is valid, handle that explicitly.
46980 …_sysctl({{CTL_NET, NET_IPV4, NET_IPV4_LOCAL_PORT_RANGE, 38}, 3, NULL, 0, 0x7fff8c0c91b0, 8) = -1 E…
46982 * system.c (sys_sysctl): Check if info.oldval is NULL first. Move the
46987 2013-02-08 Denys Vlasenko <vda.linux@googlemail.com>
46990 It is not likely anyone uses glibc older that that:
46994 * signal.c: Remove code which is compiled only for glibc < 2.1.
46997 2013-02-08 Denys Vlasenko <vda.linux@googlemail.com>
47003 Dying suddenly with abort() is rude, avoid if possible.
47004 * file.c (sys_utime): Don't call abort() if wordsize is strange.
47008 Remove vestigial hacks around non-Linux struct sigactions.
47014 2013-02-08 Denys Vlasenko <vda.linux@googlemail.com>
47016 Optimize AArch64 handling of 32-bit personality.
47018 register copying is eliminated.
47024 (printcall): Add commented-out PC printing.
47025 (get_regs): Remove now-unnecessary 64-to-32 bits register copying.
47028 2013-02-07 Denys Vlasenko <vda.linux@googlemail.com>
47035 r8,r10 -> ia64_r8,ia64_r10.
47036 d0 -> m68k_d0.
47037 a3 -> alpha_a3.
47038 r28 -> hppa_r28.
47039 r9 -> sh64_r9.
47040 r10 -> cris_r10.
47041 r3 -> microblaze_r3.
47047 2013-02-06 Denys Vlasenko <vda.linux@googlemail.com>
47050 Compile-tested.
47061 2013-02-06 Denys Vlasenko <vda.linux@googlemail.com>
47068 2013-02-06 Denys Vlasenko <vda.linux@googlemail.com>
47088 2013-02-05 Ben Noordhuis <info@bnoordhuis.nl>
47098 2013-02-05 Chris Metcalf <cmetcalf@tilera.com>
47106 2013-02-05 Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
47115 2013-02-05 Dmitry V. Levin <ldv@altlinux.org>
47117 Print 64-bit instruction pointers zero padded.
47118 * syscall.c (printcall): Print 64-bit instruction pointers zero padded.
47123 2013-02-05 Denys Vlasenko <vda.linux@googlemail.com>
47128 2013-02-05 Chris Metcalf <cmetcalf@tilera.com>
47137 struct pt_regs tile_regs for efficiency. Provide compat 32-bit
47143 * linux/tile/syscallent.h: Update with new asm-generic syscalls.
47145 to LKML, which subsequently was changed to use <asm-generic/unistd.h>.
47163 2013-02-05 Denys Vlasenko <vda.linux@googlemail.com>
47173 2013-02-05 Denys Vlasenko <vda.linux@googlemail.com>
47175 Optimize out PTRACE_PEEKUSER with -i.
47176 strace -i was fetching PC with a separate PEEKUSER
47190 Analogous improvement in sys_sigreturn() is also implemented.
47195 and that it is stopped.
47199 if available on the arch, instead of re-fetching it.
47205 2012-12-15 Stanislav Brabec <sbrabec@suse.cz>
47210 v4.6-177-ge0f5fd8, and s390x requires the same fix.
47214 2012-12-08 Dmitry V. Levin <ldv@altlinux.org>
47220 2012-12-08 Stanislav Brabec <sbrabec@suse.cz>
47225 tcp->u_arg[4] and not tcp->u_arg[5]. Fortunately, tcp->u_arg[5] now
47245 2012-12-06 John Spencer <maillist-strace@barfooze.de>
47248 * util.c: Check if __GLIBC__ is defined before using it.
47251 2012-11-29 James Hogan <james.hogan@imgtec.com>
47255 instead of read-modify-writing the whole register set. This function is
47257 certain architectures like SPARC will also be doing a read-modify-write.
47258 This prevents the second write (from arg_finish_change) from undoing the
47263 [SPARC || SPARC64] Change to set state->u_regs[U_REG_G1] rather than
47264 read-modify-writing it with PTRACE_GETREGS and PTRACE_SETREGS.
47267 2012-11-12 Steve McIntyre <steve.mcintyre@linaro.org>
47269 Add support for tracing 32-bit ARM EABI binaries on AArch64.
47290 2012-11-12 Dmitry V. Levin <ldv@altlinux.org>
47292 Move asm-generic ioctl definitions to linux/ioctlent.h.in.
47293 * linux/ioctlent.h.in: Add asm-generic ioctl entries from all
47295 * linux/bfin/ioctlent.h.in: Remove asm-generic ioctl entries.
47301 2012-10-27 Dmitry V. Levin <ldv@altlinux.org>
47304 * linux/ioctlent-filter.awk: New file.
47308 2012-10-26 Dmitry V. Levin <ldv@altlinux.org>
47315 2012-10-26 Steve McIntyre <steve.mcintyre@linaro.org>
47331 asm-generic/unistd.h.
47333 2012-10-26 Steve McIntyre <steve.mcintyre@linaro.org>
47341 2012-10-26 Namhyung Kim <namhyung.kim@lge.com>
47343 Add -e trace=memory option.
47374 2012-09-28 Mike Frysinger <vapier@gentoo.org>
47383 2012-09-28 Dmitry V. Levin <ldv@altlinux.org>
47390 $ strace -o'|:' pwd
47393 There is little strace can do in case of fflush(3) returning EOF, and
47394 hangup is certainly not the best solution for the issue.
47398 2012-09-28 Dmitry V. Levin <ldv@altlinux.org>
47406 2012-09-27 Denys Vlasenko <vda.linux@googlemail.com>
47415 2012-09-13 Denys Vlasenko <vda.linux@googlemail.com>
47418 * strace.c: Fix compiler warning message about tgkill - we don't use it.
47422 2012-08-24 Dmitry V. Levin <ldv@altlinux.org>
47427 2012-08-24 Mike Frysinger <vapier@gentoo.org>
47437 2012-08-16 Dmitry V. Levin <ldv@altlinux.org>
47442 2012-07-12 Dmitry V. Levin <ldv@altlinux.org>
47445 In case of normal strace termination, when the trace output is
47452 2012-07-10 Denys Vlasenko <vda.linux@googlemail.com>
47461 2012-06-05 Mike Frysinger <vapier@gentoo.org>
47464 This syncs with the syscall table as it is in linux 3.4.
47472 2012-05-18 Denys Vlasenko <vda.linux@googlemail.com>
47481 2012-05-16 Denys Vlasenko <vda.linux@googlemail.com>
47490 to reading into it - we want to have deterministic result
47493 2012-05-16 Denys Vlasenko <vda.linux@googlemail.com>
47495 Stop using non-standard %Zu and %Zd formats for size_t printing.
47502 2012-05-15 Denys Vlasenko <vda.linux@googlemail.com>
47506 Therefore, we no longer suspend new tracee until parent is seen
47507 exiting form [v]fork/clone. The comment is obsolete.
47511 2012-05-15 Denys Vlasenko <vda.linux@googlemail.com>
47517 * defs.h: Ensure that PERSONALITY0_WORDSIZE;s tyoe is int.
47518 This in turn makes sure current_wordsize is also an int.
47521 2012-05-15 Dmitry V. Levin <ldv@altlinux.org>
47523 Add configure --enable-gcc-Werror option.
47524 * configure.ac: New option --enable-gcc-Werror.
47526 Make x86-64 build free of artificial warnings.
47530 2012-05-14 Dmitry V. Levin <ldv@altlinux.org>
47533 * strace.c (get_os_release): Handle "X.Y-something" utsname.release
47536 Reported-by: Bryce Gibson <bryce@gibson-consulting.com.au>
47538 2012-05-14 Denys Vlasenko <vda.linux@googlemail.com>
47542 Low risk: this code is not supposed to be used on any non-acient kernel.
47546 2012-05-05 Mike Frysinger <vapier@gentoo.org>
47549 If you have a newer glibc which provides process_vm_readv, but it is built
47556 util.c:738:16: error: static declaration of 'process_vm_readv' follows non-static declaration
47565 2012-05-03 Dmitry V. Levin <ldv@altlinux.org>
47568 * README-hacking: Describe documentation policy.
47570 2012-05-02 Dmitry V. Levin <ldv@altlinux.org>
47572 maint: post-release administrivia.
47577 * debian/changelog: 4.7-1.
47578 * strace.spec: 4.7-1.
47585 (loop_ioctl): Use LOOP_SET_CAPACITY only when it is defined.
47587 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47595 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47600 * tests/strace-f: Likewise.
47602 Reported-by: Mike Frysinger <vapier@gentoo.org>
47604 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47618 * process.c (sys_uname): Print utsname.domainname when the field is
47621 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47627 When this parameter is zero, pass mmsghdr.msg_len to do_msghdr instead.
47629 (sys_sendmmsg): Call decode_mmsg with msg_len == (unsigned long) -1L.
47632 2012-05-01 Dmitry V. Levin <ldv@altlinux.org>
47636 (tprint_iov): Use "(unsigned long) -1L" instead of "ULONG_MAX".
47638 (printmmsghdr, sys_sendmsg): Use "(unsigned long) -1L" instead of
47641 2012-04-28 Denys Vlasenko <vda.linux@googlemail.com>
47646 2012-04-28 Denys Vlasenko <vda.linux@googlemail.com>
47649 We often pass syscall params and other long-sized values
47654 * util.c (string_quote): Special-case only len==-1, not all len<0.
47657 2012-04-28 Denys Vlasenko <vda.linux@googlemail.com>
47660 I noticed that "hostname -d" talks over netlink and gets 20 bytes
47671 (sys_recvmsg): Call printmsghdr with data_size==tcp->u_rval.
47673 2012-04-27 Dmitry V. Levin <ldv@altlinux.org>
47675 Package strace-log-merge.
47676 * strace.spec (%files): Add strace-log-merge.
47678 2012-04-27 Mike Frysinger <vapier@gentoo.org>
47682 2012-04-27 Mike Frysinger <vapier@gentoo.org>
47690 Since on multi-personality systems this is an array of ints, cast
47695 2012-04-20 Dmitry V. Levin <ldv@altlinux.org>
47701 * debian/changelog: Sync with 4.5.20-2.3.
47703 * strace.spec: Sync with 4.6-2.
47705 2012-04-18 Mike Frysinger <vapier@gentoo.org>
47709 what the kernel is getting vs what you think you're sending, so add some
47716 * ioctl.c (ioctl_decode): Call loop_ioctl when code is 'L'.
47719 2012-04-18 H.J. Lu <hongjiu.lu@intel.com>
47747 2012-04-17 H.J. Lu <hongjiu.lu@intel.com>
47753 2012-04-16 Denys Vlasenko <vda.linux@googlemail.com>
47762 2012-04-16 Denys Vlasenko <vda.linux@googlemail.com>
47765 This is needed for simplified printf, and reduces code size a bit.
47772 2012-04-16 Denys Vlasenko <vda.linux@googlemail.com>
47777 2012-04-16 H.J. Lu <hongjiu.lu@intel.com>
47780 * file.c (sys_lseek): Use MIPS-n32 variant also for x32
47782 2012-04-16 H.J. Lu <hongjiu.lu@intel.com>
47785 X32 support is added to Linux kernel 3.4. In a nutshell, x32 is x86-64 with
47786 32bit pointers. At system call level, x32 is also identical to x86-64,
47788 main differerence bewteen x32 and x86-64 is off_t in x32 is long long
47798 (sys_lseek): Use 64-bit version for X32.
47802 * mem.c (sys_mmap64): Also use tcp->u_arg for X32. Print NULL
47843 2012-04-16 H.J. Lu <hongjiu.lu@intel.com>
47845 Restore tcb::u_lrval; fix lseek on MIPS-n32.
47855 * syscall.c (get_error): Set u_lrval for MIPS-n32.
47858 2012-04-06 Mike Frysinger <vapier@gentoo.org>
47867 * ioctl.c (ioctl_decode): Call mtd_ioctl when code is 'M'.
47869 (EXTRA_DIST): Add linux/mtd-abi.h.
47871 * linux/mtd-abi.h: New file.
47873 2012-04-05 Mike Frysinger <vapier@gentoo.org>
47875 Fix indefinite hang on no-mmu systems.
47878 does not work on no-mmu systems as fork() is actually vfork() and any
47881 We might be able to make this test work on no-mmu systems with a bit
47887 2012-03-29 Denys Vlasenko <vda.linux@googlemail.com>
47891 2012-03-27 Anton Blanchard <anton@samba.org>
47896 2012-03-26 Dmitry V. Levin <ldv@altlinux.org>
47904 Reported-by: Fr. Br. George <george@altlinux.org>
47906 2012-03-26 Dmitry V. Levin <ldv@altlinux.org>
47908 strace-log-merge: fix file suffix calculation.
47909 * strace-log-merge: Quote file prefix to fix file suffix calculation.
47911 Reported-by: Denys Vlasenko <vda.linux@googlemail.com>
47912 Suggested-by: Andreas Schwab <schwab@linux-m68k.org>
47914 2012-03-26 Denys Vlasenko <vda.linux@googlemail.com>
47919 manpage: remove false info about -p being limited to 32 processes.
47921 Tweak help text and manpage (added -In to manpage)
47923 2012-03-25 Dmitry V. Levin <ldv@altlinux.org>
47940 strace-log-merge: enhance usage error diagnostics.
47941 * strace-log-merge: Add --help option. Check number of arguments.
47948 2012-03-23 Denys Vlasenko <vda.linux@googlemail.com>
47951 Why open-coding isdigit is a good idea?
47969 * syscall.c (qual_syscall): Open-code isdigit.
47971 (qual_signal): Open-code isdigit. Remove string copying
47974 2012-03-23 Denys Vlasenko <vda.linux@googlemail.com>
47979 2012-03-22 Denys Vlasenko <vda.linux@googlemail.com>
47984 remember current tcb and use its ->outf and ->curcol.
47985 This allows to drop numerous "tcp->curcol = curcol" ops in trace().
47987 Turns out we can't drop "static FILE *outf", but now its role is
47989 opened to shared log (which may be the same thing if neither -o
47990 nor -ff was specified). Let's rename it then.
47998 Rename static FILE *outf to shared_log (since it no longer caches tcp->outf).
47999 (ptrace_restart): Use current_tcp->curcol instead of curcol.
48001 Use current_tcp->outf instead of outf, current_tcp->curcol instead of curcol.
48012 2012-03-22 Denys Vlasenko <vda.linux@googlemail.com>
48015 * strace.c (droptcb): Remove outfname check in "outfname && followfork >= 2" -
48023 2012-03-21 Denys Vlasenko <vda.linux@googlemail.com>
48027 Renumber TCB_foo constants (smaller constants -> sometimes smaller code).
48031 Show "+++ exited..." with -C.
48032 * strace.c (trace): Show "+++ exited..." with -C too.
48033 Save tcp->curcol after PTRACE_LISTEN failure too, just in case.
48037 2012-03-21 Denys Vlasenko <vda.linux@googlemail.com>
48043 Well, almost. That pesky pid-changing execve needs special treatment.
48046 While at it, fix a case of mishandled -C.
48050 Fix mishandling of -C.
48053 Remove call to printargs(): it is known to just return 0 here.
48055 2012-03-21 Denys Vlasenko <vda.linux@googlemail.com>
48057 Report some ptrace failures; nuke tcp->ptrace_errno.
48061 Before: 10533 sendto(-1, 0x804895e, 17, 0, NULL, 0 <unfinished ...>
48062 After: 10533 sendto(-1, 0x804895e, 17, 0, NULL, 0 <ptrace(SYSCALL):No such process>
48065 to be entered - process was dead at that point of time.
48066 It is (marginally) better than to always say "<unfinished ...>"
48068 While at it, patch removes tcp->ptrace_errno.
48070 it is not needed for ptrace error detection: I failed to execute
48071 a single existing code path which is accessible
48076 (printleader): Remove "if (printing_tcp->ptrace_errno)..." code.
48077 (trace): Remove !tcp->ptrace_errno check, it's always true.
48079 2012-03-20 Denys Vlasenko <vda.linux@googlemail.com>
48085 Rename POWERPC-specific static variable result to ppc_result.
48086 * syscall.c: Rename POWERPC-specific static variable result to ppc_result.
48106 2012-03-20 Dmitry V. Levin <ldv@altlinux.org>
48111 2012-03-20 Denys Vlasenko <vda.linux@googlemail.com>
48116 * ioctl.c (compare): Partially revert last change - the new
48119 2012-03-20 Denys Vlasenko <vda.linux@googlemail.com>
48130 2012-03-19 Denys Vlasenko <vda.linux@googlemail.com>
48134 2012-03-19 Denys Vlasenko <vda.linux@googlemail.com>
48139 That is, "SYS_53" string had to be allocated and stored in strace binary.
48157 2012-03-19 Denys Vlasenko <vda.linux@googlemail.com>
48168 Make set_personality() no-op, current_personality constant zero,
48191 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48195 which we deleted when we removed non-Linux code.
48199 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48203 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48216 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48218 Remove code which is not used on Linux.
48223 * defs.h: Remove struct tcb::u_lrval member - it is never set.
48224 Remove RVAL_Lfoo constants which signify return of "long" result -
48227 2012-03-18 Denys Vlasenko <vda.linux@googlemail.com>
48230 It is buggy: it returns RVAL_LUDECIMAL, which means the return value
48231 is in tcp->u_lrval. But tcp->u_lrval is never set
48232 (on Linux - it used to be set on other OSes).
48234 * file.c (sys_lseek): Remove a version of this function which is
48235 supposed to be used if off_t is long long. It appears to be buggy
48238 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48243 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48246 It looks like sys_lseek64() is never used.
48247 For one, it is buggy (always shows 0 return value), and no one complains.
48249 From code inspection: sys_lseek64 name is not used anywhere.
48250 It is defined to sys_lseek if HAVE_LONG_LONG_OFF_T is true.
48251 Thus, if !HAVE_LONG_LONG_OFF_T, it is never used.
48258 To simplify it more, drop define and just rename sys_lseek64 ->
48261 Since the function is buggy, I think it is unused and we can
48266 it is never used.
48268 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48274 non-underscored ones. This is not consistent.
48287 2012-03-17 Denys Vlasenko <vda.linux@googlemail.com>
48308 MAP_ANON is the same as MAP_ANONYMOUS, no need to have the former.
48309 * mem.c: Do not allocate string for MAP_ANON if it is the same as
48314 test/threaded_execve: make it also test a case when leader is not in syscall
48316 2012-03-16 Dmitry V. Levin <ldv@altlinux.org>
48332 2012-03-16 Denys Vlasenko <vda.linux@googlemail.com>
48337 Fix "strace -oFILE -ff -p<nonexistant_pid>" behavior.
48338 * strace.c (newoutf): Set tcp->outf in non-ff mode too.
48339 (alloctcb): This define is removed.
48340 (alloc_tcb): Renamed to alloctcb. Does not set tcp->outf anymore.
48342 (startup_attach): Do not say "interrupt to quit" in attach message -
48348 2012-03-16 Denys Vlasenko <vda.linux@googlemail.com>
48351 The change is trivial. Diff is large because it is confused
48358 2012-03-16 Denys Vlasenko <vda.linux@googlemail.com>
48372 2012-03-16 Dmitry V. Levin <ldv@altlinux.org>
48378 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48401 compiler to optimize out unreachable code that is not expected to work
48404 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48407 * tests/init.sh (check_strace): Use "${parameter:-word}" shell syntax
48408 instead of "${parameter-word}".
48410 Reported-by: Mike Frysinger <vapier@gentoo.org>
48412 2012-03-15 Mike Frysinger <vapier@gentoo.org>
48422 2012-03-15 Mike Frysinger <vapier@gentoo.org>
48425 The alpha sigprocmask syscall is special in that it comes from OSF rather
48451 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48456 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48458 pathtrace_select() is never called with NULL, remove dead code.
48459 pathtrace_select() is only called for -P FILE options,
48460 and FILE is never a NULL pointer.
48468 The code was also buggy, it can free non-malloced pointer.
48473 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48476 "A traced process ignores SIGSTOP" - fixed, expected to be in linux-3.4.x.
48478 in an attempt to force continuation of tracing." - not needed
48480 "On Linux, exciting as it would be, tracing the init process is forbidden"
48481 - not true anymore.
48484 - not true anymore.
48501 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48504 The code "os_release[0] >= '3'" is not good for any
48505 finer-grained checks such as "kernel >= 3.2.1".
48513 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48517 (init): Set detach_on_execve on -b, set skip_startup_execve if
48518 "strace PROG" form is used.
48519 (trace): Detach from process if -b and we see PTRACE_EVENT_EXEC event.
48522 * strace.c (usage): Document -d; document that -F is deprecated.
48523 (droptcb): Print "<detached ...>" correctly for non-ff mode too.
48542 2012-03-15 Denys Vlasenko <vda.linux@googlemail.com>
48560 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48562 Fix compiler warnings about breaking strict-aliasing rules.
48565 breaking strict-aliasing rules.
48567 Reported-by: Mike Frysinger <vapier@gentoo.org>
48569 2012-03-15 Mike Frysinger <vapier@gentoo.org>
48574 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48579 Reported-by: Mike Frysinger <vapier@gentoo.org>
48581 2012-03-15 Dmitry V. Levin <ldv@altlinux.org>
48587 Reported-by: Mike Frysinger <vapier@gentoo.org>
48589 2012-03-14 Dmitry V. Levin <ldv@altlinux.org>
48595 2012-03-13 Dmitry V. Levin <ldv@altlinux.org>
48610 2012-03-13 Dmitry V. Levin <ldv@altlinux.org>
48630 2012-03-13 Denys Vlasenko <vda.linux@googlemail.com>
48635 Make manpage mention that -p "`pidof PROG`" works.
48637 2012-03-13 Denys Vlasenko <vda.linux@googlemail.com>
48639 Fix logging for "strace -o FILE -ff test/threaded_execve" test case.
48641 thingy wasn't working properly for -ff case.
48643 * defs.h: Group log generation-related declarations together.
48648 (printleader): Change logic to fix log generation in -ff mode.
48649 (newoutf): Make check for -ff mode consistent with other places.
48660 Remove call to fflush(), it is done by line_ended() now.
48662 2012-03-13 Dmitry V. Levin <ldv@altlinux.org>
48667 2012-03-12 Denys Vlasenko <vda.linux@googlemail.com>
48669 Treat -ff without -o FILE as single -f.
48670 * strace.c (init): Treat -ff without -o FILE as single -f.
48675 2012-03-12 Denys Vlasenko <vda.linux@googlemail.com>
48684 * strace.c (init): New function. Most of pre-existing code of
48685 main is now living here.
48688 2012-03-12 Denys Vlasenko <vda.linux@googlemail.com>
48696 2012-03-11 Dmitry V. Levin <ldv@altlinux.org>
48740 * file.c (sys_inotify_rm_watch): Print second argument as int.
48750 2012-03-10 Dmitry V. Levin <ldv@altlinux.org>
48756 strace-log-merge: cleanup.
48757 * strace-log-merge: Redirect usage to stderr, make the check
48787 2012-03-09 Dmitry V. Levin <ldv@altlinux.org>
48796 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48801 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48803 Don't consider PROG to be our child in "strace -D PROG" case.
48804 TCB_STRACE_CHILD is used for the case when "strace PROG" is ^C-ed
48805 or something like that. strace should not just exit - it should
48808 In -D case, PROG is not really a child of _strace_, it is a child
48811 While we are at it, remove nonsensical special-casing of TCB_STRACE_CHILD
48814 * strace.c (startup_attach): Don't set TCB_STRACE_CHILD if -D.
48817 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48821 $ strace -D -p1
48822 strace: -D and -p are mutually exclusive options
48826 is attached to us". Add TCB_STRACE_CHILD: "this tracee is our child".
48830 Set TCB_STRACE_CHILD on -D.
48833 If we are in -D case, don't set TCB_ATTACHED (we aren't attached yet).
48834 (detach): do not do PTRACE_DETACH if TCB_ATTACHED is not set.
48838 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48843 install strace-log-merge by "make install"
48845 strace_log_merge: new file. Helper to merge timestamped strace -ff logs.
48847 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48849 Fix PID prefix printing in "strace -oLOG -ff -p1 -p2 -p3" case.
48851 even though it is not necessary.
48853 The fix is in the addition of "&& followfork < 2" condition.
48861 2012-03-09 Denys Vlasenko <vda.linux@googlemail.com>
48863 Allow -p PID to take comma or whitespace-separated list of PIDs.
48866 (main): Call process_opt_p_list to process -p PIDs argument.
48868 2012-03-08 Denys Vlasenko <vda.linux@googlemail.com>
48872 We no longer set tcp->ptrace_errno = ESRCH on ESRC error in upeek.
48874 checks tcp->ptrace_errno even assumes it is never set to ESRCH.
48883 that addr parameter is ignored.
48888 2012-03-08 Denys Vlasenko <vda.linux@googlemail.com>
48901 2012-02-28 Denys Vlasenko <vda.linux@googlemail.com>
48910 2012-02-27 Denys Vlasenko <vda.linux@googlemail.com>
48914 * linux/sh/syscallent.h: Change tkill type TD -> TS.
48916 * linux/mips/syscallent.h: Change tkill type 0 -> TS.
48920 2012-02-27 Denys Vlasenko <vda.linux@googlemail.com>
48933 repeatedly - cache it in local variable instead.
48941 2012-02-27 Denys Vlasenko <vda.linux@googlemail.com>
48950 * desc.c (sys_epoll_create): Call printargs_ld() instead of open-coding it.
48962 (sys_getpgrp): Delete this function: was unused - was already shadowed
48971 2012-02-27 Denys Vlasenko <vda.linux@googlemail.com>
48981 2012-02-25 Dmitry V. Levin <ldv@altlinux.org>
48986 "cat -s".
48988 2012-02-25 Dmitry V. Levin <ldv@altlinux.org>
48991 This change is a verbatim part of Dmitry's changes to remove support
48992 for non-Linux architectures.
48994 * Makefile.am: Don't install PORTING file. Install README-linux-ptrace file.
49001 2012-02-25 Dmitry V. Levin <ldv@altlinux.org>
49004 This change is a verbatim part of Dmitry's changes to remove support
49005 for non-Linux architectures.
49013 2012-02-25 Denys Vlasenko <vda.linux@googlemail.com>
49016 This change is abapted from Dmitry's changes to remove support for
49017 non-Linux architectures.
49028 2012-02-25 Denys Vlasenko <vda.linux@googlemail.com>
49030 Build fixes after non-Linux code removal.
49031 * configure.ac: Remove calls to proc-based ptrace checks.
49051 automatic removal of non-Linux code. Fix style to use consistent
49056 automatic removal of non-Linux code. Fix style to use consistent
49061 automatic removal of non-Linux code.
49063 Cleanup after non-Linux code removal.
49069 2012-02-25 Denys Vlasenko <vda.linux@googlemail.com>
49071 Manual removal of non-Linux source, documentation, etc.
49072 Remove non-Linux source directories: freebsd/, svr4/, sunos4/, svr4/.
49073 Remove README-freebsd, README-sunos4, README-svr4, m4/procfs.m4.
49075 linux/sparc/{errnoent1,ioctlent1,signalent1}.h used to point to svr4/ files -
49082 Man page: remove non-Linux quirks information.
49084 2012-02-25 Denys Vlasenko <vda.linux@googlemail.com>
49086 Automated removal of non-Linux code.
49087 This change is generated by running every source through the following command:
49089 unifdef -DLINUX -Dlinux -USUNOS4 -USVR4 -UUNIXWARE -UFREEBSD
49090 -USUNOS4_KERNEL_ARCH_KLUDGE -UHAVE_MP_PROCFS
49091 -UHAVE_POLLABLE_PROCFS -UHAVE_PR_SYSCALL -UUSE_PROCFS file.c
49093 2012-02-24 Denys Vlasenko <vda.linux@googlemail.com>
49098 2012-02-22 Dmitry V. Levin <ldv@altlinux.org>
49113 2012-02-20 Dmitry V. Levin <ldv@altlinux.org>
49118 * process.c [IA64]: Replace known_scno(tcp) with tcp->scno.
49123 with tcp->scno.
49151 2012-02-20 Dmitry V. Levin <ldv@altlinux.org>
49154 The native_scno field is not so much used in the code than before.
49155 In many cases sys_func is checked instead, and for most of syscall
49156 entries there is no need to initialize native_scno.
49168 2012-02-14 Mike Frysinger <vapier@gentoo.org>
49171 glibc-2.15 provides process_vm_readv, so trying to provide it ourselves
49177 2012-02-09 Denys Vlasenko <vda.linux@googlemail.com>
49179 README-linux-ptrace: correct the description of suppressed signals.
49181 2012-02-06 Dmitry V. Levin <ldv@altlinux.org>
49183 strace -P: fix handling of invalid syscalls.
49187 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49189 Skip the syscall entry if the sys_func field is NULL.
49191 It can happen with syscall (number, ...) and number is in those holes.
49193 one such a target, x32, is already on the horizon.
49197 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49202 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49214 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49217 When HAVE_LONG_LONG_OFF_T is defined, we need to use %llu to print
49223 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49226 When HAVE_LONG_LONG_OFF_T is defined, those old stat functions aren't
49228 defined when HAVE_LONG_LONG_OFF_T is defined.
49233 2012-02-06 H.J. Lu <hongjiu.lu@intel.com>
49236 * mem.c (sys_mmap64): Print NULL for zero address so that it is
49239 2012-02-04 Dmitry V. Levin <ldv@altlinux.org>
49252 2012-02-03 Denys Vlasenko <vda.linux@googlemail.com>
49256 make -V and -h sit on separate lines (hard to see them otherwise).
49258 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49273 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49278 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49280 Make interactive-ness directly controllable via command line option.
49288 (usage): Document -I n option.
49289 (main): Parse -I n option, modify signal handling to accomidate new
49290 -I 1 and -I 4 modes.
49292 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49297 On Ctrl-C induced detach, send SIGINT to child tracee, not SIGTERM.
49301 2012-01-29 Denys Vlasenko <vda.linux@googlemail.com>
49304 All new code is predicated on "ifdef USE_SEIZE". If it is not defined,
49305 behavior is not changed.
49307 If USE_SEIZE is enabled and run-time check shows that PTRACE_SEIZE works, then:
49308 - All attaching is done with PTRACE_SEIZE + PTRACE_INTERRUPT.
49310 - PTRACE_EVENT_STOP will be generated if tracee is group-stopped.
49315 * defs.h: Add commented-out "define USE_SEIZE 1" and define PTRACE_SEIZE
49326 (trace): If PTRACE_EVENT_STOP is seen, restart using PTRACE_LISTEN in order
49331 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49333 process_vm_readv gets EINVAL if process is gone (SIGKILLed). Don't complain.
49340 Fix nanosleep decoding: second argument was not shown after success.
49341 * time.c (sys_nanosleep): Fix bug - inverted is_restart_error() check.
49344 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49349 PTRACE_PEEKDATA gets one word per syscall. This is VERY expensive.
49361 Result of "time strace -oLOG ls -l /usr/lib >/dev/null":
49374 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49383 (trace): Fix checks for incomplete line - it was working wrongly if last syscall was exit.
49390 2012-01-28 Denys Vlasenko <vda.linux@googlemail.com>
49406 The last line is wrong: it's not pause resumed, it's execve resumed.
49407 If thread leader would do exit instead of pause, it is much worse:
49410 And strace isn't aware 18466 (exec'ed thread) is gone.
49419 2012-01-27 Denys Vlasenko <vda.linux@googlemail.com>
49421 Fix readlink result display - was printing bogus "..." semi-randomly.
49430 2012-01-24 Denys Vlasenko <vda.linux@googlemail.com>
49438 2012-01-24 Denys Vlasenko <vda.linux@googlemail.com>
49447 2012-01-24 Denys Vlasenko <vda.linux@googlemail.com>
49453 2012-01-24 Denys Vlasenko <vda.linux@googlemail.com>
49455 Allocate -o OUTFILE buffer only if needed.
49460 * strace.c (main): Allocate -o OUTFILE buffer only if needed:
49461 unused buffer in bss is not entirely free.
49463 2012-01-24 Denys Vlasenko <vda.linux@googlemail.com>
49470 is unbuffered, separate fprintf's to it always result in separate
49475 Since this function is not performance critical, I guess
49481 2012-01-21 Denys Vlasenko <vda.linux@googlemail.com>
49483 Improve code readability (logic is unchanged)
49489 2012-01-20 Denys Vlasenko <vda.linux@googlemail.com>
49494 (and robust - we don't depend on "no overwrote past NUL" behavior anymore)
49497 Allocate 1 byte more to outstr[] array - for NUL.
49505 2012-01-20 Denys Vlasenko <vda.linux@googlemail.com>
49526 2012-01-19 Denys Vlasenko <dvlasenk@redhat.com>
49533 This reduces L1 D-cache pressure a bit: instead of dirtying
49536 * util.c (printpathn): Use on-stack buffers instead of static ones.
49541 2012-01-18 Andreas Schwab <schwab@linux-m68k.org>
49553 2012-01-18 Denys Vlasenko <dvlasenk@redhat.com>
49565 not (SIGTRAP | 0x80) - I wondered maybe that's when
49566 this hack is needed.
49572 Moreover, TCB_SIGTRAPPED is not set in sys_rt_sigaction
49573 and sys_sigprocmask syscalls - the ones which are most usually
49574 used to implement signal blocking, it is only set in obsolete
49576 non-Linux code.
49578 I think whatever bug it was fixing is gone long ago -
49579 at least as long as sys_rt_sigaction is used by glibc.
49589 * strace.c (trace): Remove code which executes if TCB_SIGTRAPPED is set.
49591 2012-01-18 Denys Vlasenko <dvlasenk@redhat.com>
49600 2012-01-18 Denys Vlasenko <dvlasenk@redhat.com>
49610 2012-01-17 Dmitry V. Levin <ldv@altlinux.org>
49612 Fix struct pt_regs declaration on i386 and x86-64.
49617 2012-01-12 Denys Vlasenko <dvlasenk@redhat.com>
49620 There is widespread confusion about exact meaning
49626 codes that way - or else someone confused
49627 is bound to come later and mangle them again.
49630 ERESTARTSYS (To be restarted if SA_RESTART is set)
49638 2012-01-10 Denys Vlasenko <dvlasenk@redhat.com>
49654 2012-01-10 Denys Vlasenko <dvlasenk@redhat.com>
49658 signal mask which is restored by this syscall: on syscall entry,
49659 fetches it from the stack, saves it in tcp->u_arg[]
49660 (where it used to overflow this array - fixed sometime ago),
49663 Apparently, the motivation is to make it slightly more obvious
49664 to user that signal mask is restored only when this syscall returns.
49665 IMO, this hardly justifies the necessary hacks. It is much easier
49666 to display the mask at the point when we fetch it - on syscall entry.
49672 which re-arms ALRM:
49677 --- {si_signo=SIGALRM, si_code=SI_KERNEL} (Alarm clock) ---
49684 --- {si_signo=SIGALRM, si_code=SI_KERNEL} (Alarm clock) ---
49686 sigreturn() (mask [INT]) = -1 EINTR (Interrupted system call)
49692 2012-01-04 Denys Vlasenko <dvlasenk@redhat.com>
49712 2012-01-04 Denys Vlasenko <dvlasenk@redhat.com>
49715 * strace.c (detach): Drop sig parameter - it is zero in all calls.
49719 2011-12-26 Dmitry V. Levin <ldv@altlinux.org>
49723 personality's wordsize is less than sizeof(long), use only significant
49726 2011-12-23 Dmitry V. Levin <ldv@altlinux.org>
49735 tcp->currpers.
49740 Reported-by: Michael A Fetterman <mafetter@nvidia.com>
49742 2011-12-01 Dmitry V. Levin <ldv@altlinux.org>
49745 Reported-by: Rick Jones <rick.jones2@hp.com>
49747 2011-12-01 Heiko Carstens <heiko.carstens@de.ibm.com>
49752 One of the arguments of the sys_semtimedop subcall is therefore passed in
49756 semtimedop(0, 0x3ffffb43832, 1, {...}) = -1 EAGAIN
49760 semtimedop(0, 0x3ffffc2c842, 1, {0, 10000000}) = -1 EINTR
49764 2011-11-29 Dmitry V. Levin <ldv@altlinux.org>
49768 2011-11-28 Dmitry V. Levin <ldv@altlinux.org>
49798 2011-11-27 Dmitry V. Levin <ldv@altlinux.org>
49803 2011-11-26 Dmitry V. Levin <ldv@altlinux.org>
49845 2011-11-25 Dmitry V. Levin <ldv@altlinux.org>
49988 2011-11-05 Dmitry V. Levin <ldv@altlinux.org>
49990 gitlog-to-changelog: update from gnulib.
49991 * gitlog-to-changelog: Update from gnulib.
49992 * Makefile.am: Add --append-dot to gitlog-to-changelog invocation.
49994 2011-10-22 Denys Vlasenko <dvlasenk@redhat.com>
49999 2011-10-14 Dmitry V. Levin <ldv@altlinux.org>
50017 2011-10-14 Mike Frysinger <vapier@gentoo.org>
50023 Reported-by: Марк Коренберг <socketpair@gmail.com>
50025 2011-10-11 Dmitry V. Levin <ldv@altlinux.org>
50035 2011-10-11 Dmitry V. Levin <ldv@altlinux.org>
50041 Reported-by: Марк Коренберг <socketpair@gmail.com>
50043 2011-10-11 Dmitry V. Levin <ldv@altlinux.org>
50048 Reported-by: Марк Коренберг <socketpair@gmail.com>
50050 2011-10-11 Dmitry V. Levin <ldv@altlinux.org>
50055 Reported-by: Weichuan Yan <wchyan@marvell.com>
50057 2011-09-05 Denys Vlasenko <dvlasenk@redhat.com>
50059 Do post-attach initialization earlier; fix "we ignore SIGSTOP on NOMMU" bug
50060 We set ptrace options when we see post-attach SIGSTOP.
50061 This is wrong: it's better to set them right away on the very first
50063 since SEIZE has no post-attach SIGSTOP.
50071 Fix a case when "strace -p PID" found PID dead but sone other of its threads
50075 (detach): Perform anti-SIGSTOP dance only if TCB_IGNORE_ONE_SIGSTOP is set,
50076 not if TCB_STARTUP is set.
50079 Clear TCB_IGNORE_ONE_SIGSTOP when SIGSTOP is seen.
50081 2011-09-05 Denys Vlasenko <dvlasenk@redhat.com>
50086 to distinquish attached from not-yet-attached threads.
50088 2011-09-05 Denys Vlasenko <dvlasenk@redhat.com>
50098 (alloc_tcb): Do not set TCB_STARTUP on tcb allocation - we are
50100 (trace): Set TCB_STARTUP when we detech an auto-attached child.
50102 2011-09-02 Denys Vlasenko <dvlasenk@redhat.com>
50110 (startup_child): Remove non-informative comment.
50113 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50118 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50121 After recent change, select(2^31-1, NULL, NULL, NULL)
50123 it is always in [0, 1025*1024], IOW: we will try to allocate at most
50135 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50145 * desc.c (decode_select): Set tcp->auxstr as late as possible.
50147 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50149 Reformat setuid-ing code in startup_child()
50150 New code does the same as old one, but is more readable (I hope).
50152 * strace.c (startup_child): Reformat setuid-ing code.
50154 2011-09-01 Denys Vlasenko <dvlasenk@redhat.com>
50156 Minor tweaks in startup_child(). Logic isn't changed (but code is)
50199 2011-08-31 Denys Vlasenko <dvlasenk@redhat.com>
50201 Add README-linux-ptrace file.
50206 2011-08-31 Denys Vlasenko <dvlasenk@redhat.com>
50208 Make out-of-memory handling more uniform.
50231 2011-08-31 Denys Vlasenko <dvlasenk@redhat.com>
50239 usage of strcat() - use stpcpy(), *outptr++ = ch, sprintf() instead.
50243 2011-08-31 Denys Vlasenko <dvlasenk@redhat.com>
50247 Replace strintf() with open-coded binary to hex/oct conversions -
50259 2011-08-30 Denys Vlasenko <dvlasenk@redhat.com>
50262 * syscall.c (syscall_enter): Optimize tcp->u_arg[i] setting
50265 2011-08-30 Denys Vlasenko <dvlasenk@redhat.com>
50269 ptrace operation, one per register. This is slower than
50278 (syscall_enter): Set tcp->u_arg[i] from PTRACE_GETREGS results.
50279 (get_error): Set tcp->u_rval, tcp->u_error from PTRACE_GETREGS results.
50281 2011-08-30 Dmitry V. Levin <ldv@altlinux.org>
50284 * strace.c: Do not include <limits.h> explicitly, it is already included
50287 2011-08-30 Dmitry V. Levin <ldv@altlinux.org>
50293 Reported-by: Steve Bennett <steveb@workware.net.au>
50295 2011-08-26 Denys Vlasenko <dvlasenk@redhat.com>
50314 2011-08-25 Denys Vlasenko <dvlasenk@redhat.com>
50323 * syscall.c: Create syscall_fixup_on_sysexit() which is a copy of
50331 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50334 tabto is used in many lines of strace output.
50335 On glibc, tprintf("%*s", col - curcol, "") is noticeably slow
50348 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50352 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50360 * count.c (count_syscall): Use SCNO_IN_RANGE() instead of open-coded check.
50361 * syscall.c (getrval2): Use SCNO_IN_RANGE() instead of open-coded check.
50364 (get_scno): Use SCNO_IN_RANGE() instead of open-coded check.
50366 (known_scno): Use SCNO_IN_RANGE() instead of open-coded check.
50373 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50383 Group int-sized fields together in struct tcb.
50384 * defs.h: Group int-sized fields together in struct tcb.
50386 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50434 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50444 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50446 Unify per-architecture post-execve SIGTRAP check.
50447 Move post-execve SIGTRAP check from get_scno_on_sysenter
50451 However, on non-ancient Linux kernels we should never have post-execve
50454 * syscall.c (get_scno_on_sysenter): Remove tcp->flags & TCB_WAITEXECVE checks.
50455 (trace_syscall_entering): Do tcp->flags & TCB_WAITEXECVE check here.
50460 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50463 on x86, EAX read on syscall entry is not necessary if we know
50464 that post-execve SIGTRAP is disabled by PTRACE_O_TRACEEXEC ptrace option.
50467 only if we are in syscall entry and PTRACE_O_TRACEEXEC option is not on.
50472 and only if PTRACE_O_TRACEEXEC is not in effect.
50474 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50478 we don't save it anyway. This is the first real logic change
50480 is no longer read in each syscall exit.
50488 2011-08-24 Denys Vlasenko <dvlasenk@redhat.com>
50490 get_scno is an unholy mess, make it less horrible.
50492 It checks for post-execve SIGTRAP. It checks for changes
50494 Worse still, it is different in different architectures: for example,
50496 it is done in syscall_enter().
50498 Another problem is that get_scno() is called on both syscall entry and
50499 syscall exit, which is stupid: we don't need to know scno on syscall
50500 exit, it is already known from last syscall entry and stored in
50501 tcp->scno! In essence, get_scno() does two completely different things
50519 2011-08-23 Dmitry V. Levin <ldv@altlinux.org>
50522 * syscall.c [LINUX] (syscall_enter): Move tcp->u_nargs initialization
50523 from arch-specific ifdefs to common code. Always cache tcp->u_nargs in
50525 [IA64, AVR32] Rewrite tcp->u_arg[] initialization using a loop.
50527 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50531 * linux/ia64/syscallent.h: Change all 8-argument printargs
50533 linux/mips/syscallent.h: Change all two 7-argument printargs
50537 * mem.c (sys_mmap64): Fix a bug where we used tcp->u_args[i]
50540 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50542 Cache tcp->u_nargs in a local variable for for() loops.
50543 Loops of the form "for (i = 0; i < tcp->u_nargs; i++) ..."
50544 need to fetch tcp->u_nargs from memory on every iteration
50546 tcp->u_nargs won't change). This can be sped up
50547 by putting tcp->u_nargs in a local variable, which might
50550 * syscall.c (decode_subcall): Cache tcp->u_nargs in a local variable
50554 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50556 Drop checks for sysent[i].nargs == -1.
50559 (decode_subcall): Drop checks for sysent[i].nargs == -1.
50562 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50564 Stop using nargs == -1 in syscallent tables.
50565 Usage -1 as argument count in syscallent tables
50566 necessitates the check for it, a-la:
50567 if (sysent[tcp->scno].nargs != -1)
50568 tcp->u_nargs = sysent[tcp->scno].nargs;
50570 tcp->u_nargs = MAX_ARGS;
50571 which is stupid: we waste cycles checking something which
50572 is constant and known at compile time.
50575 * freebsd/i386/syscallent.h: Replace nargs of -1 with MA.
50584 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50588 in opposite order in the source is confusing.
50592 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50594 Fix -z display.
50596 open("qwerty", O_RDONLY) = -1 ENOENT
50598 was shown totally wrongly with -z:
50600 (yes, that's right, write syscall is lost!)
50601 Now it is shown "less wrongly" as:
50606 via "goto ret". This fixes totally broken display of -z, but even now
50607 it is not working as intended. Add a comment about that.
50611 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50613 Straighten up confused comments/messages about post-execve SIGTRAP handling
50618 for TCB_INSYSCALL. Fix comments about post-execve SIGTRAP.
50647 Exclude tcp->pfd from non-procfs systems.
50649 * strace.c (alloc_tcb): Use tcp->pfd only if USE_PROCFS.
50681 Convert ioctl_next_match() to new-style C function definition.
50682 * ioctl.c (ioctl_next_match): Convert to new-style C function definition.
50684 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50701 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50710 Use natural-sized integer field for tcb::flags.
50715 * syscall.c (get_scno): For POWERPC64 and X86-64, variable currpers
50716 is declared static. But its old data is never used. Convert it
50727 * freebsd/i386/syscallent.h: Correct sys_sendfile nargs 7->8
50728 * linux/mips/syscallent.h: Correct sys_sendfile64 nargs 5->4
50729 * linux/sh/syscallent.h: Correct sys_sendfile64 nargs 5->4
50730 * linux/sh64/syscallent.h: Correct sys_sendfile64 nargs 5->4
50731 * linux/m68k/syscallent.h: Correct sys_sendfile64 type TF->TD|TN
50732 * linux/microblaze/syscallent.h: Correct sys_sendfile64 type TF->TD|TN
50733 * linux/tile/syscallent.h: Correct sys_sendfile and sys_sendfile64 type TD->TD|TN
50739 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50742 I noticed that tcp->u_args[MAX_ARGS] array is way larger than
50747 into tcp->u_args[1...N] on entry and prints it on exit, a-la
50749 memcpy(&tcp->u_arg[1], &sc.oldmask[0], sizeof(sigset_t))
50751 The problem here is that in glibc sigset_t is insanely large:
50753 &tcp->u_args[1] even with MAX_ARGS == 32:
50754 On 32 bits, sizeof(tcp->u_args) == 32*4 == 128 bytes!
50758 NSIG can't ever be > 256, and in practice is <= 129,
50759 thus NSIG / 8 is <= 16 bytes == 4 32-bit words,
50769 * linux/mips/syscallent.h: Reduce nargs of printargs-type syscall to 7.
50770 * linux/arm/syscallent.h: Reduce nargs of printargs-type syscall to 6.
50780 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50783 * mem.c (sys_old_mmap): For Ia64 and 32-bit personality of x86-64,
50786 avoid copying of tcp->u_arg.
50787 (sys_mmap): Add FIXME comment - SH64 and i386 seem to be handled
50791 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50796 parameters are on stack (pointed to by tcp->u_arg[0]).
50799 After this, it's apparent we use tcp->u_arg[4,5,6] and possibly
50806 2011-08-23 Denys Vlasenko <dvlasenk@redhat.com>
50819 when we detect that NSIG is undefined. Add comment about
50825 NSIG is undefined. Add comment about NSIG on ARM.
50827 2011-08-23 Dmitry V. Levin <ldv@altlinux.org>
50842 2011-08-17 Denys Vlasenko <dvlasenk@redhat.com>
50844 Remove tcp->parent and TCB_CLONE_THREAD.
50845 tcp->parent is used for only two things:
50849 Not a big deal if we drop this optimization: "set options" op is fast,
50850 doing it just one extra time once per each tracee is hardly measurable.
50852 TCB_CLONE_THREAD is a misnomer. It used only to flag sibling we attached to
50853 in startup_attach. This is used to prevent infinite recursive rescanning
50855 Despite the name, there is no guarantee it is set only on non-leader:
50856 if one would run "strace -f -p THREAD_ID" and THREAD_ID is *not*
50858 and will think that THREAD_ID is the leader! Which is a bug, but
50859 since we no longer detach when we think tracee is going to die,
50871 * process.c (internal_fork): Don't set tcpchild->parent.
50873 TCB_CLONE_THREAD to avoid attach attempts on already-attached threads.
50874 Unlike TCB_CLONE_THREAD, TCB_ATTACH_DONE bit is used only temporarily,
50878 not only when tcp->parent == NULL.
50880 2011-08-17 Denys Vlasenko <dvlasenk@redhat.com>
50886 Background: on some other OSes, attach to child is done this way:
50888 new process/thread. This is ugly and not safe, but what matters for us
50889 is that it doesn't require suspending. Suspending is required
50890 on Linux only, because on Linux attach to child is done differently.
50898 strace can determine who is its parent (it needs child's pid for this,
50899 which is visible in parent's [v]fork/clone result).
50900 This is inherently racy. For example, what if SIGKILL kills
50904 But after previous commit, we DO NOT NEED parent<->child link for anything.
50908 right away. Next patch will remove tcp->parent member.
50917 2011-08-17 Denys Vlasenko <dvlasenk@redhat.com>
50919 Do not detach when we think tracee is going to die.
50923 Also, it detaches from a tracee when signal delivery is detected
50925 This operation is racy (not to mention the determination
50926 whether signal is set to SIG_DFL is a horrible hack):
50927 after we determined that this signal is indeed fatal
50933 First guess is that it's a workaround for old kernel bugs:
50936 (internal_exit is from 1995).
50938 The patch deletes the hacks. We no longer need tcp->nclone_threads,
50944 It is analogous to existing "+++ killed by SIG +++" message.
50950 (handle_new_child): Don't ++tcp->nclone_threads.
50953 * strace.c (startup_attach): Don't tcbtab[tcbi]->nclone_threads++.
50954 (droptcb): Don't delay dropping if tcp->nclone_threads > 0,
50962 * syscall.c (internal_syscall): Do not treat sys_exit specially -
50965 2011-08-16 Sergei Trofimovich <slyfox@gentoo.org>
50970 2011-08-15 Denys Vlasenko <dvlasenk@redhat.com>
50975 Consistently check wait errors as pid < 0, not pid == -1.
50977 Remove comments after endif if ifdef/endif block is really tiny.
50983 2011-07-19 Dmitry V. Levin <ldv@altlinux.org>
50992 Reported-by: Douglas Mencken <dougmencken@gmail.com>
50993 Reported-by: Steve Bennett <steveb@workware.net.au>
50995 2011-07-19 Denys Vlasenko <dvlasenk@redhat.com>
50997 Remove superfluous backslash-continuation in configure.ac.
51001 2011-06-24 Denys Vlasenko <dvlasenk@redhat.com>
51024 * strace.c (startup_attach): If -d, report pid and success/failure
51028 * strace.c (alloc_tcb): Print number of allocated tcb's if -d.
51032 ptrace event name, WCOREDUMP - all on one line.
51034 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51038 [SH]: Make register no array "const", pre-multiply it by 4.
51040 [X86_64]: Make register no array "const", pre-multiply it by 8.
51042 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51046 It is aggravated by the fact that it has a lot of {} blocks
51047 which are not necessary (the code is the same without them).
51049 While at it, it indents ifdefs so that nesting is easier to track,
51051 "tcp->u_nargs*sizeof..." -> "tcp->u_nargs * sizeof...".
51052 There is no actual changes to the code here.
51056 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51060 Therefore ifndef CLONE_PTRACE code is dead (since at least 2004).
51066 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51074 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51079 followfork is an already existing indicator of what we want to do.
51082 In internal_fork, check is moved to in front of if(), since
51083 the check is needed on both "entering" and "exiting" branch.
51087 test followfork instead of tcp->flags & TCB_FOLLOWFORK.
51091 2011-06-23 Dmitry V. Levin <ldv@altlinux.org>
51095 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51100 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51111 are very small (a few integer fields), stack is a better place
51115 2011-06-23 Denys Vlasenko <dvlasenk@redhat.com>
51126 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51143 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51147 Error from strace_fopen in newoutf is propagated to newoutf
51149 and alloc_tcb (where error is ignored). In second case,
51150 the behavior doesn't seem to be right: it means with -ff
51152 to go into *the same file as the previous process* - which
51155 to the same outf will be lost. I don't think this is sane.
51163 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51167 such as -1 or non-opened one. If we do, we have a bug
51177 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51181 unti it returns. Moreover, out-of-memory error was exiting
51185 * strace: Initialize popen_pid to 0 - this puts it in bss.
51186 (trace): Reset popen_pid to 0 instead of -1.
51191 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51196 it only sets tcp->flags |= TCB_FOLLOWFORK and maybe calls
51197 expand_tcbtab(). The second operation is not necessary, since
51199 This patch deletes fork_tcb(), open-coding tcp->flags |= TCB_FOLLOWFORK
51207 (internal_fork): Open-code fork_tcb.
51213 2011-06-22 Denys Vlasenko <dvlasenk@redhat.com>
51222 from old ones because we forgot to re-initialize it.
51227 2011-06-21 Denys Vlasenko <dvlasenk@redhat.com>
51234 2011-06-21 Dmitry V. Levin <ldv@altlinux.org>
51236 Fix build when libaio-devel is not available.
51238 HAVE_LIBAIO_H is set.
51240 Reported-by: Denys Vlasenko <dvlasenk@redhat.com>
51242 2011-06-21 Dmitry V. Levin <ldv@altlinux.org>
51248 2011-06-21 Denys Vlasenko <dvlasenk@redhat.com>
51250 Remove write-only nchildren member from struct tcb.
51252 * process.c (handle_new_child): Remove inc/decrements of tcp->nchildren.
51256 (alloc_tcb): Remove initialization of tcp->nchildren.
51260 Remove write-only nzombies member from struct tcb.
51262 * strace.c (droptcb): Remove "tcp->parent->nzombies++".
51263 (alloc_tcb): Remove "tcp->nzombies = 0".
51265 2011-06-21 Denys Vlasenko <dvlasenk@redhat.com>
51270 The check (tcp->parent == NULL) in old code was meant to check
51271 "if we are not a child created by auto-attach" - in this case,
51274 I misunderstood the check and if tcp->parent is not NULL, I was
51289 depending on "tcp->parent == NULL" condition. Add a comment
51290 which makes it more clear why this condition is checked.
51292 2011-06-18 Denys Vlasenko <dvlasenk@redhat.com>
51295 strace used to suspend waitpid until there is a child
51300 This kernel bug is fixed long ago. This change removes the workaround.
51301 test/wait_must_be_interruptible.c is a test program which
51308 * strace.c (alloc_tcb): Do not set tcp->nclone_waiting.
51315 2011-06-13 Andi Kleen <ak@linux.intel.com>
51325 2011-06-13 Dmitry V. Levin <ldv@altlinux.org>
51342 2011-06-13 Andi Kleen <ak@linux.intel.com>
51348 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51357 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51360 The test have to be adjusted after commit v4.6-5-g3454e4b.
51367 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51371 2011-06-09 Dmitry V. Levin <ldv@altlinux.org>
51377 Reported-by: Denys Vlasenko <dvlasenk@redhat.com>
51379 2011-06-08 Denys Vlasenko <dvlasenk@redhat.com>
51386 at least on these architectures). Do the same change for I386 and x86-64
51389 (I hesitate to change 1 to 0 params for arches I don't know -
51390 it is remotely possible some of them do have a parameter for this syscall).
51395 into "if (entering) ..." block, because it is only needed
51396 in this branch; load tcp->u_arg[1] into sigmask for display
51402 to fetch zero bytes. This is just an optimization.
51404 "Modernize" four old-style function parameter declarations.
51406 Convert old-style C function definitions to a "modern" form.
51409 2011-06-08 Denys Vlasenko <dvlasenk@redhat.com>
51418 2011-06-08 Denys Vlasenko <dvlasenk@redhat.com>
51420 Print at least one space between SYSCALL(ARGS) and = RESULT if tracee is killed
51422 tracee is gone (SIGKILLed?) sometimes we were printing this:
51423 "SYSCALL(ARGS <unavailable>)= ? <unavailable>" - note jammed together ")=".
51428 2011-06-08 Denys Vlasenko <dvlasenk@redhat.com>
51432 Update test/* directory, it seem to be a bit bit-rotted.
51437 2011-06-07 Denys Vlasenko <dvlasenk@redhat.com>
51445 add space between "if" and (condition), correct non-standard
51485 2011-05-30 Dmitry V. Levin <ldv@altlinux.org>
51487 ARM EABI: fix 64-bit syscall's arguments decoding.
51489 With EABI, 64-bit function parameters passed in registers are aligned to
51490 an even-numbered register instead of using the next available pair, see
51499 Reported-by: Damir Shayhutdinov <damir@altlinux.org>
51501 2011-05-30 Damir Shayhutdinov <damir@altlinux.ru>
51508 2011-05-30 Denys Vlasenko <dvlasenk@redhat.com>
51510 "Modernize" all old-style function parameter declarations.
51511 * bjm.c: Convert all remaining old-style C function definitions
51527 2011-05-27 Denys Vlasenko <dvlasenk@redhat.com>
51536 (startup_attach): Change strace_tracer_pid if we are in -D mode.
51540 2011-05-25 Denys Vlasenko <dvlasenk@redhat.com>
51545 2011-05-24 Denys Vlasenko <dvlasenk@redhat.com>
51551 if we know that post-execve SIGTRAP is not going to happen.
51553 2011-05-23 Denys Vlasenko <dvlasenk@redhat.com>
51564 (trace): Check events and set ptrace options without -f too.
51567 2011-04-24 Mike Frysinger <vapier@gentoo.org>
51574 2011-04-24 Mike Frysinger <vapier@gentoo.org>
51580 2011-04-08 Grant Edwards <grant.b.edwards@gmail.com>
51584 user-specified file paths.
51590 (usage, main): Implement handling of -y and -P options.
51591 * strace.1: Add descriptions of -y and -P options.
51598 2011-04-07 Dmitry V. Levin <ldv@altlinux.org>
51604 2011-03-15 Dmitry V. Levin <ldv@altlinux.org>
51613 2011-03-14 Dmitry V. Levin <ldv@altlinux.org>
51621 * debian/changelog: 4.6-1.
51622 * strace.spec: 4.6-1.
51624 2011-03-14 Mike Frysinger <vapier@gentoo.org>
51630 The basic method is:
51631 - each arch has linux/<arch>/ioctlent.h.in which defines only the
51632 arch-specific ioctls;
51633 - linux/ioctlent.h.in which defines only the common ioctls;
51634 - at build time, these two headers are combined and sorted to produce
51638 common ioctlent.h is a built file.
51642 non-asm entries from the latter.
51644 non-asm entries.
51646 non-asm entries.
51648 non-asm entries.
51650 non-asm entries.
51652 non-asm entries.
51654 remove non-asm entries.
51656 non-asm entries.
51658 non-asm entries.
51660 non-asm entries.
51677 * Makefile.am (AM_CPPFLAGS): Add -I$(builddir)/$(OS).
51683 2011-03-10 Dmitry V. Levin <ldv@altlinux.org>
51691 * strace.c [!USE_PROCFS] (trace): Assume that PTRACE_GETSIGINFO is
51695 Enhance decoding of kernel-generated signals.
51697 zero-initialized fields.
51699 Fix decoding of user-generated signals.
51708 2011-03-05 Sebastian Pipping <sebastian@pipping.org>
51713 2011-03-04 Dmitry V. Levin <ldv@altlinux.org>
51741 2011-03-03 Sebastian Pipping <sebastian@pipping.org>
51751 2011-03-03 Dmitry V. Levin <ldv@altlinux.org>
51757 NULL-terminated.
51760 * tests/ptrace_setoptions: Replace "grep -q" with "grep > /dev/null".
51765 2011-03-01 Mike Frysinger <vapier@gentoo.org>
51771 2011-02-27 Dmitry V. Levin <ldv@altlinux.org>
51774 * configure.ac (AM_INIT_AUTOMAKE): Replace dist-bzip2 with dist-xz.
51776 * make-dist: Update for dist-xz.
51779 * .gitignore: Add strace-*.tar.xz.
51782 * debian/control: Update Build-Depends.
51786 Implement two basic "strace -f" tests.
51793 * tests/strace-f: Likewise.
51795 2011-02-26 Dmitry V. Levin <ldv@altlinux.org>
51808 2011-02-25 Dmitry V. Levin <ldv@altlinux.org>
51821 2011-02-24 Dmitry V. Levin <ldv@altlinux.org>
51832 2011-02-23 Dmitry V. Levin <ldv@altlinux.org>
51844 Fix compilation warning reported by gcc -Wunused-but-set-variable.
51847 2011-02-22 Mike Frysinger <vapier@gentoo.org>
51855 2011-02-22 Mike Frysinger <vapier@gentoo.org>
51863 2011-02-22 Dmitry V. Levin <ldv@altlinux.org>
51866 * debian/changelog: Sync with 4.5.20-2.
51869 2011-02-20 Dmitry V. Levin <ldv@altlinux.org>
51907 2011-02-19 Dmitry V. Levin <ldv@altlinux.org>
51913 2011-02-19 Mike Frysinger <vapier@gentoo.org>
51917 the few sparc-specific pieces into the linux/syscall.h header.
51919 * linux/syscall.h: Add sparc-specific pieces from sparc/syscall.h.
51924 2011-02-19 Mike Frysinger <vapier@gentoo.org>
51932 2011-02-19 Mike Frysinger <vapier@gentoo.org>
51941 2011-02-19 Dmitry V. Levin <ldv@altlinux.org>
51947 2011-02-18 Dmitry V. Levin <ldv@altlinux.org>
51955 2011-02-09 Dmitry V. Levin <ldv@altlinux.org>
51958 * syscall.c (dumpio): Switch on tcp->sys_func instead of tcp->scno
51964 2011-02-05 Dmitry V. Levin <ldv@altlinux.org>
51968 2011-01-19 Dmitry V. Levin <ldv@altlinux.org>
51983 2011-01-18 Mike Frysinger <vapier@gentoo.org>
51988 2011-01-17 Dmitry V. Levin <ldv@altlinux.org>
52013 2011-01-16 Dmitry V. Levin <ldv@altlinux.org>
52023 2011-01-15 Dmitry V. Levin <ldv@altlinux.org>
52033 2011-01-14 Holger Hans Peter Freyther <zecke@selfish.org>
52043 2011-01-14 Dmitry V. Levin <ldv@altlinux.org>
52046 * strace.1: Use bold instead of italics for "-e trace=" keywords.
52057 2011-01-13 Dmitry V. Levin <ldv@altlinux.org>
52062 the same set of options that is going to be used later in trace().
52064 2011-01-10 Dmitry V. Levin <ldv@altlinux.org>
52068 2011-01-10 Holger Hans Peter Freyther <holger@freyther.de>
52072 2011-01-10 Carmelo AMOROSO <carmelo.amoroso@st.com>
52074 sh: Add entry for not-multiplexed accept4.
52075 * linux/sh/syscallent.h: Add specific entry for not-multiplexed accept4
52076 available in kernel mainline since v2.6.37-rc6, see
52077 …http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=21b6e4c7106b2d68a67105…
52079 2010-12-14 Carmelo AMOROSO <carmelo.amoroso@st.com>
52081 sh: Add entries for not-multiplexed socket calls.
52082 * linux/sh/syscallent.h: Add specific entries for not-multiplexed
52083 socket calls (available in kernel mainline since v2.6.37-rc1)
52093 2010-12-14 Dmitry V. Levin <ldv@altlinux.org>
52099 2010-12-07 Dmitry V. Levin <ldv@altlinux.org>
52101 Fix strace -f -o '|command' hangup.
52103 -o option, otherwise a forked command will cause a hangup inside
52106 2010-12-03 Dmitry V. Levin <ldv@altlinux.org>
52121 2010-12-03 Carmelo AMOROSO <carmelo.amoroso@st.com>
52129 Reviewed-by: Angelo Castello <angelo.castello@st.com>
52131 2010-11-30 Dmitry V. Levin <ldv@altlinux.org>
52138 2010-11-30 Wang Chao <wang.chao@cn.fujitsu.com>
52150 ptrace_setoptions is in effect.
52152 [LINUX] (trace): If ptrace_setoptions is in effect, then
52156 2010-11-30 Wang Chao <wang.chao@cn.fujitsu.com>
52168 whether kernel supports PTRACE_O_CLONE/*FORK, the result is stored
52170 (main): Call test_ptrace_setoptions() if followfork option is set.
52172 2010-09-17 Dmitry V. Levin <ldv@altlinux.org>
52175 * configure.ac (AM_INIT_AUTOMAKE): Add silent-rules.
52177 2010-09-17 Wang Chao <wang.chao@cn.fujitsu.com>
52180 If clone is called with flag CLONE_UNTRACED, to be consistent with
52186 2010-09-17 Dmitry V. Levin <ldv@altlinux.org>
52192 2010-09-16 Dmitry V. Levin <ldv@altlinux.org>
52197 2010-09-15 Dmitry V. Levin <ldv@altlinux.org>
52204 (qualify): Update use of qualify_one and qual_options->qualify.
52206 2010-09-15 Wang Chao <wang.chao@cn.fujitsu.com>
52208 Fix -e option with only one value in qualifier statement.
52209 Fix regression introduced by commit v4.5.20-19-g30145dd:
52210 if -e option is used with only one value in qualifier statement,
52211 e.g. 'strace -e trace=open ls', syscall information would not be
52216 2010-09-15 Mike Frysinger <vapier@gentoo.org>
52218 Fix off_t/rlim_t size checks when cross-compiling.
52220 which obviously doesn't work when cross-compiling. While we don't hit
52221 any configure errors, the fall back code is pretty dumb (which is to say
52229 2010-09-15 Mike Frysinger <vapier@gentoo.org>
52231 Fix long long little endian detection when cross-compiling.
52233 doesn't work when cross-compiling, it sets a fallback value. However,
52236 there when cross-compiling for them. It certainly breaks Blackfin
52238 and key off of that when cross-compiling.
52241 * m4/long_long.m4 (AC_LITTLE_ENDIAN_LONG_LONG): Set cross-compiling
52244 2010-09-15 Mike Frysinger <vapier@gentoo.org>
52251 * linux/ioctlent.sh: Search a few non-exported paths.
52253 2010-09-15 Roland McGrath <roland@redhat.com>
52260 2010-09-09 Dmitry V. Levin <ldv@altlinux.org>
52263 * configure.ac: Enable gcc -Wwrite-strings.
52271 * Makefile.am (ACLOCAL_AMFLAGS): Add "-I m4".
52287 2010-09-07 Dmitry V. Levin <ldv@altlinux.org>
52289 Fix const-correctness issues uncovered by gcc -Wwrite-strings.
52322 2010-09-04 Wang Chao <wang.chao@cn.fujitsu.com>
52330 2010-08-28 Wang Chao <wang.chao@cn.fujitsu.com>
52333 Remove nclone_detached since CLONE_DETACHED flag was no-op for a very
52345 2010-08-09 Neil Campbell <lists@thebatcave.org.uk>
52350 2010-08-09 Wang Chao <wang.chao@cn.fujitsu.com>
52353 * process.c (internal_fork): The parent of new cloned process is the
52354 same of the calling process when CLONE_PARENT is set.
52357 * process.c (internal_wait): Processes counted in tcp->nclone_threads
52360 2010-08-09 Wang Chao <wang.chao@cn.fujitsu.com>
52362 Forbid using mutually exclusive options -D and -p together.
52363 If we use -D and -p option together to trace a multi-thread program, in
52365 present -f option. Moreover, when executing 'strace -D -p <non-exist pid>',
52370 2010-08-05 David Daney <ddaney@caviumnetworks.com>
52372 Update Linux MIPS syscalls to match 2.6.35-rc6+
52375 2010-08-05 Edgar E. Iglesias <edgar.iglesias@gmail.com>
52387 2010-08-05 Frederik Schüler <fs@debian.org>
52392 2010-07-17 Andreas Schwab <schwab@linux-m68k.org>
52398 2010-07-13 Andreas Schwab <schwab@linux-m68k.org>
52410 32-bit personality.
52421 2010-07-09 Andreas Schwab <schwab@redhat.com>
52427 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
52433 2010-06-24 Andreas Schwab <schwab@redhat.com>
52435 Document -C/-D.
52436 * strace.c (usage): Document -C.
52437 * strace.1: Document -D.
52439 2010-06-13 Roland McGrath <roland@redhat.com>
52443 2010-06-05 Andreas Schwab <schwab@linux-m68k.org>
52449 2010-05-28 Andreas Schwab <schwab@linux-m68k.org>
52461 2010-04-13 Dmitry V. Levin <ldv@altlinux.org>
52466 * debian/changelog: 4.5.20-1.
52467 * strace.spec: 4.5.20-1.
52469 2010-04-13 Frederik Schüler <fs@debian.org>
52472 * debian/control: update standards-version to 3.8.4.
52477 * debian/rules: use *-stamp instead of stamp-*, so dh_clean can tidy
52480 2010-04-13 Heiko Carstens <heiko.carstens@de.ibm.com>
52487 2010-04-07 Dmitry V. Levin <ldv@altlinux.org>
52490 * linux/ioctlent.sh: Search in asm-generic directory as well.
52522 2010-04-07 Andreas Schwab <schwab@linux-m68k.org>
52544 2010-04-07 Dmitry V. Levin <ldv@altlinux.org>
52552 Implement -C option to combine regular and -c output.
52554 * strace.1: Document -C option.
52556 (main): Handle -C option.
52562 Fix "make dist" regression introduced by commit v4.5.19-12-g5078770.
52569 2010-03-31 Dmitry V. Levin <ldv@altlinux.org>
52572 This regression was introduced by commit v4.5.18-136-g783f5bc.
52577 2010-03-23 Mark Wielaard <mjw@redhat.com>
52587 2010-03-09 Andreas Schwab <schwab@redhat.com>
52593 2010-02-23 Andreas Schwab <schwab@linux-m68k.org>
52599 2010-02-09 David Daney <ddaney@caviumnetworks.com>
52603 tcp->pid to ptrace().
52605 2010-02-05 Chris Metcalf <cmetcalf@tilera.com>
52619 2010-02-04 Dmitry V. Levin <ldv@altlinux.org>
52643 2010-02-04 Frederik Schüler <fs@debian.org>
52650 * debian/control: Update standards-version to 3.8.3.
52661 2010-01-25 Andreas Schwab <schwab@redhat.com>
52666 2010-01-12 Andreas Schwab <schwab@redhat.com>
52669 * strace.c (detach): Call clearbpt when TCB_BPTSET is set.
52671 2009-12-25 Dmitry V. Levin <ldv@altlinux.org>
52677 2009-12-24 Chris Metcalf <cmetcalf@tilera.com>
52683 2009-11-16 Mike Frysinger <vapier@gentoo.org>
52685 Move i386-specific files out of common linux dir.
52692 2009-11-16 Andreas Schwab <schwab@redhat.com>
52694 Remove support for pre-C89.
52698 2009-11-13 Dmitry V. Levin <ldv@altlinux.org>
52706 2009-11-11 Andreas Schwab <schwab@redhat.com>
52708 Ignore errors if a thread is killed.
52711 2009-11-06 Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
52717 if struct statfs64 is available.
52719 2009-11-06 Dmitry V. Levin <ldv@altlinux.org>
52737 Fix check for linux/netlink.h on Linux 2.6.32-rc5+
52741 2009-11-04 Andreas Schwab <schwab@redhat.com>
52763 2009-11-03 Andreas Schwab <schwab@redhat.com>
52773 2009-10-27 Andreas Schwab <schwab@redhat.com>
52782 2009-10-21 Roland McGrath <roland@redhat.com>
52784 * strace.spec: 4.5.19-1 release.
52786 2009-10-21 Dmitry V. Levin <ldv@altlinux.org>
52790 2009-10-16 Andreas Schwab <schwab@redhat.com>
52792 Fix decoding of newfstatat syscall on x86-64.
52793 * file.c (printstat64) [LINUX && X68_64]: If tracing a 64-bit
52798 2009-10-12 Dmitry V. Levin <ldv@altlinux.org>
52802 2009-10-12 Mike Frysinger <vapier@gentoo.org>
52823 2009-10-11 Roland McGrath <roland@redhat.com>
52825 * make-dist: Clean up.
52829 2009-10-09 Dmitry V. Levin <ldv@altlinux.org>
52831 * make-dist: New script for preparing release tarballs.
52833 * git-set-file-times: Import from rsync.
52837 2009-10-08 Dmitry V. Levin <ldv@altlinux.org>
52851 2009-10-08 Jakub Bogusz <qboosh@pld-linux.org>
52857 2009-10-08 Mike Frysinger <vapier@gentoo.org>
52859 Add support for Linux/no-mmu with vfork.
52867 On end of directory, getdents returns 0. This return value is used to
52869 NULL. Since the code won't read the pointer in question if len is 0,
52873 2009-10-07 Mike Frysinger <vapier@gentoo.org>
52895 2009-10-07 Andreas Schwab <schwab@redhat.com>
52901 2009-10-07 Roland McGrath <roland@redhat.com>
52903 * strace.spec (%doc): Add ChangeLog-CVS.
52908 ($(srcdir)/ChangeLog): New target, replaces gen-changelog phony target.
52911 2009-10-06 Dmitry V. Levin <ldv@altlinux.org>
52915 2009-10-05 Frederik Schüler <fs@debian.org>
52923 2009-10-05 Dmitry V. Levin <ldv@altlinux.org>
52930 2009-10-05 Carlos O'Donell <carlos@systemhalted.org>
52939 2009-10-05 Edgar E. Iglesias <edgar.iglesias@gmail.com>
52947 2009-10-05 Dmitry V. Levin <ldv@altlinux.org>
52951 2009-09-21 Dmitry V. Levin <ldv@altlinux.org>
52955 2009-09-19 Dmitry V. Levin <ldv@altlinux.org>
52960 * debian/changelog: 4.5.19-1.
52961 * strace.spec: 4.5.19-1.
52963 Update debian/* to 4.5.18-1.
52964 * debian/changelog: Update to 4.5.18-1.
52966 * debian/control (Build-Depends): Update debhelper requirement.
52969 2009-09-19 Kirill A. Shutemov <kirill@shutemov.name>
52974 2009-09-18 Dmitry V. Levin <ldv@altlinux.org>
52977 __NR_SYSCALL_BASE eis 0 for EABI and is 0x900000 for OABI.
52981 Reviewed-by: Kirill A. Shutemov <kirill@shutemov.name>
52983 2009-09-18 Mike Frysinger <vapier@gentoo.org>
52994 2009-09-01 Paolo Bonzini <pbonzini@redhat.com>
52997 This second patch in the series adds support for accept4 as a socketcall
52998 sub-call. Besides the need to renumber all system calls, this poses
53016 2009-09-01 Paolo Bonzini <pbonzini@redhat.com>
53018 Replace x86-64 paccept with accept4.
53019 This patch changes the paccept syscall to accept4 for x86-64, since
53020 the former was dropped in Linux kernel commit v2.6.27-rc7-14-g2d4c826.
53029 2009-08-28 Andreas Schwab <schwab@redhat.com>
53031 Zero-extend 32-bit addresses when printing argv array.
53032 (printargv): Zero-extend 32-bit addresses.
53033 Fixes RH#519480 "64-bit strace is lazy on execve of 32-bit
53036 2009-08-12 Andreas Schwab <schwab@redhat.com>
53045 2009-07-08 Dmitry V. Levin <ldv@altlinux.org>
53049 * ChangeLog: Rename to ChangeLog-CVS.
53050 * Makefile.am (gen-changelog): New rule.
53051 (dist-hook): Depend on it.
53052 (EXTRA_DIST): Add ChangeLog-CVS.
53053 * README-hacking: Describe changes.
53054 * gitlog-to-changelog: Import from gnulib.
53057 See ChangeLog-CVS for older changes.