]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
xfs: fix kernel memory exposure problems
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Apr 2017 19:22:39 +0000 (12:22 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Apr 2017 19:22:39 +0000 (12:22 -0700)
commitbf9216f922612d2db7666aae01e65064da2ffb3a
treefdf0a10ee12bbbd95c8312314682352e89dd9dd7
parent3dd09d5a8589c640abb49cfcf92b4ed669eafad1
xfs: fix kernel memory exposure problems

Fix a memory exposure problems in inumbers where we allocate an array of
structures with holes, fail to zero the holes, then blindly copy the
kernel memory contents (junk and all) into userspace.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_itable.c