Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 May 1998 20:02:14 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   cvs commit: src/sys/vm vm_page.c
Message-ID:  <199805020302.UAA18621@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805020302.UAA18621>