From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id p37LDThU130758 for ; Thu, 7 Apr 2011 16:13:30 -0500 Subject: Re: [PATCH 8/9] xfs: catch bad block numbers freeing extents. From: Alex Elder In-Reply-To: <1302141445-27457-9-git-send-email-david@fromorbit.com> References: <1302141445-27457-1-git-send-email-david@fromorbit.com> <1302141445-27457-9-git-send-email-david@fromorbit.com> Date: Thu, 07 Apr 2011 16:16:46 -0500 Message-ID: <1302211006.2576.608.camel@doink> Mime-Version: 1.0 Reply-To: aelder@sgi.com 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: xfs@oss.sgi.com On Thu, 2011-04-07 at 11:57 +1000, Dave Chinner wrote: > From: Dave Chinner > > A fuzzed filesystem crashed a kernel when freeing an extent with a > block number beyond the end of the filesystem. Convert all the debug > asserts in xfs_free_extent() to active checks so that we catch bad > extents and return that the filesytsem is corrupted rather than > crashing. > > Signed-off-by: Dave Chinner > Reviewed-by: Christoph Hellwig Looks good. Reviewed-by: Alex Elder _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs