Skip to content

Commit 6aa56f4

Browse files
kamalmostafakees
authored andcommitted
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>
1 parent 7daf201 commit 6aa56f4

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎security/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ config HAVE_HARDENED_USERCOPY_ALLOCATOR
153153
config HARDENED_USERCOPY
154154
bool "Harden memory copies between kernel and userspace"
155155
depends on HAVE_HARDENED_USERCOPY_ALLOCATOR
156-
select BUG
157156
imply STRICT_DEVMEM
158157
help
159158
This option checks for obviously wrong memory regions when

0 commit comments

Comments
 (0)