Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -153,7 +153,6 @@ config HAVE_HARDENED_USERCOPY_ALLOCATOR
config HARDENED_USERCOPY
config HARDENED_USERCOPY
	bool "Harden memory copies between kernel and userspace"
	bool "Harden memory copies between kernel and userspace"
	depends on HAVE_HARDENED_USERCOPY_ALLOCATOR
	depends on HAVE_HARDENED_USERCOPY_ALLOCATOR
	select BUG
	imply STRICT_DEVMEM
	imply STRICT_DEVMEM
	help
	help
	  This option checks for obviously wrong memory regions when
	  This option checks for obviously wrong memory regions when