HomeFreeBSD

Reset the fs and gs bases on exec(2).

Description

Reset the fs and gs bases on exec(2).

The values from the old address space do not make sense for the new
program. In particular, gsbase might be the TLS base for the old
program but the new program has no TLS now.

amd64 already handles this correctly.

Reported and reviewed by: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Details

Provenance
kibAuthored on Oct 9 2017, 3:39 PM
Parents
rG4f7c931a1180: More style.
Branches
Unknown
Tags
Unknown

Event Timeline