]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/net: don't lose partial send_zc on fail
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 16 Oct 2022 20:33:27 +0000 (21:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Oct 2022 10:39:27 +0000 (12:39 +0200)
commit580cac9bd1a03d752fb76ebd16ca29e8ecb86886
treecb6aebd51cf5d30643612c9c94557fd3a3e26407
parentd54c1579d350dccf022d70e70d2db0b3d08f3fae
io_uring/net: don't lose partial send_zc on fail

[ upstream commit 5693bcce892d7b8b15a7a92b011d3d40a023b53c ]

Partial zc send may end up in io_req_complete_failed(), which not only
would return invalid result but also mask out the notification leading
to lifetime issues.

Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/5673285b5e83e6ceca323727b4ddaa584b5cc91e.1663668091.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/net.c
io_uring/net.h
io_uring/opdef.c