summaryrefslogtreecommitdiffstats
path: root/net/ieee802154/6lowpan.c
diff options
context:
space:
mode:
authorFX Le Bail <fx.lebail@yahoo.com>2014-02-07 11:22:37 +0100
committerDavid S. Miller <davem@davemloft.net>2014-02-09 18:12:40 -0800
commitd94c1f92bbf2c42c5febd68bbea51fffeac90834 (patch)
treeacb605343e531fd8abf9e8362ef5bf8e5f014f73 /net/ieee802154/6lowpan.c
parente1d83ee673eff5407255ba9e884312219f6832d7 (diff)
downloadlinux-d94c1f92bbf2c42c5febd68bbea51fffeac90834.tar.bz2
ipv6: icmp6_send: fix Oops when pinging a not set up IPv6 peer on a sit tunnel
The patch 446fab59333dea91e54688f033dd8d788d0486fb ("ipv6: enable anycast addresses as source addresses in ICMPv6 error messages") causes an Oops when pinging a not set up IPv6 peer on a sit tunnel. The problem is that ipv6_anycast_destination() uses unconditionally skb_dst(skb), which is NULL in this case. The solution is to use instead the ipv6_chk_acast_addr_src() function. Here are the steps to reproduce it: modprobe sit ip link add sit1 type sit remote 10.16.0.121 local 10.16.0.249 ip l s sit1 up ip -6 a a dev sit1 2001:1234::123 remote 2001:1234::121 ping6 2001:1234::121 Reported-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Tested-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Francois-Xavier Le Bail <fx.lebail@yahoo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154/6lowpan.c')
0 files changed, 0 insertions, 0 deletions