summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_syscalls.c
AgeCommit message (Expand)Author
2021-03-10The ktrace record for recvmsg/recvfrom could contain extract bits inTheo de Raadt
2020-09-29Move the solock() call outside of solisten(). The reason is that theClaudio Jeker
2020-06-10Move closef() outside fdplock() in sys_socketpair(). This preventsVisa Hankala
2020-05-28File allocation in socket(2) & socketpair(2) no longer need the KERNEL_LOCK().Martin Pieuchot
2020-01-15Keep socket timeout intervals in nsecs and use them with tsleep_nsec(9).Martin Pieuchot
2020-01-05Constify instances of struct fileops.Visa Hankala
2019-07-16Fix uipc white spaces.Alexander Bluhm
2019-03-04Yet another (unsigned) cast who's only purpose is to incorrectly truncateTheo de Raadt
2018-11-19delete the dns jackport experiment. it has no future.Ted Unangst
2018-10-25Fix a resource leak in doaccept().Visa Hankala
2018-07-30Use FNONBLOCK instead of SS_NBIO to check/indicate that the I/O modeMartin Pieuchot
2018-06-20Unlock sendmsg(2) and sendto(2).Martin Pieuchot
2018-06-18Put file descriptors on shared data structures when they are completelyMartin Pieuchot
2018-06-06Pass the socket to sounlock(), this prepare the terrain for per-socketMartin Pieuchot
2018-06-05Revert introduction of fdinsert(), a sanitify check triggers whenMartin Pieuchot
2018-06-02Put file descriptors on shared data structures when they are completelyMartin Pieuchot
2018-05-28Grab the KERNEL_LOCK() after socreate() and soconnect2() in socket(2)Martin Pieuchot
2018-05-22Prevent NET_LOCK() recursion when releasing the last `fp' reference.Martin Pieuchot
2018-05-08Protect per-file counters and document which lock is used to protectMartin Pieuchot
2018-04-27Move FREF() inside fd_getfile().Martin Pieuchot
2018-03-28Call FREF() right after fd_getfile() in getsock().Martin Pieuchot
2018-02-21Call socreate() before falloc() in sys_socket().Martin Pieuchot
2018-02-19Grab solock() inside soconnect2() instead of asserting for it to be held.Martin Pieuchot
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2018-02-11Revert rev 1.163. Causes network issues in Firefox.Matthieu Herrb
2018-02-09Call socreate() before falloc() in sys_socket().Martin Pieuchot
2018-01-09Change `so_state' and `so_error' to unsigned int such that they canMartin Pieuchot
2018-01-02Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.Philip Guenther
2017-09-01Change sosetopt() to no longer free the mbuf it receives and changeMartin Pieuchot
2017-08-22Make sogetopt(9) caller responsible for allocating an MT_SOOPTS mbuf.Martin Pieuchot
2017-08-10Move the solock()/sounlock() dance outside of sobind().Martin Pieuchot
2017-08-09Move the socket lock "above" sosetopt(), sogetopt() and sosplice().Martin Pieuchot
2017-07-24Extend the scope of the socket lock to protect `so_state' in connect(2).Martin Pieuchot
2017-07-20When receiving a struct sockaddr from userland, enforce that memoryAlexander Bluhm
2017-07-19Move KTRPOINT call up. The lenght variable i is getting aligned and soClaudio Jeker
2017-07-12Do not call fo_ioctl() in syscall that do, or will, take the socketMartin Pieuchot
2017-07-03Do not grab the socket lock in doaccept() twice. Pass NOTE_SUBMITAlexander Bluhm
2017-03-27Reorder FREF() and FRELE() in a way that the the global variableAlexander Bluhm
2017-02-14Wrap the NET_LOCK() into a per-socket solock() that does nothing forMartin Pieuchot
2017-02-11Add a flags argument to falloc() that lets it optionally set thePhilip Guenther
2017-01-26Allocate the mbuf before the netlock. While here, move the setting ofDavid Hill
2017-01-25Allocate and connect sockets first, then upon success create fileTheo de Raadt
2017-01-25Enable the NET_LOCK(), take 2.Martin Pieuchot
2017-01-24In accept(2) and accept4(2) allocate a new file descriptor beforeMartin Pieuchot
2016-12-29Change NET_LOCK()/NET_UNLOCK() to be simple wrappers aroundMartin Pieuchot
2016-12-19Introduce the NET_LOCK() a rwlock used to serialize accesses to the partsMartin Pieuchot
2016-11-29m_free() and m_freem() test for NULL. Simplify callers which had their ownJonathan Gray
2016-11-28Remove NULL checks before m_free{m,}().Martin Pieuchot
2016-11-21Enforce that pr_usrreq functions are called at IPL_SOFTNET.Martin Pieuchot
2016-11-09Do not call splsoftnet() recursively, this won't work with a lock.Martin Pieuchot