ipv6: Don't send packet to big messages to self
Subsystems (3)
PATCH 1/1 ipv6: Don't send packet to big messages to self
Calling icmpv6_send() on a local message size error leads to an incorrect update of the path mtu in the case when IPsec is used. So use ipv6_local_error() instead to notify the socket about the error.
Reported-by Jiri Bohac <[email protected]>
Signed-off-by Steffen Klassert <[email protected]>
--- net/ipv6/ip6_output.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
net/ipv6/ip6_output.c +1 -2
@@ -242,9 +242,8 @@ int ip6_xmit(struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6, dst->dev, dst_output); } -net_dbg_ratelimited ("IPv6: sending pkt_too_big to self\n" ); skb->dev = dst->dev; -icmpv6_send (skb,ICMPV6_PKT_TOOBIG ,0 , mtu); +ipv6_local_error (sk,EMSGSIZE , fl6, mtu);IP6_INC_STATS (net,ip6_dst_idev (skb_dst (skb)),IPSTATS_MIB_FRAGFAILS );kfree_skb (skb);return -EMSGSIZE ;
Signature · 1 line
1.7.9.5
From: Steffen Klassert <[email protected]>
Date: Tue, 5 Feb 2013 12:48:05 +0100
Quoted 7 lines
Calling
icmpv6_send()on a local message size error leads to an incorrect update of the path mtu in the case when IPsec is used. So useipv6_local_error()instead to notify the socket about the error.Reported-by Jiri Bohac <[email protected]>Signed-off-by Steffen Klassert <[email protected]>
Applied, thanks a lot.