mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
proc: account "struct pde_opener"
The allocation is persistent in fact as any fool can open a file in /proc and sit on it. Link: http://lkml.kernel.org/r/20180214082409.GC17157@avx2 Signed-off-by: Alexey Dobriyan <[email protected]> Cc: Al Viro <[email protected]> Cc: Kees Cook <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
195b8cf068
commit
2acddbe816
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ void __init proc_init_kmemcache(void)
|
|||
init_once);
|
||||
pde_opener_cache =
|
||||
kmem_cache_create("pde_opener", sizeof(struct pde_opener), 0,
|
||||
SLAB_PANIC, NULL);
|
||||
SLAB_ACCOUNT|SLAB_PANIC, NULL);
|
||||
}
|
||||
|
||||
static int proc_show_options(struct seq_file *seq, struct dentry *root)
|
||||
|
|
|
|||
Loading…
Reference in a new issue