diff options
| author | Alex Shi <alex.shi@linaro.org> | 2016-08-30 10:27:13 +0800 |
|---|---|---|
| committer | Alex Shi <alex.shi@linaro.org> | 2016-08-30 10:27:13 +0800 |
| commit | b56111f481e16510558a892d5d56cb90cadd96c0 (patch) | |
| tree | bfca590ae8c2e8be7a7c44faba15ae3fd548f925 /security/Kconfig | |
| parent | b8060c794f53e364a967ce483cef8e86f4006a61 (diff) | |
| parent | 59e65b4bbfe7d0139ab1ab59cd27a5db95f5bb7b (diff) | |
Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android
Conflicts:
arch/arm/Kconfig
Diffstat (limited to 'security/Kconfig')
| -rw-r--r-- | security/Kconfig | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/security/Kconfig b/security/Kconfig index 30a2603e8c85..aba6a8d4d1f4 100644 --- a/security/Kconfig +++ b/security/Kconfig @@ -127,6 +127,34 @@ config LSM_MMAP_MIN_ADDR this low address space will need the permission specific to the systems running LSM. +config HAVE_HARDENED_USERCOPY_ALLOCATOR + bool + help + The heap allocator implements __check_heap_object() for + validating memory ranges against heap object sizes in + support of CONFIG_HARDENED_USERCOPY. + +config HAVE_ARCH_HARDENED_USERCOPY + bool + help + The architecture supports CONFIG_HARDENED_USERCOPY by + calling check_object_size() just before performing the + userspace copies in the low level implementation of + copy_to_user() and copy_from_user(). + +config HARDENED_USERCOPY + bool "Harden memory copies between kernel and userspace" + depends on HAVE_ARCH_HARDENED_USERCOPY + select BUG + help + This option checks for obviously wrong memory regions when + copying memory to/from the kernel (via copy_to_user() and + copy_from_user() functions) by rejecting memory ranges that + are larger than the specified heap object, span multiple + separately allocates pages, are not on the process stack, + or are part of the kernel text. This kills entire classes + of heap overflow exploits and similar kernel memory exposures. + source security/selinux/Kconfig source security/smack/Kconfig source security/tomoyo/Kconfig |
