summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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@
2018-07-02Add functions to allow the use of the FPU in the kernel.Mark Kettenis
ok drahn@
2018-07-02vmm: wrap a long line and prefix a hex value printed in a debug printfMike Larkin
with 0x
2018-07-02clarify what is actually needed from a header file being includedMike Larkin
(previous comment was wrong, or outdated)
2018-07-01Revert bit I didn't intend to commit.Mark Kettenis
2018-07-01acpi: clean up some inconsistent style in the hid matching arraysMike Larkin
ok millert, kettenis, jcs, phessler, deraadt, mpi
2018-07-01Hook up acpi(4) on arm64. Various bits of driver glue are still missingMark Kettenis
but this is enough to boot multi-user on the mcbin with suitable firmware. ok mlarkin@
2018-07-01Use generated string for the bus number extent.Mark Kettenis
2018-07-01Lock the file descriptor table when accessing the `fd_ofileflags' array.Visa Hankala
This prevents the array from being freed too early. In the function unp_internalize(), the locking also ensures the per-fdp flags stay coherent with the file instance. OK mpi@
2018-07-01Update IDTVEC, KIDTVEC, and KUENTRY to align with _ALIGN_TRAPS instead ofPhilip Guenther
ALIGN_TEXT. For the places where IDTVEC and KIDTVEC are used in ways that would fail if a trap was inserted, provide IDTVEC_NOALIGN for use directly after other IDTVEC uses, and KIDTVEC_FALLTHROUGH for places where the code intentionally falls through to a KIDTVEC. "objdump -d" shows that this just converts nop-sleds to trap-sleds immediately after an unconditional jmp, or a retq, iretq, or sysretq. ok mortimer@ kettenis@ deraadt@
2018-07-01Allow ahci(4) to attach to acpi(4).Mark Kettenis
ok deraadt@
2018-07-01Move acpi(4) attach glue into acpi_machdep.c.Mark Kettenis
ok guenther@, deraadt@
2018-07-01Add retguard asm macros.mortimer
ok guenther@
2018-07-01Use fnew() to allocate a struct file. Simplifies the code.Mark Kettenis
ok mpi@, visa@
2018-07-01Remove semicolon before printing the AML name.Mark Kettenis
spotted by deraadt@
2018-07-01Allow com(4) to attach to acpi(4). For now we will only use this on arm64Mark Kettenis
where this is needed to support serial console in ACPI mode. ok mlarkin@
2018-07-01Add support for _DSD Device Properties.Mark Kettenis
ok mlarkin@
2018-07-01Add definitions for SPCR tables.Mark Kettenis
ok mlarkin@
2018-07-01Retire support for unused RTM_LOCK messages, it's redundant w/ RTM_CHANGE.Martin Pieuchot
ok tb@, sthen@
2018-07-01Provide _ALIGN_TRAPS macro for text alignment with a trap-sled, thenPhilip Guenther
use it where that was manually written before. No binary change. ok deraadt@
2018-06-30Don't try to set XCR0_X87 when XSAVE isn't supported at all. FixesPhilip Guenther
vmm on CPUs without XSAVE. Problem reported by Ax0n (ax0n (at) h-i-r.net) ok mlarkin@ deraadt@
2018-06-30Some tweaks such that ACPI 5.1 tables are recognized as well.Mark Kettenis