Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9501b8d authored by Alexander Ovechkin's avatar Alexander Ovechkin Committed by Greg Kroah-Hartman
Browse files

tcp: relookup sock for RST+ACK packets handled by obsolete req sock



commit 7233da86697efef41288f8b713c10c2499cffe85 upstream.

Currently tcp_check_req can be called with obsolete req socket for which big
socket have been already created (because of CPU race or early demux
assigning req socket to multiple packets in gro batch).

Commit e0f9759f ("tcp: try to keep packet if SYN_RCV race
is lost") added retry in case when tcp_check_req is called for PSH|ACK packet.
But if client sends RST+ACK immediatly after connection being
established (it is performing healthcheck, for example) retry does not
occur. In that case tcp_check_req tries to close req socket,
leaving big socket active.

Fixes: e0f9759f ("tcp: try to keep packet if SYN_RCV race is lost")
Signed-off-by: default avatarAlexander Ovechkin <ovov@yandex-team.ru>
Reported-by: default avatarOleg Senin <olegsenin@yandex-team.ru>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 95399773
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment