Skip to content

typesafety improvements on io_uring-6.0

Stefan Metzmacher io-uring 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3io_uring: consistently make use of io_notif_to_data()io_uring/notif.c+1 -10 replies
2/3io_uring: make io_kiocb_to_cmd() typesafeinclude/linux/io_uring_types.h io_uring/advise.c io_uring/cancel.c +17 more+134 -1290 replies
3/3io_uring: add missing BUILD_BUG_ON() checks for new io_uring_sqe fieldsio_uring/io_uring.c io_uring/uring_cmd.c+19 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] typesafety improvements on io_uring-6.0

Hi Jens,

with the split into individual files (which is gread) and the introduction of the generic struct io_cmd_data, we now have the risk do incompatible casting in io_kiocb_to_cmd().

My patches catch casting problems with BUILD_BUG_ON() now. While there I added missing BUILD_BUG_ON() checks for new io_uring_sqe fields.

Stefan Metzmacher (3):
io_uring: consistently make use of io_notif_to_data()
io_uring: make io_kiocb_to_cmd() typesafe
io_uring: add missing BUILD_BUG_ON() checks for new io_uring_sqe
fields

 include/linux/io_uring_types.h |  9 +++++++-
 io_uring/advise.c              |  8 +++----
 io_uring/cancel.c              |  4 ++--
 io_uring/epoll.c               |  4 ++--
 io_uring/fs.c                  | 28 +++++++++++------------
 io_uring/io_uring.c            | 19 ++++++++++++---
 io_uring/kbuf.c                |  8 +++----
 io_uring/msg_ring.c            |  8 +++----
 io_uring/net.c                 | 42 +++++++++++++++++-----------------
 io_uring/notif.c               |  4 +---
 io_uring/notif.h               |  2 +-
 io_uring/openclose.c           | 16 ++++++-------
 io_uring/poll.c                | 16 ++++++-------
 io_uring/rsrc.c                | 10 ++++----
 io_uring/rw.c                  | 28 +++++++++++------------
 io_uring/splice.c              |  8 +++----
 io_uring/statx.c               |  6 ++---
 io_uring/sync.c                | 12 +++++-----
 io_uring/timeout.c             | 26 ++++++++++-----------
 io_uring/uring_cmd.c           | 11 +++++----
 io_uring/xattr.c               | 18 +++++++--------
 21 files changed, 154 insertions(+), 133 deletions(-)
Signature · 1 line
2.34.1