Skip to content

Don't fall back to file I/O on Linux when Rust only supports kernels guaranteed to have it #376

@briansmith

Description

@briansmith

According to https://doc.rust-lang.org/beta/rustc/platform-support.html, there are only a handful of target architectures where Rust supports kernels that are so old that they would not have the getrandom syscall. Notably riscv64gc and aarch64 are guaranteed to have getrandom according to the Rust kernel support policy. For those architectures we should not have enable the fallback logic at all. I suggest in particular that we have an allowlist of target architectures where we allow the fallback, which would be i686, x86_64, arm, armv7, powerpc, powerpc64, powerpc64le. s390x, i586, according to the Rust documents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions