Commit 6aa56f44 authored by Kamal Mostafa's avatar Kamal Mostafa Committed by Kees Cook

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: default avatarKamal Mostafa <kamal@canonical.com>
[kees: tweak commit log]
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 7daf201d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment