* Rebased Makefile-ptest.patch for 6.15
* License-Update: Update copyright year from 2024 to 2025
(From OE-Core rev: 3cb2541fa48118fb545545670dae1cd39a9e7ee3)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Release highlights:
https://github.com/strace/strace/releases/tag/v6.12
Drop patch merged upstream:
0001-sched_attr-Define-conditionally-on-SCHED_ATTR_SIZE_V.patch
3b6f69aa2 sched_attr: Define conditionally on SCHED_ATTR_SIZE_VER1
qemux86-64 ptest results:
glibc musl:
TOTAL: 1393 1393
PASS: 1066 1059
SKIP: 327 330
XFAIL: 0 0
FAIL: 0 4
XPASS: 0 0
ERROR: 0 0
The skipped tests are mostly SELinux.
The musl tests that fail, currently for unknown reasons, are:
pread64-pwrite64.gen
preadv-pwritev.gen
pwritev.gen
uio
At least for pread64-pwrite6 the pwrite(64) syscalls are not traced
and that makes the test fail.
(From OE-Core rev: 07d4e9312781f5a865cbdd088d5e3485e8c1bffc)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Increase timeout to from 240 to 600 seconds for the following slow tests:
filtering_syscall-syntax, qual_fault-syscall, qual_fault
(From OE-Core rev: d2b7a8883f47257c1800584fb2d9433ce519d23a)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
So that it does not conflict with glibc 2.41+ newly added definitions
(From OE-Core rev: 76b02cd44d776ba01cbc238b33ecbe2978122244)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Makefile-ptest.patch
refreshed for 6.11
Improvements
=============
* Implemented decoding of uretprobe syscall.
* Implemented decoding of WDIOC_GETSUPPORT and WDIOC_SETOPTIONS ioctl
commands.
* Enhanced decoding of unknown ioctl commands in non-abbreviated mode
by printing the contents of the ioctl argument buffer in hexadecimal format.
* Updated decoding of listmount, statmount, and statx syscalls.
* Updated lists of ETHTOOL_*, IORING_*, IPPROTO_*, RWF_*, STATX_*, and V4L2_*
constants.
* Updated lists of ioctl commands from Linux 6.11.
(From OE-Core rev: f2f82d4dc0536b19329cd485a0966668e5a9d0a3)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Makefile-ptest.patch
refreshed for 6.10
Changelog:
===========
* Improvements
* Implemented --decode-fds=eventfd option to retrieve eventfd object details
associated with eventfd file descriptors.
* Implemented decoding of NETLINK_GENERIC nlctrl protocol.
* Implemented decoding of F_DUPFD_QUERY fcntl.
* Implemented decoding of mseal syscall.
* Updated decoding of statx and prctl syscalls.
* Updated decoding of BPF_RAW_TRACEPOINT_OPEN bpf command.
* Updated lists of BPF_*, IORING_*, KEXEC_*, KEY_*, LANDLOCK_*, PR_*, STATX_*,
TCP_*, TEE_*, V4L2_*, and *_MAGIC constants.
* Updated lists of ioctl commands from Linux 6.10.
* Bug fixes
* Worked around a bug introduced in Linux 6.5 that affected system call
tampering on riscv64.
(From OE-Core rev: ff5fb4fa63db46e747fe3b0710d041a46ab2aec9)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This patch is made by AUH and rebased the following patches:
0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch
0001-strace-fix-reproducibilty-issues.patch
0002-tests-Replace-off64_t-with-off_t.patch
Makefile-ptest.patch
ptest-spacesave.patch
skip-load.patch
update-gawk-paths.patch
(From OE-Core rev: 5efe057e6cf0b5f217d9a5af0cec93b92435ad62)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Update the COPYING checksum; only the copyright date changed.
Noteworthy changes in strace 6.6 (2023-10-31)
=============================================
* Improvements
* Implemented --kill-on-exit option that instructs the tracer to set
PTRACE_O_EXITKILL option to all tracee processes and not to detach them
on cleanup so they will not be left running after the tracer exit.
* Implemented automatic activation of --kill-on-exit option when
--seccomp-bpf is enabled and -p/--attach option is not used.
* Implemented decoding of map_shadow_stack syscall.
* Implemented decoding of FSCONFIG_CMD_CREATE_EXCL fsconfig command.
* Implemented decoding of IFLA_BRPORT_BACKUP_NHID netlink attribute.
* Implemented decoding of SECCOMP_IOCTL_NOTIF_SET_FLAGS ioctl.
* Implemented decoding of UFFDIO_CONTINUE, UFFDIO_POISON, and
UFFDIO_WRITEPROTECT ioctls.
* Updated lists of ARCH_*, BPF_*, DEVCONF_*, IORING_*, KEXEC_*, MAP_*, NT_*,
PTRACE_*, QFMT_*, SEGV_*, UFFD_*, V4L2_*, and XDP_* constants.
* Updated lists of ioctl commands from Linux 6.6.
ptest-runner results on qemux86-64/kvm with qemuparms="-m 1024 -smp 4":
============================================================================
Testsuite summary for strace 6.6
============================================================================
============================================================================
(From OE-Core rev: 12ae00d4cc4ed78643cafce97cd02e396b3348f4)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Backport the fix for the so_peerpidfd-test:
44cf51a38 tests: fix so_peerpidfd test
and drop the patch that skipped that test.
(From OE-Core rev: 0a52da6530ebba08f9a3b30d5098b0c3ef1730d7)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Removing the out files removes about 350MB of data which helps staying
in the currently allocated ptest image space as we are hitting disk
space issues after enabling the parallelization of tests.
Fixes [Yocto #15220]
(From OE-Core rev: fc424293b22bd15b3b13d98f8eedda599709c930)
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The so_peerpidfd test is failing in every linux-yocto-6.5 ptest run
due to a difference of square brackets in part of the log file.
Skip the failing test until the difference is understood and fixed.
(From OE-Core rev: d7c9afbef0b440f5dbd16b3e8a3cb1ac5c513836)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
strace is one of the slowest tests otherwise (can take 40 minutes or more),
and this brings it to under 10 minutes \0/
(From OE-Core rev: 0c632b418a785494318d9f375a07d879772e8ced)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Replace the sockopt disable patch with a fix from upstream. Also add a
patch to handle accept/accept4 differences when using glibc optimisations
for platforms where socketcall is used instead of an accept syscall such
as 32 bit x86.
(From OE-Core rev: ac921989991c319ecad01bec37c4ccaa15a7b58f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Both patches change the same paths to gawk, merge them together
as we only need one patch for this.
(From OE-Core rev: 79c0b18e29cad337640860f57683f0a170f6daab)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This test is failing for uncertain reasons. We have reported upstream, disable
it until we can work out why this happened. The point it started failing is
unclear due to other test framework issues.
(From OE-Core rev: 2e9165a854c7b83f163479e9dbd3cb183a9d71f5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
0001-landlock-update-expected-string.patch
removed since it's not available in 5.18.
skip-load.patch
refreshed for new version.
(From OE-Core rev: cfcb1a22866e9075a6d0d64fa567d140bef66f2a)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Kernel commit:
commit 3d4b396a616d0d67bf95d6823ad1197f6247292e
Author: Christian Brauner <christian.brauner@ubuntu.com>
Date: Mon Oct 11 15:37:04 2021 +0200
landlock: Use square brackets around "landlock-ruleset"
commit aea0b9f2486da8497f35c7114b764bf55e17c7ea upstream.
Make the name of the anon inode fd "[landlock-ruleset]" instead of
"landlock-ruleset". This is minor but most anon inode fds already
carry square brackets around their name:
[eventfd]
[eventpoll]
[fanotify]
[fscontext]
[io_uring]
[pidfd]
[signalfd]
[timerfd]
[userfaultfd]
For the sake of consistency lets do the same for the landlock-ruleset anon
inode fd that comes with landlock. We did the same in
1cdc415f1083 ("uapi, fsopen: use square brackets around "fscontext" [ver #2]")
for the new mount api.
Cc: linux-security-module@vger.kernel.org
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20211011133704.1704369-1-brauner@kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Changed the format of the landlock tracing. We need to update the strace
expected string to match.
Upstream-Status: Submitted [https://lists.strace.io/pipermail/strace-devel/2022-April/011064.html]
(From OE-Core rev: bf7d885aef06f6208533dd5fab45ee8e92d6d6d7)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
strace ptests can run successfully with root user, there is no need to
run as "nobody". The ptest results are the same.
(From OE-Core rev: 5ab213178c011152e29dfb0a80251c5e5ab79900)
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Some tests are very load-sensitive as they depend on sleep() calls to
take a precise amount of time. These will randomly fail in the automated
QA, so skip them.
(From OE-Core rev: ea6933d2500827eae5482a32d5037e0429cd096a)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This patch was added as musl doesn't define SIGEMT on MIPS, but this was
a mistake in musl and has been fixed in cabc369, available in musl
1.2.1 onwards (August 2020).
(From OE-Core rev: 3ce2fd9f3002178ba2425c7912bf8b83a4150c9a)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
kernel 5.15 removed ipx.h from the uapi, but strace hasn't adjusted
its tests to the removal.
There is a WIP patch on the esyr/5.15 branch that solves the problem,
so we grab it here, adjust for context and fix our build problem.
When strace updates to 5.15, and we can bump our version and drop
this patch.
Upstream-Status: Backport [commit cca828197c0e16c2599129114]
(From OE-Core rev: a8c4ba727251e53494a4aec483fcc51982e6fb75)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This includes changes to work with glibc 2.34.
(From OE-Core rev: 58cdb3ff8689c5e87769eb53d154a395492cdeb5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Drop disable-git-version-gen.patch as problem fixed upstream.
Add parallel builds to ptest compile.
strace-graph has been removed upstream.
Adjust ptest patch to match upstream changes.
License-Update: copyright years.
(From OE-Core rev: 09af1c98499c9919dc2ebf7eb11796d3d912a8a5)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
solve qual_fault-syscall.test and qual_fault.test
failing due to timeout.
Bug 14165
(From OE-Core rev: 5af9f32d9b12654793289f44366251f978f6378a)
Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Drop 0001-xlat-Mark-IPPROTO_MAX-last-in-IPPROTO_-constants.patch
as upstream has removed IPPROTO_MAX altogether.
(From OE-Core rev: ea6f27e35b6cac4db9e1ab0d9a888d15daba6c09)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
gen_tests script encodes its full path to itself in each script
(From OE-Core rev: 9e2db0ab1d4cacedde59e8915dff9a091e1c2d2b)
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Update strace to 5.5. This includes a small change in the license file
to change the date to 2020.
(From OE-Core rev: 3e1e8d24ce122ddb5897418d1bae123051e1f450)
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
1. They need to be run under regular user.
2. Some tests genuinely need more time than 30 seconds
3. The Makefile patch erroneously introduced a test-breaking change.
(From OE-Core rev: 3d6bf58c7080c1cacf3ed1f270ff5acf4858c790)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Remove a patch already present upstream
Add a patch to fix build with upcoming glibc 2.31 where
__ptrace_syscall_info definition is added
(From OE-Core rev: f6670f9c89c7b7a93557f0b6aeffbf88033f0791)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This ensures that its using linux headers for matching the syscall
structures
(From OE-Core rev: 3f91512ffc8c1c3374b3a67df5f86e884c78d7a1)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
include stdint.h since the test uses uintptr_t C99 type
(From OE-Core rev: b0791cfeeed3d4346ea5c9285f09b0a532c58bf8)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
5.2 kernel has introduced a significant performance regression
where some of the tests take many minutes to complete (where
previously it was seconds). While we're getting to the bottom
of the issue and working with upstream to resove it, this
change allows tests to proceed instead of getting stuck and
eventually timing out.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13506
(From OE-Core rev: 36670f3989ef129d285b2a17c289f8fc7a44b320)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
If the test is successful, remove the log and exp files. This stops strace
using around 600MB of disk space and running our ptest images out of space.
(From OE-Core rev: ae94bffc6991efd6a6a74b2c129d3743b5fd1cd3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Refresh patches using devtool.
Update license since the main code is now covered by
LGPL-2.1+ and the tests under GPL-2.
Fix a MIPS build error with an upstream patch.
(From OE-Core rev: 874c5d4cd4902545b0fb924d0313488521fb91e2)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Let automake use parallel test harness which ensures that appropriate
environment variables are actually used.
* Copy generated config.h as part of ptest package and define a variable
in tests Makefile to control the name of target that we'd like to
invoke for tests instead of relying on default value.
* configure relies on tools that are not available in release tarballs
resulting in warnings and failed tests. Get the required information
from available files instead.
* Reduces the count of failing tests to 18 from 35. The rest of
tests fail or get skipped mostly because of missing syscalls. Number of
tests getting skipped can probably be reduced further.
Fixes [YOCTO #12948]
(From OE-Core rev: dcd674181f31a12c100f91cf6a1c3f3d52b775a2)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>