Date: Tue, 6 Jul 2004 23:40:40 +0000 (UTC) From: Peter Edwards <peadar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_bio.c Message-ID: <200407062340.i66NeeLd042771@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
peadar 2004-07-06 23:40:40 UTC
FreeBSD src repository
Modified files:
sys/kern vfs_bio.c
Log:
Fix bug introduced in rev 1.434:
When avoiding the zeroing of "bogus_page" when it appears in a buf,
be sure to advance the pointers into the data for successive pages.
The bug caused file corruption when read(2)ing from a "hole" in a
file where a previous page of the read block had already been faulted
in: fsx tripped up on this pretty quickly. The particular access
pattern is probably pretty unusual, so other applications probably
wouldn't have had problems, but you'd never know.
Reviewed By: alc@
Revision Changes Path
1.441 +3 -3 src/sys/kern/vfs_bio.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407062340.i66NeeLd042771>
