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.
io_uring_register,io_uring_enterandio_uring_enter2read theerrnovalue from their return value multiplied with-1instead of readingerrno, which is set bysyscall. This causes errors from these functions to always be reported asEPERM. This is done correctly forio_uring_setup.