[PATCH] tests/io_uring: ensure that tne io_uring::enter_ring_fd is imported

Paul Moore paul at paul-moore.com
Wed Aug 24 19:42:01 UTC 2022


The liburing library added a new field to the io_uring struct in
commit b02125e164ea ("Add preliminary support for using a registered ring fd"),
first seen in liburing v2.2.

Signed-off-by: Paul Moore <paul at paul-moore.com>
---
 tests/io_uring/iouring.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/io_uring/iouring.c b/tests/io_uring/iouring.c
index 5d83146..af814f6 100644
--- a/tests/io_uring/iouring.c
+++ b/tests/io_uring/iouring.c
@@ -233,6 +233,7 @@ int uring_import(int fd, struct io_uring *ring, struct io_uring_params *params)
 	ring->flags = params->flags;
 	ring->features = params->features;
 	ring->ring_fd = fd;
+	ring->enter_ring_fd = fd;
 
 	ring->sq.ring_sz = params->sq_off.array +
 			   params->sq_entries * sizeof(unsigned);



More information about the Linux-audit mailing list