Skip to content

Object aliasing violations are not detected #314

Description

@danielsn

Rust requires that the borrow checker rules be enforced at all times, including in unsafe code. We do not currently have any checks for this in RMC.

Likelihood:

If code contains this bug, RMC will not detect it. We have manually found at least one possible instance of this case in Firecracker. We do not have any data as to how often this occurs in practice.

Mitigation:

  • Warn users that this class of UB is outside the current scope of RMC.

Path to soundness:

  • Add a check for this, likely based off the “stacked borrows” work.

Documentation:

https://plv.mpi-sws.org/Rustbelt/stacked-borrows/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] Feature / EnhancementA new feature request or enhancement to an existing feature.[E] Unsupported UBUndefined behavior that Kani does not detect[F] SoundnessKani failed to detect an issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions