aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorTho Vu <[email protected]>2019-08-16 17:17:02 +0200
committerDavid S. Miller <[email protected]>2019-08-18 14:19:14 -0700
commitcfef46d692efd852a0da6803f920cc756eea2855 (patch)
treef3ad1784d32745cfc43bba49b78b46b88f6a674d /tools/perf/util/trace-event-scripting.c
parent5cbe9102ae2398c0f410fd4f832d9f038e751a29 (diff)
ravb: Fix use-after-free ravb_tstamp_skb
When a Tx timestamp is requested, a pointer to the skb is stored in the ravb_tstamp_skb struct. This was done without an skb_get. There exists the possibility that the skb could be freed by ravb_tx_free (when ravb_tx_free is called from ravb_start_xmit) before the timestamp was processed, leading to a use-after-free bug. Use skb_get when filling a ravb_tstamp_skb struct, and add appropriate frees/consumes when a ravb_tstamp_skb struct is freed. Fixes: c156633f1353 ("Renesas Ethernet AVB driver proper") Signed-off-by: Tho Vu <[email protected]> Signed-off-by: Kazuya Mizuguchi <[email protected]> Signed-off-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions