summaryrefslogtreecommitdiff
path: root/fs/ubifs/file.c
diff options
context:
space:
mode:
authorBobi Jam <bobijam.xu@intel.com>2014-04-27 17:07:11 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-27 17:31:01 (GMT)
commitebdc4fc54d5defaa20417eabeb7a8d7b400fd53c (patch)
tree6df4a449597ed90484b3ecf19df3a758936031fc /fs/ubifs/file.c
parenta1e7e2d4deab583593e427b3bf9dd62823d81fbc (diff)
downloadlinux-ebdc4fc54d5defaa20417eabeb7a8d7b400fd53c.tar.xz
staging/lustre/llite: prevent buffer overflow in fiemap
lov_fiemap() does not take consider its @vallen parameter, which is the max buffer size the caller can hold for the fiemap extents. This patch fixes this and limits the max mapped fiemap extent count to fit in the preallocted buffer. This patch also fixes a memory out of bound write issue when the fiemap call is only for detecting the number of existing extent. Signed-off-by: Bobi Jam <bobijam.xu@intel.com> Reviewed-on: http://review.whamcloud.com/9834 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4619 Reviewed-by: Fan Yong <fan.yong@intel.com> Reviewed-by: Patrick Farrell <paf@cray.com> Signed-off-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ubifs/file.c')
0 files changed, 0 insertions, 0 deletions