summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-04-09Convert some malloc(9) to mallocarray(9)David Hill
ok deraadt@
2017-04-09Convert some malloc(9) to mallocarray(9)David Hill
ok deraadt@
2017-04-09Use mallocarray to allocate multicast group memberships.David Hill
ok deraadt@
2017-04-09Correct wakeup() dance in sensor_task_work()Theo de Raadt
Problem noticed by krw
2017-04-08For legacy interrupt use the tag of the topmost bridge to establish theMark Kettenis
interrupt. We already correctly swizzle the pin. ok patrick@
2017-04-08Bring over the changes I made to the armv7 version of this driver such thatMark Kettenis
interrupts are correctly routed to the boot cpu if that isn't the one connected to CPU interface zero on the interrupt controller. ok patrick@
2017-04-08re-enable POOL_DEBUG after the release; ok deraadt@Christian Weisgerber
2017-04-08Make network ports work on Shasta.Visa Hankala
2017-04-08Sensors are run as callbacks inside tasks. During suspend a sensorTheo de Raadt
could be running inside a driver that will be force-detached, or due to tsleep end up disrupting the softstate/hardstate contract. At suspend time, quisce all these callbacks by waiting for completion. This issue has never been observed for real, but may be implicated in suspend/resume failures. ok kettenis guenther mlarkin
2017-04-08Use ADDR64 opcodes to specify 64bit DMA addresses for all buffers. ThisJonathan Matthew
consumes two ring entries per segment, halving the effective size of the rings, but keeps things simple. This is required for the onboard nic on the Overdrive 1000 to work. ok kettenis@, tested on i386 by jsg@
2017-04-08Remove some #if 0 code that dates back to r1.1Mike Larkin
Pointed out by Michael W. Bombardieri
2017-04-08A pile of sizes to free(9). In test for a few days in snapshots.Theo de Raadt
Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
2017-04-08Two prototypes for acpi_maptable; merge to one placeTheo de Raadt
2017-04-07Add prid for CN72xx/CN73xx.Visa Hankala
2017-04-07Make SoC version available in a simple form.Visa Hankala
2017-04-07si_addr should be of type void *, not char *Philip Guenther
From Andrew Aldridge (i80and(at)foxquill.com) ok millert@ mpi@
2017-04-07Simplify the size calculation for memset()Philip Guenther
From Anton Lindqvist (anton.lindqvist(at)gmail.com)
2017-04-06Convert bcopy to memcpy where the memory does not overlap, otherwise,David Hill
use memmove. While here, change some previous conversions to a simple assignment. ok deraadt@
2017-04-06Sizes for the remaining free() calls, and use mallocarray()Theo de Raadt
ok visa
2017-04-06Use the correct interrupt disestablish routine.Visa Hankala
2017-04-06Extend the fdt interrupt API a little.Visa Hankala
2017-04-06Replace bcopy with a simple assignment where both variables areDavid Hill
properly aligned and sockaddr_union fields, or with memcpy when the memory doesn't overlap. OK bluhm@
2017-04-06remove stray character in previous that broke the buildJonathan Gray
2017-04-06Unify a few attach-time patterns between usb *com drivers, and removeTheo de Raadt
extra zero'ing of variables not needed because softc is pre-zero'd. ok jsg
2017-04-06add sizes to free() callsTheo de Raadt
ok dhill
2017-04-06Convert bcopy to memcpy as the memory does not overlap.David Hill
ok deraadt@
2017-04-053 more mallocarray() usesTheo de Raadt
2017-04-05Replace 2 bcopy()'s with a simple assignment as both variables areDavid Hill
properly aligned malloc(9)d data and sockaddr_union fields. While here, convert the remaining bcopy() to memmove(). with and ok @bluhm
2017-04-05When building counter memory in preparation to copy to userland, alwaysTheo de Raadt
zero the buffers first. All the current objects appear to be safe, however future changes might introduce structure pads. Discussed with guenther, ok bluhm
2017-04-05timeval has trailing padding on powerpc and m88k, so memset it beforePhilip Guenther
copyout to avoid leaking kernel stack ok deraadt@
2017-04-05Here at OpenBSD we change ABIs at the fling of a hat. Just in case aTheo de Raadt
future disk info sysctl has pads in the structures, use M_ZERO when allocating the storage to avoid leaking kernel memory.
2017-04-05clear structure on the stack before copying out for sysctl. At presentTheo de Raadt
it has no pads, but a future ABI change could add something and leak kernel memory.
2017-04-04struct vfsconf is tightly packed, but let's M_ZERO it in case that everTheo de Raadt
changes to avoid exposing userland memory.
2017-04-04Cleanup the code further. Get rid of the remaining C++-style comments,Mark Kettenis
remove some debug printfs, get rid of STATIC and __inline defines and remove a bit more unused code. ok drahn@, visa@
2017-04-04Issue memory barrier before lock release, not after. This ensuresVisa Hankala
the release write becomes globally visible only after any writes of the critical section are globally visible. In practice, the reordering has not happened because the kernel runs in the total store order mode. Tested by and OK kettenis@
2017-04-04add a free() size near microcode loadingTheo de Raadt
2017-04-04Add 8265 and 3168 support. Both cards need new firmware files which currentlyClaudio Jeker
need to be installed by hand until the iwm-firmware package has been updated. This includes handling (by ignoring) of IWM_UCODE_TLV_FW_MEM_SEG and IWM_DEBUG_LOG_MSG firmware commands. Mostly stolen from dragonflybsd. With this in the X270 has working ethernet and wifi. Commit! deraadt@
2017-04-03provide size to free(9)Theo de Raadt
2017-04-03Compute address for ll/sc only once.Visa Hankala
2017-04-02Less convoluted code in soshutdown()Theo de Raadt
ok guenther
2017-04-02Filter out RDTSCP, needed to handle solaris guests. We set the VMX controlMike Larkin
to enable RDTSCP to 0, so when solaris attempted to use the instruction (since it wasn't filtered out of CPUID information), the CPU issued an #UD exception.
2017-04-02On ARMv8, the translation table walk is fully coherent so there is noMark Kettenis
reason to explicitly flush the cache before invalidating the TLB. The barrier that is included in out TLB flushing code should be enough to guarantee that the TLB walking hardware sees the updated page table contents, so the explicit barriers can go as well. Sanitize the code immediately surrounding the removed bits while I'm there. Tested by jsg@, ok drahn@, visa@
2017-04-02printf format strings should be literals. Reminded by clang.Visa Hankala
2017-04-02Drop address conversion cruft.Visa Hankala
2017-04-02Fix tcp stats reportingJeremie Courreges-Anglas
Return the sum of per-cpu counters instead of the current cpu's counters. Brainfart on my side. Analysis and fix by Andrei-Marius Radu.
2017-04-02Bring back the wait instruction into the idle loop, but only on octeon.Visa Hankala
This lets an idle SoC run a bit cooler. Tested on CN5020, CN6120 and CN7130.
2017-04-02normalize order of arguments to if ()Theo de Raadt
2017-04-02unlock tree, we are now hacking on 6.1-currentTheo de Raadt
2017-03-30correct NBPFILTER #ifdef'sTheo de Raadt
from sthen and others
2017-03-30these free() size choices appear to be wrong. joel has a diff that fixesTheo de Raadt
them, but for release let's be conservative and use 0.