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)
Sat, Aug 15, 5:44 AM
Unknown Object (File)
Fri, Aug 14, 3:38 PM
Unknown Object (File)
Thu, Aug 13, 8:00 AM
Unknown Object (File)
Thu, Aug 13, 7:15 AM
Unknown Object (File)
Thu, Aug 13, 3:31 AM
Unknown Object (File)
Thu, Aug 13, 12:32 AM
Unknown Object (File)
Wed, Aug 12, 3:57 PM
Unknown Object (File)
Wed, Aug 12, 3:25 PM

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