summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_usrreq.c
AgeCommit message (Expand)Author
2022-07-02Unlock peer in the SOCK_STREAM and SOCK_SEQPACKET error path.Vitaliy Makkoveev
2022-07-01Make fine grained unix(4) domain sockets locking. Use the per-socketVitaliy Makkoveev
2022-06-06Simplify solock() and sounlock(). There is no reason to return a valueClaudio Jeker
2022-04-11Keep `fdp' locked until we finish the second loop of unp_externalize().Vitaliy Makkoveev
2022-02-25Reported-by: syzbot+1b5b209ce506db4d411d@syzkaller.appspotmail.comPhilip Guenther
2022-02-25Move pr_attach and pr_detach to a new structure pr_usrreqs that canPhilip Guenther
2021-12-29Do not allow send/receive of kcov descriptors as the file descriptor canAnton Lindqvist
2021-12-26Rework garbage collector for unix(4) sockets.Vitaliy Makkoveev
2021-12-07Make `unp_msgcount' and `unp_file' protection with `unp_gc_lock'Vitaliy Makkoveev
2021-11-17When unp_connect() releases both solock() and vnode(9) locks the socket weVitaliy Makkoveev
2021-11-16Move UNIX domain sockets garbage collector out of `unp_lock.Vitaliy Makkoveev
2021-11-11Fix GENERIC kernel compilation.Vitaliy Makkoveev
2021-11-11Use vnode(9) lock to protect `v_socket' dereference.Vitaliy Makkoveev
2021-11-06Make `unp_msgcount' and `unp_file' atomic. Introduce `unp_rights_mtx'Vitaliy Makkoveev
2021-10-30Kill the dead code from unp_drop().Vitaliy Makkoveev
2021-10-30Fix the UNIX domain sockets leak in soclose().Vitaliy Makkoveev
2021-10-23sonewconn() returns the pointer to 'socket' struct so check it againstVitaliy Makkoveev
2021-10-21Release solock() before call unp_internalize() and take it within whenVitaliy Makkoveev
2021-10-14Release solock() before call unp_externalize().Vitaliy Makkoveev
2021-05-25As network features are not added dynamically, the domain structuresAlexander Bluhm
2021-05-18Move potential sleeping m_getclr(9) out of `unp_lock' within unp_bind().mvs
2021-05-17Increase the default buffer space using on PF_UNIX sockets to 8k.Claudio Jeker
2021-04-29Remove netlock assertions from UNIX sockets layer.mvs
2021-02-22Move UNIX socket's garbage collector to `systqmp'. It touches nothingmvs
2021-02-10Move UNIX domain sockets out of kernel lock. The new `unp_lock' rwlock(9)mvs
2019-07-16Fix uipc white spaces.Alexander Bluhm
2019-07-15Convert struct unpcb malloc(9) to pool_get(9).Alexander Bluhm
2019-05-24Prevent a kernel hang if an empty message is sent over an SOCK_SEQPACKETAlexander Bluhm
2019-02-13Allow SO_PEERCRED to be called on sockets created with socketpair.Martijn van Duren
2019-02-04Avoid an mbuf double free in the oob soreceive() path. In theAlexander Bluhm
2018-11-21In unp_internalize() check the length more carefully preventing anClaudio Jeker
2018-11-21When using MSG_PEEK to peak into packets skip control messages holdingClaudio Jeker
2018-11-09M_LEADINGSPACE() and M_TRAILINGSPACE() are just wrappers forClaudio Jeker
2018-07-09Use function name in panic string, like in some other places.Claudio Jeker
2018-07-02Update the file reference count field `f_count' using atomic operationsVisa Hankala
2018-07-01Lock the file descriptor table when accessing the `fd_ofileflags' array.Visa Hankala
2018-06-23Improve the consistency of variable naming in unp_externalize().Visa Hankala
2018-06-20Unlock sendmsg(2) and sendto(2).Martin Pieuchot
2018-06-11Do not unlock the KERNEL_LOCK() unconditionally in sounlock().Martin Pieuchot
2018-06-07Make callers of VOP_CREATE(9) and VOP_MKNOD(9) responsible forVisa Hankala
2018-06-06Pass the socket to sounlock(), this prepare the terrain for per-socketMartin Pieuchot
2018-04-28Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysVisa Hankala
2018-04-27Move FREF() inside fd_getfile().Martin Pieuchot
2018-04-18Call FREF(9) earlier instead of incrementing `f_count' by hand.Martin Pieuchot
2018-01-04Unifdef snd/rcv.Martin Pieuchot
2017-12-19Remove a 27 year old #ifdef notdef chunk involving SB_LOCK.Martin Pieuchot
2017-12-19Inline socket buffer related defines, no functional change.Martin Pieuchot
2017-11-02Move PRU_DETACH out of pr_usrreq into per proto pr_detachFlorian Obser
2017-08-11Validate sockaddr from userland in central functions. This resultsAlexander Bluhm
2017-06-26Assert that the corresponding socket is locked when manipulating socketMartin Pieuchot