From owner-cvs-all Fri Dec 20 19: 7:26 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E53937B401; Fri, 20 Dec 2002 19:07:25 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F4F243EDE; Fri, 20 Dec 2002 19:07:25 -0800 (PST) (envelope-from mckusick@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gBL37Pfh049015; Fri, 20 Dec 2002 19:07:25 -0800 (PST) (envelope-from mckusick@repoman.freebsd.org) Received: (from mckusick@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gBL37PZZ049014; Fri, 20 Dec 2002 19:07:25 -0800 (PST) Message-Id: <200212210307.gBL37PZZ049014@repoman.freebsd.org> From: Kirk McKusick Date: Fri, 20 Dec 2002 19:07:25 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/ufs/ffs ffs_snapshot.c X-FreeBSD-CVS-Branch: RELENG_5_0 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mckusick 2002/12/20 19:07:25 PST Modified files: (Branch: RELENG_5_0) sys/ufs/ffs ffs_snapshot.c Log: MFC of revision 1.57 of sys/ufs/ffs/ffs_snapshot.c. This update corrects a sign-post error introduced in revision 1.56. The effect was to put an additional (incorrect) block into the lookup list for each metablock in the snapshot. The extra incorrect block causes background fsck to panic the kernel with "freeing free block". For large filesystems, the large number of extra blocks can overrun the area malloc'ed to hold the lookup list resulting in corruption of the malloc arena. Reported by: Aurelien Nephtali Sponsored by: DARPA & NAI Labs. Approved by: re Revision Changes Path 1.53.2.3 +12 -4 src/sys/ufs/ffs/ffs_snapshot.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message