HardenedBSD/sys/amd64
Konstantin Belousov 293409233b Set md_ldt (pointer to the LDT) after md_ldt_sd (system segment
descriptor for the LDT) is populated. md_ldt is used by context-switch
code as indicator that LDT segment register shall be loaded with
GUSERLDT segment instead of 0, so context switch at the wrong time may
cause attempt to load non-populated descriptor.

Use store with the barrier to prevent other CPUs from seeing updated
md_ldt but not seeing updated md_ldt_sd. Multithreaded process may
context-switch to another thread of the process on another CPU and read
md_ldt.

MFC after:	1 week
2010-01-09 11:28:01 +00:00
..
acpica
amd64 Set md_ldt (pointer to the LDT) after md_ldt_sd (system segment 2010-01-09 11:28:01 +00:00
compile
conf In sys/<arch>/conf/Makefile set TARGET to <arch>. That allows 2010-01-08 18:57:31 +00:00
ia32
include Quiet variable "shadows" warning: 2010-01-01 20:55:11 +00:00
isa
linux32
pci
Makefile