]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix kernel memory exposure problems
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Apr 2017 22:17:53 +0000 (15:17 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Apr 2017 22:18:15 +0000 (15:18 -0700)
commitb420b6bf337c8b9449d4b0b2510441dfa2f527a1
tree2ae4bba79108dda7cc01fbf1a877e2be3c94ff39
parentc62c257ace494d04620e3c69cc8721e95dc157d4
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