[PATCH v4] xfs: check for possible overflow in xfs_ioc_trim
Ben Myers
bpm at sgi.com
Wed Aug 15 09:02:00 CDT 2012
On Wed, Aug 15, 2012 at 08:23:32AM -0400, Tomas Racek wrote:
> Forwarding to maintainers.
Thanks Tomas. We'll get this sorted.
Regards,
Ben
>
> ----- 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 at redhat.com>
> >
> > looks ok to me.
> >
> > Reviewed-by: Dave Chinner <dchinner at redhat.com>
> > --
> > Dave Chinner
> > david at fromorbit.com
> >
More information about the xfs
mailing list