Fix the range checking for all read and write system calls. Fix the
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 26 Apr 2006 17:42:55 +0000 (17:42 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 26 Apr 2006 17:42:55 +0000 (17:42 +0000)
commitef5c76d7ec201363fa96673a01841b70853054ce
treeb270102f0b0bbb6a5ff66723cb3da49f1b2584f4
parent7f83ed38fa0657d32c9fa4a25344c35edc778aee
Fix the range checking for all read and write system calls.  Fix the
iovec code to properly range-check iovec elements and to ensure that
the total length does not overflow a signed integer.  Regardless of
'size_t', the kernel does not allow any single I/O operation to exceed
2^31 bytes.
sys/emulation/43bsd/43bsd_socket.c
sys/emulation/linux/linux_file.c
sys/emulation/linux/linux_socket.c
sys/kern/kern_subr.c
sys/kern/sys_generic.c
sys/kern/uipc_syscalls.c
sys/sys/uio.h