Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 214f45c9 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: provide default_advmss() methods to blackhole dst_ops



Commit 0dbaee3b (net: Abstract default ADVMSS behind an
accessor.) introduced a possible crash in tcp_connect_init(), when
dst->default_advmss() is called from dst_metric_advmss()

Reported-by: default avatarGeorge Spelvin <linux@horizon.com>
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ed199fac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2722,6 +2722,7 @@ static struct dst_ops ipv4_dst_blackhole_ops = {
	.destroy		=	ipv4_dst_destroy,
	.check			=	ipv4_blackhole_dst_check,
	.default_mtu		=	ipv4_blackhole_default_mtu,
	.default_advmss		=	ipv4_default_advmss,
	.update_pmtu		=	ipv4_rt_blackhole_update_pmtu,
};

+1 −0
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@ static struct dst_ops ip6_dst_blackhole_ops = {
	.destroy		=	ip6_dst_destroy,
	.check			=	ip6_dst_check,
	.default_mtu		=	ip6_blackhole_default_mtu,
	.default_advmss		=	ip6_default_advmss,
	.update_pmtu		=	ip6_rt_blackhole_update_pmtu,
};