Re: [PATCH 2/2] habanalabs: improve security in Debug IOCTL

2019-08-06 Thread Oded Gabbay
On Tue, Aug 6, 2019 at 10:38 AM Omer Shpigelman wrote: > > 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

[PATCH 2/2] habanalabs: improve security in Debug IOCTL

2019-08-06 Thread Omer Shpigelman
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