aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/root.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2018-04-10 19:31:09 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-11 13:28:33 -0400
commit195b8cf0689554db764f459730c81f741887aa5f (patch)
treed7e0c603e5e87653a114c5be07ce8f21bb8bd0d9 /fs/proc/root.c
parenta9fabc3df4c68e05f023c6a5189f0104e200beca (diff)
proc: move "struct pde_opener" to kmem cache
"struct pde_opener" is fixed size and we can have more granular approach to debugging. For those who don't know, per cache SLUB poisoning and red zoning don't work if there is at least one object allocated which is hopeless in case of kmalloc-64 but not in case of standalone cache. Although systemd opens 2 files from the get go, so it is hopeless after all. Link: http://lkml.kernel.org/r/20180214082306.GB17157@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Al Viro <viro@ZenIV.linux.org.uk> Cc: Kees Cook <keescook@chromium.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r--fs/proc/root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c
index 4a19e02c7ed0..98797b762a71 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
@@ -125,7 +125,7 @@ void __init proc_root_init(void)
125{ 125{
126 int err; 126 int err;
127 127
128 proc_init_inodecache(); 128 proc_init_kmemcache();
129 set_proc_pid_nlink(); 129 set_proc_pid_nlink();
130 err = register_filesystem(&proc_fs_type); 130 err = register_filesystem(&proc_fs_type);
131 if (err) 131 if (err)