diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-11-17 18:40:17 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-17 12:33:33 -0700 |
commit | 100d6b17c06ee4c2b42fdddf0fe4ab77c86eb77e (patch) | |
tree | 089dcf61c6bd6a1bf5059ea879f77a2ab6d19e9f /io_uring/poll.c | |
parent | 91482864768a874c4290ef93b84a78f4f1dac51b (diff) | |
download | linux-rpi-100d6b17c06ee4c2b42fdddf0fe4ab77c86eb77e.tar.gz linux-rpi-100d6b17c06ee4c2b42fdddf0fe4ab77c86eb77e.tar.bz2 linux-rpi-100d6b17c06ee4c2b42fdddf0fe4ab77c86eb77e.zip |
io_uring: fix multishot recv request leaks
Having REQ_F_POLLED set doesn't guarantee that the request is
executed as a multishot from the polling path. Fortunately for us, if
the code thinks it's multishot issue when it's not, it can only ask to
skip completion so leaking the request. Use issue_flags to mark
multipoll issues.
Cc: stable@vger.kernel.org
Fixes: 1300ebb20286b ("io_uring: multishot recv")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/37762040ba9c52b81b92a2f5ebfd4ee484088951.1668710222.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/poll.c')
0 files changed, 0 insertions, 0 deletions