| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | Re: [PATCH 1/2] metadump: bounds check btree block regions being zeroed |
| From: | Arkadiusz MiÅkiewicz <arekm@xxxxxxxx> |
| Date: | Tue, 15 Dec 2015 12:15:27 +0100 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=maven.pl; s=maven; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; bh=MCrNUq6PyHsmfxcRvDhQZDqwAbPjAMdyElRN4gLfaeE=; b=oVOWqXXxLYszZZebB4U5eSB6GrTw4ZiXqE6qHtJazFbdctsuvySaoRgdsw5JGtRbbb rmWejD89Xjjk2UwVupMRtxjVGCfhvdXc9YTEeGJ2he+LiUlt1rUZRdPX4ow2+tIvgour UMk3XtO2POqW62L1kQSmevGigGIBbboTf6jD0= |
| In-reply-to: | <1450054866-32720-2-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1450054866-32720-1-git-send-email-david@xxxxxxxxxxxxx> <1450054866-32720-2-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | KMail/1.13.7 (Linux/4.3.2; KDE/4.14.13; x86_64; ; ) |
On Monday 14 of December 2015, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > Arkadiusz Miskiewicz reported that metadump was crashing on one of > his corrupted filesystems, and the trace indicated that it was > zeroing unused regions in inode btree blocks when it failed. The > btree block had a corrupt nrecs field, which was resulting in an out > of bounds memset() occurring. > > Ensure that the region being generated for zeroing is within bounds > before executing the zeroing. While there, abstract the repeated > boiler plate code so that it is simpler to maintain and extend the > zeroing code to new types of btrees in future. > > Reported-by: Arkadiusz Miskiewicz <arekm@xxxxxxxx> ... and Tested-by: Arkadiusz Miskiewicz <arekm@xxxxxxxx> By that I mean that it did dump my broken fs without segfaulting (using -g option only). -- Arkadiusz MiÅkiewicz, arekm / ( maven.pl | pld-linux.org ) |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH v16 00/22] Richacls (Core and Ext4), Andreas Gruenbacher |
|---|---|
| Next by Date: | Fixing XFS RAID - does XFS ever issue non-aligned discards?, MichaÅ Pecio |
| Previous by Thread: | Re: [PATCH 1/2] metadump: bounds check btree block regions being zeroed, Eric Sandeen |
| Next by Thread: | [PATCH 2/2] xfs_mdrestore: correctly account bytes read, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |