Skip to content

Audit Vtable generation for dynamic traits #299

Open

Description

@danielsn

RMC handles dynamic traits by making a vtable for each trait, which maps virtual calls to the function pointer that implements the call. As of 2021-09-01, our implementation of dynamic traits has no known soundness issues.

Likelihood:

Due to the complexity of this feature, there may be currently-unknown soundness issues.

Mitigation:

  • The default flags RMC passes to CBMC now include --pointer-check, so incorrect codegen of functions is now more likely to be found a verification time.
  • We have added 40+ regression tests for dynamic traits.

Activity

  1. avanhatt commented on Jul 7, 2021

    @avanhatt
    Contributor

    Updated description to match current state.

  2. added this to the Soundness milestone on Jul 8, 2021
  3. adpaco commented on Jul 19, 2021

    @adpaco
    Contributor

    RMC is now using --pointer-check by default (#263)

  4. avanhatt commented on Jul 19, 2021

    @avanhatt
    Contributor

    Updated to reflect that --pointer-check is used by default and that for closures we only fail for boxed closures.

  5. avanhatt commented on Aug 25, 2021

    @avanhatt
    Contributor

    Updated to reflect that all known cases of boxed closures now work.

  6. avanhatt commented on Sep 17, 2021

    @avanhatt
    Contributor

    As of 2021-09-01, all known soundness issues specific to dynamic traits objects and vtables have been resolved.

    However, two issues to note:

  7. added
    [F] Soundness
    and removed on Apr 20, 2022
  8. added
    [C] Internal
    and removed
    [F] Soundness
    on Nov 9, 2022
  9. changed the title [-]Soundness: Vtable generation for dynamic traits[/-] [+]Audit Vtable generation for dynamic traits[/+] on Nov 9, 2022
  10. added
    [F] Soundness
    on Mar 27, 2026
  11. added
    Z-Kani Compiler
    on Nov 5, 2026
  12. self-assigned this
    on Nov 5, 2026
  13. added theissue type on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Z-Kani Compiler[C] Internal[F] Soundness

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions