sctp: load transport header after sk_filter
authorWillem de Bruijn <willemb@google.com>
Sat, 16 Jul 2016 21:33:15 +0000 (17:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jul 2016 05:46:52 +0000 (22:46 -0700)
commitc74bfbdba0e8d056e4ba579a666b5cdb8ec3cd35
tree7127cebf1625cba37e370ffc6b3f6856a1f85db6
parent0564bf0afae443deeb16f36e2c39fefff89d05f2
sctp: load transport header after sk_filter

Do not cache pointers into the skb linear segment across sk_filter.
The function call can trigger pskb_expand_head.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/input.c