HomeFreeBSD

amd64: Clear the local TSS when creating a new thread

Description

amd64: Clear the local TSS when creating a new thread

Otherwise it is copied from the creating thread. Then, if either thread
exits, the other is left with a dangling pointer, typically resulting in
a page fault upon the next context switch.

Reported by: syzkaller
Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30607

Details

Provenance
markjAuthored on Jun 1 2021, 11:38 PM
Reviewer
kib
Differential Revision
D30607: amd64: Clear the local TSS when creating a new thread
Parents
rG6cda62755612: amd64: Relax the assertion added in commit 4a59cbc12
Branches
Unknown
Tags
Unknown