Skip to content
Commit a672e1be authored by Tomas Racek's avatar Tomas Racek Committed by Ben Myers
Browse files

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: default avatarTomas Racek <tracek@redhat.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent 76129030
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment