engines/io_uring: eliminate FDP memory corruption risk
authorVincent Fu <vincent.fu@samsung.com>
Fri, 7 Jun 2024 13:37:49 +0000 (09:37 -0400)
committerVincent Fu <vincent.fu@samsung.com>
Fri, 7 Jun 2024 13:45:02 +0000 (09:45 -0400)
commitfbf954c96bb4089b3097adde723216a4668f854b
tree5fc544f46db62e90a4d593b209a923a56d1fb912
parenteb7fe4550ff2a569d0d8c71de16a1ea1e1aaf0a5
engines/io_uring: eliminate FDP memory corruption risk

We only allocate FDP_MAX_RUHS reclaim unit handle status descriptors. It
is possible that the device will have more than this many descriptors.
Make sure we do not run over the end of the buffer we have allocated
when this happens.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
engines/io_uring.c