habanalabs: remove access to kernel memory using debugfs
authorOfir Bitton <obitton@habana.ai>
Mon, 28 Dec 2020 16:28:08 +0000 (18:28 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 27 Jan 2021 19:03:49 +0000 (21:03 +0200)
commita1f8533269aa6e96154fddc33b2cb3696cde356e
treec99050aa8ca8a5c1942e2ce7face22ca603011da
parent266cdfa2b7bd2d2ae2fdc895f10254b71276c751
habanalabs: remove access to kernel memory using debugfs

Accessing kernel allocated memory through debugfs should not
be allowed as it introduces a security vulnerability.
We remove the option to read/write kernel memory for all asics.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c
drivers/misc/habanalabs/goya/goya.c