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, May 14, 3:30 AM
Unknown Object (File)
Mon, May 11, 9:38 PM
Unknown Object (File)
Mon, May 11, 9:01 PM
Unknown Object (File)
Mon, May 11, 8:38 PM
Unknown Object (File)
Fri, May 8, 3:34 AM
Unknown Object (File)
Sun, Apr 26, 11:28 AM
Unknown Object (File)
Thu, Apr 23, 4:42 AM
Unknown Object (File)
Sat, Apr 18, 1:58 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