diff options
author | Davide Caratti <[email protected]> | 2017-05-25 19:14:56 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-05-26 14:40:46 -0400 |
commit | 804ec7ebe8ea003999ca8d1bfc499edc6a9e07df (patch) | |
tree | 6c8adcda50565f9a5f6db8bcf11d606af5fbcee6 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 0908cf4dfef35fc6ac12329007052ebe93ff1081 (diff) |
sctp: fix ICMP processing if skb is non-linear
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 <[email protected]>
Acked-by: Marcelo Ricardo Leitner <[email protected]>
Acked-by: Vlad Yasevich <[email protected]>
Reviewed-by: Xin Long <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions