The branch main has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8dd43304b397715a4313bcaebbf493b607a7099f

commit 8dd43304b397715a4313bcaebbf493b607a7099f
Author:     Alex S <[email protected]>
AuthorDate: 2026-05-16 01:16:32 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-05-16 19:41:26 +0000

    amd64/ptrace-sce-tamper test: get rid of PT_TRACE_ME
    
    PT_TRACE_ME is only useful in combination with exec and there is no
    exec in this test.
    
    Signed-off-by:  Alex S <[email protected]>
    MFC after:      1 week
---
 tests/sys/arch/amd64/ptrace-sce-tamper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/sys/arch/amd64/ptrace-sce-tamper.c 
b/tests/sys/arch/amd64/ptrace-sce-tamper.c
index 0645f62a7e9b..9bdedad6597b 100644
--- a/tests/sys/arch/amd64/ptrace-sce-tamper.c
+++ b/tests/sys/arch/amd64/ptrace-sce-tamper.c
@@ -11,6 +11,7 @@
 
 #include <assert.h>
 #include <err.h>
+#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -58,7 +59,7 @@ main(void)
                err(1, "fork");
 
        if (pid == 0) {
-               (void)ptrace(PT_TRACE_ME, 0, 0, 0);
+               raise(SIGSTOP);
                (void)getpid();
                exit(0);
        } else {

Reply via email to