Thread (21 messages) flat view 21 messages, 5 authors, 2024-07-25

Re: [PATCH] net: linearizing skb when downgrade gso_size

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2024-07-09 20:17:36
Also in: bpf, lkml

On Tue, Jul 09, 2024 at 11:53:21AM -0400, Willem de Bruijn wrote:
quoted
+		/* Due to header grow, MSS needs to be downgraded.
+		 * There is BUG_ON When segment the frag_list with
+		 * head_frag true so linearize skb after downgrade
+		 * the MSS.
+		 */
This sounds completely wrong.  You should never grow the TCP header
by changing gso_size.  What is the usage-scenario for this?

Think about it, if a router forwards a TCP packet, and ends up
growing its TCP header and then splits the packet into two, then
this router is brain-dead.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help