summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-07-05It was possible to leak the control mbuf in raw ip user requestAlexander Bluhm
with sendmsg(2) and MSG_OOB. Sync the code in udp, rip, and rip6_usrreq. Add an inp NULL check in rip6_usrreq for consistency. OK benno@ mpi@
2018-07-05Add acpipci(4), a driver that supports generic ECAM-compatible PCI hostMark Kettenis
bridges based on information provided by ACPI. ok mlarkin@
2018-07-05Do not leak memory and a fp reference when !root passes `allow_other'.Martin Pieuchot
Fix CID 1470236. ok helg@
2018-07-05regenMartin Pieuchot
2018-07-05Put back sendto(2) and sendmsg(2) under KERNEL_LOCK().Martin Pieuchot
malloc(9) is apparently not mpsafe as found the hardway by sthen@.
2018-07-05Serialize the sosplice taskq allocation. This prevents an unlikelyVisa Hankala
duplicate allocation that could happen in the future when each socket has a dedicated lock. Right now, the code path is serialized also by the NET_LOCK() (and the KERNEL_LOCK()). OK mpi@
2018-07-05Grab the KERNEL_LOCK() in kthread_create(9) to enable unlocked codeVisa Hankala
paths create kernel threads. This will be utilized by sosplice() for the taskq allocation. OK mpi@
2018-07-05backout r1.11 "Add retguard macros for kernel asm", ok deraadtStuart Henderson
after starting iked kernel enters ddb with: Stopped at aesni_ctr_enc+0xd8: int $3
2018-07-05RTM_BFD route messages are also a special case. suggested by claudio@,Sebastian Benoit
ok phessler@
2018-07-05not all route messages have a priority. Move the priority filter checkSebastian Benoit
where it belongs. Problem spotted by by remi@ ok sthen@ claudio@ krw@
2018-07-05Enable bwfm(4).Patrick Wildt
Requested by brad@ Tested by fcambus@ ok stsp@
2018-07-05Cast physical addresses to 64-bits so we can shift them by 32-bit onPatrick Wildt
32-bit platforms without the compiler complaining. In the end the value will turn out as 0 anyway. Allows enabling bwfm(4) on 32-bit platforms. ok stsp@
2018-07-05Add support for the VIA VX900 chipset in viapm(4).Frederic Cambus
OK kettenis@
2018-07-05forgot to commit vmmvar.h needed by previous two commits, thanks ccardenasMike Larkin
for noticing.
2018-07-05vmm(4): print guest vcpu mode and cpl in debug output if VM crashesMike Larkin
2018-07-05vmm(4): add some utility functions for checking vcpu cpl and modeMike Larkin
ok pd@, guenther@
2018-07-05Plug a vnode leak in namei(). If the file system is unmountedAlexander Bluhm
during name lookup, the directory vnode was not released. Add a vrele() to the error return path. NetBSD has added a vput() there after we imported the check. OK krw@ visa@
2018-07-04It is possible for a memory write to not complete if no barrier existsDale Rahn
between the write and a wfi instruction. Make certain system state is coherent when waiting on interrupts. ok kettenis@
2018-07-04enable trunk(4)kn
OK deraadt kettenis
2018-07-04Properly pass around the PCI "chipset tag" in acpi(4) and refactorMark Kettenis
acpimcfg(4) to call an MD initialization functions that sets up a tag for PCI ECAM. ok guenther@, mlarkin@, krw@
2018-07-04ptrace debug support for arm64.Dale Rahn
Single step is not yet supported but reading and setting registers are working as expected, breakpoints also are working. ok kettenis@
2018-07-04Move allocation behind sanity check to address possible memory leak asPatrick Wildt
seen by Coverity CID 1470240. Cast the ieee80211_frame struct pointer to uint8_t to address concerns raised by Coverity CID 1470239 and CID 1470237. ok stsp@
2018-07-04Do not try to unlock the fdplock() in an error path if it isn't held.Martin Pieuchot
Found the hardway by mlarkin@, ok bluhm@
2018-07-04Prevent a mbuf double free by not freeing it along the error-path inanton
rip{6,}_usrreq() since soreceive() will free it. ok bluhm@
2018-07-04Fix a wrong memcmp in k7/k8 powernow code.Mike Larkin
ok brynet
2018-07-04Clean up some extern definitions and includes in hibernate MD codeMike Larkin
2018-07-04Clean up some extern definitions and includes in hibernate MD codeMike Larkin
2018-07-03Add retguard macros for libkernmortimer
ok deraadt
2018-07-03Add retguard macros for kernel asm.mortimer
ok deraadt, ok mlarkin (vmm_support)
2018-07-03Add a new so_seek member to "struct file" such that we can have seekableMark Kettenis
files that aren't vnodes. Move the vnode-specific code into its own function. Add an implementation for the "DMA buffers" that can be used by DRI3/prime code to find out the size of the graphics buffer. This implementation is very limited and only supports offset 0 and only for SEEK_SET and SEEK_END. This doesn't really make sense; implementing stat(2) would be a more obvious choice. But this is what Linux does. ok guenther@, visa@
2018-07-03Make intrframe the exact same size as trapframe: instead of pushingPhilip Guenther
the PPL on top, store it where trapframe puts the trap number. This makes interrupt handlers get called with the correct stack alignment. Also, document the use of if_err to differentiate resumed/recursed interrupts from 'real' ones. tested in snaps ok deraadt@
2018-07-03Use LIST_FOREACH construct instead of homebrew loop.Kevin Lo
ok bluhm@, mpi@
2018-07-03Avoid NULL pointer deref in vn_writechk() when calling ftruncate() on a fileanton
descriptor belonging to a cloned device. ok kettenis@
2018-07-03add amd speculation control cpuid bitsJonathan Gray
documented in 'AMD64 Technology Indirect Branch Control Extension' and 'Speculative Store Bypass Disable' ok mlarkin@ deraadt@
2018-07-03regenFrederic Cambus
2018-07-03Add device IDs of the VIA VX900 chipset.Frederic Cambus
OK mlarkin@
2018-07-03During attach, give the loop a while to settle before we start lookingJonathan Matthew
for targets. With some combinations of controllers and targets, the loop seems to bounce a bit, but with a short delay we can attach targets more reliably.
2018-07-03regenLandry Breuil
2018-07-03Add usb ids for the Logitech Webcams C210 and C270.Landry Breuil
Their audio isn't properly detected yet, but a new quirk will fix that. ok mpi@
2018-07-03If we're not on a fabric, we may still need to attach and detach targetsJonathan Matthew
as part of processing port database changes.
2018-07-03Instead of overwriting `f_data' replace the 'struct file' with a new one.Martin Pieuchot
With this change `f_data' is effectively immutable. While here prevent a lock ordering issue by not unterleaving the vnode's lock and the fdplock(). Tested by bluhm@, ok kettenis@, visa@, jsing@
2018-07-03Remove dead code present since r1.1. Fix CID 1470238.Martin Pieuchot
ok guenther@
2018-07-03Fix typo.Kevin Lo
ok claudio@, deraadt@, mpi@, rob@
2018-07-03Nuke unused variable.Kevin Lo
ok deraadt@, mpi@, rob@
2018-07-02Use more list macros for v_dirtyblkhd.Alexander Bluhm
OK mpi@
2018-07-02Update the file reference count field `f_count' using atomic operationsVisa Hankala
instead of using a mutex for update serialization. Use a per-fdp mutex to manage updating of file instance pointers in the `fd_ofiles' array to let fd_getfile() acquire file references safely with concurrent file reference releases. OK mpi@
2018-07-02Assert that fdp is locked in fdalloc().Visa Hankala
OK mpi@
2018-07-02Allow pluart(4) to attach to acpi(4).Mark Kettenis
ok mlarkin@, patrick@
2018-07-02Allow xhci(4) to attach to acpi(4).Mark Kettenis
ok dlg@, patrick@, mpi@
2018-07-02Enable the FPU when calling EFI runtime services. The new UEFI firmware forMark Kettenis
the od1000 that I built myself seems to use the FPU when setting the RTC, and the UEFI standard allows this. ok drahn@