diff options
author | David Howells <dhowells@redhat.com> | 2017-12-01 14:40:43 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-12-01 14:51:24 +0300 |
commit | f8de483e7440b0d23ce6372b3ef8358841c8827b (patch) | |
tree | 7c1f01841c8171313af72a3f378393f916493032 /lib/fdt_empty_tree.c | |
parent | 1bcab12521d9b23dbaa22ac71184778dcc43e2f6 (diff) | |
download | linux-f8de483e7440b0d23ce6372b3ef8358841c8827b.tar.xz |
afs: Properly reset afs_vnode (inode) fields
When an AFS inode is allocated by afs_alloc_inode(), the allocated
afs_vnode struct isn't necessarily reset from the last time it was used as
an inode because the slab constructor is only invoked once when the memory
is obtained from the page allocator.
This means that information can leak from one inode to the next because
we're not calling kmem_cache_zalloc(). Some of the information isn't
reset, in particular the permit cache pointer.
Bring the clearances up to date.
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Marc Dionne <marc.dionne@auristor.com>
Diffstat (limited to 'lib/fdt_empty_tree.c')
0 files changed, 0 insertions, 0 deletions