The following changes since commit eb7fe4550ff2a569d0d8c71de16a1ea1e1aaf0a5: Revert "smalloc: smalloc() already clears memory, scalloc() need not do it again" (2024-06-06 14:03:47 -0400) are available in the Git repository at: git://git.kernel.dk/fio.git master for you to fetch changes up to fbf954c96bb4089b3097adde723216a4668f854b: engines/io_uring: eliminate FDP memory corruption risk (2024-06-07 09:45:02 -0400) ---------------------------------------------------------------- Vincent Fu (1): engines/io_uring: eliminate FDP memory corruption risk engines/io_uring.c | 2 ++ 1 file changed, 2 insertions(+) --- Diff of recent changes: diff --git a/engines/io_uring.c b/engines/io_uring.c index cf8cf289..7e083010 100644 --- a/engines/io_uring.c +++ b/engines/io_uring.c @@ -1545,6 +1545,8 @@ static int fio_ioring_cmd_fetch_ruhs(struct thread_data *td, struct fio_file *f, goto free; fruhs_info->nr_ruhs = le16_to_cpu(ruhs->nruhsd); + if (fruhs_info->nr_ruhs > FDP_MAX_RUHS) + fruhs_info->nr_ruhs = FDP_MAX_RUHS; for (i = 0; i < fruhs_info->nr_ruhs; i++) fruhs_info->plis[i] = le16_to_cpu(ruhs->ruhss[i].pid); free: