]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not do torn writes to active LDTs.
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 19 Sep 2017 17:57:04 +0000 (17:57 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 19 Sep 2017 17:57:04 +0000 (17:57 +0000)
commit3cabd93e267a63a27d6098106dcb747ee8bd673c
tree21fe983a1b971ec64aeb7e245a16eb438097f561
parent9770475ce768cd06e9e88ea23917971f152ba448
Do not do torn writes to active LDTs.

Care must be taken when updating the active LDT, since parallel
threads might try to load a segment descriptor which is currently
updated. Since the results are undefined, this cannot be ignored by
claiming to be an application race.

Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D12413
sys/amd64/amd64/sys_machdep.c
sys/i386/i386/sys_machdep.c