Explorar o código

usercopy: Do not select BUG with HARDENED_USERCOPY

There is no need to "select BUG" when CONFIG_HARDENED_USERCOPY is enabled.
The kernel thread will always die, regardless of the CONFIG_BUG.

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
[kees: tweak commit log]
Signed-off-by: Kees Cook <keescook@chromium.org>
Kamal Mostafa %!s(int64=7) %!d(string=hai) anos
pai
achega
6aa56f4425
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      security/Kconfig

+ 0 - 1
security/Kconfig

@@ -153,7 +153,6 @@ config HAVE_HARDENED_USERCOPY_ALLOCATOR
 config HARDENED_USERCOPY
 	bool "Harden memory copies between kernel and userspace"
 	depends on HAVE_HARDENED_USERCOPY_ALLOCATOR
-	select BUG
 	imply STRICT_DEVMEM
 	help
 	  This option checks for obviously wrong memory regions when