mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mm: SLAB hardened usercopy support
Under CONFIG_HARDENED_USERCOPY, this adds object size checking to the SLAB allocator to catch any copies that may span objects. Based on code from PaX and grsecurity. Signed-off-by: Kees Cook <[email protected]> Tested-by: Valdis Kletnieks <[email protected]>
This commit is contained in:
parent
97433ea4fd
commit
04385fc5e8
2 changed files with 31 additions and 0 deletions
|
|
@ -1758,6 +1758,7 @@ choice
|
|||
|
||||
config SLAB
|
||||
bool "SLAB"
|
||||
select HAVE_HARDENED_USERCOPY_ALLOCATOR
|
||||
help
|
||||
The regular slab allocator that is established and known to work
|
||||
well in all environments. It organizes cache hot objects in
|
||||
|
|
|
|||
Loading…
Reference in a new issue