kernel_optimize_test/fs/xfs/linux-2.6
Zhitong Wang fda168c245 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>
2010-05-19 09:58:07 -05:00
..
kmem.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
kmem.h xfs: replace KM_LARGE with explicit vmalloc use 2010-01-21 13:44:56 -06:00
mrlock.h
sv.h
time.h
xfs_acl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
xfs_aops.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
xfs_aops.h xfs: event tracing support 2009-12-14 23:08:16 -06:00
xfs_buf.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
xfs_buf.h xfs: kill xfs_bawrite 2010-02-04 10:09:14 +11:00
xfs_cred.h
xfs_dmapi_priv.h
xfs_export.c Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs into for-2.6.34-incoming 2010-03-04 12:04:51 -05:00
xfs_export.h
xfs_file.c xfs: fix inode pincount check in fsync 2010-03-01 16:35:10 -06:00
xfs_fs_subr.c xfs: remove duplicate buffer flags 2010-01-21 13:44:36 -06:00
xfs_fs_subr.h
xfs_globals.c
xfs_globals.h
xfs_ioctl32.c xfs: Fix integer overflow in fs/xfs/linux-2.6/xfs_ioctl*.c 2010-05-19 09:58:07 -05:00
xfs_ioctl32.h
xfs_ioctl.c xfs: Fix integer overflow in fs/xfs/linux-2.6/xfs_ioctl*.c 2010-05-19 09:58:07 -05:00
xfs_ioctl.h xfs: convert attr to use unsigned names 2010-01-20 10:47:48 +11:00
xfs_iops.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
xfs_iops.h
xfs_linux.h xfs: kill xfs_lrw.h 2010-03-01 16:35:44 -06:00
xfs_quotaops.c quota: drop permission checks from xfs_fs_set_xstate/xfs_fs_set_xquota 2010-03-05 00:20:25 +01:00
xfs_stats.c xfs: switch to seq_file 2009-09-15 12:29:24 -05:00
xfs_stats.h
xfs_super.c xfs: add a shrinker to background inode reclaim 2010-04-29 16:22:13 -05:00
xfs_super.h xfs: event tracing support 2009-12-14 23:08:16 -06:00
xfs_sync.c xfs: add a shrinker to background inode reclaim 2010-04-29 16:22:13 -05:00
xfs_sync.h xfs: add a shrinker to background inode reclaim 2010-04-29 16:22:13 -05:00
xfs_sysctl.c sysctl: Drop & in front of every proc_handler. 2009-11-18 08:37:40 -08:00
xfs_sysctl.h
xfs_trace.c xfs: fix xfs_fsblock_t tracing 2010-03-01 16:35:17 -06:00
xfs_trace.h xfs: fix xfs_fsblock_t tracing 2010-03-01 16:35:17 -06:00
xfs_version.h
xfs_vnode.h xfs: event tracing support 2009-12-14 23:08:16 -06:00
xfs_xattr.c xfs: convert attr to use unsigned names 2010-01-20 10:47:48 +11:00