kernel_samsung_a53x/net/tls
Sabrina Dubroca 50945f9b2d tls: stop recv() if initial process_rx_list gave us non-DATA
[ Upstream commit fdfbaec5923d9359698cbb286bc0deadbb717504 ]

If we have a non-DATA record on the rx_list and another record of the
same type still on the queue, we will end up merging them:
 - process_rx_list copies the non-DATA record
 - we start the loop and process the first available record since it's
   of the same type
 - we break out of the loop since the record was not DATA

Just check the record type and jump to the end in case process_rx_list
did some work.

Fixes: 692d7b5d1f91 ("tls: Fix recvmsg() to be able to peek across multiple records")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/bd31449e43bd4b6ff546f5c51cf958c31c511deb.1708007371.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 22:25:42 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tls_device.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tls_device_fallback.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tls_main.c mptcp: fix lockless access in subflow ULP diag 2024-11-18 22:25:39 +01:00
tls_proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tls_sw.c tls: stop recv() if initial process_rx_list gave us non-DATA 2024-11-18 22:25:42 +01:00
tls_toe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00