Fix some potential integer overflows caused by converting a page number into
authorkettenis <kettenis@openbsd.org>
Thu, 8 May 2014 20:08:50 +0000 (20:08 +0000)
committerkettenis <kettenis@openbsd.org>
Thu, 8 May 2014 20:08:50 +0000 (20:08 +0000)
commit36d5d901ac42f22136ea70180a000225456127ed
treeb25ab055c162a7f3a66231b8d9ad9fa7ea0ad8cb
parentf0ae19c9055830dc186e75d7eab2ff7ae141d785
Fix some potential integer overflows caused by converting a page number into
an offset/size/address by shifting by PAGE_SHIFT.  Make uvm_objwrire/unwire
use voff_t instead of off_t.  The former is the right type here even if it is
equivalent to the latter.

Inspired by a somewhat similar changes in Bitrig.

ok deraadt@, guenther@
sys/uvm/uvm_aobj.c
sys/uvm/uvm_fault.c
sys/uvm/uvm_object.c
sys/uvm/uvm_object.h
sys/uvm/uvm_pager.c
sys/uvm/uvm_swap.c
sys/uvm/uvm_vnode.c