From owner-cvs-all Tue Sep 12 10:10:43 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2889D37B424; Tue, 12 Sep 2000 10:10:40 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA16936; Tue, 12 Sep 2000 10:10:40 -0700 (PDT) (envelope-from bde@FreeBSD.org) Message-Id: <200009121710.KAA16936@freefall.freebsd.org> From: Bruce Evans Date: Tue, 12 Sep 2000 10:10:40 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/gnu/ext2fs ext2_lookup.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG bde 2000/09/12 10:10:40 PDT Modified files: sys/gnu/ext2fs ext2_lookup.c Log: Fixed some serious bugs in ext2_readdir(): The cookie buffer was usually overrun by a large amount whenever cookies were used. Cookies are used by nfs and the Linuxulator, so this bug usually caused panics whenever an ext2fs filesystem was nfs mounted or a Linux utility that calls readdir() was run on an ext2fs filesystem. The directory buffer was sometimes overrun by a small amount. This sometimes caused panics and wrong results even for FreeBSD utilities, but it was usually harmless because FreeBSD utilities use a large enough buffer size (4K). Linux utilities usually triggered the bug since they use a too-small buffer size (512 bytes), at least with the old RedHat utilities that I tested with. PR: 19407 (this fix is incomplete or for a slightly different bug) Revision Changes Path 1.25 +24 -13 src/sys/gnu/ext2fs/ext2_lookup.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message