summaryrefslogtreecommitdiff
path: root/sys/kern
AgeCommit message (Expand)Author
2017-08-10Move the solock()/sounlock() dance outside of sobind().Martin Pieuchot
2017-08-10Make rw_enter() always succeed after a panic.Martin Pieuchot
2017-08-10The socket field so_proto can never be NULL. Remove the checks.Alexander Bluhm
2017-08-09Move the socket lock "above" sosetopt(), sogetopt() and sosplice().Martin Pieuchot
2017-08-08Kernel sendsyslog(2), libc syslog(3), and syslogd(8) restrict andAlexander Bluhm
2017-08-07Turns out gcc complains about %02hhx. So simply use %02x instead. This isMark Kettenis
2017-08-06Use %hhx instead of %hx to print u_char. Silences clang warning.Mark Kettenis
2017-07-31Give back some space to the ramdisk by compiling net/radix.c onlyFlorian Obser
2017-07-28Add some sanity length checks in VFS directory scan. This protectsAlexander Bluhm
2017-07-28Allow SIOCGIFDESCR with "route" promise in preparation for pledging snmpd.rob
2017-07-27Assert that the KERNEL_LOCK() is held prior to call csignal() andMartin Pieuchot
2017-07-24Extend the scope of the socket lock to protect `so_state' in connect(2).Martin Pieuchot
2017-07-24Grab the socket lock in soo_ioctl() where `so_state', `so_rcv'Martin Pieuchot
2017-07-22Introduce jiffies, a volatile unsigned long version of our ticks variableMark Kettenis
2017-07-20When receiving a struct sockaddr from userland, enforce that memoryAlexander Bluhm
2017-07-20Initialize a local variable to not leak kernel stack info to userlandMartin Pieuchot
2017-07-20If pool_get() sleeps while allocating additional memory for socketAlexander Bluhm
2017-07-20Extend the scope of the socket lock in soo_stat() to protect `so_state'Martin Pieuchot
2017-07-20Prepare filt_soread() to be locked. No functionnal change.Martin Pieuchot
2017-07-19Uninitialized variable can leak kernel memory.Theo de Raadt
2017-07-19Move KTRPOINT call up. The lenght variable i is getting aligned and soClaudio Jeker
2017-07-18Both syslog(3) and syslogd(8) truncate the message at 8192 bytes.Alexander Bluhm
2017-07-18soreserve() modifies `so_snd' and `so_rcv' so asserts that it is calledMartin Pieuchot
2017-07-13Do not unlock the netlock in the goto out error path before it hasAlexander Bluhm
2017-07-12Invalidate read-ahead buffers when read shortMike Belopuhov
2017-07-12Do not call fo_ioctl() in syscall that do, or will, take the socketMartin Pieuchot
2017-07-12Compute the level of contention only once.Visa Hankala
2017-07-12When there is no contention on a pool cache lock, lower the numberVisa Hankala
2017-07-10make malloc(9) mpsafe by using a mutex instead of splvm.David Gwynne
2017-07-08Revert grabbing the socket lock in kqueue filters.Martin Pieuchot
2017-07-04some of this code was written in an era when spaces cost extra.Ted Unangst
2017-07-04Always hold the socket lock when calling sblock().Martin Pieuchot
2017-07-04Assert that the socket lock is held when `so_state' is modified.Martin Pieuchot
2017-07-04Assert that the socket lock is held when `so_qlen' is modified.Martin Pieuchot
2017-07-03Do not grab the socket lock in doaccept() twice. Pass NOTE_SUBMITAlexander Bluhm
2017-07-03Protect `so_state', `so_error' and `so_qlen' with the socket lock inMartin Pieuchot
2017-06-29Due to risks known for decades, TIOCSTI now performs no action, and simplyTheo de Raadt
2017-06-27Add missing solock()/sounlock() dances around sbreserve().Martin Pieuchot
2017-06-26Assert that the corresponding socket is locked when manipulating socketMartin Pieuchot
2017-06-23set the alignment of the per cpu cache structures to CACHELINESIZE.David Gwynne
2017-06-23change the semantic for calculating when to grow the size of a cache list.David Gwynne
2017-06-22calculate a "sum" based upon pointers to functions all over the kernel,Theo de Raadt
2017-06-21Permit TIOCSTAT on a tty.Theo de Raadt
2017-06-20In ddb print socket bit field so_state in hex to match SS_ defines.Alexander Bluhm
2017-06-20Do not touch file pointers for which FILE_IS_USABLE() is false.Gerhard Roth
2017-06-20Convert sodidle() to timeout_set_proc(9), it needs a process contextMartin Pieuchot
2017-06-19dynamically scale the size of the per cpu cache lists.David Gwynne
2017-06-19Terminate pledge log(9) with newline. This fixes dmesg(8) output.Alexander Bluhm
2017-06-16add garbage collection of unused lists percpu cached items.David Gwynne
2017-06-16split returning an item to the pool pages out of pool_put as pool_do_put.David Gwynne