[linux-kvm-bionic][PATCH 1/2] usercopy: Do not select BUG with HARDENED_USERCOPY
Kamal Mostafa
kamal at canonical.com
Fri Jul 6 15:38:21 UTC 2018
BugLink: https://bugs.launchpad.net/bugs/1766777
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 at canonical.com>
[kees: tweak commit log]
Signed-off-by: Kees Cook <keescook at chromium.org>
(cherry picked from commit 6aa56f44253a6dd802e45d8ab1b48847feaf063a linux-next)
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
security/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/security/Kconfig b/security/Kconfig
index 16803be..8320651 100644
--- a/security/Kconfig
+++ b/security/Kconfig
@@ -195,7 +195,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
--
2.7.4
More information about the kernel-team
mailing list