OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Kenneth R Westerback (krwcvs.openbsd.org)
Date: Sat Jun 14 2008 - 19:36:41 CDT


CVSROOT: /cvs
Module name: src
Changes by: krwcvs.openbsd.org 2008/06/14 18:36:41

Modified files:
        sys/arch/sparc/dev: presto.c
        sys/dev : ccd.c flash.c ramdisk.c
        sys/dev/ata : wd.c
        sys/dev/isa : mcd.c
        sys/dev/raidframe: rf_openbsdkintf.c
        sys/scsi : cd.c sd.c

Log message:
Don't bypass partition bounds check for RAW_PART. We now guarantee that
RAW_PART will always be 0 -> disksize, so the bounds check will always
pass for i/o's to valid addresses. Now the i/o will be properly truncated
if it goes past the end of the device. This prevents various adverse
impacts of issuing i/o's for data past the end of the device.

Repeatedly requested by todd.

ok weingart deraadt