summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_file.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.com>2015-08-19 00:34:32 (GMT)
committerDave Chinner <david@fromorbit.com>2015-08-19 00:34:32 (GMT)
commitffeecc5213024ae663377b442eedcfbacf6d0c5d (patch)
treeab9bf3438de660d09936687a1fc3ed449b42f734 /fs/xfs/xfs_file.c
parent2f123bce18943fff819bc10f8868ffb9149fc622 (diff)
downloadlinux-ffeecc5213024ae663377b442eedcfbacf6d0c5d.tar.xz
xfs: Fix xfs_attr_leafblock definition
struct xfs_attr_leafblock contains 'entries' array which is declared with size 1 altough it can in fact contain much more entries. Since this array is followed by further struct members, gcc (at least in version 4.8.3) thinks that the array has the fixed size of 1 element and thus may optimize away all accesses beyond the end of array resulting in non-working code. This problem was only observed with userspace code in xfsprogs, however it's better to be safe in kernel as well and have matching kernel and xfsprogs definitions. cc: <stable@vger.kernel.org> Signed-off-by: Jan Kara <jack@suse.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_file.c')
0 files changed, 0 insertions, 0 deletions