From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q7FCNcBt131860 for ; Wed, 15 Aug 2012 07:23:39 -0500 Date: Wed, 15 Aug 2012 08:23:32 -0400 (EDT) From: Tomas Racek Message-ID: <1805964222.1573527.1345033412870.JavaMail.root@redhat.com> In-Reply-To: <20120814213629.GL2877@dastard> Subject: Re: [PATCH v4] xfs: check for possible overflow in xfs_ioc_trim MIME-Version: 1.0 List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: lczerner@redhat.com, Ben Myers , Alex Elder , xfs@oss.sgi.com 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 > > looks ok to me. > > Reviewed-by: Dave Chinner > -- > Dave Chinner > david@fromorbit.com > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs