Re: [PATCH net v2] sctp: fix ICMP processing if skb is non-linear

2017-05-26 Thread David Miller
From: Davide Caratti Date: Thu, 25 May 2017 19:14:56 +0200 > sometimes ICMP replies to INIT chunks are ignored by the client, even if > the encapsulated SCTP headers match an open socket. This happens when the > ICMP packet is carried by a paged skb: use skb_header_pointer() to read > packet cont

Re: [PATCH net v2] sctp: fix ICMP processing if skb is non-linear

2017-05-26 Thread Xin Long
On Fri, May 26, 2017 at 1:14 AM, Davide Caratti wrote: > sometimes ICMP replies to INIT chunks are ignored by the client, even if > the encapsulated SCTP headers match an open socket. This happens when the > ICMP packet is carried by a paged skb: use skb_header_pointer() to read > packet contents

Re: [PATCH net v2] sctp: fix ICMP processing if skb is non-linear

2017-05-25 Thread Vlad Yasevich
On 05/25/2017 01:14 PM, Davide Caratti wrote: > sometimes ICMP replies to INIT chunks are ignored by the client, even if > the encapsulated SCTP headers match an open socket. This happens when the > ICMP packet is carried by a paged skb: use skb_header_pointer() to read > packet contents beyond the

Re: [PATCH net v2] sctp: fix ICMP processing if skb is non-linear

2017-05-25 Thread Marcelo Ricardo Leitner
On Thu, May 25, 2017 at 07:14:56PM +0200, Davide Caratti wrote: > sometimes ICMP replies to INIT chunks are ignored by the client, even if > the encapsulated SCTP headers match an open socket. This happens when the > ICMP packet is carried by a paged skb: use skb_header_pointer() to read > packet c

[PATCH net v2] sctp: fix ICMP processing if skb is non-linear

2017-05-25 Thread Davide Caratti
sometimes ICMP replies to INIT chunks are ignored by the client, even if the encapsulated SCTP headers match an open socket. This happens when the ICMP packet is carried by a paged skb: use skb_header_pointer() to read packet contents beyond the SCTP header, so that chunk header and initiate tag ar