usercopy: Do not select BUG with HARDENED_USERCOPY
authorKamal Mostafa <kamal@canonical.com>
Fri, 29 Jun 2018 20:04:21 +0000 (13:04 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 3 Jul 2018 00:21:26 +0000 (17:21 -0700)
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>
security/Kconfig

index c4302067a3ad2f3568c7aa831f1402fbc7d0903c..766777406ca8e6965629589e15f6a5cbf23963a6 100644 (file)
@@ -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