liburing: Linux 5.13+ Errors
Linux 5.13.1
I was io_uring_prep_write b'hello world' and its writing b'\xf0\x16\xec\xa4\x0e\x7f\x00\x00rld' and b'\x10\x07\xe6\x80\xb5\x7f\x00\x0001\xb7'. So I ran a test and this is whats happened with that.
$ make clean && make -B && make runtests
make[1]: Entering directory '/.../liburing/src'
make[1]: Leaving directory '/.../liburing/src'
make[1]: Entering directory '/.../liburing/test'
make[1]: Leaving directory '/.../liburing/test'
make[1]: Entering directory '/.../liburing/examples'
make[1]: Leaving directory '/.../liburing/examples'
Running configure ...
prefix /usr
includedir /usr/include
libdir /usr/lib
libdevdir /usr/lib
relativelibdir
mandir /usr/man
datadir /usr/share
__kernel_rwf_t yes
__kernel_timespec yes
open_how no
statx yes
C++ yes
has_ucontext yes
CC gcc
CXX g++
make[1]: Entering directory '/.../liburing/src'
CC setup.ol
CC queue.ol
CC syscall.ol
CC register.ol
AR liburing.a
ar: creating liburing.a
RANLIB liburing.a
CC setup.os
CC queue.os
CC syscall.os
CC register.os
CC liburing.so.2.0.0
make[1]: Leaving directory '/.../liburing/src'
make[1]: Entering directory '/.../liburing/test'
CC helpers.o
CC 232c93d07b74-test
CC 35fa71a030ca-test
CC 500f9fbadef8-test
CC 7ad0e4b2f83c-test
CC 8a9973408177-test
CC 917257daa0fe-test
CC a0908ae19763-test
CC a4c0b3decb33-test
CC accept
CC accept-link
CC accept-reuse
CC accept-test
CC across-fork
CC splice
CC b19062a56726-test
CC b5837bd5311d-test
CC ce593a6c480a-test
CC close-opath
CC connect
CC cq-full
CC cq-overflow
CC cq-peek-batch
CC cq-ready
CC cq-size
CC d4ae271dfaae-test
CC d77a67ed5f27-test
CC defer
CC double-poll-crash
double-poll-crash.c: In function ‘main’:
double-poll-crash.c:142:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
142 | *(uint8_t*)0x20000000 = 6;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:143:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
143 | *(uint8_t*)0x20000001 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:154:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
154 | *(uint8_t*)0x2000002c = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:155:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
155 | *(uint8_t*)0x2000002d = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:156:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
156 | *(uint8_t*)0x2000002e = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:157:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
157 | *(uint8_t*)0x2000002f = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:158:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
158 | *(uint8_t*)0x20000030 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:159:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
159 | *(uint8_t*)0x20000031 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:160:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
160 | *(uint8_t*)0x20000032 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:161:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
161 | *(uint8_t*)0x20000033 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:162:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
162 | *(uint8_t*)0x20000034 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:163:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
163 | *(uint8_t*)0x20000035 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:164:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
164 | *(uint8_t*)0x20000036 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:165:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
165 | *(uint8_t*)0x20000037 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:166:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
166 | *(uint8_t*)0x20000038 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:167:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
167 | *(uint8_t*)0x20000039 = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:168:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
168 | *(uint8_t*)0x2000003a = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:169:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
169 | *(uint8_t*)0x2000003b = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:170:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
170 | *(uint8_t*)0x2000003c = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:171:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
171 | *(uint8_t*)0x2000003d = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:172:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
172 | *(uint8_t*)0x2000003e = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:173:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
173 | *(uint8_t*)0x2000003f = 0;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:180:25: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
180 | *(uint8_t*)0x20000090 = 9;
| ~~~~~~~~~~~~~~~~~~~~~~^~~
double-poll-crash.c:181:3: warning: ‘memcpy’ offset [0, 18] is out of the bounds [0, 0] [-Warray-bounds]
181 | memcpy((void*)0x20000091, "\xaf\x09\x01\xbc\xf9\xc6\xe4\x92\x86\x51\x7d\x7f"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
182 | "\xbd\x43\x7d\x16\x69\x3e\x05",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
183 | 19);
| ~~~
CC eeed8b54e0df-test
CC eventfd
CC eventfd-disable
CC eventfd-ring
CC fadvise
CC fallocate
CC fc2a85cb02ef-test
CC file-register
CC file-update
CC files-exit-hang-poll
CC files-exit-hang-timeout
CC fixed-link
CC fsync
CC hardlink
CC io-cancel
CC io_uring_enter
CC io_uring_register
CC io_uring_setup
CC iopoll
CC lfs-openat
CC lfs-openat-write
CC link
CC link-timeout
CC link_drain
CC madvise
CC mkdir
CC multicqes_drain
CC nop
CC nop-all-sizes
CC open-close
CC openat2
CC personality
CC pipe-eof
CC pipe-reuse
CC poll
CC poll-cancel
CC poll-cancel-ton
CC poll-link
CC poll-many
CC poll-mshot-update
CC poll-ring
CC poll-v-poll
CC probe
CC read-write
CC register-restrictions
CC rename
CC ring-leak
CC ring-leak2
CC rw_merge_test
CC self
CC send_recv
CC send_recvmsg
CC shared-wq
CC short-read
CC shutdown
CC sigfd-deadlock
CC socket-rw
CC socket-rw-eagain
CC sq-full
CC sq-poll-dup
CC sq-poll-kthread
CC sq-poll-share
CC sqpoll-disable-exit
CC sqpoll-exit-hang
CC sqpoll-sleep
CC sq-space_left
CC stdout
CC submit-reuse
CC symlink
CC teardowns
CC thread-exit
CC timeout
CC timeout-new
CC timeout-overflow
CC unlink
CC wakeup-hang
CC sendmsg_fs_cve
CC rsrc_tags
CC statx
CXX sq-full-cpp
make[1]: Leaving directory '/.../liburing/test'
make[1]: Entering directory '/.../liburing/examples'
CC io_uring-test
CC io_uring-cp
CC link-cp
CC ucontext-cp
make[1]: Leaving directory '/.../liburing/examples'
make[1]: Entering directory '/.../liburing/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/.../liburing/src'
make[1]: Entering directory '/.../liburing/test'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/.../liburing/test'
make[1]: Entering directory '/.../liburing/examples'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/.../liburing/examples'
make[1]: Entering directory '/.../liburing/test'
Running test 232c93d07b74-test
Running test 35fa71a030ca-test
Test 35fa71a030ca-test timed out (may not be a failure)
Running test 500f9fbadef8-test
Running test 7ad0e4b2f83c-test
Running test 8a9973408177-test
Running test 917257daa0fe-test
Running test a0908ae19763-test
Running test a4c0b3decb33-test
Running test accept
Running test accept-link
Running test accept-reuse
Running test accept-test
Running test across-fork
Running test splice
Running test b19062a56726-test
Running test b5837bd5311d-test
Running test ce593a6c480a-test
Running test close-opath
Running test connect
Running test cq-full
Running test cq-overflow
Running test cq-peek-batch
Running test cq-ready
Running test cq-size
Running test d4ae271dfaae-test
Test requires root, skipping
Running test d77a67ed5f27-test
Running test defer
Running test double-poll-crash
Running test eeed8b54e0df-test
open file: Permission denied
Test eeed8b54e0df-test failed with ret 1
Running test eventfd
Running test eventfd-disable
Running test eventfd-ring
Running test fadvise
Running test fallocate
Running test fc2a85cb02ef-test
Test needs failslab/fail_futex/fail_page_alloc enabled, skipped
Running test file-register
Running test file-update
Running test files-exit-hang-poll
Running test files-exit-hang-timeout
Running test fixed-link
Running test fsync
open: Permission denied
test_barrier_fsync failed
Test fsync failed with ret 1
Running test hardlink
linkat not supported, skipping
Running test io-cancel
Running test io_uring_enter
io_uring_enter(3, 1, 0, 4294967295, (nil))
io_uring_enter(-1, 0, 0, 0, (nil))
io_uring_enter(0, 0, 0, 0, (nil))
io_uring_enter(3, 1, 0, 0, (nil))
Allocating 4096 sqes
Submitting 4096 I/Os
Done
Waiting for 4096 events
Reaping 4096 I/Os
Submitting invalid sqe index.
PASS
Running test io_uring_register
RELIMIT_MEMLOCK: 18446744073709551615 (18446744073709551615)
io_uring_register(-1, 0, (nil), 0)
io_uring_register(3, 0, (nil), 0)
io_uring_register(4, 4294967295, (nil), 0)
io_uring_register(4, 0, 0x7fff26220980, 1)
io_uring_register(4, 0, 0x7fff26220980, 1)
io_uring_register(4, 0, 0x7fff26220980, 1)
Unable to map a huge page. Try increasing /proc/sys/vm/nr_hugepages by at least 1.
Skipping the hugepage test
reserve file-backed buffers
io_uring_register(4, 0, 0x7fff26220980, 1)
io_uring_register(4, 0, 0x7f4567ee4010, 1000000)
io_uring_register(4, 0, 0x7f4567ee4010, 1024)
allocated 17179869180 bytes of address space
io_uring_register(4, IORING_REGISTER_FILES, 0x7f4168e27000, 32767)...succeeded
io_uring_register(4, IORING_UNREGISTER_FILES, 0, 0)...succeeded
io_uring_submit:
opcode: 6
flags: 0x00000000
fd: 4
poll_events: 0x00000005
io_uring_register(4, 2, 0x7fff262208cc, 1)
PASS
memfd registration isn't supported, skip
Running test io_uring_setup
io_uring_setup(0, 0x7ffc18002fa0), flags: none, feat: none, resv: 0x00000000 0x00000000 0x00000000, sq_thread_cpu: 0
io_uring_setup(1, (nil)), flags: none, feat: none, resv: , sq_thread_cpu: 0
io_uring_setup(1, 0x7ffc18002fa0), flags: none, feat: none, resv: 0x00000001 0x00000001 0x00000001, sq_thread_cpu: 0
io_uring_setup(1, 0x7ffc18002fa0), flags: 0xffffffff, feat: none, resv: 0x00000000 0x00000000 0x00000000, sq_thread_cpu: 0
io_uring_setup(1, 0x7ffc18002fa0), flags: IORING_SETUP_SQ_AFF, feat: none, resv: 0x00000000 0x00000000 0x00000000, sq_thread_cpu: 0
io_uring_setup(1, 0x7ffc18002fa0), flags: IORING_SETUP_SQPOLL|IORING_SETUP_SQ_AFF, feat: none, resv: 0x00000000 0x00000000 0x00000000, sq_thread_cpu: 16
PASS
Running test iopoll
SQPOLL requires root, skipping
Running test lfs-openat
Running test lfs-openat-write
Running test link
Running test link-timeout
Running test link_drain
open: Permission denied
test_link_drain_one failed
Test link_drain failed with ret 1
Running test madvise
Suspicious timings (53 > 47)
Running test mkdir
mkdirat not supported, skipping
Running test multicqes_drain
Running test nop
Running test nop-all-sizes
Running test open-close
Running test openat2
Running test personality
Not root, skipping
Running test pipe-eof
Running test pipe-reuse
Running test poll
Running test poll-cancel
Running test poll-cancel-ton
Running test poll-link
Running test poll-many
Running test poll-mshot-update
Running test poll-ring
Running test poll-v-poll
Running test probe
Running test read-write
SQPOLL requires root, skipping
Not root, skipping test_write_efbig
Running test register-restrictions
Running test rename
Running test ring-leak
Running test ring-leak2
Running test rw_merge_test
rw_merge_test: rw_merge_test.c:40: main: Assertion `!ret' failed.
timeout: the monitored command dumped core
./runtests.sh: line 66: 111387 Aborted timeout -s INT -k $TIMEOUT $TIMEOUT ./$test_name $dev
Test rw_merge_test failed with ret 134
Running test self
Running test send_recv
Running test send_recvmsg
Running test shared-wq
Running test short-read
Running test shutdown
Running test sigfd-deadlock
Running test socket-rw
Running test socket-rw-eagain
Running test sq-full
Running test sq-poll-dup
Running test sq-poll-kthread
sqpoll requires root!
test_sq_poll_kthread_stopped_exit: skipped
sqpoll requires root!
test_sq_poll_kthread_stopped_noexit: skipped
Running test sq-poll-share
Running test sqpoll-disable-exit
Running test sqpoll-exit-hang
Running test sqpoll-sleep
Running test sq-space_left
Running test stdout
This is a pipe test
This is a fixed pipe test
Running test submit-reuse
Running test symlink
symlinkat not supported, skipping
Running test teardowns
Running test thread-exit
Running test timeout
Running test timeout-new
Running test timeout-overflow
Skipping
Running test unlink
Running test wakeup-hang
Running test sendmsg_fs_cve
chroot(): Operation not permitted
error: Test failed
Test sendmsg_fs_cve failed with ret 1
Running test rsrc_tags
Running test statx
Running test sq-full-cpp
Tests failed: <eeed8b54e0df-test> <fsync> <link_drain> <rw_merge_test> <sendmsg_fs_cve>
make[1]: *** [Makefile:294: runtests] Error 1
make[1]: Leaving directory '/.../liburing/test'
make: *** [Makefile:23: runtests] Error 2
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (11 by maintainers)
For the accept-link problem, sent out, something will get into a stable kernel release at some moment.