tests: extend coverage of execve and execveat syscalls

Check decoding of inaccessible or partially inaccessible arrays.

* tests/execve-v.c: New file.
* tests/execveat-v.c: Likewise.
* tests/execve-v.test: New test.
* tests/execveat-v.test: Likewise.
* tests/execve.c: Rewrite.
* tests/execveat.c: Likewise.
* tests/execve.test: Likewise.
* tests/execveat.test: Likewise.
* tests/execve.expected: Remove.
* tests/execve-v.expected: Likewise.
* tests/execveat.expected: Likewise.
* tests/execveat-v.expected: Likewise.
* tests/.gitignore: Add execve-v and execveat-v.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add execve-v.test and execveat-v.test.
(EXTRA_DIST): Remove execve.expected, execve-v.expected,
execveat.expected, and execveat-v.expected.
14 files changed
tree: 4ac6ff5f945086c912f54e4e9ac91c40b920602b
  1. .gitignore
  2. .mailmap
  3. .travis.yml
  4. AUTHORS
  5. COPYING
  6. CREDITS.in
  7. ChangeLog-CVS
  8. HACKING-scripts
  9. INSTALL
  10. Makefile.am
  11. NEWS
  12. README
  13. README-hacking
  14. README-linux-ptrace
  15. README-mpers
  16. README.md
  17. access.c
  18. affinity.c
  19. aio.c
  20. alpha.c
  21. bjm.c
  22. block.c
  23. bootstrap
  24. bpf.c
  25. build_static_example.sh
  26. cacheflush.c
  27. capability.c
  28. caps0.h
  29. caps1.h
  30. chdir.c
  31. chmod.c
  32. clone.c
  33. configure.ac
  34. count.c
  35. debian/
  36. defs.h
  37. desc.c
  38. dirent.c
  39. dirent64.c
  40. empty.h
  41. epoll.c
  42. errnoent.sh
  43. evdev.c
  44. eventfd.c
  45. execve.c
  46. exit.c
  47. fadvise.c
  48. fallocate.c
  49. fanotify.c
  50. fchownat.c
  51. fcntl.c
  52. fetch_seccomp_fprog.c
  53. fetch_struct_flock.c
  54. file.c
  55. file_handle.c
  56. flock.c
  57. flock.h
  58. futex.c
  59. gcc_compat.h
  60. generate_mpers_am.sh
  61. generate_sen.sh
  62. generate_xlat_in.sh
  63. get_robust_list.c
  64. getcpu.c
  65. getcwd.c
  66. getrandom.c
  67. git-set-file-times
  68. git-version-gen
  69. gitlog-to-changelog
  70. hostname.c
  71. inotify.c
  72. io.c
  73. ioctl.c
  74. ioctlsort.c
  75. ioperm.c
  76. iopl.c
  77. ioprio.c
  78. ipc_defs.h
  79. ipc_msg.c
  80. ipc_msgctl.c
  81. ipc_sem.c
  82. ipc_shm.c
  83. ipc_shmctl.c
  84. kcmp.c
  85. kernel_types.h
  86. kexec.c
  87. keyctl.c
  88. ldt.c
  89. link.c
  90. linux/
  91. lookup_dcookie.c
  92. loop.c
  93. lseek.c
  94. m4/
  95. maint/
  96. make-dist
  97. mem.c
  98. membarrier.c
  99. memfd_create.c
  100. mknod.c
  101. mount.c
  102. mpers.awk
  103. mpers.sh
  104. mpers_test.sh
  105. mpers_type.h
  106. mq.c
  107. mtd.c
  108. native_defs.h
  109. net.c
  110. open.c
  111. or1k_atomic.c
  112. pathtrace.c
  113. perf.c
  114. personality.c
  115. poll.c
  116. prctl.c
  117. print_mq_attr.c
  118. print_msgbuf.c
  119. print_sigevent.c
  120. print_time.c
  121. print_timex.c
  122. printmode.c
  123. printrusage.c
  124. printsiginfo.c
  125. printsiginfo.h
  126. printstat.h
  127. process.c
  128. process_vm.c
  129. ptp.c
  130. ptrace.h
  131. qemu_multiarch_testing/
  132. quota.c
  133. readahead.c
  134. readlink.c
  135. reboot.c
  136. regs.h
  137. renameat.c
  138. resource.c
  139. rtc.c
  140. sched.c
  141. scsi.c
  142. seccomp.c
  143. seccomp_fprog.h
  144. sendfile.c
  145. sigaltstack.c
  146. sigevent.h
  147. signal.c
  148. signalent.sh
  149. signalfd.c
  150. sigreturn.c
  151. sock.c
  152. socketutils.c
  153. sram_alloc.c
  154. statfs.c
  155. strace-graph
  156. strace-log-merge
  157. strace.1
  158. strace.c
  159. strace.spec
  160. swapon.c
  161. sync_file_range.c
  162. syscall.c
  163. syscallent.sh
  164. sysctl.c
  165. sysinfo.c
  166. syslog.c
  167. sysmips.c
  168. term.c
  169. test/
  170. tests/
  171. time.c
  172. times.c
  173. travis-ci.sh
  174. truncate.c
  175. uid.c
  176. uid16.c
  177. umask.c
  178. umount.c
  179. uname.c
  180. unwind.c
  181. userfaultfd.c
  182. util.c
  183. utime.c
  184. utimes.c
  185. v4l2.c
  186. vsprintf.c
  187. wait.c
  188. xattr.c
  189. xlat/
  190. xlate.el
  191. xmalloc.c
README.md

This is strace -- a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.

strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.

See the file NEWS for information on what has changed in recent versions.

Please send bug reports and enhancements to the strace mailing list.

Build Status Code Coverage