But I totally rushed this patch and just sent it once I heard it "worked",
and it really doesn't because malloc doesn't zero the buffer. My mistake,
kzalloc spoiled me. Here's the fix:
Fixes:
e39863e3cb61 ("t/io_uring: add depth options")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
- submitter = malloc(sizeof(*submitter) * depth * sizeof(struct iovec));
+ submitter = malloc(sizeof(*submitter) + depth * sizeof(struct iovec));
+ memset(submitter, 0, sizeof(*submitter) + depth * sizeof(struct iovec));
s = submitter;
flags = O_RDONLY | O_NOATIME;
s = submitter;
flags = O_RDONLY | O_NOATIME;