diff options
author | Tomas Racek <tracek@redhat.com> | 2012-08-14 10:35:04 +0200 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-08-23 21:48:44 +0200 |
commit | a672e1be30d5bc848cd0067c55ed29b2015b7c17 (patch) | |
tree | cabdd7348997ae1d7a478a5c699eb0a954a1ed7d /fs/xfs/xfs_super.c | |
parent | xfs: unlock the AGI buffer when looping in xfs_dialloc (diff) | |
download | linux-a672e1be30d5bc848cd0067c55ed29b2015b7c17.tar.xz linux-a672e1be30d5bc848cd0067c55ed29b2015b7c17.zip |
xfs: check for possible overflow in xfs_ioc_trim
If range.start or range.minlen is bigger than filesystem size, return
invalid value error. This fixes possible overflow in BTOBB macro when
passed value was nearly ULLONG_MAX.
Signed-off-by: Tomas Racek <tracek@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_super.c')
0 files changed, 0 insertions, 0 deletions