summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_usrreq.c
AgeCommit message (Expand)AuthorFilesLines
2019-07-16Fix uipc white spaces.bluhm1-3/+3
2019-07-15Convert struct unpcb malloc(9) to pool_get(9).bluhm1-4/+13
2019-05-24Prevent a kernel hang if an empty message is sent over an SOCK_SEQPACKETbluhm1-2/+3
2019-02-13Allow SO_PEERCRED to be called on sockets created with socketpair.martijn1-1/+13
2019-02-04Avoid an mbuf double free in the oob soreceive() path. In thebluhm1-6/+6
2018-11-21In unp_internalize() check the length more carefully preventing anclaudio1-1/+3
2018-11-21When using MSG_PEEK to peak into packets skip control messages holdingclaudio1-1/+8
2018-11-09M_LEADINGSPACE() and M_TRAILINGSPACE() are just wrappers forclaudio1-3/+3
2018-07-09Use function name in panic string, like in some other places.claudio1-2/+2
2018-07-02Update the file reference count field `f_count' using atomic operationsvisa1-8/+8
2018-07-01Lock the file descriptor table when accessing the `fd_ofileflags' array.visa1-1/+4
2018-06-23Improve the consistency of variable naming in unp_externalize().visa1-16/+17
2018-06-20Unlock sendmsg(2) and sendto(2).mpi1-2/+8
2018-06-11Do not unlock the KERNEL_LOCK() unconditionally in sounlock().mpi1-6/+4
2018-06-07Make callers of VOP_CREATE(9) and VOP_MKNOD(9) responsible forvisa1-1/+2
2018-06-06Pass the socket to sounlock(), this prepare the terrain for per-socketmpi1-2/+10
2018-04-28Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysvisa1-2/+2
2018-04-27Move FREF() inside fd_getfile().mpi1-2/+1
2018-04-18Call FREF(9) earlier instead of incrementing `f_count' by hand.mpi1-4/+6
2018-01-04Unifdef snd/rcv.mpi1-7/+3
2017-12-19Remove a 27 year old #ifdef notdef chunk involving SB_LOCK.mpi1-17/+1
2017-12-19Inline socket buffer related defines, no functional change.mpi1-11/+8
2017-11-02Move PRU_DETACH out of pr_usrreq into per proto pr_detachflorian1-5/+16
2017-08-11Validate sockaddr from userland in central functions. This resultsbluhm1-24/+42
2017-06-26Assert that the corresponding socket is locked when manipulating socketmpi1-5/+5
2017-03-13Move PRU_ATTACH out of the pr_usrreq functions into pr_attach.claudio1-11/+5
2017-02-14Wrap the NET_LOCK() into a per-socket solock() that does nothing formpi1-25/+6
2017-02-09Temporarily grab the NET_LOCK() around soisdisconnected().mpi1-1/+6
2017-02-09Release the NET_LOCK() before calling unp_detach(), fix a recursionmpi1-2/+5
2017-01-27In sosend() the size of the control message for file descriptorbluhm1-6/+1
2017-01-25Enable the NET_LOCK(), take 2.mpi1-1/+12
2017-01-24Track a per-fd flag UF_PLEDGED. This indicates the initial open was done by aderaadt1-1/+4
2017-01-23File descriptor passing internalizes fd's into an mbuf-stored array ofderaadt1-29/+43
2016-12-29Change NET_LOCK()/NET_UNLOCK() to be simple wrappers aroundmpi1-12/+1
2016-12-29Release the NET_LOCK() before calling unp_connect(). It is not possiblempi1-19/+15
2016-12-22Release the NET_LOCK() before namei(9) as a workaround to let NFS bootmpi1-2/+17
2016-12-22Revert workaround for NFS boot, it triggers the following assert:mpi1-4/+1
2016-12-22Work around a NET_LOCK() recursion seen during NFS netboot:visa1-1/+4
2016-12-19Introduce the NET_LOCK() a rwlock used to serialize accesses to the partsmpi1-1/+4
2016-11-29m_free() and m_freem() test for NULL. Simplify callers which had their ownjsg1-5/+3
2016-08-26The *_HEAD_INITIALIZER() macros are documented as taking the struct,guenther1-3/+3
2016-08-17Fix an mbuf leak and missing error propagation in uipc_usrreq(PRU_SEND)bluhm1-1/+5
2016-07-19instead of messing about with pointer arithmetic, add an empty arraytedu1-4/+4
2016-07-12in the great unp_gc rewrite, a null check was lost. we have spent sometedu1-1/+3
2016-07-12The check for pledge "recvfd" was mistakenly only being performedderaadt1-23/+19
2016-04-25remove systrace remnantstedu1-4/+3
2016-03-19Remove the unused flags argument from VOP_UNLOCK().natano1-2/+2
2015-12-05remove stale lint annotationstedu1-2/+1
2015-11-03AF_UNIX connect is a "unix" operation, not "rpath wpath"deraadt1-2/+2
2015-11-02move the pledgenote annotation from `struct proc' to `struct nameidata'semarie1-3/+3