rust/library/std/src/sys
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
..
common resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
hermit std: use futex-based locks and thread parker on Hermit 2022-09-09 11:56:50 +02:00
itron std: make ReentrantMutex movable and const; simplify Stdout initialization 2022-09-03 14:05:28 +02:00
sgx std: check if TCS is a null pointer 2022-09-11 12:15:32 +02:00
solid Support #[unix_sigpipe = "inherit|sig_dfl|sig_ign"] on fn main() 2022-08-28 19:46:45 +02:00
unix std: optimize thread parking on NetBSD 2022-09-10 20:03:15 +02:00
unsupported Auto merge of #100576 - joboet:movable_const_remutex, r=Mark-Simulacrum 2022-09-04 22:53:58 +00:00
wasi Rollup merge of #100892 - sunfishcode:wasi-stdio-asfd, r=joshtriplett 2022-08-31 08:47:15 +09:00
wasm Fix futex module imports on wasm+atomics 2022-07-27 12:44:32 +04:00
windows Explicitly link kernel32.lib from alloc 2022-09-10 11:57:36 +01:00
mod.rs Use target_family = "wasm" 2021-11-10 08:35:42 -08:00