diff options
author | Omer Shpigelman <[email protected]> | 2019-08-06 07:37:59 +0000 |
---|---|---|
committer | Oded Gabbay <[email protected]> | 2019-09-05 14:55:27 +0300 |
commit | 9b50f539fff10a8283ac9c80e4ec344870b575b5 (patch) | |
tree | 83bf37f8e3569bbb6b156e995125ded72e1b0fb7 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
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 <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions