summaryrefslogtreecommitdiff
path: root/io_uring/sqpoll.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-06-19 18:41:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-28 12:12:24 +0300
commit1d9dc9bed9996f35bd7b1ceec690e617f760bc58 (patch)
tree229e96179fba7d2b1f12384ad827313a2a43def6 /io_uring/sqpoll.h
parent4d729cc67b05b873055668c1868578f74ce17703 (diff)
downloadlinux-1d9dc9bed9996f35bd7b1ceec690e617f760bc58.tar.xz
io_uring/net: disable partial retries for recvmsg with cmsg
commit 78d0d2063bab954d19a1696feae4c7706a626d48 upstream. We cannot sanely handle partial retries for recvmsg if we have cmsg attached. If we don't, then we'd just be overwriting the initial cmsg header on retries. Alternatively we could increment and handle this appropriately, but it doesn't seem worth the complication. Move the MSG_WAITALL check into the non-multishot case while at it, since MSG_WAITALL is explicitly disabled for multishot anyway. Link: https://lore.kernel.org/io-uring/0b0d4411-c8fd-4272-770b-e030af6919a0@kernel.dk/ Cc: stable@vger.kernel.org # 5.10+ Reported-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'io_uring/sqpoll.h')
0 files changed, 0 insertions, 0 deletions