Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-07-04 | Move allocation behind sanity check to address possible memory leak as | Patrick 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-04 | Do 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-04 | Prevent a mbuf double free by not freeing it along the error-path in | anton | |
rip{6,}_usrreq() since soreceive() will free it. ok bluhm@ | |||
2018-07-04 | Fix a wrong memcmp in k7/k8 powernow code. | Mike Larkin | |
ok brynet | |||
2018-07-04 | Clean up some extern definitions and includes in hibernate MD code | Mike Larkin | |
2018-07-04 | Clean up some extern definitions and includes in hibernate MD code | Mike Larkin | |
2018-07-03 | Add retguard macros for libkern | mortimer | |
ok deraadt | |||
2018-07-03 | Add retguard macros for kernel asm. | mortimer | |
ok deraadt, ok mlarkin (vmm_support) | |||
2018-07-03 | Add a new so_seek member to "struct file" such that we can have seekable | Mark 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-03 | Make intrframe the exact same size as trapframe: instead of pushing | Philip 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-03 | Use LIST_FOREACH construct instead of homebrew loop. | Kevin Lo | |
ok bluhm@, mpi@ | |||
2018-07-03 | Avoid NULL pointer deref in vn_writechk() when calling ftruncate() on a file | anton | |
descriptor belonging to a cloned device. ok kettenis@ | |||
2018-07-03 | add amd speculation control cpuid bits | Jonathan Gray | |
documented in 'AMD64 Technology Indirect Branch Control Extension' and 'Speculative Store Bypass Disable' ok mlarkin@ deraadt@ | |||
2018-07-03 | regen | Frederic Cambus | |
2018-07-03 | Add device IDs of the VIA VX900 chipset. | Frederic Cambus | |
OK mlarkin@ | |||
2018-07-03 | During attach, give the loop a while to settle before we start looking | Jonathan 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-03 | regen | Landry Breuil | |
2018-07-03 | Add 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-03 | If we're not on a fabric, we may still need to attach and detach targets | Jonathan Matthew | |
as part of processing port database changes. | |||
2018-07-03 | Instead 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-03 | Remove dead code present since r1.1. Fix CID 1470238. | Martin Pieuchot | |
ok guenther@ | |||
2018-07-03 | Fix typo. | Kevin Lo | |
ok claudio@, deraadt@, mpi@, rob@ | |||
2018-07-03 | Nuke unused variable. | Kevin Lo | |
ok deraadt@, mpi@, rob@ | |||
2018-07-02 | Use more list macros for v_dirtyblkhd. | Alexander Bluhm | |
OK mpi@ | |||
2018-07-02 | Update the file reference count field `f_count' using atomic operations | Visa 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-02 | Assert that fdp is locked in fdalloc(). | Visa Hankala | |
OK mpi@ | |||
2018-07-02 | Allow pluart(4) to attach to acpi(4). | Mark Kettenis | |
ok mlarkin@, patrick@ | |||
2018-07-02 | Allow xhci(4) to attach to acpi(4). | Mark Kettenis | |
ok dlg@, patrick@, mpi@ | |||
2018-07-02 | Enable the FPU when calling EFI runtime services. The new UEFI firmware for | Mark 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-02 | Add functions to allow the use of the FPU in the kernel. | Mark Kettenis | |
ok drahn@ | |||
2018-07-02 | vmm: wrap a long line and prefix a hex value printed in a debug printf | Mike Larkin | |
with 0x | |||
2018-07-02 | clarify what is actually needed from a header file being included | Mike Larkin | |
(previous comment was wrong, or outdated) | |||
2018-07-01 | Revert bit I didn't intend to commit. | Mark Kettenis | |
2018-07-01 | acpi: clean up some inconsistent style in the hid matching arrays | Mike Larkin | |
ok millert, kettenis, jcs, phessler, deraadt, mpi | |||
2018-07-01 | Hook up acpi(4) on arm64. Various bits of driver glue are still missing | Mark Kettenis | |
but this is enough to boot multi-user on the mcbin with suitable firmware. ok mlarkin@ | |||
2018-07-01 | Use generated string for the bus number extent. | Mark Kettenis | |
2018-07-01 | Lock 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-01 | Update IDTVEC, KIDTVEC, and KUENTRY to align with _ALIGN_TRAPS instead of | Philip 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-01 | Allow ahci(4) to attach to acpi(4). | Mark Kettenis | |
ok deraadt@ | |||
2018-07-01 | Move acpi(4) attach glue into acpi_machdep.c. | Mark Kettenis | |
ok guenther@, deraadt@ | |||
2018-07-01 | Add retguard asm macros. | mortimer | |
ok guenther@ | |||
2018-07-01 | Use fnew() to allocate a struct file. Simplifies the code. | Mark Kettenis | |
ok mpi@, visa@ | |||
2018-07-01 | Remove semicolon before printing the AML name. | Mark Kettenis | |
spotted by deraadt@ | |||
2018-07-01 | Allow com(4) to attach to acpi(4). For now we will only use this on arm64 | Mark Kettenis | |
where this is needed to support serial console in ACPI mode. ok mlarkin@ | |||
2018-07-01 | Add support for _DSD Device Properties. | Mark Kettenis | |
ok mlarkin@ | |||
2018-07-01 | Add definitions for SPCR tables. | Mark Kettenis | |
ok mlarkin@ | |||
2018-07-01 | Retire support for unused RTM_LOCK messages, it's redundant w/ RTM_CHANGE. | Martin Pieuchot | |
ok tb@, sthen@ | |||
2018-07-01 | Provide _ALIGN_TRAPS macro for text alignment with a trap-sled, then | Philip Guenther | |
use it where that was manually written before. No binary change. ok deraadt@ | |||
2018-06-30 | Don't try to set XCR0_X87 when XSAVE isn't supported at all. Fixes | Philip Guenther | |
vmm on CPUs without XSAVE. Problem reported by Ax0n (ax0n (at) h-i-r.net) ok mlarkin@ deraadt@ | |||
2018-06-30 | Some tweaks such that ACPI 5.1 tables are recognized as well. | Mark Kettenis | |