From owner-cvs-sys Thu Apr 17 19:37:14 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA26210 for cvs-sys-outgoing; Thu, 17 Apr 1997 19:37:14 -0700 (PDT) Received: (from davidg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA26203; Thu, 17 Apr 1997 19:37:12 -0700 (PDT) Date: Thu, 17 Apr 1997 19:37:12 -0700 (PDT) From: David Greenman Message-Id: <199704180237.TAA26203@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/kern kern_exec.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk davidg 97/04/17 19:37:11 Branch: sys/kern RELENG_2_2 Modified: sys/kern kern_exec.c Log: Fixed two bugs that came into kern_exec just after the 2.2.1 release: 1) I wasn't assuring that the file size was large enough for the data to be contained in a FS block. Calling bread for a block when the data is in a fragment causes BAD things to happen, including file corruption. 2) I was not passing in a residual pointer to vn_rdwr(), and this caused "slow" mode image header reads that were less than the page size to fail with EIO. I now get the residual and properly zero the tail of the image header buffer, too. Revision Changes Path 1.47.2.7 +14 -7 src/sys/kern/kern_exec.c