Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miri subtree update #128333

Merged
merged 40 commits into from
Jul 29, 2024
Merged

Miri subtree update #128333

merged 40 commits into from
Jul 29, 2024

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    22364f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2de6e7f View commit details
    Browse the repository at this point in the history
  3. Apply suggestions

    - split test into two revisions
    - clarify comments
    Vanille-N committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    22996ad View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Configuration menu
    Copy the full SHA
    68aed4a View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Clarify comment in tests/fail/tree_borrows/reservedim_spurious_write.rs

    Co-authored-by: Ralf Jung <post@ralfj.de>
    Vanille-N and RalfJung committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    78f6386 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2024

  1. Configuration menu
    Copy the full SHA
    fd81880 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Preparing for merge from rustc

    The Miri Cronjob Bot committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e1e5b8a View commit details
    Browse the repository at this point in the history
  2. Merge from rustc

    The Miri Cronjob Bot committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    547ade5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    451035f View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#3742 - Vanille-N:master, r=RalfJung

    TB: Reserved + Protected + IM + lazy is a horrible combination that should not exist
    
    As discovered by `@JoJoDeveloping,` the result of having both Protector exceptions on lazy locations (protectors only protect initialized bytes) and interior mutability exceptions for protected tags (Reserved IM does not accept foreign writes when protected) leads to some very undesirable results, namely that we cannot do spurious writes even on protected activated locations.
    
    We propose that Protected Reserved IM should no longer exist and instead when a type is retagged as part of a `FnEntry` it is assumed to lose interior mutability.
    
    In fact, this was already being done implicitly because relevant transitions were guarded by an `if protected`, but the difference is that now it also applies to transitions that occur after the end of the protector.
    bors committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    b3736d6 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2024

  1. Preparing for merge from rustc

    The Miri Cronjob Bot committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    e5544dc View commit details
    Browse the repository at this point in the history
  2. Merge from rustc

    The Miri Cronjob Bot committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    424d79c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0c1448d View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Add O_NOFOLLOW flag support

    newpavlov committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    69b9eab View commit details
    Browse the repository at this point in the history
  2. Fix test

    newpavlov committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    06a14f1 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#3744 - newpavlov:nofollow, r=RalfJung

    Add `O_NOFOLLOW` flag support
    bors committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    fc8af31 View commit details
    Browse the repository at this point in the history
  4. Add pread and pwrite shims

    newpavlov committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    56d672e View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#3743 - newpavlov:pread_pwrite, r=RalfJung

    Add `pread` and `pwrite` shims
    
    Requested in rust-lang#2057.
    bors committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    b7b2305 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. Preparing for merge from rustc

    The Miri Cronjob Bot committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    c646256 View commit details
    Browse the repository at this point in the history
  2. Merge from rustc

    The Miri Cronjob Bot committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    675a5ba View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0b22f0c View commit details
    Browse the repository at this point in the history
  4. Allow getpid in isolation mode, add gettid support

    In order to support gettid when isolation is enabled and when it is
    disabled, and satisfy its requirement that:
    
       In a single-threaded process, the thread ID is equal to the process ID
       (PID, as returned by getpid(2)).
    
    we define the thread ID to be getpid() + <miri internal thread id>.
    Since the internal thread id of the main thread is zero, this will
    satisfy that requirement.
    
    However, getpid for now was only supported when isolation was disabled.
    To support getpid in isolation mode, we return a hardcoded value (1000)
    and return that instead of the real PID.
    Mandragorian committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    a0088d7 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#3756 - Mandragorian:gettid_support, r=RalfJung

    Add `gettid` support
    
    Add support for `gettid` in miri.
    
    To ensure that the requirement that  `getpid() == gettdi()` for the main thread, we use the value returned by `getpid` and add to it the internal thread index.
    
    Since `getpid` is only supported when isolation is disabled, and we want `gettid` to be used both in isolated and non-isolated executions, we modify `getpid` to return a hardcoded value (1000) when running in isolation mode.
    
    Fixes rust-lang#3730
    bors committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    12cb742 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c45f464 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#3701 - RalfJung:extern-type-reborrow, r=saethlin

    show warning when Stacked Borrows skips a reborrow due to 'extern type'
    
    When this happens, we can't actually be sure to catch all bugs -- LLVM will still get a `noalias` but Miri can't do reborrowing. That's not good.
    bors committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    f1ae48c View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. Preparing for merge from rustc

    The Miri Cronjob Bot committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    6da04f9 View commit details
    Browse the repository at this point in the history
  2. Merge from rustc

    The Miri Cronjob Bot committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    4a26aa4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    35e70f3 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. Preparing for merge from rustc

    The Miri Cronjob Bot committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    b549035 View commit details
    Browse the repository at this point in the history
  2. Merge from rustc

    The Miri Cronjob Bot committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    4bd2757 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f98fdfc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7bc7e67 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5e1f8e2 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#3766 - RalfJung:tree-borrows-int2ptr, r=RalfJung

    better diagnostics for Tree Borrows + int2ptr casts
    
    - Entirely reject `-Zmiri-permissive-provenance -Zmiri-tree-borrows` since that combination just doesn't work
    - In the int2ptr cast warning, when Tree Borrows is enabled, do not recommend `-Zmiri-permissive-provenance`, instead note that Tree Borrows does not support int2ptr casts
    
    Fixes rust-lang/miri#3764
    bors committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    bf4d4c0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a52b1d6 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#3763 - tiif:global-fd-id, r=oli-obk

    Insert FileDescription instead of FileDescriptor in ``insert_fd``
    
    This PR moves the creation of ``FileDescriptor`` inside ``insert_fd``, and ``insert_fd`` now takes in ``FileDescription`` instead of ``FileDescriptor``.  This change is needed by rust-lang#3712.
    bors committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    adbb89e View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2024

  1. Preparing for merge from rustc

    The Miri Cronjob Bot committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    80a32f8 View commit details
    Browse the repository at this point in the history
  2. Merge from rustc

    The Miri Cronjob Bot committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    00e89d3 View commit details
    Browse the repository at this point in the history
  3. fix clippy

    RalfJung committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    822286f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a6796c1 View commit details
    Browse the repository at this point in the history