summaryrefslogtreecommitdiff
path: root/fs/select.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-04-04 01:17:57 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2017-04-04 01:18:16 +0300
commitbe6324c00c4d1e0e665f03ed1fc18863a88da119 (patch)
tree276214b108e95e5bec99e26e7087c384b8f590d2 /fs/select.c
parent422e5b53ed83dd71c1eac276c6ec7f7c6e81ce8d (diff)
downloadlinux-be6324c00c4d1e0e665f03ed1fc18863a88da119.tar.xz
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>
Diffstat (limited to 'fs/select.c')
0 files changed, 0 insertions, 0 deletions