Page MenuHomeFreeBSD

PT_CONTINUE: undo transparent attach consequences
ClosedPublic

Authored by kib on May 27 2025, 9:11 PM.
Tags
None
Referenced Files
F151391277: D50556.id156253.diff
Wed, Apr 8, 2:44 AM
Unknown Object (File)
Tue, Mar 31, 10:47 AM
Unknown Object (File)
Tue, Mar 31, 3:43 AM
Unknown Object (File)
Thu, Mar 26, 7:26 PM
Unknown Object (File)
Thu, Mar 26, 3:24 PM
Unknown Object (File)
Wed, Mar 25, 7:04 PM
Unknown Object (File)
Mon, Mar 23, 4:50 PM
Unknown Object (File)
Sun, Mar 15, 9:10 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