habanalabs: block scalar load_and_exe on external queue
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 27 May 2020 09:38:16 +0000 (12:38 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 24 Jun 2020 06:09:10 +0000 (09:09 +0300)
commit64536abc62c17ef6c7b0f17b820de9923b80e745
tree4b3ff0e4c4773292b6bf08134d03c125fd303be2
parent8c289ea064165237891a7b4be77b74d5cba8fa99
habanalabs: block scalar load_and_exe on external queue

In Gaudi, the user can't execute scalar load_and_exe on external queue
because it can be a security hole. The driver doesn't parse the commands
being loaded and it can be msg_prot, which the user isn't allowed to use.

Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/include/gaudi/gaudi_packets.h