Page MenuHomeFreeBSD

PT_CONTINUE: undo transparent attach consequences
ClosedPublic

Authored by kib on May 27 2025, 9:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 2, 10:39 AM
Unknown Object (File)
Sun, Sep 28, 8:18 AM
Unknown Object (File)
Sun, Sep 28, 2:32 AM
Unknown Object (File)
Sat, Sep 27, 1:26 AM
Unknown Object (File)
Thu, Sep 25, 6:38 AM
Unknown Object (File)
Mon, Sep 22, 10:07 PM
Unknown Object (File)
Sat, Sep 20, 3:16 AM
Unknown Object (File)
Thu, Sep 18, 7:47 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.May 27 2025, 9:11 PM

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287050

I tested this with the two scenarios in the above bugzilla item.

First I had to implement sysarch AMD64_{GS}ET_TLSBASE in Valgrind as per D50482
I've done that locally, need to test it more
https://bugs.kde.org/show_bug.cgi?id=504936

With that and the patch in this differential I get no more hangs. One flaky Valgrind gdbserver test is failing and one other giving me a diff with
+unexpected result from select: No such process
That looks like a separate issue.

sys/kern/sys_process.c
1237

If I understand correctly, this flag is always cleared immediately below. Why not use a local flag variable?

sys/kern/sys_process.c
1237

It is (or should) be set by other ops too, for instance PT_SETREGS.

This revision is now accepted and ready to land.May 29 2025, 2:24 PM