android_kernel_google_msm/include
Sabrina Dubroca 82794d1071 BACKPORT: tcp: fix recv with flags MSG_WAITALL | MSG_PEEK
Currently, tcp_recvmsg enters a busy loop in sk_wait_data if called
with flags = MSG_WAITALL | MSG_PEEK.

sk_wait_data waits for sk_receive_queue not empty, but in this case,
the receive queue is not empty, but does not contain any skb that we
can use.

Add a "last skb seen on receive queue" argument to sk_wait_data, so
that it sleeps until the receive queue has new skbs.

Change-Id: If58492ae474effe058541f7e9a0c03dc24155393
Link: https://bugzilla.kernel.org/show_bug.cgi?id=99461
Link: https://sourceware.org/bugzilla/show_bug.cgi?id=18493
Link: https://bugzilla.redhat.com/show_bug.cgi?id=1205258
Reported-by: Enrico Scholz <rh-bugzilla@ensc.de>
Reported-by: Dan Searle <dan@censornet.com>
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2023-02-18 18:36:52 +01:00
..
acpi
asm-generic locks: rename file-private locks to "open file description locks" 2021-01-24 09:56:22 +00:00
crypto
drm
keys
linux BACKPORT: ipc: add COMPAT_SHMLBA support 2023-02-18 18:32:08 +01:00
math-emu
media
misc
mtd
net BACKPORT: tcp: fix recv with flags MSG_WAITALL | MSG_PEEK 2023-02-18 18:36:52 +01:00
pcmcia
rdma
rxrpc
scsi
sound
target
trace
uapi/linux shm: add memfd_create() syscall 2020-10-25 02:37:54 -04:00
video
xen
Kbuild Revert "shm: add memfd.h to export list" 2020-12-12 13:05:55 +03:00