summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/habanalabs.h
diff options
context:
space:
mode:
authorOmer Shpigelman <oshpigelman@habana.ai>2019-08-06 10:37:59 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2019-09-05 14:55:27 +0300
commit9b50f539fff10a8283ac9c80e4ec344870b575b5 (patch)
tree83bf37f8e3569bbb6b156e995125ded72e1b0fb7 /drivers/misc/habanalabs/habanalabs.h
parent8d1759329d042ecad31754c5f37b3ca5cbf106f5 (diff)
downloadlinux-9b50f539fff10a8283ac9c80e4ec344870b575b5.tar.xz
habanalabs: improve security in Debug IOCTL
This patch improves the security in the Debug IOCTL. It adds checks that: - The register index value is in the allowed range for all opcodes. - The event types number is in the allowed range in SPMU enable. - The events number is in the allowed range in SPMU disable. Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/habanalabs.h')
0 files changed, 0 insertions, 0 deletions