]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: prevent possible out-of-bounds array access
authorOded Gabbay <oded.gabbay@gmail.com>
Sun, 12 Jul 2020 20:34:57 +0000 (23:34 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Sun, 19 Jul 2020 05:15:36 +0000 (08:15 +0300)
commit48a98f68bd2f815e60c2c4c290c061b6dc64d350
treeeabadfa2f4bb3c8eefe64c11e803ad5fd7d4c015
parent8b8cdd5be21be6dc46161bf1988c15347e034a45
habanalabs: prevent possible out-of-bounds array access

Queue index is received from the user. Therefore, we must validate it
before using it to access the queue props array.

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