summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2018-07-11 12:00:45 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-24 13:07:09 +0200
commita2186f729d694c7d510d175ec59dd7b6298641d6 (patch)
tree307be73cd158055b40c7b96c2cbbbda943d986c4 /tools/perf/scripts/python/stackcollapse.py
parent9a092576e29f2ed16fd4542372e5fbba441475be (diff)
packet: reset network header if packet shorter than ll reserved space
[ Upstream commit 993675a3100b16a4c80dfd70cbcde8ea7127b31d ] If variable length link layer headers result in a packet shorter than dev->hard_header_len, reset the network header offset. Else skb->mac_len may exceed skb->len after skb_mac_reset_len. packet_sendmsg_spkt already has similar logic. Fixes: b84bbaf7a6c8 ("packet: in packet_snd start writing at link layer allocation") Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions