From: Kamal Mostafa Date: Fri, 29 Jun 2018 20:04:21 +0000 (-0700) Subject: usercopy: Do not select BUG with HARDENED_USERCOPY X-Git-Tag: v4.19-rc1~152^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6aa56f44253a6dd802e45d8ab1b48847feaf063a;p=nvme.git 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 --- 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