about summary refs log tree commit diff
path: root/src/tools/miri
AgeCommit message (Collapse)AuthorLines
2025-06-29Merge from rustcRalf Jung-59/+40
2025-06-29Preparing for merge from rustcRalf Jung-1/+1
2025-06-29Auto merge of #143137 - RalfJung:miri-sync, r=RalfJungbors-317/+1781
Miri subtree update r? `@ghost`
2025-06-29Merge pull request #4424 from RalfJung/aarch64-linux-ciRalf Jung-21/+45
also test on arm-64 linux hosts
2025-06-29also test on arm-64 linux hostsRalf Jung-21/+45
2025-06-29Rollup merge of #142078 - sayantn:more-intrinsics, r=workingjubileeGuillaume Gomez-0/+10
Add SIMD funnel shift and round-to-even intrinsics This PR adds 3 new SIMD intrinsics - `simd_funnel_shl` - funnel shift left - `simd_funnel_shr` - funnel shift right - `simd_round_ties_even` (vector version of `round_ties_even_fN`) TODO (future PR): implement `simd_fsh{l,r}` in miri, cg_gcc and cg_clif (it is surprisingly hard to implement without branches, the common tricks that rotate uses doesn't work because we have 2 elements now. e.g, the `-n&31` trick used by cg_gcc to implement rotate doesn't work with this because then `fshl(a, b, 0)` will be `a | b`) [#t-compiler > More SIMD intrinsics](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/More.20SIMD.20intrinsics/with/522130286) `@rustbot` label T-compiler T-libs A-intrinsics F-core_intrinsics r? `@workingjubilee`
2025-06-29make ./miri work on stable againRalf Jung-23/+29
2025-06-29disable ptrace codepath since it doesn't build on many targetsRalf Jung-59/+29
2025-06-29Merge from rustcThe Miri Cronjob Bot-3/+3
2025-06-29fix miri build in bootstrapRalf Jung-0/+1
2025-06-29Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-29rename Pointer::from_addr_invalid to match strict provenance APIRalf Jung-1/+1
2025-06-29give Pointer::into_parts a more scary name and offer a safer alternativeRalf Jung-8/+6
2025-06-28Merge pull request #4415 from YohDeadfall/sync-ra-configsRalf Jung-7/+5
Synced rust-analyzer configs
2025-06-28Synced rust-analyzer configsYoh Deadfall-7/+5
2025-06-28Rollup merge of #143114 - leopardracer:master, r=RalfJungMatthias Krüger-2/+2
Minor Documentation Improvements --- ## Description - Fixed typos and improved clarity in comments and documentation. ---
2025-06-28Auto merge of #141759 - 1c3t3a:discriminants-query, r=saethlinbors-1/+1
Insert checks for enum discriminants when debug assertions are enabled Similar to the existing null-pointer and alignment checks, this checks for valid enum discriminants on creation of enums through unsafe transmutes. Essentially this sanitizes patterns like the following: ```rust let val: MyEnum = unsafe { std::mem::transmute<u32, MyEnum>(42) }; ``` An extension of this check will be done in a follow-up that explicitly sanitizes for extern enum values that come into Rust from e.g. C/C++. This check is similar to Miri's capabilities of checking for valid construction of enum values. This PR is inspired by saethlin@'s PR https://github.com/rust-lang/rust/pull/104862. Thank you so much for keeping this code up and the detailed comments! I also pair-programmed large parts of this together with vabr-g@. r? `@saethlin`
2025-06-28move all the message types into one placeRalf Jung-31/+31
2025-06-28de-intend some code, and extend commentsRalf Jung-111/+112
2025-06-28various minor native-lib-tracing tweaks, and disable naive-lib-tracing mode ↵Ralf Jung-206/+165
by default
2025-06-28clippyRalf Jung-10/+8
2025-06-28fmtThe Miri Cronjob Bot-4/+2
2025-06-28Merge from rustcThe Miri Cronjob Bot-17/+7
2025-06-28Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-27Rollup merge of #143046 - RalfJung:zst-unsafe-cell, r=lcnr,oli-obkMatthias Krüger-4/+4
const validation: properly ignore zero-sized UnsafeCell Fixes https://github.com/rust-lang/rust/issues/142948 r? `@oli-obk`
2025-06-27Rollup merge of #140809 - bjorn3:panic_runtime_cleanup, r=petrochenkovMatthias Krüger-1/+2
Reduce special casing for the panic runtime See the individual commits for more info.
2025-06-27Update dangling_pointer_to_raw_pointer.rsleopardracer-1/+1
2025-06-27Update README.mdleopardracer-1/+1
2025-06-27Add InterpCx::layout_of with tracing, shadowing LayoutOfStypox-12/+1
2025-06-27Insert checks for enum discriminants when debug assertions are enabledBastian Kersting-1/+1
Similar to the existing nullpointer and alignment checks, this checks for valid enum discriminants on creation of enums through unsafe transmutes. Essentially this sanitizes patterns like the following: ```rust let val: MyEnum = unsafe { std::mem::transmute<u32, MyEnum>(42) }; ``` An extension of this check will be done in a follow-up that explicitly sanitizes for extern enum values that come into Rust from e.g. C/C++. This check is similar to Miri's capabilities of checking for valid construction of enum values. This PR is inspired by saethlin@'s PR https://github.com/rust-lang/rust/pull/104862. Thank you so much for keeping this code up and the detailed comments! I also pair-programmed large parts of this together with vabr-g@.
2025-06-27Split exported_symbols for generic and non-generic symbolsbjorn3-4/+4
This reduces metadata decoder overhead during the monomorphization collector.
2025-06-26Merge pull request #4408 from Patrick-6/rework-thread-joinRalf Jung-104/+111
Only write join return value once join succeeds
2025-06-26Delay writing of return value of a join until after the join is successful.Patrick-6-104/+111
2025-06-26make size_and_align_of_mplace work on all projectableRalf Jung-4/+4
2025-06-24Avoid exporting panic_unwind as stdlib cargo featurebjorn3-1/+1
There is already panic-unwind to enable it.
2025-06-24Add all rustc_std_internal_symbol to symbols.objorn3-0/+1
rustc_std_internal_symbol is meant to call functions from crates where there is no direct dependency on said crate. As they either have to be added to symbols.o or rustc has to introduce an implicit dependency on them to avoid linker errors. The latter is done for some things like the panic runtime, but adding these symbols to symbols.o allows removing those implicit dependencies.
2025-06-20fmtNia Espera-7/+6
2025-06-20Update src/shims/trace/parent.rsNia-4/+5
Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
2025-06-20error reworkNia Espera-33/+17
2025-06-20nonnullsNia Espera-22/+18
2025-06-20cfg ifNia Espera-4/+1
2025-06-20fix dumb mistakeNia Espera-1/+6
2025-06-20supervisor bits of ffi ptracingNia Espera-81/+606
2025-06-20Merge from rustcThe Miri Cronjob Bot-5/+5
2025-06-20Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-06-20Merge pull request #4362 from nia-e/fix-alloc-perfRalf Jung-36/+72
isolated_alloc: directly use mmap for allocations
2025-06-19isolated_alloc: directly use mmap for allocationsNia Espera-36/+72
Update src/alloc/isolated_alloc.rs Co-authored-by: Ralf Jung <post@ralfj.de> Update src/alloc/isolated_alloc.rs Co-authored-by: Ralf Jung <post@ralfj.de> Update src/alloc/isolated_alloc.rs Co-authored-by: Ralf Jung <post@ralfj.de> Update src/alloc/isolated_alloc.rs Co-authored-by: Ralf Jung <post@ralfj.de> Update src/alloc/isolated_alloc.rs Co-authored-by: Ralf Jung <post@ralfj.de> address review Apply suggestions from code review Co-authored-by: Ralf Jung <post@ralfj.de> fix comment fix position thing dumb mistake Apply suggestions from code review Co-authored-by: Ralf Jung <post@ralfj.de>
2025-06-19Merge pull request #4396 from Stypox/build-with-featuresRalf Jung-65/+153
Allow building Miri with --features from miri-script
2025-06-19Allow building Miri with --features from miri-scriptStypox-65/+153
Otherwise there was no way to pass e.g. `--features tracing` just to the `cargo` commands issued on the root repository: CARGO_EXTRA_FLAGS applies the flags to the "cargo-miri" crate, too, which does not make sense for crate-specific features. Fix install_to_sysroot doing path concatenation twice. Since the second concatenation was against an absolute path, it didn't do anything. This also makes the interface of install_to_sysroot() similar to that of cargo_cmd(). Implement --features for clippy, also fix not passing features to one of the cargo invocations for test
2025-06-19Merge from rustcThe Miri Cronjob Bot-6/+6