summaryrefslogtreecommitdiff
path: root/fs/nilfs2/btree.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-04-03 22:17:57 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-07 10:07:51 (GMT)
commitde417ea6b0a607e79b765838d397c0eb0bcb62d9 (patch)
treecf07884a3847d90cb5ab5704694fc38339265dd1 /fs/nilfs2/btree.h
parentc2ad2dc3d2648d603e7ab7dff4c6b38122206673 (diff)
downloadlinux-de417ea6b0a607e79b765838d397c0eb0bcb62d9.tar.xz
xfs: fix over-copying of getbmap parameters from userspace
commit be6324c00c4d1e0e665f03ed1fc18863a88da119 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nilfs2/btree.h')
0 files changed, 0 insertions, 0 deletions