[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170526.144229.378338079766962924.davem@davemloft.net>
Date: Fri, 26 May 2017 14:42:29 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: dcaratti@...hat.com
Cc: netdev@...r.kernel.org, linux-sctp@...r.kernel.org,
lucien.xin@...il.com, marcelo.leitner@...il.com
Subject: Re: [PATCH net v2] sctp: fix ICMP processing if skb is non-linear
From: Davide Caratti <dcaratti@...hat.com>
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 contents beyond the SCTP header, so that chunk header and initiate
> tag are validated correctly.
>
> v2:
> - don't use skb_header_pointer() to read the transport header, since
> icmp_socket_deliver() already puts these 8 bytes in the linear area.
> - change commit message to make specific reference to INIT chunks.
>
> Signed-off-by: Davide Caratti <dcaratti@...hat.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists