]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: make io_kiocb_to_cmd() typesafe
authorStefan Metzmacher <metze@samba.org>
Thu, 11 Aug 2022 07:11:15 +0000 (09:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Aug 2022 23:01:00 +0000 (17:01 -0600)
commit42bdd1c376b566c1a40f8fae98100ac80b0a85e3
tree32c78d3576a1e594aab4dca3c36efb6ee5dcd93e
parentd273e930fc4483859c4925a16b9de693221f09bf
io_uring: make io_kiocb_to_cmd() typesafe

We need to make sure (at build time) that struct io_cmd_data is not
casted to a structure that's larger.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Link: https://lore.kernel.org/r/c024cdf25ae19fc0319d4180e2298bade8ed17b8.1660201408.git.metze@samba.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
20 files changed:
include/linux/io_uring_types.h
io_uring/advise.c
io_uring/cancel.c
io_uring/epoll.c
io_uring/fs.c
io_uring/kbuf.c
io_uring/msg_ring.c
io_uring/net.c
io_uring/notif.c
io_uring/notif.h
io_uring/openclose.c
io_uring/poll.c
io_uring/rsrc.c
io_uring/rw.c
io_uring/splice.c
io_uring/statx.c
io_uring/sync.c
io_uring/timeout.c
io_uring/uring_cmd.c
io_uring/xattr.c