projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
195b8cf
)
proc: account "struct pde_opener"
author
Alexey Dobriyan
<
[email protected]
>
Tue, 10 Apr 2018 23:31:12 +0000
(16:31 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Apr 2018 17:28:33 +0000
(10:28 -0700)
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]
>
fs/proc/inode.c
patch
|
blob
|
history
diff --git
a/fs/proc/inode.c
b/fs/proc/inode.c
index 5349eb07ac29902f4deba53b15653143e46b02d5..89618836887d855d4e434c0b3acb0be6e7a74b1e 100644
(file)
--- a/
fs/proc/inode.c
+++ b/
fs/proc/inode.c
@@
-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)