From 6aa56f44253a6dd802e45d8ab1b48847feaf063a Mon Sep 17 00:00:00 2001 From: Kamal Mostafa Date: Fri, 29 Jun 2018 13:04:21 -0700 Subject: 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 [kees: tweak commit log] Signed-off-by: Kees Cook --- security/Kconfig | 1 - 1 file changed, 1 deletion(-) (limited to 'security') diff --git a/security/Kconfig b/security/Kconfig index c4302067a3ad..766777406ca8 100644 --- a/security/Kconfig +++ b/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 -- cgit v1.2.3-59-g8ed1b