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)
Oct 2 2024, 2:08 AM
Unknown Object (File)
Oct 1 2024, 7:06 PM
Unknown Object (File)
Oct 1 2024, 5:33 PM
Unknown Object (File)
Sep 30 2024, 11:22 PM
Unknown Object (File)
Sep 29 2024, 10:14 PM
Unknown Object (File)
Sep 29 2024, 5:33 AM
Unknown Object (File)
Sep 23 2024, 9:25 PM
Unknown Object (File)
Sep 21 2024, 7:27 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 Passed
Unit
No Test Coverage
Build Status
Buildable 7072
Build 7251: arc lint + arc unit

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

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

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.