summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-01-25Setjmp should return zero, while longjmp should return nonzero inPatrick Wildt
kernel. Since those are only used by ddb, guard them with DDB.
2017-01-25enable plrtc(4) and psci(4)Jonathan Gray
ok patrick@
2017-01-25Move psci(4) and plrtc(4) so arm64 can use them.Jonathan Gray
Tested by and ok patrick@
2017-01-25Add assembly helpers for calling the hypervisor and secure monitor.Patrick Wildt
ok jsg@
2017-01-25Clear the reference of the original mbuf chain after m_split()'ingMartin Pieuchot
a mbuf and properly intialize m_len. From FreeBSD via Imre Vadasz. ok bluhm@
2017-01-25In amsdu_decap() check the actual length of the data in the remaining mbufStefan Sperling
chain. Else this function will sometimes signal end of AMSDU frame too early. Patch by Imre Vadasz. ok mpi@ phessler@
2017-01-25tedu some code that has not been executed since time_t became 64 bitsTom Cosgrove
guenther@ deraadt@
2017-01-25Allocate and connect sockets first, then upon success create fileTheo de Raadt
descriptors so that the NET_LOCK is satisfied. ok mpi
2017-01-25deSCARGize sys_ptrace()Philip Guenther
ok mpi@
2017-01-25Enable the NET_LOCK(), take 2.Martin Pieuchot
Recursions are currently known and marked a XXXSMP. Please report any assert to bugs@
2017-01-25Silence warnings caused by LLVM upgrade.Patrick Wildt
2017-01-25 +arm64Theo de Raadt
2017-01-25enable BFDPeter Hessler
OK deraadt@
2017-01-24splsoftnet() to NET_LOCK() in bpfwrite().Martin Pieuchot
ok dlg@, visa@
2017-01-24add explicit casts for going from volatile void * to void * volatile *.David Gwynne
guenther says void * is less special in c++, and atomic.h now leaks into c++ ports. reported by naddy
2017-01-24Kill some unused variables found by clang.Rafael Zalamena
2017-01-24Use the same stack size as on i386Jeremie Courreges-Anglas
ok kettenis@ deraadt@
2017-01-24logname(1) uses getlogin(2) to determine the user associated with theTheo Buehler
current session. This way kernels built during 'make release' should again have names such as deraadt@... bluhm@... instead of build@... in most environments. Issue reported by bluhm on icb eons ago. ok deraadt
2017-01-24Remove the [fs]u{byte,word,swintr} fetch(9) functions that havePatrick Wildt
been removed years ago. From miod
2017-01-24A space here, a space there. Soon we're talking real whitespaceKenneth R Westerback
rectification.
2017-01-24Force a context switch for every pool_get(9) with the PR_WAITOK flagMartin Pieuchot
if pool_debug is equal to 2, just like we do for malloc(9). ok dlg@
2017-01-24SVM: misspelled field name in vmcb struct (renamed to match SVM code I'mMike Larkin
merging)
2017-01-24SVM: matching i386 commit (missing host save area pa msr)Mike Larkin
2017-01-24SVM: missing msr defintion for host save area physaddrMike Larkin
2017-01-24In preparation of compiling our kernels with -ffreestanding, explicitly mapMark Kettenis
a few performance-critical functions to compiler builtins. Since the builtins supported by gcc3, gcc4 and clang are not the same, there are (unfortunately) some compiler checks to make sure we only do the mapping for builtins that are actually supported by the compiler. ok jca@, tom@, guenther@
2017-01-24In accept(2) and accept4(2) allocate a new file descriptor beforeMartin Pieuchot
checking if the socket head's queue is empty and possibly sleeping. This way we avoid lock ordering problems as the NET_LOCK() and fdplock() won't be held at the same time. Note that socketpair(2) and close(2) are the two remaining syscalls holding these locks at the same time. They both respect the same order: fdplock() then NET_LOCK(). Initial deadlock reported by kettenis@ and ajacoutot@. ok bluhm@, guenther@, deraadt@
2017-01-24Display process group in "ps /w" since they got removed from "ps /n".Martin Pieuchot
While here fix the formating of /w /o and /a. ok guenther@
2017-01-24Display the thread ID (TID) rather than the process group ID (PGRP)Martin Pieuchot
in ddb(4)'s default 'ps' view. This allow to use 'tr /p' easily now that it requires a TID. With inputs from guenther@
2017-01-24when we lose link, do not delete entries that have the RTF_BFD flag setPeter Hessler
OK mpi@
2017-01-24Track a per-fd flag UF_PLEDGED. This indicates the initial open was done by aTheo de Raadt
pledged process. dup(2) and recvmsg(2) retain UF_PLEDGED from the original fd. In pledge "exec" circumstances, exceve clears UF_PLEDGED on all the process's fds. In a pledge'd process, ioctl(2) can use this additional information to grant access to ioctl's which are more sensitive or dive deeply into the kernel. Developers will be encouraged to open such sensitive resources before calling pledge(2), rather than afterwards. That matches the heading of privsep development practices. Future changes will introduce those ioctl(2) changes. Lots of discussions with semarie guenther and benno.
2017-01-24add support for multiple transmit ifqueues per network interface.David Gwynne
an ifq to transmit a packet is picked by the current traffic conditioner (ie, priq or hfsc) by providing an index into an array of ifqs. by default interfaces get a single ifq but can ask for more using if_attach_queues(). the vast majority of our drivers still think there's a 1:1 mapping between interfaces and transmit queues, so their if_start routines take an ifnet pointer instead of a pointer to the ifqueue struct. instead of changing all the drivers in the tree, drivers can opt into using an if_qstart routine and setting the IFXF_MPSAFE flag. the stack provides a compatability wrapper from the new if_qstart handler to the previous if_start handlers if IFXF_MPSAFE isnt set. enabling hfsc on an interface configures it to transmit everything through the first ifq. any other ifqs are left configured as priq, but unused, when hfsc is enabled. getting this in now so everyone can kick the tyres. ok mpi@ visa@ (who provided some tweaks for cnmac).
2017-01-24only send the rt msg on timeout failure if bfd is not downPeter Hessler
2017-01-24move setting the IP TOS from the listening socket to the sending socketPeter Hessler
2017-01-24Use header <sys/atomic.h> rather than <machine/atomic.h> in MI code.Visa Hankala
OK mpi@ deraadt@
2017-01-24Rename pfind(9) into tfind(9) to reflect that it deals with threads.Martin Pieuchot
While here document prfind(9. with and ok guenther@
2017-01-24Introduce rt_report() a function that generates a route message from anClaudio Jeker
rt_entry. Use this function in the success case of all route commands. Reduce the goto madness in route_output and make the code hopefully a bit easier to read and work with. OK mpi@ bluhm@
2017-01-23File descriptor passing internalizes fd's into an mbuf-stored array ofTheo de Raadt
struct file *, and then externalizes back to fd upon delivery. Convert storage to array of struct fdpass, containing struct file * (and soon something else). memcpy originally intended for alignment purposes can be removed because CMSG_ALIGN is _ALIGN. There is some anxiety over changing this code, but it reads easier. ok mpi guenther kettenis
2017-01-23Allocate all memory chunks, and potentially sleeping, before freeingMartin Pieuchot
the old array of open files. Fix a race for multi-threaded processes reported by cheeky.m@gmx.com on bugs@ and analyzed with bluhm@. ok deraadt@, bluhm@
2017-01-23enable bcmdog on armv7 as wellJonathan Gray
2017-01-23Avoid curproc dance in dupfdopen(), by passing a struct proc *Theo de Raadt
ok guenther mpi
2017-01-23The function raw_input() has not been called since netiso has beenAlexander Bluhm
removed in 2004. The comment about raw_input() above rip_input() was added in 1981, but it is wrong since 1992. After that it has been copied to rip6_input(). (*pr_input)() is never called with the parameters (mbuf, sockproto, sockaddr, sockaddr). So retire raw_input(). OK guenther@ deraadt@
2017-01-23Enable bcmdog on RAMDISK as well so it can reboot.Jonathan Gray
ok kettenis@ patrick@
2017-01-23Add bcmdog(4), a watchdog timer for the Raspberry Pi.Mark Kettenis
Based on code written by patrick@
2017-01-23Remove duplicate $OpenBSD$ tag.Mark Kettenis
2017-01-23Enter UKC when built with BOOT_CONFIG and -c is specified.Jonathan Gray
ok kettenis@ patrick@
2017-01-23Enable USBVERBOSE on both the GENERIC and RAMDISK kernel.Patrick Wildt
2017-01-23Make the RAMDISK kernel actually try to boot the ramdisk.Patrick Wildt
2017-01-23Create a mapping for the FDT if it happens to be on a different 1 GiBPatrick Wildt
mapping than the kernel.
2017-01-23Initialize DDB if compiled with option DDB.Patrick Wildt
ok kettenis@
2017-01-23In comparison to _start, where we only need the address of thePatrick Wildt
function, we need another indirection for esym. The address of esym is simply the address of the variable. But in the case of esym we want to read and modify its value. ok kettenis@