xfs
[Top] [All Lists]

Re: [PATCH v4] xfs: check for possible overflow in xfs_ioc_trim

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [PATCH v4] xfs: check for possible overflow in xfs_ioc_trim
From: Tomas Racek <tracek@xxxxxxxxxx>
Date: Wed, 15 Aug 2012 08:23:32 -0400 (EDT)
Cc: xfs@xxxxxxxxxxx, lczerner@xxxxxxxxxx, Alex Elder <elder@xxxxxxxxxx>, Ben Myers <bpm@xxxxxxx>
In-reply-to: <20120814213629.GL2877@dastard>
Forwarding to maintainers.

----- Original Message -----
> On Tue, Aug 14, 2012 at 10:35:04AM +0200, Tomas Racek wrote:
> > 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@xxxxxxxxxx>
> 
> looks ok to me.
> 
> Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>
> --
> Dave Chinner
> david@xxxxxxxxxxxxx
> 

<Prev in Thread] Current Thread [Next in Thread>