Skip to content

Commit

Permalink
usercopy: Do not select BUG with HARDENED_USERCOPY
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kamalmostafa authored and kees committed Jul 3, 2018
1 parent 7daf201 commit 6aa56f4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion security/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6aa56f4

Please sign in to comment.