Linux-audit Archive mirror
 help / color / mirror / Atom feed
From: Paul Moore <paul@paul-moore.com>
To: linux-audit@redhat.com
Subject: [PATCH] tests/io_uring: ensure that tne io_uring::enter_ring_fd is imported
Date: Wed, 24 Aug 2022 15:42:01 -0400	[thread overview]
Message-ID: <166137012143.331098.11369139274931384737.stgit@olly> (raw)

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@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);

--
Linux-audit mailing list
Linux-audit@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-audit


             reply	other threads:[~2022-08-24 20:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-24 19:42 Paul Moore [this message]
2022-08-25 20:10 ` [PATCH] tests/io_uring: ensure that tne io_uring::enter_ring_fd is imported Richard Guy Briggs
2022-08-25 20:28   ` Paul Moore
2022-08-25 21:07     ` Richard Guy Briggs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=166137012143.331098.11369139274931384737.stgit@olly \
    --to=paul@paul-moore.com \
    --cc=linux-audit@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).