Files
linux/net/ipv4
Eric Dumazet f278b6d5bb Revert "tcp: avoid atomic operations on sk->sk_rmem_alloc"
This reverts commit 0de2a5c4b8.

I forgot that a TCP socket could receive messages in its error queue.

sock_queue_err_skb() can be called without socket lock being held,
and changes sk->sk_rmem_alloc.

The fact that skbs in error queue are limited by sk->sk_rcvbuf
means that error messages can be dropped if socket receive
queues are full, which is an orthogonal issue.

In future kernels, we could use a separate sk->sk_error_mem_alloc
counter specifically for the error queue.

Fixes: 0de2a5c4b8 ("tcp: avoid atomic operations on sk->sk_rmem_alloc")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250331075946.31960-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-03-31 16:53:54 -07:00
..
2025-02-19 19:05:28 -08:00
2025-03-17 13:56:38 +00:00
2024-09-09 17:21:47 -07:00
2025-01-02 17:17:40 -08:00
2024-07-30 18:35:12 -07:00
2024-01-04 10:23:10 -08:00
2021-05-17 15:29:35 -07:00
2025-02-18 18:27:19 -08:00
2025-03-17 13:54:11 +00:00
2025-03-17 13:56:38 +00:00
2025-03-25 10:34:33 -07:00
2025-03-03 15:44:19 -08:00
2022-12-20 03:13:45 +01:00
2025-03-25 09:15:07 -07:00
2023-09-14 16:16:36 +02:00