mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
usercopy: Do not select BUG
There is no need to "select BUG" when CONFIG_HARDENED_USERCOPY is enabled. The kernel thread will always die, regardless of the CONFIG_BUG. Change-Id: I1e297a1c1d5fdf8ad48bed4088537e13066565a7 Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
129663f2b0
commit
b6d5b3f74f
@ -162,7 +162,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user