diff options
author | Anuj Gupta <[email protected]> | 2022-08-11 14:44:59 +0530 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-08-11 10:56:00 -0600 |
commit | 3ed159c984079baedff740505d609badb8538e0d (patch) | |
tree | b392784a2ec0009fb964eef6a928fc039446afa7 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | d1f6222c4978817712e0f2825ce9e830763f0695 (diff) |
io_uring: fix error handling for io_uring_cmd
Commit 97b388d70b53 ("io_uring: handle completions in the core") moved the
error handling from handler to core. But for io_uring_cmd handler we end
up completing more than once (both in handler and in core) leading to
use_after_free.
Change io_uring_cmd handler to avoid calling io_uring_cmd_done in case
of error.
Fixes: 97b388d70b53 ("io_uring: handle completions in the core")
Signed-off-by: Anuj Gupta <[email protected]>
Signed-off-by: Kanchan Joshi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[axboe: fix ret vs req typo]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions