summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-13 09:15:32 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-13 09:15:32 -0700
commit72a675953c87f748ef83bf9f7c3f3a0a868da16d (patch)
tree5e1b13514bff97ed59cac18d5a0d4e522e5432b6 /os
parentf3e769a43d02dd468a1662efc504940d8dc21eb6 (diff)
downloadfio-72a675953c87f748ef83bf9f7c3f3a0a868da16d.tar.gz
fio-72a675953c87f748ef83bf9f7c3f3a0a868da16d.tar.bz2
io_uring: ensure that the io_uring_register() structs are 32-bit safe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os')
-rw-r--r--os/linux/io_uring.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/os/linux/io_uring.h b/os/linux/io_uring.h
index 3693d125..71e92026 100644
--- a/os/linux/io_uring.h
+++ b/os/linux/io_uring.h
@@ -137,12 +137,18 @@ struct io_uring_params {
#define IORING_UNREGISTER_FILES 3
struct io_uring_register_buffers {
- struct iovec *iovecs;
+ union {
+ struct iovec *iovecs;
+ __u64 pad;
+ };
__u32 nr_iovecs;
};
struct io_uring_register_files {
- __s32 *fds;
+ union {
+ __s32 *fds;
+ __u64 pad;
+ };
__u32 nr_fds;
};