commit | 9b50f539fff10a8283ac9c80e4ec344870b575b5 | [log] [tgz] |
---|---|---|
author | Omer Shpigelman <oshpigelman@habana.ai> | Tue Aug 06 07:37:59 2019 +0000 |
committer | Oded Gabbay <oded.gabbay@gmail.com> | Thu Sep 05 14:55:27 2019 +0300 |
tree | 83bf37f8e3569bbb6b156e995125ded72e1b0fb7 | |
parent | 8d1759329d042ecad31754c5f37b3ca5cbf106f5 [diff] |
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>