liburing: commands failing with EINVAL on 5.4.58 kernel version

I built and ran examples/io_uring-test from liburing repository and run into the following error:

sudo ./io_uring-test /dev/nvme3n1

ret=-22, wanted 4096
Submitted=4, completed=1

Following is my kernel version on an ec2 instance. 5.4.58-32.125.amzn2.x86_64

The kernel seems to have io_uring built into it.

 grep io_uring_enter /proc/kallsyms
0000000000000000 T __ia32_sys_io_uring_enter
0000000000000000 T __x64_sys_io_uring_enter
0000000000000000 d event_exit__io_uring_enter
0000000000000000 d event_enter__io_uring_enter
0000000000000000 d __syscall_meta__io_uring_enter
0000000000000000 d args__io_uring_enter
0000000000000000 d types__io_uring_enter
0000000000000000 t __event_exit__io_uring_enter
0000000000000000 t __event_enter__io_uring_enter
0000000000000000 t __p_syscall_meta__io_uring_enter
0000000000000000 t _eil_addr___ia32_sys_io_uring_enter
0000000000000000 t _eil_addr___x64_sys_io_uring_enter

The same program works fine on an ec2 instance with slightly older release. 5.4.46-23.77.amzn2.x86_64

I’d appreciate if there are any pointers on why this occurs or directions on how to debug to get to an RCA,

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 29 (13 by maintainers)

Most upvoted comments

Ack. Working on building kernel from that patch.

Noted, doesn’t really help me though, I have no idea if you’re running some amazon special of if it’s 5.4-stable stock (or at least close to)…

I’ll update kernel version on my instance to stock 5.4.58 stable and see whether I can repro it.