summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_syscalls.c
AgeCommit message (Expand)Author
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
2016-10-23unbreak by fixing obvious pastosChristian Weisgerber
2016-10-23handle non-INET6 kernels in some wayTheo de Raadt
2016-10-23dns hijacking must be af specific. move it into the port check function,Ted Unangst
2016-10-08Add ktracing of the fds returned by pipe() and socketpair()Philip Guenther
2016-10-07introduce a sysctl to hijack dns sockets. when set to a port number,Ted Unangst
2016-08-09When interrupted, connect() should leave the socket connecting in thePhilip Guenther
2016-05-18Remove unnecessary cast of buflen to u_int in sockargs(). This wasTodd C. Miller
2016-01-08On the recvmsg() side, cmsgs are in mbuf chains, not a contiguous buffer.Philip Guenther
2015-12-05remove stale lint annotationsTed Unangst
2015-11-21remove completely pledge_socket() from listen(2) and accept(2).Sebastien Marie
2015-11-20Neuter the pledge domain checking for listen, getpeername, and getsocknameTheo de Raadt
2015-11-20Exempt accept(2) from the pledge_socket() check part of the "domain"Theo de Raadt
2015-11-19corrects leaks refs to files introduced by my previous commit for pledge_socket.Sebastien Marie
2015-11-18check domain and state of socket against pledge promise.Sebastien Marie
2015-11-08pull initialization up before poosible goto bad, from Mark LatimerTed Unangst
2015-11-01refactor pledge_*_check and pledge_fail functionsSebastien Marie
2015-10-28more accurate pledge_fail() error and code for sys_socketSebastien Marie
2015-10-28The short-lived dnssocket/dnsconnect calls are being required because weTheo de Raadt
2015-10-26dns check needs to be done on the kernel address after copyinTed Unangst
2015-10-25Fold "malloc" into "stdio" and -- recognizing that no program so far hasTheo de Raadt
2015-10-25pledge_sockopt_check is shared between setsockopt/getsockopt. nicmTheo de Raadt