aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/btmrvl.txt
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2019-05-04 15:56:08 +0200
committerOded Gabbay <oded.gabbay@gmail.com>2019-05-24 22:46:15 +0300
commit8438846cce61e284a22316c13aa4b63772963070 (patch)
tree48086674deda57429a2e19443a6964463f2f3db2 /Documentation/btmrvl.txt
parent2add64ebaea25dfada27b3332b1c982f9fc5ae64 (diff)
downloadlinux-8438846cce61e284a22316c13aa4b63772963070.tar.gz
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 <jannh@google.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'Documentation/btmrvl.txt')
0 files changed, 0 insertions, 0 deletions