Skip to contentSkip to conversation

tcp md5 fraglist...

PATCH Applied David Miller 2 participants 5 messages May 18, 2010 – May 31, 2010

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

Eric, would you please formally submit that tcp md5 fraglist fix to net/ipv4/tcp.c with proper signoffs?

Thanks!

#1 lore raw
Quoted 4 lines · David Miller

Eric, would you please formally submit that tcp md5 fraglist fix to net/ipv4/tcp.c with proper signoffs?

Thanks!

Sure, will do, but I doubt it is a real problem, because GRO or RSC should not coalesce two segments with MD5 signature (they are guaranteed to differ for each segment ?)

author maintainer
#2 lore raw

From: Eric Dumazet <[email protected]>
Date: Tue, 18 May 2010 08:30:24 +0200

Quoted 9 lines · David Miller
Quoted 4 lines

Eric, would you please formally submit that tcp md5 fraglist fix to net/ipv4/tcp.c with proper signoffs?

Thanks!

Sure, will do, but I doubt it is a real problem, because GRO or RSC should not coalesce two segments with MD5 signature (they are guaranteed to differ for each segment ?)

Right, and I just checked that GRO does in fact check if the TCP options are different in any way.

#3 lore raw

PATCH 1/1 tcp: tcp_md5_hash_skb_data() frag_list handling

In reply to David Miller
Quoted 2 lines · David Miller

Eric, would you please formally submit that tcp md5 fraglist fix to net/ipv4/tcp.c with proper signoffs?

Here it is, thanks !

[PATCH] tcp: tcp_md5_hash_skb_data() frag_list handling

tcp_md5_hash_skb_data() should handle skb->frag_list, and eventually recurse.

---
 net/ipv4/tcp.c |    5 +++++
 1 file changed, 5 insertions(+)
net/ipv4/tcp.c +5 -0
index 6596b4f..49d0d2b 100644
@@ -2999,6 +2999,7 @@ int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *hp,
 	const unsigned head_data_len = skb_headlen(skb) > header_len ?
 				       skb_headlen(skb) - header_len : 0;
 	const struct skb_shared_info *shi = skb_shinfo(skb);
+	struct sk_buff *frag_iter;
 
 	sg_init_table(&sg, 1);
 
@@ -3013,6 +3014,10 @@ int tcp_md5_hash_skb_data(struct tcp_md5sig_pool *hp,
 			return 1;
 	}
 
+	skb_walk_frags(skb, frag_iter)
+		if (tcp_md5_hash_skb_data(hp, frag_iter, 0))
+			return 1;
+
 	return 0;
 }
 
author maintainer Applied
#4 lore raw

Re: [PATCH] tcp: tcp_md5_hash_skb_data() frag_list handling

From: Eric Dumazet <[email protected]>
Date: Tue, 18 May 2010 08:40:51 +0200

Quoted 7 lines · David Miller
Quoted 2 lines

Eric, would you please formally submit that tcp md5 fraglist fix to net/ipv4/tcp.c with proper signoffs?

Here it is, thanks !

Quoted 6 lines

[PATCH] tcp: tcp_md5_hash_skb_data() frag_list handling

tcp_md5_hash_skb_data() should handle skb->frag_list, and eventually recurse.

Applied.