summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorKamal Mostafa2018-06-29 22:04:21 +0200
committerKees Cook2018-07-03 02:21:26 +0200
commit6aa56f44253a6dd802e45d8ab1b48847feaf063a (patch)
tree69d47435c4c3befe430f44c52922a644474695ef /security
parentLinux 4.18-rc2 (diff)
downloadkernel-qcow2-linux-6aa56f44253a6dd802e45d8ab1b48847feaf063a.tar.gz
kernel-qcow2-linux-6aa56f44253a6dd802e45d8ab1b48847feaf063a.tar.xz
kernel-qcow2-linux-6aa56f44253a6dd802e45d8ab1b48847feaf063a.zip
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>
Diffstat (limited to 'security')
-rw-r--r--security/Kconfig1
1 files changed, 0 insertions, 1 deletions
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