Re: [SCTP]: Always linearise packet on input
From: David Miller <davem@davemloft.net>
Date: 2006-10-30 07:46:13
From: David Miller <davem@davemloft.net>
Date: 2006-10-30 07:46:13
From: Herbert Xu <herbert@gondor.apana.org.au> Date: Mon, 30 Oct 2006 18:11:28 +1100
[SCTP]: Always linearise packet on input
...
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
I'll apply this, thanks a lot.
Sridhar, could you please organise an audit of SCTP to make sure that it deals with skb fragments (both pages and frag_list) in a safe manner? Basically before you do an skb_pull or access skb->data you must ensure that the data you want to access is in the head, usually by doing skb_may_pull. Of course, for large payloads it helps if you can avoid pulling it into the head.
Of course, you mean "pskb_may_pull" here. :-)