Fix bugs in xio_copy_*(). We were not using the masked offset when
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 3 Apr 2004 08:20:10 +0000 (08:20 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 3 Apr 2004 08:20:10 +0000 (08:20 +0000)
commit82f4c82aee512f90a40aaf432da63f1193f981e8
tree27afaf5be1ea97af7b3da35c5e041902b2de3182
parent479b202a864af9a50612b04f7a8f54211223ef71
Fix bugs in xio_copy_*().  We were not using the masked offset when
calculation the number of bytes to copy from the first indexed page,
leading to a negative 'n' calculation in situations that could be
triggered with a ^C on programs using pipes (such as a buildworld).
This almost universally resulted in a panic.
sys/kern/kern_xio.c