aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2017-01-23 17:33:53 -0500
committerMoyster <oysterized@gmail.com>2018-05-16 13:23:59 +0200
commit423f49a5638a6e83aa6989244d13b49cc2b98dba (patch)
tree3fbd6f5df01f60c77c4f9a204cf53ca6bdc894ce /include/linux
parent0b71db97a50218f16fd49d39907710cf24fed0d7 (diff)
add slub free list XOR encryption
Based on the grsecurity feature, but with a per-cache random value.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/slub_def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
index b1af36a2a..fd2dfb600 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
@@ -98,6 +98,8 @@ struct kmem_cache {
#endif
#endif
+ unsigned long random;
+
#ifdef CONFIG_NUMA
/*
* Defragmentation by allocating from a remote node.