summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-10-26 19:19:56 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-18 11:11:06 +0100
commitb9b0c99a426ad92fa42f0702bb5bf5d0f996cbd8 (patch)
tree7a929d03d76dc7a20a5893ce76c9e35b26646123 /COPYING
parent9bae2ffb87d69aa9b71248724376956eb8d2e656 (diff)
downloadlinux-stable-b9b0c99a426ad92fa42f0702bb5bf5d0f996cbd8.tar.gz
linux-stable-b9b0c99a426ad92fa42f0702bb5bf5d0f996cbd8.tar.bz2
linux-stable-b9b0c99a426ad92fa42f0702bb5bf5d0f996cbd8.zip
ipip: only increase err_count for some certain type icmp in ipip_err
[ Upstream commit f3594f0a7ea36661d7fd942facd7f31a64245f1a ] t->err_count is used to count the link failure on tunnel and an err will be reported to user socket in tx path if t->err_count is not 0. udp socket could even return EHOSTUNREACH to users. Since commit fd58156e456d ("IPIP: Use ip-tunneling code.") removed the 'switch check' for icmp type in ipip_err(), err_count would be increased by the icmp packet with ICMP_EXC_FRAGTIME code. an link failure would be reported out due to this. In Jianlin's case, when receiving ICMP_EXC_FRAGTIME a icmp packet, udp netperf failed with the err: send_data: data send error: No route to host (errno 113) We expect this error reported from tunnel to socket when receiving some certain type icmp, but not ICMP_EXC_FRAGTIME, ICMP_SR_FAILED or ICMP_PARAMETERPROB ones. This patch is to bring 'switch check' for icmp type back to ipip_err so that it only reports link failure for the right type icmp, just as in ipgre_err() and ipip6_err(). Fixes: fd58156e456d ("IPIP: Use ip-tunneling code.") Reported-by: Jianlin Shi <jishi@redhat.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions