From owner-cvs-all Fri May 1 20:04:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA20145 for cvs-all-outgoing; Fri, 1 May 1998 20:04:26 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA20132; Fri, 1 May 1998 20:04:23 -0700 (PDT) (envelope-from peter@FreeBSD.org) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA18621; Fri, 1 May 1998 20:02:14 -0700 (PDT) Date: Fri, 1 May 1998 20:02:14 -0700 (PDT) Message-Id: <199805020302.UAA18621@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/vm vm_page.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk peter 1998/05/01 20:02:14 PDT Modified files: sys/vm vm_page.c Log: Seatbelts for vm_page_bits() in case a file offset is passed in rather than the page offset. If a large file offset was passed in, a large negative array index could be generated which could cause page faults etc at worst and file corruption at the least. (Pages are allocated within file space on page alignment boundaries, so a file offset being passed in here is harmless to DTRT. The case where this was happening has already been fixed though, this is in case it happens again). Reviewed by: dyson Revision Changes Path 1.99 +3 -2 src/sys/vm/vm_page.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message