]> 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)
commit357d0ca589e8ecd2a68e593c8308ab070ab48fd3
tree2d1f6bbc1cd2d4dce31f1b80d91e0ce7b1339743
parent499ed79dbb566a594cce4b19ff743226894049bf
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