https://github.com/torvalds/linux
Revision f8de483e7440b0d23ce6372b3ef8358841c8827b authored by David Howells on 01 December 2017, 11:40:43 UTC, committed by David Howells on 01 December 2017, 11:51:24 UTC
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>
1 parent 1bcab12
Raw File
Tip revision: f8de483e7440b0d23ce6372b3ef8358841c8827b authored by David Howells on 01 December 2017, 11:40:43 UTC
afs: Properly reset afs_vnode (inode) fields
Tip revision: f8de483
Kconfig
# SPDX-License-Identifier: GPL-2.0
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#
mainmenu "Linux/$ARCH $KERNELVERSION Kernel Configuration"

config SRCARCH
	string
	option env="SRCARCH"

source "arch/$SRCARCH/Kconfig"
back to top