rust/library/std
bors 98e1f041b6 Auto merge of #101442 - joboet:null_check_tcs, r=thomcc
Check if TCS is a null pointer on SGX

The `EENTER` instruction only checks if the TCS is aligned, not if it zero. Saying the address returned is a `NonNull<u8>` (for which `Tcs` is a type alias) is unsound. As well-behaved runners will not put the TCS at address zero, so the definition of `Tcs` is correct. However, `std` should check the address before casting it to a `NonNull`.

ping `@jethrogb` `@raoulstrackx`
`@rustbot` label I-unsound
2022-09-11 22:19:24 +00:00
..
benches
primitive_docs
src Auto merge of #101442 - joboet:null_check_tcs, r=thomcc 2022-09-11 22:19:24 +00:00
tests
build.rs
Cargo.toml std: use futex-based locks and thread parker on Hermit 2022-09-09 11:56:50 +02:00