Skip to content

ptctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, addr, len, invalid_name) returns EFAULT rather than EINVAL under QEMU #2418

Open
@SteveLauC

Description

@SteveLauC

When I bump the CI Linux runner from Ubuntu 20.04 to 22.04, this test fails under QEMU for some architectures, it failed in this line:

failures:

---- test_prctl::test_set_vma_anon_name stdout ----
thread 'test_prctl::test_set_vma_anon_name' panicked at 'assertion failed: `(left == right)`
  left: `EFAULT`,
 right: `EINVAL`', test/sys/test_prctl.rs:149:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    test_prctl::test_set_vma_anon_name

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions