]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
habanalabs: validate FW file size
authorOfir Bitton <obitton@habana.ai>
Tue, 11 Aug 2020 06:19:53 +0000 (09:19 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Sat, 22 Aug 2020 09:47:58 +0000 (12:47 +0300)
commitbce382a8bb080ed5f2f3a06754526dc58b91cca2
treeeb324ef760a64e0e547472509be01272d9bae437
parent804d057cfae25c5447b36099fa59682d0d184ed6
habanalabs: validate FW file size

We must validate FW size in order not to corrupt memory in case
a malicious FW file will be present in system.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/common/firmware_if.c