Commit Graph

3606 Commits

Author SHA1 Message Date
Christian Poveda
62280b4b11 Use libcore's align_offset 2019-09-11 11:09:56 -05:00
bors
7278385d80 Auto merge of #946 - RalfJung:rustup, r=oli-obk
fix async test

Test got broken by https://github.com/rust-lang/rust/pull/64292.
2019-09-11 15:24:49 +00:00
Ralf Jung
f5c35a2584 fix async test 2019-09-11 17:13:32 +02:00
bors
dd94c7c5a3 Auto merge of #944 - rust-lang:rustup, r=oli-obk
Rustup to 1.39.0-nightly (1e869133b 2019-09-09)
2019-09-09 11:10:42 +00:00
Oliver Scherer
b952584186 Rustup to 1.39.0-nightly (1e869133b 2019-09-09) 2019-09-09 13:00:20 +02:00
bors
5b15139bf2 Auto merge of #943 - wesleywiser:turn_on_tests_again, r=RalfJung
Re-enable run-pass tests with optimizations enabled
2019-09-09 10:45:45 +00:00
Wesley Wiser
636439c33f Re-enable run-pass tests with optimizations enabled 2019-09-09 06:32:46 -04:00
bors
7095a3bb68 Auto merge of #942 - rust-lang:rustup, r=oli-obk
Rustup
2019-09-08 13:29:49 +00:00
Oliver Scherer
8349ead81d
Update latest working rust version id 2019-09-08 12:28:31 +02:00
Oliver Scherer
e479ab2640 Rustup 2019-09-06 11:10:24 +02:00
bors
a58cb9cf2e Auto merge of #941 - RalfJung:rustup, r=RalfJung
rustup

Just to test if this still works.
2019-09-02 14:14:18 +00:00
Ralf Jung
a37cd856ad rustup 2019-09-02 16:13:35 +02:00
bors
3a5c44c2d8 Auto merge of #929 - RalfJung:slice-too-big, r=RalfJung
test too big slice

Test for an upcoming rustc PR.
2019-08-31 06:45:28 +00:00
Ralf Jung
dfca0263d0 rustup 2019-08-31 08:44:47 +02:00
Ralf Jung
f67af5a1c2 test too big slice 2019-08-31 08:41:55 +02:00
bors
2bf8c3a494 Auto merge of #938 - christianpoveda:clean-env-alloc, r=RalfJung
Rewrite alloc_env_var

Just to simplify the logic behind `shims::env`
2019-08-29 22:10:11 +00:00
Christian Poveda
4afa3bccb0 Rewrite alloc_env_var 2019-08-29 15:03:10 -05:00
bors
9fbe719e85 Auto merge of #937 - christianpoveda:fix-isolation, r=RalfJung
Fix cargo-miri with disabled isolation

Related issue: https://github.com/rust-lang/miri/issues/933
I'm not sure if that's the better place to blacklist `TERM`, @RalfJung let me know if there is a less hacky place to put it.
2019-08-29 15:46:22 +00:00
bors
0fd757ea09 Auto merge of #919 - RalfJung:wide-raw, r=RalfJung
test for invalid wide raw ptr

This is the Miri side of https://github.com/rust-lang/rust/pull/63880.
2019-08-29 15:20:36 +00:00
Ralf Jung
5483531be3 bump Rust 2019-08-29 17:20:14 +02:00
Ralf Jung
cecbe1611b test for invalid wide raw ptr 2019-08-29 17:19:09 +02:00
Christian Poveda
814fe99516 Add cargo-miri test for no isolation 2019-08-29 10:13:02 -05:00
Christian Poveda
9c54368cca Exclude TERM env var by default 2019-08-29 04:07:20 -05:00
bors
ee8afead51 Auto merge of #935 - christianpoveda:blacklist-env-vars, r=RalfJung
Exclude environment variables from host communication

related issue: #933

r? @RalfJung
2019-08-29 08:09:57 +00:00
Christian Poveda
abcda6dc94 Small corrections
Co-Authored-By: Ralf Jung <post@ralfj.de>
2019-08-29 03:08:58 -05:00
bors
e3b87f6fe8 Auto merge of #931 - RalfJung:retag-makes-my-head-hurt, r=RalfJung
Stacked Borrows: don't read from memory during retagging

Currently, retagging of a shared reference tries real hard to find the `UnsafeCell` and mark everything else as frozen. We even read enum discriminants to figure out the variant and determine if there is an `UnsafeCell` in there or not.

Unfortunately, that leads to some very hard to analyze behavior: during retagging, we do read accesses, which are subject to the rules of Stacked Borrows and the existing tags! My head hurts when I try to think about this. It's just too recursive.

This PR simplifies the semantics by treating enums like unions: if any variant has an `UnsafeCell`, the entire thing behaves like an `UnsafeCell`. This means retagging no longer has to read from memory, the way it affects the stack is entirely determined by the type.
2019-08-29 06:40:23 +00:00
Christian Poveda
f4a25e530a Add env exclusion test 2019-08-28 17:57:41 -05:00
Christian Poveda
c1cec3b247 Exclude env vars using flag 2019-08-28 17:57:41 -05:00
Christian Poveda
1ae1d71938 Add -Zmiri-env-exclude flag 2019-08-28 17:57:35 -05:00
bors
26615807de Auto merge of #930 - RalfJung:build, r=RalfJung
test that build scripts do not run in Miri

@elichai reported something that sounded a lot like build script running in Miri. But as this test shows, build scripts are not run by Miri, they are run normally.

@elichai are you sure the [env var usage you were referring to](https://github.com/rust-lang/miri/issues/641#issuecomment-524989482) was only in a build script? Those shouldn't be affected by Miri flags at all. Is your code available somewhere so that I can try to reproduce?
2019-08-28 20:23:39 +00:00
Ralf Jung
f3ff10005a small optimization 2019-08-28 18:45:10 +02:00
Ralf Jung
79dd70fd9b Stacked Borrows: don't read from memory during retagging 2019-08-28 18:41:30 +02:00
Ralf Jung
7faa329f11 more implicit 2019-08-28 09:27:19 +02:00
Ralf Jung
71aae4ffa5 test that build scripts do not run in Miri 2019-08-28 09:15:31 +02:00
bors
283928ad55 Auto merge of #925 - christianpoveda:environ-shim, r=RalfJung
Write name and value for each env var

In order to res0lve https://github.com/rust-lang/miri/issues/756 is necessary to have the whole `"NAME=VALUE"` sequence of bytes written into memory instead of just the value.

This change does not affect the interface of the `shim::envs::EnvVars` type in any way.

r? @RalfJung @oli-obk
2019-08-27 15:59:32 +00:00
Christian Poveda
7d93cc7b5e Add docs 2019-08-27 08:45:37 -05:00
bors
69268fb75f Auto merge of #927 - RalfJung:getrandom, r=RalfJung
explicitly enable getrandom/std feature

This seems to be what rand_core does, and then we need to do it as well or else the rustc feature checker complains.
2019-08-27 13:14:14 +00:00
Ralf Jung
283829c5c1 explicitly enable getrandom/std feature 2019-08-27 15:12:12 +02:00
bors
2be0db4c0b Auto merge of #917 - RalfJung:isolation, r=oli-obk
change flag name: enable-communication -> disable-isolation

r? @oli-obk  -- I think this is a better name for the flag but it is still somewhat clumsy. Suggestions?
2019-08-27 10:02:07 +00:00
bors
cae0a5e179 Auto merge of #926 - RalfJung:rustup, r=RalfJung
rustup
2019-08-27 06:45:59 +00:00
Ralf Jung
26afb4685d hashmap ICEs with optimizations, temporarily disable 2019-08-27 08:42:36 +02:00
Ralf Jung
3a68d943ba rustup 2019-08-27 08:32:31 +02:00
Christian Poveda
ace3416cf2 Write name and value for each env var 2019-08-26 18:08:26 -05:00
bors
f72ffb988c Auto merge of #924 - RalfJung:getrandom, r=RalfJung
decrease getrandom version

so that we dont have to bump Cargo.toml in rustc
2019-08-26 18:54:14 +00:00
Ralf Jung
63ec6e6467 decrease getrandom version so that we dont have to bump Cargo.toml in rustc 2019-08-26 20:53:45 +02:00
bors
601a3f1e22 Auto merge of #922 - RalfJung:rustup, r=RalfJung
bump Rust and xargo
2019-08-26 18:13:47 +00:00
Ralf Jung
c6c9276d61 bump Rust and xargo 2019-08-26 19:44:27 +02:00
bors
ae1d269a8e Auto merge of #921 - RalfJung:cargo-update, r=RalfJung
cargo update
2019-08-26 17:39:34 +00:00
Ralf Jung
0340806127 cargo update 2019-08-26 19:38:47 +02:00
Ralf Jung
55efee9140 test host randomness access 2019-08-23 23:30:23 +02:00