linux-yocto/io_uring
Pavel Begunkov d48845afa0 io_uring/poll: fix POLLERR handling
commit c7cafd5b81 upstream.

8c8492ca64 ("io_uring/net: don't retry connect operation on EPOLLERR")
is a little dirty hack that
1) wrongfully assumes that POLLERR equals to a failed request, which
breaks all POLLERR users, e.g. all error queue recv interfaces.
2) deviates the connection request behaviour from connect(2), and
3) racy and solved at a wrong level.

Nothing can be done with 2) now, and 3) is beyond the scope of the
patch. At least solve 1) by moving the hack out of generic poll handling
into io_connect().

Cc: stable@vger.kernel.org
Fixes: 8c8492ca64 ("io_uring/net: don't retry connect operation on EPOLLERR")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/3dc89036388d602ebd84c28e5042e457bdfc952b.1752682444.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-24 08:53:12 +02:00
..
advise.c
advise.h
alloc_cache.h
cancel.c
cancel.h
epoll.c
epoll.h
fdinfo.c io_uring/fdinfo: annotate racy sq/cq head/tail reads 2025-06-04 14:42:16 +02:00
fdinfo.h
filetable.c
filetable.h
fs.c
fs.h
io_uring.c io_uring: account drain memory to cgroup 2025-06-27 11:08:43 +01:00
io_uring.h io_uring: add io_file_can_poll() helper 2025-06-19 15:28:44 +02:00
io-wq.c io_uring: fix task leak issue in io_wq_create() 2025-06-27 11:08:58 +01:00
io-wq.h
kbuf.c io_uring/kbuf: account ring io_buffer_list memory 2025-06-27 11:08:43 +01:00
kbuf.h io_uring/kbuf: use vm_insert_pages() for mmap'ed pbuf ring 2025-03-22 12:50:45 -07:00
Makefile
msg_ring.c
msg_ring.h
net.c io_uring/poll: fix POLLERR handling 2025-07-24 08:53:12 +02:00
net.h
nop.c io_uring: fail NOP if non-zero op flags is passed in 2024-06-12 11:11:18 +02:00
nop.h
notif.c
notif.h
opdef.c io_uring: make fallocate be hashed work 2025-07-17 18:35:20 +02:00
opdef.h
openclose.c
openclose.h
poll.c io_uring/poll: fix POLLERR handling 2025-07-24 08:53:12 +02:00
poll.h
refs.h io_uring: always do atomic put from iowq 2025-05-02 07:50:57 +02:00
rsrc.c io_uring: unify io_pin_pages() 2025-03-22 12:50:45 -07:00
rsrc.h
rw.c io_uring/rw: fix wrong NOWAIT check in io_rw_init_file() 2025-06-19 15:28:45 +02:00
rw.h
slist.h
splice.c
splice.h
sqpoll.c io_uring/sqpoll: fix sqpoll error handling races 2025-01-02 10:32:10 +01:00
sqpoll.h
statx.c
statx.h
sync.c
sync.h
tctx.c io_uring/tctx: work around xa_store() allocation error issue 2024-12-14 20:00:17 +01:00
tctx.h
timeout.c io_uring/timeout: fix multishot updates 2025-01-17 13:36:19 +01:00
timeout.h
uring_cmd.c io_uring/uring_cmd: use cached cmd_op in io_uring_cmd_sock() 2025-02-08 09:52:33 +01:00
uring_cmd.h
xattr.c
xattr.h