From: Mathieu Desnoyers Date: Thu, 18 Jan 2018 19:18:14 +0000 (-0500) Subject: Fix: network instrumentation handling of corrupted TCP headers X-Git-Tag: v2.9.8~5 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=d3419520db1b1c4306979fe4f081ec2885f1e0c0;hp=d3419520db1b1c4306979fe4f081ec2885f1e0c0;p=lttng-modules.git Fix: network instrumentation handling of corrupted TCP headers A malformed packet may contain a valid IPv4/IPv6 header, but an inconsistent TCP header. As a result, the trace contains a fully formed IPv4/IPv6 header, including the "protocol" or "nexthdr" fields indicating TCP, but no following TCP header. This scenario leads to an unreadable CTF trace, because the trace viewer expects a TCP header, but instead gets the next event. Therefore, using the IP header fields as selector for the transport layer variant is not the right approach: introduce our own selector field, which allows to properly deal with this corner-case. Signed-off-by: Mathieu Desnoyers ---