commit | be6324c00c4d1e0e665f03ed1fc18863a88da119 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Mon Apr 03 15:17:57 2017 -0700 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Mon Apr 03 15:18:16 2017 -0700 |
tree | 276214b108e95e5bec99e26e7087c384b8f590d2 | |
parent | 422e5b53ed83dd71c1eac276c6ec7f7c6e81ce8d [diff] |
xfs: fix over-copying of getbmap parameters from userspace In xfs_ioc_getbmap, we should only copy the fields of struct getbmap from userspace, or else we end up copying random stack contents into the kernel. struct getbmap is a strict subset of getbmapx, so a partial structure copy should work fine. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>