summaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_sync.c
diff options
context:
space:
mode:
authorZhitong Wang2010-03-22 23:51:22 +0100
committerAlex Elder2010-05-19 16:58:07 +0200
commitfda168c24586ab8e01b0eb68028d78fe3e4fb71a (patch)
tree015ac765550296cac1bc9b3eee833d99630a83fa /fs/xfs/linux-2.6/xfs_sync.c
parentLinus 2.6.34 (diff)
downloadkernel-qcow2-linux-fda168c24586ab8e01b0eb68028d78fe3e4fb71a.tar.gz
kernel-qcow2-linux-fda168c24586ab8e01b0eb68028d78fe3e4fb71a.tar.xz
kernel-qcow2-linux-fda168c24586ab8e01b0eb68028d78fe3e4fb71a.zip
xfs: Fix integer overflow in fs/xfs/linux-2.6/xfs_ioctl*.c
The am_hreq.opcount field in the xfs_attrmulti_by_handle() interface is not bounded correctly. The opcount is used to determine the size of the buffer required. The size is bounded, but can overflow and so the size checks may not be sufficient to catch invalid opcounts. Fix it by catching opcount values that would cause overflows before calculating the size. Signed-off-by: Zhitong Wang <zhitong.wangzt@alibaba-inc.com> Reviewed-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_sync.c')
0 files changed, 0 insertions, 0 deletions