Page MenuHomeFreeBSD

Reimplement linux_arch_prctl() as a wrapper around sysarch().
ClosedPublic

Authored by trasz on Jan 29 2017, 2:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 21, 9:56 PM
Unknown Object (File)
Sat, Oct 4, 12:15 AM
Unknown Object (File)
Fri, Oct 3, 3:37 AM
Unknown Object (File)
Thu, Oct 2, 3:15 PM
Unknown Object (File)
Thu, Oct 2, 11:19 AM
Unknown Object (File)
Thu, Oct 2, 8:38 AM
Unknown Object (File)
Aug 3 2025, 7:03 PM
Unknown Object (File)
Jun 13 2025, 6:41 AM
Subscribers

Details

Summary

Reimplement linux_arch_prctl() as a wrapper around sysarch().
It also adds support for LINUX_ARCH_SET_GS.

Dmitri, could you test it? Thanks!

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trasz retitled this revision from to Reimplement linux_arch_prctl() as a wrapper around sysarch()..
trasz updated this object.
trasz edited the test plan for this revision. (Show Details)

Forgot to mention - it changes the ordering in the case() statement to match the order of declarations of contants.

sys/amd64/linux/linux_machdep.c
250 ↗(On Diff #24536)

Shouldn't you reimplement linux_set_cloned_tls() using sysarch() as well ?

I should, but it's called from entirely different codepaths, and I'd prefer to not mix things at this point, since it makes debugging regressions harder.

dchagin edited edge metadata.

I did not this because I was planning to change the test of user supplied addr value against VM_MAXUSER_ADDRESS as since vdso the upper limit of address space is less than VM_MAXUSER_ADDRESS

sys/amd64/linux/linux_machdep.c
68 ↗(On Diff #24536)

garbage?

This revision is now accepted and ready to land.Feb 18 2017, 5:02 PM
This revision was automatically updated to reflect the committed changes.