]> git.baikalelectronics.ru Git - kernel.git/commit
icmp: Don't leak original dst into ip_route_input()
authorThomas Graf <tgraf@suug.ch>
Tue, 21 Jul 2015 08:43:55 +0000 (10:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 17:39:05 +0000 (10:39 -0700)
commit5e1fc3ec62ca0ee90e9cff04f9e60137057633b4
tree2d1f6bbc1cd2d4dce31f1b80d91e0ce7b1339743
parente9815b0d573997f789792542f183a7d21049aab8
icmp: Don't leak original dst into ip_route_input()

ip_route_input() unconditionally overwrites the dst. Hide the original
dst attached to the skb by calling skb_dst_set(skb, NULL) prior to
ip_route_input().

Reported-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c