summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_syscalls.c
AgeCommit message (Collapse)Author
2000-01-17oops, another syscall pipe() botch; karls@inet.noTheo de Raadt
1999-12-08bring in KAME IPv6 code, dated 19991208.Jun-ichiro itojun Hagino
replaces NRL IPv6 layer. reuses NRL pcb layer. no IPsec-on-v6 support. see sys/netinet6/{TODO,IMPLEMENTATION} for more details. GENERIC configuration should work fine as before. GENERIC.v6 works fine as well, but you'll need KAME userland tools to play with IPv6 (will be bringed into soon).
1999-07-13introduce fdremove() to mark a file descriptor as unused. fdremove makesNiels Provos
sure that the fd_freefile hints stay in sync, otherwise free file descriptors might not be overlooked by fdalloc(); ok millert@
1999-06-15do not mangle retval, makes return value sane; problem found by millertTheo de Raadt
1999-06-11oopsNiels Provos
1999-06-08copy int sized objects, not register_t sized objects in pipe()Theo de Raadt
1999-06-08better fd leak preventionTheo de Raadt
1999-06-07need seperate sys_pipe() versions, for pipeclose() or soclose() callsTheo de Raadt
1999-06-07replacement pipe() system call; copies data into place inside kernel, soTheo de Raadt
that EFAULT return value is possible
1999-06-07do not leak file descriptors if copyout() failsTheo de Raadt
1999-06-07store NULL in fd_ofilesTheo de Raadt
1999-02-15sendto(2) takes a socklen_t as wellTodd C. Miller
1999-02-15use socklen_tTodd C. Miller
1999-02-14Use IOV_MAX, not the deprecated UIO_MAXIOVTodd C. Miller
1999-02-14Don't do range checking on namelen unless name is non-NULL, otherwiseTodd C. Miller
namelen is uninitialized.
1999-02-14readv/writev with iov_len == 0 is legal (was already ok in uipc_syscalls.c).Todd C. Miller
Make the check more readable by comparing against SSIZE_MAX instead of checking for wraparound. This is safe because SSIZE_MAX * 2 <= SIZE_T_MAX. Fixes recno problems in the db routines exposed by a perl test.
1999-02-11avoid insane lengths for various syscallsTheo de Raadt
1998-09-14allow the recvfrom (fd, NULL, 0, MSG_PEEK, ...) again, pr 584.Niels Provos
1998-08-05return EMSGSIZE, not EINVAL is msg_iovlen <= 0 as per XPG 4.2Todd C. Miller
When comparing against UIO_SMALLIOV/UIO_MAXIOV check for >, not >=
1998-08-05delete bogus casts of msg_iovlen to u_int since msg_iovlen is already a u_intTodd C. Miller
1998-07-28For read, write, send, sendto, recv, recvfrom return EINVAL is size arg > ↵Todd C. Miller
SSIZE_MAX. For readv, writev, sendmsg, recvmsg return EINVAL if sum of the over iov_len values overflows an ssize_t. Based on what XPG 4.2 says (though XPG is not entirely consistent here). Basically since the return value is ssize_t allowing size > SSIZE_MAX is bad since people who (incorrectly mind you) check the return value for < 0 instead of == -1 will have bad things happen to them.
1998-07-28Don't assume uio_resid can go negative when detecting oflowTodd C. Miller
1998-07-28Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned ↵Todd C. Miller
(size_t) and don't return EINVAL if it is < 0 in sys_{read,write}. Remove check for uio_resid < 0 uiomove() now that uio_resid is unsigned and brack remaining panics with #ifdef DIAGNOSTIC. vn_rdwr() must now take a size_t * as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more
1998-02-08Updates to match type changes in syscall tablesThorsten Lockert
1997-12-16evaluate length before doing compat stuff which might overwrite theNiels Provos
length field we are going to evaluate. From FreeBSD, originally submitted by: pb@fasterix.freenix.org (Pierre Beyssac)
1997-06-05delete cannot happen codeTheo de Raadt
1996-08-27New fast pipe(2) from freebsd without fancy vm stuff.shawn
The old pipes can be used with the "OLD_PIPE" config option.
1996-05-18socketpair() is not a hack in libc like pipe()Theo de Raadt
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt