Bring in FreeBSD/1.206 by Alan Cox, bde@, and tegge@:
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 10 Dec 2004 19:50:32 +0000 (19:50 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 10 Dec 2004 19:50:32 +0000 (19:50 +0000)
commit1a00fc16920abae9bb3a16ca407733b52969657c
tree441e8fe671dd34501483c396c04c1ff69e4beb50
parentfbfaa20828bed655869f49f3bca2720af8438899
Bring in FreeBSD/1.206 by Alan Cox, bde@, and tegge@:

Almost nine years ago, when support for 1TB files was introduced in
revision 1.55, the address parameter to vnode_pager_addr() was changed
from an unsigned 32-bit quantity to a signed 64-bit quantity.  However,
an out-of-range check on the address was not updated.  Consequently,
memory-mapped I/O on files greater than 2GB could cause a kernel panic.
Since the address is now a signed 64-bit quantity, the problem resolution
is simply to remove a cast.

PR: FreeBSD/73010
sys/vm/vnode_pager.c