Skip to content

Commit

Permalink
proc: account "struct pde_opener"
Browse files Browse the repository at this point in the history
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 <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>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Apr 11, 2018
1 parent 195b8cf commit 2acddbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/proc/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2acddbe

Please sign in to comment.