aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorJann Horn <[email protected]>2019-05-04 13:56:08 +0000
committerOded Gabbay <[email protected]>2019-05-24 19:46:15 +0000
commit8438846cce61e284a22316c13aa4b63772963070 (patch)
tree48086674deda57429a2e19443a6964463f2f3db2 /tools/perf/scripts/python/syscall-counts.py
parentuapi/habanalabs: add opcode for enable/disable device debug mode (diff)
downloadkernel-8438846cce61e284a22316c13aa4b63772963070.tar.gz
kernel-8438846cce61e284a22316c13aa4b63772963070.zip
habanalabs: fix debugfs code
This fixes multiple things in the habanalabs debugfs code, in particular: - mmu_write() was unnecessarily verbose, copying around between multiple buffers - mmu_write() could write a user-specified, unbounded amount of userspace memory into a kernel buffer (out-of-bounds write) - multiple debugfs read handlers ignored the user-supplied count, potentially corrupting out-of-bounds userspace data - hl_device_read() was unnecessarily verbose - hl_device_write() could read uninitialized stack memory - multiple debugfs read handlers copied terminating null characters to userspace Signed-off-by: Jann Horn <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]> Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions