diff options
author | Pavel Begunkov <[email protected]> | 2024-11-15 16:54:38 +0000 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-11-15 09:58:34 -0700 |
commit | 68685fa20edc5307fc893a06473c19661c236f29 (patch) | |
tree | 33cbd1aa3924c5f9aed8f174e26037d3683d709e /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 56cec28dc4da396d6032c59ae9614c5a6ae7d7a8 (diff) |
io_uring: fortify io_pin_pages with a warning
We're a bit too frivolous with types of nr_pages arguments, converting
it to long and back to int, passing an unsigned int pointer as an int
pointer and so on. Shouldn't cause any problem but should be carefully
reviewed, but until then let's add a WARN_ON_ONCE check to be more
confident callers don't pass poorely checked arguents.
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/d48e0c097cbd90fb47acaddb6c247596510d8cfc.1731689588.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions