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>
This commit is contained in:
committed by
Linus Torvalds
parent
a9fabc3df4
commit
195b8cf068
+1
-1
@@ -125,7 +125,7 @@ void __init proc_root_init(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
proc_init_inodecache();
|
||||
proc_init_kmemcache();
|
||||
set_proc_pid_nlink();
|
||||
err = register_filesystem(&proc_fs_type);
|
||||
if (err)
|
||||
|
||||
Reference in New Issue
Block a user