mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	net: provide default_advmss() methods to blackhole dst_ops
Commit 0dbaee3b37 (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: George Spelvin <linux@horizon.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
			
			
This commit is contained in:
		
							parent
							
								
									ed199facd0
								
							
						
					
					
						commit
						214f45c91b
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue