OSDN Git Service

ipvs: do not schedule icmp errors from tunnels
authorJulian Anastasov <ja@ssi.bg>
Sun, 31 Mar 2019 10:24:52 +0000 (13:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:45:06 +0000 (19:45 +0200)
commit4c78631d884d078a928482aeff225f20d0b7a8ee
treea51223664b99d5041edbb498ae1a90e895aee8f4
parent2b46b98576cb1fa1a7fb5bbecf004b4348df0763
ipvs: do not schedule icmp errors from tunnels

[ Upstream commit 0261ea1bd1eb0da5c0792a9119b8655cf33c80a3 ]

We can receive ICMP errors from client or from
tunneling real server. While the former can be
scheduled to real server, the latter should
not be scheduled, they are decapsulated only when
existing connection is found.

Fixes: 6044eeffafbe ("ipvs: attempt to schedule icmp packets")
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/ipvs/ip_vs_core.c