Skip to content

IORing: reporting wrong error for io_uring_register and io_uring_enter #330

Description

@planetMDX

io_uring_register, io_uring_enter and io_uring_enter2 read the errno value from their return value multiplied with -1 instead of reading errno, which is set by syscall. This causes errors from these functions to always be reported as EPERM. This is done correctly for io_uring_setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions