tcp md5 fraglist...
Subsystems (3)
David Miller
maintainerEric, would you please formally submit that tcp md5 fraglist fix to net/ipv4/tcp.c with proper signoffs?
Thanks!
Quoted 4 lines · David Miller
Eric, would you please formally submit that tcp md5 fraglist fix to
net/ipv4/tcp.cwith 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 ?)
David Miller
maintainerFrom: 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.cwith 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.
PATCH 1/1 tcp: tcp_md5_hash_skb_data() frag_list handling
In reply to David MillerQuoted 2 lines · David Miller
Eric, would you please formally submit that tcp md5 fraglist fix to
net/ipv4/tcp.cwith 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
@@ -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 ; }
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.cwith proper signoffs?Here it is, thanks !
Quoted 6 lines
[PATCH] tcp:
tcp_md5_hash_skb_data()frag_listhandling
tcp_md5_hash_skb_data()should handleskb->frag_list, and eventually recurse.Signed-off-by Eric Dumazet <[email protected]>
Applied.