summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-02-01 11:28:16 +0300
committerDavid S. Miller <davem@davemloft.net>2019-02-01 10:00:22 -0800
commit294c149a209c6196c2de85f512b52ef50f519949 (patch)
treebac41b5c5e67a0fd4cdde48757d9a71d3259f643 /tools/perf/scripts/python/check-perf-trace.py
parent5e66e35aab335b83d9ffb220d8a3a13986a7a60e (diff)
skge: potential memory corruption in skge_get_regs()
The "p" buffer is 0x4000 bytes long. B3_RI_WTO_R1 is 0x190. The value of "regs->len" is in the 1-0x4000 range. The bug here is that "regs->len - B3_RI_WTO_R1" can be a negative value which would lead to memory corruption and an abrupt crash. Fixes: c3f8be961808 ("[PATCH] skge: expand ethtool debug register dump") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions