Home | History | Annotate | Download | only in sys
History log of /src/tests/lib/libc/sys/t_ptrace_amd64_wait.h
RevisionDateAuthorComments
 1.13  02-May-2025  riastradh tests/lib/libc/sys/t_ptrace*: Nix trailing whitespace.

No functional change intended.

Preparation for:

PR misc/59381: t_ptrace_wait* and t_ptrace_sigchld tests are flaky
 1.12  08-Jan-2020  mgorny branches: 1.12.14;
Combine x86 register tests into unified test function

Reduce the code duplication and improve maintainability of x86 register
tests by combining all of them to a single base function.
 1.11  04-Jun-2019  mgorny Add more debug to register writing tests
 1.10  10-May-2019  mgorny Add tests for PT_SETREGS
 1.9  06-May-2019  christos fix unused variable warnings.
 1.8  05-May-2019  mgorny Introduce tests for reading r8..r15 registers.
 1.7  05-May-2019  mgorny Add tests for reading pre-set general purpose register values via PT_GETREGS.

Add new tests verifying that PT_GETREGS provides correct register values
from the underlying program. The test uses inline assembly in the child program
to set registers to well-known constants, then compares the results obtained
via PT_GETREGS against them.

Reviewed by kamil.
 1.6  10-Feb-2019  kamil Link t_ptrace_wait* tests with -pthread

While there, bump (c) for ATF ptrace(2) tests.

Add __used in infinite_thread() for consistency with other functions in
the file.
 1.5  26-May-2018  kamil branches: 1.5.2;
Port the CVE 2018-8897 mitigation to i386 ATF ptrace(2) tests

On i386 there is no need to switch execution mode.
Use 0x23 SS selector for i386, amd64 used 0x4f.

Based on pointers from <maxv>.

Sponsored by <The NetBSD Foundation>
 1.4  14-May-2018  kamil Simplify the x86_64_cve_2018_8897 ATF ptrace(2) test

Do not call _exit() from the child, ad this code shall not be reached.
Put there assert().

No functional change. The test still passes.

Sponsored by <The NetBSD Foundation>
 1.3  13-May-2018  kamil Add a new ptrace(2) ATF exploit for: CVE-2018-8897 (POP SS debug exception)

The original expolit and mitigation have been developed by Maxime Villard.

I've reworked the shared code and adapted for the ATF context.
I've included PIE-aware version (RIP/EIP relative) and introduced
additional comments to the explanation how to trigger the flaw.

This test passes on NetBSD/8.99.17.

Sponsored by <The NetBSD Foundation>
 1.2  14-Dec-2017  christos branches: 1.2.2;
sync a bit more with reality; some things still fail, some new failures.
reduce spewage, be more explanatory about syscall errors.
 1.1  02-Apr-2017  kamil branches: 1.1.2; 1.1.4; 1.1.8;
Import ptrace(2) tests into appropriate directory tests/lib/libc/sys/

This is the correct directory documented in tests/README for such tests.

Discussed with <martin>

Sponsored by <The NetBSD Foundation>
 1.1.8.1  25-Feb-2018  snj Pull up following revision(s) (requested by martin in ticket #586):
tests/lib/libc/sys/t_ptrace_amd64_wait.h: 1.2
tests/lib/libc/sys/t_ptrace_i386_wait.h: 1.2
tests/lib/libc/sys/t_ptrace_wait.c: 1.10-1.20
tests/lib/libc/sys/t_ptrace_x86_wait.h: 1.2-1.3
PR kern/52167 strikes on sparc64 too.
--
Temporarily disable t_ptrace_wait*::resume1 in ATF tests
It hangs forever on releng machines.
Sponsored by <The NetBSD Foundation>
--
Remove expected failure (fixed in kern_sig.c 1.339)
--
sync a bit more with reality; some things still fail, some new failures.
reduce spewage, be more explanatory about syscall errors.
--
Add expected failures.
--
make it fail instead of hang under qemu; XXX: need to investigate.
--
t_ptrace_wait*: Disable suspend* tests
These tests can hang the system. These interfaces will be improved and
temporarily disable them.
--
ptrace atf: Clanup reports of failures
Mark resume* suspend* tests as expected failure and link with PR 51995.
Sponsored by <The NetBSD Foundation>
--
report which errno failed
--
atf: t_ptrace_wait: Mark attach2 as racy
--
atf: ptrace: Temporarily disable signal3 as it breaks now on some ports
This test is marked as failing with: PR kern/51918.
 1.1.4.2  26-Apr-2017  pgoyette Sync with HEAD
 1.1.4.1  02-Apr-2017  pgoyette file t_ptrace_amd64_wait.h was added on branch pgoyette-localcount on 2017-04-26 02:53:33 +0000
 1.1.2.2  21-Apr-2017  bouyer Sync with HEAD
 1.1.2.1  02-Apr-2017  bouyer file t_ptrace_amd64_wait.h was added on branch bouyer-socketcan on 2017-04-21 16:54:11 +0000
 1.2.2.2  25-Jun-2018  pgoyette Sync with HEAD
 1.2.2.1  21-May-2018  pgoyette Sync with HEAD
 1.5.2.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.5.2.1  10-Jun-2019  christos Sync with HEAD
 1.12.14.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed