diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-04-04 01:17:57 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-04-04 01:18:16 +0300 |
commit | be6324c00c4d1e0e665f03ed1fc18863a88da119 (patch) | |
tree | 276214b108e95e5bec99e26e7087c384b8f590d2 /fs/select.c | |
parent | 422e5b53ed83dd71c1eac276c6ec7f7c6e81ce8d (diff) | |
download | linux-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