liburing: Running test buf-ring.t mmap ring register failed -22
When running tests for 2.6 some tests fail which (of these only buf-ring.t existed att) was not failing for 2.5. Kernel is 6.1.82 in both cases:
[00:00:22] Running test buf-ring.t mmap ring register failed -22
[00:00:22] test_running(1) mmap failed
[00:00:22] Test buf-ring.t failed with ret 1
[00:00:22] Running test buf-ring-nommap.t Skipped
[00:00:22] Running test buf-ring-put.t Skipped
..
[00:00:27] Running test defer-tw-timeout.t open: Invalid argument
[00:00:27] Test defer-tw-timeout.t failed with ret 1
...
[00:00:32] Running test fixed-buf-merge.t open: Invalid argument
[00:00:32] Test fixed-buf-merge.t failed with ret 1
...
[00:01:08] Tests failed (3): <buf-ring.t> <defer-tw-timeout.t> <fixed-buf-merge.t>
Temporary build log https://git.altlinux.org/tasks/347246/build/200/x86_64/log
Run under strace:
[00:00:10] + strace -Z ./test/buf-ring.t
...
[00:00:13] io_uring_register(3, IORING_REGISTER_PBUF_RING, {ring_addr=NULL, ring_entries=1, bgid=2, flags=0x1}, 1) = -1 EINVAL (Invalid argument)
[00:00:13] mmap ring register failed -22
[00:00:13] test_running(1) mmap failed
[00:00:13] +++ exited with 1 +++
When 2.6 tests are run on Linux 6.6.x buf-ring.t does not fail.
Perhaps, some backward compatibility is lost?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (9 by maintainers)
I agree that most people will ignore -rc releases altogether. So, the most effective (and visible) approach, perhaps, would be just to make patchelvel release, like 2.6.1, if it’s worth it.
Pushed fixes.