Skip to content

Support more syscalls in syscall shim #5305

Open

Description

@hkalbasi

Currently, Miri supports the minimum possible syscalls needed to make the ecosystem work under Miri. If a syscall is used in most Rust codes using its libc function, Miri only has shims for the libc function and not the syscall. #5303 shows how it could be done, but it needs having signature for syscalls supported by miri functions. I estimate ~50-100 syscall out of ~450 linux syscalls are supported by Miri shims, which would result in having ~300 lines of boilerplate code in miri shims + a test covering them.

This issue intends to collect usecases for this, so if you have a Rust project that uses syscalls directly without libc wrappers, and you want to test your project under miri, please comment your usecase so it may change the cost/benefit ratio.

Activity

  1. added
    A-shimsArea: This affects the external function/static shims
    C-proposalCategory: a proposal for something we might want to do, or maybe not; details still being worked out
    on Sep 4, 2026
  2. Kaileshwar16 commented on Oct 31, 2026

    @Kaileshwar16
  3. Kaileshwar16 commented on Oct 31, 2026

    @Kaileshwar16
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

    A-shimsArea: This affects the external function/static shimsC-proposalCategory: a proposal for something we might want to do, or maybe not; details still being worked out

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions