summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-10-07bcopy() is expected to be overlap safe, so it implement it with memmove()Philip Guenther
not memcpy(). 'oh oh' deraadt@
2017-10-07In "tty", permitting TIOCSTART is fineTheo de Raadt
2017-10-07permit SYS___set_tcb, upcoming code will require thisTheo de Raadt
2017-10-06Unfortunately I removed too much in my previous commit and brokeAlexander Bluhm
divert-packet. Bring back the loop over the global list to find the divert socket.
2017-10-06Kill the divert-packet socket option IP_DIVERTFL to filter packets.Alexander Bluhm
It used a loop over the global list divbtable that would be hard to make MP safe. The port net/dnsfilter does not work without this, it should be converted to divert-to. Neither other ports nor base use this filter feature. ports checked by sthen@; OK mpi@ benno@
2017-10-06The mount point flags were displayed in octal when printed by ddb.Alexander Bluhm
All other bit fields use hex as well as the MNT_ constants. Change this to hex to make it cosistent and less confusing. OK krw@
2017-10-06Recalibrate TSC timecounter with HPET and PM timerMike Belopuhov
If frequency of an invariant (non-stop) time stamp counter is measured using an independent working timecounter that has a known frequency, we can assume that the measured TSC frequency is as good as the resolution of the timecounter that we use to perform the measurement. This lets us switch from this high quality but expensive source to the cheaper TSC without sacrificing precision on a wide range of modern CPUs. From Adam Steen <adam@adamsteen.com.au> with tweaks from reyk@ and myself. Tested by brynet@, sthen@ and others, OK mlarkin, sthen
2017-10-06vmm: handle 32 bit guest w/PAE when guest enables PAE first then paging,Mike Larkin
as 32 bit linux guests do. ok pd@
2017-10-06Revert previous video mode when setting GOP SetMode is failed. ThisYASUOKA Masahiko
prevents the video output problem on ThinkPad X121e and so on. diff from Klemens Nanni, test by Andrew Daugherity
2017-10-05vmm: add functions to decode %rflags and IA32_MISC_ENABLE MSR.Mike Larkin
Debug builds only.
2017-10-05Check the state value within the assert statement, do not set it.Alexander Bluhm
found with grep 'KASSERT.* = '; OK kettenis@
2017-10-05Add support for the "TEMPer1F_H1V1.5F" USB temperature and humidityStefan Sperling
sensor to the ugold(4) driver. Patch by Jan Klemkow Tested by Remi Locherer ok mpi@ patrick@
2017-10-05restore a block of code erroneously removed in r1.162 that causes aMike Larkin
warning during linux guest bootup relating to fpu save state size.
2017-10-05Update mvneta(4) to the way OpenBSD handles multicast and promiscuousPatrick Wildt
mode bits. From Brad Smith.
2017-10-05fix some spacing issues, wrong comments, and DPRINTFs that were in theMike Larkin
wrong place, no functional change.
2017-10-05change DPRINTF format specifier from %lld to %llx for easier readabilityMike Larkin
2017-10-05Clean up some no longer needed includes left over from the locore/locore0 split.Mike Larkin
ok tom, mpi, deraadt
2017-10-04Due to changes in LLD where sections are sorted in a different way,Patrick Wildt
the .got section was put into the randomdata segment. This caused the bootloader to overwrite parts of the .got and leads to broken pointers. Explicitly put the .got section into the .data segment. ok kettenis@
2017-10-04Work around clang mis-optimization regression. For some expression-Patrick Wildt
emission temporaries no lifetime markers are emitted. This causes clang to not re-use stack slots properly. By forcing the function to be inlined this can be worked around. ok kettenis@ jsg@
2017-10-04re-enable POOL_DEBUG after the releaseChristian Weisgerber
2017-10-04Introduce reference counting for tasks in iwm(4).Stefan Sperling
When bringing the interface down, the driver now waits for any running tasks to complete before shutting down the hardware. Based on suggestions by dlg@ and mpi@ Tested by myself, Manuel Giraud, anton@, and jcs@
2017-10-04reminder to create <version>.html and roll errata pages for release.Sebastian Benoit
ok deraadt@
2017-10-04as a result of previous change, vftype and ftype always have the sameTheo de Raadt
value so simplify.
2017-10-046.2-current, back to workTheo de Raadt
2017-10-04Follow the pattern set by copy*/pcb_onfault: when xrstor faults, returnPhilip Guenther
from the trap to a 'resume' address to effectively make xrstor_user() return an error indication, then do the FPU cleanup and trap generation from there where we can get access to the original, userspace trapframe. The original fix tried to handle the trap while on the wrong trapframe, leaking kernel addresses and possibly leading to double faults. Problem pointed out by abluhm@ ok deraadt@ mikeb@
2017-10-03Nested xrstor handled leaks a kernel address into sigval, but potentialTheo de Raadt
user address is unavailable so use 0 instead, since the typical cases are coredump or handing to a SIGBUS handler which cannot recover. Issue observed by bluhm ok bluhm, mlarkin, guenther said "Foo!"
2017-10-03The xrstor instruction will fault if the provided xstate data, whichPhilip Guenther
is under userspace control via sigreturn, fails various consistency checks. Rather than trying to replicate the CPU's hardwired checks in C code, handle it like iretq: check in trap() whether a fault is from the problem instruction and handle it there. CPU behavior and the potential issue pointed out on Linux kernel-hardening ok mikeb@ deraadt@
2017-10-03Disable msi on the Yukon 88E8036 and 88E8053 as it triggers watchdog timeoutsAntoine Jacoutot
rendering the network unusable. tested by myself committing on behalf of jsg@ ok deraadt@
2017-10-03work around config(8) modifying bss, using __attribute__ ((section(".data"))).Theo de Raadt
From yasuoka. I really want this fixed in a different way after release is finished.
2017-10-01set MAXSSIZ to the same value as on all other architectures (32MB)Christian Weisgerber
ok deraadt@
2017-10-01Align Rx buffers to prevent unaligned access in the network stack.Mark Kettenis
ok patrick@, deraadt@
2017-09-30The property that points the the attached PHY is called "phy-handle" insteadMark Kettenis
of "phy". ok patrick@, deraadt@
2017-09-30Add preliminary kabylake support to inteldrm(4) by backporting the relevantRobert Nagy
commits from linux-4.8.x. The changes are quiet minimal due to the fact that kabylake and skylake share most of the code because they are both gen9 graphics. This was tested by many and was also in snapshots for a while. ok kettenis@
2017-09-29When fault indicates PGEX_W, only tell uvm we need a writeable page..Theo de Raadt
don't request R+W. Issue observed by jsing in a go test of some sort. ok mlarkin
2017-09-29New ddb(4) command: kill.Martin Pieuchot
Send an uncatchable SIGABRT to the process specified by the pid argument. Useful in case of CPU exhaustion to kill the DoSing process and generate a core for later inspection. ok phessler@, visa@, kettenis@, miod@
2017-09-28The DELAY() recently added to iwn(4) to make association more reliable couldStefan Sperling
be triggered by incoming management frames, such as DEAUTH frames. As krw@ found out, a system receiving many such frames would become unresponsive. Ensure this extra DELAY() only happens if we decide to send an AUTH frame. ok mpi@ krw@
2017-09-28When option DDB_STRUCTINFO was removed from the kernel, too much fromPatrick Wildt
the kernel makefiles was removed which lead to C files not being re- compiled when a dependency changed. This can lead to panics in odd places and generally a broken system. ok deraadt@
2017-09-27guenther sleep-commited the version without #ifdefsTheo de Raadt
2017-09-27amd64 needs FS.base values (the TCB pointer) to be validated, as noncanonicalPhilip Guenther
addresses will cause a fault on load by the kernel. Problem observed by Maxime Villard ok kettenis@ deraadt@
2017-09-26Prevent null pointer dereference when probing channelsMike Belopuhov
Account for the case when wdc is attached to the ISA bus and performs channel probing using a dummy structure that lacks the back pointer to the controller's softc. Bug reported and fix tested by Andrew Daugherity, thanks! OK phessler, jsg, krw, deraadt
2017-09-26Use quoted #includes for files kdump's mkioctls indirectly includes soJonathan Gray
mkioctls can find the files and not error out as drm headers are not installed to /usr/include. This results in more complete ioctl coverage in kdump (not just for drm). ok kettenis@
2017-09-26disable POOL_DEBUG for releaseJonathan Gray
ok deraadt@
2017-09-25sendsyslog should take a const char * everywhere.Marc Espie
okay bluhm@, deraadt@
2017-09-25take us out of -betaTheo de Raadt
2017-09-23Fix build on octeon by reverting two cosmetic changes in rtwn.c r1.34.Stefan Sperling
Compiler complained: warning: large integer implicitly truncated to unsigned type No functional change. reported by & ok visa@
2017-09-23Add dummy FIOASYNC handler.Martin Pieuchot
Without it uhid_do_ioctl() will return EINVAL which will make the upper layer assume that uhid node do not support non-blocking reads. Fix a regression introduced by the removal of SIGIO support. Reported by many, fix tested by Bryan Linton, Micah Muer and Nam Nguyen.
2017-09-23Fix controller locking so that it covers the DMA map and bounce buffer.Visa Hankala
Those are shared by SD/MMC buses.
2017-09-22Do not bounce if possible.Visa Hankala
2017-09-22Allocate a bounce buffer once during init and reuse it for DMA commands.Visa Hankala
This makes the system a bit harder to corner when paging to SD/MMC. In addition, limit the maximum DMA segment size to MAXPHYS.
2017-09-22Use ieee80211_has_addr4() inline function where possible.Kevin Lo
ok stsp@