summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2019-04-28the bufcachepercent=80 experiment has exposed a few problems...Theo de Raadt
2019-04-28Make sure only "primary" clients can become master.Mark Kettenis
ok jsg@
2019-04-28add WITNESS support to barriers modelled on the timeout stuff visa did.David Gwynne
if a taskq takes a lock, and something holding that lock calls taskq_barrier, there's a potential deadlock. detect this as a lock order problem when witness is enable. task_del conditionally followed by taskq_barrier is a common pattern, so add a taskq_del_barrier wrapper for it that unconditionally checks for the deadlock, like timeout_del_barrier. ok visa@
2019-04-27drm/ttm: fix out-of-bounds read in ttm_put_pages() v2Jonathan Gray
From Christian Koenig 96800ba9e565ab752774cd88328f96aed28a1436 in linux 4.19.y/4.19.37 a66477b0efe511d98dde3e4aaeb189790e6f0a39 in mainline linux
2019-04-27fix up some rxprio handling while hereDavid Gwynne
we should swap the value off the wire for 802.1P, not the rxhprio config value. try and avoid toctou issues by copying the sc_rxprio value to a local.
2019-04-27don't increment noproto on the parent interface when there's no childDavid Gwynne
it's not atomic is the main reason. this simplifies leaving the function too.
2019-04-27use unsigned int, not u_int, and uintXX_t, not u_intXX_tDavid Gwynne
2019-04-27rename sc_prio to sc_txprioDavid Gwynne
2019-04-27remove sc_proto, it isn't used.David Gwynne
2019-04-27rename softc members so theyre prefixed with sc.David Gwynne
makes vlan more consistent with the rest of the tree, but no functional change.
2019-04-27back out, this isn't part of a vlan change.David Gwynne
2019-04-27this wasnt meant to be committed, back out for now.David Gwynne
2019-04-27get rid of ifv_linkmib and a bunch of useless macrosDavid Gwynne
2019-04-27fix some whitespace.David Gwynne
2019-04-27call vlan_softc variables sc, not ifv. no functional change.David Gwynne
2019-04-27whitespace tweaks. no functional change.David Gwynne
2019-04-27rename struct ifvlan to struct vlan_softcDavid Gwynne
this makes it more consistent with the rest of the tree, but has no functional change.
2019-04-27move the struct ifvlan (the vlan softc) definition into if_vlan.c.David Gwynne
nothing needs to see inside it, so it can move. the next steps are to rename it to vlan_softc and all the variables to sc to make the driver move consistent with the rest of the tree. ok visa@ mpi@
2019-04-26Guard against repeated inclusion of <mips64/pte.h>. This fixes drm buildVisa Hankala
on loongson.
2019-04-25disable -Oz compile for SMALL_KERNEL w/ comment whyTheo de Raadt
2019-04-25Add movstrSI12_i4 for linking -Os/-Oz kernels. Sadly however itTheo de Raadt
fails and locks early in boot.
2019-04-25Add a check to tftp_open() that we are actually opening a TFTP device.Christian Weisgerber
When reading a file from a non-TFTP device, clear the bootmac variable to prevent the kernel from going into netboot mode. This allows loading a kernel from a disk device after having booted efiboot from PXE. style tweak and ok kettenis@
2019-04-25Lower the accepted upper bound for bd_rtout to INT_MAX in order toanton
prevent passing negative values to timeout_add(). While here, protect against unsigned wrap around during addition of bd_rdStart and bd_rtout since it could also cause passing negative values to timeout_add(). ok bluhm@ Reported-by: syzbot+6771e3d6d9567b3983aa@syzkaller.appspotmail.com
2019-04-25Since we now have an attachhook, the actual interrupt handler is installedMark Kettenis
late, after we enable interrupts. If the interrupt pin used for inteldrm(4) is shared with another device, we may end up being called before the actual interrup handler is installed resulting in a null-pointer dereference. Fix this by adding an explicit check that the interrupt handler function pointer has been set. ok matthieu@, jsg@
2019-04-25Follow up on jmatthew's suggestion:Kevin Lo
in x_media_change(), return the errno from ieee80211_media_change() and do the error check from x_init(). ok stsp@, jmatthew@, phessler@
2019-04-24Add product id for the USB serial adapter found in Juniper SRX 300.remi
ok deraadt@ phessler@ sthen@
2019-04-24regenremi
2019-04-24New product id for the USB serial adapter found in Juniper SRX 300.remi
ok deraadt@ phessler@ sthen@
2019-04-24implement SIOCGIFSFFPAGE so ifconfig can get transceiver info.Jonathan Matthew
the controller has an i2c read operation that's almost exactly what we want, except it only does 64 bytes at a time, so this is pretty simple. ok dlg@
2019-04-24Style tweaks:Philip Guenther
- use NULL for pointer comparisons and assignments. - in level comparisons, use PTP_LEVELS instead of magic constants - eliminate some superfluous variables in pmap_free_ptp() ok mlarkin@
2019-04-24regenDavid Gwynne
2019-04-24add the product id for VMware NVMe interfaceDavid Gwynne
2019-04-23Since ppb(4) properly allocates bus ranges for attached devices,Patrick Wildt
the hotplug code doesn't need to do the same. Also the hotplug code only configured a single bus and did that before the proper allocation ran, so there was no chance for hotplugged ppb(4)s to have children busses. ok kettenis@
2019-04-23syncTheo de Raadt
2019-04-23shorten some stringsTheo de Raadt
2019-04-23Add support for ccp(4) at acpi(4).Mark Kettenis
ok deraadt@
2019-04-23Add support for "pinconf-single" devices and add support for bias andMark Kettenis
drive-strength properties. Needed for various HiSilicon SoCs. ok patrick@, jsg@
2019-04-23Call exit(2) if sigreturn(2) fails on mips64. This is what otherVisa Hankala
architectures do. Noticed by deraadt@
2019-04-23Add a driver for OCTEON two-wire serial interface.Visa Hankala
Not enabled yet because of a conflict with octrtc(4).
2019-04-23Remove file name and line number output from witness(4)Visa Hankala
Reduce code clutter by removing the file name and line number output from witness(4). Typically it is easy enough to locate offending locks using the stack traces that are shown in lock order conflict reports. Tricky cases can be tracked using sysctl kern.witness.locktrace=1 . This patch additionally removes the witness(4) wrapper for mutexes. Now each mutex implementation has to invoke the WITNESS_*() macros in order to utilize the checker. Discussed with and OK dlg@, OK mpi@
2019-04-23give gre and mgre percpu counters tooDavid Gwynne
makes input bytes and packets consistent
2019-04-23enable discard_backing_storage() testJonathan Gray
ok kettenis@
2019-04-23Linux code expects to find struct file in fs.h so include sys/file.hJonathan Gray
there. As sys/file.h does not have an include guard don't include it in drm_linux.c which indirectly includes fs.h via drmP.h.
2019-04-23For raw IPv6 sockets userland may specify an offset where theAlexander Bluhm
checksum field is located. During rip6 input and output make sure that this field is within the packet. The offset my be -1 to disable the feature, otherwise it must be non-negative and aligned. Do a stricter check during setsockopt(2). from FreeBSD; OK claudio@
2019-04-23a first cut at converting some virtual ethernet interfaces to if_vinputDavid Gwynne
this let's input processing bypass ifiqs. there's a performance benefit from this, and it will let me tweak the backpressure detection mechanism that ifiqs use without impacting on a stack of virtual interfaces. ive tested all of these except mpw, which i will end up testing soon anyway.
2019-04-23Copy cache-control bits from U+K to U-K entry in pmap_enter_special()Philip Guenther
in a generic way, correcting the handling of the LAPIC page. ok mlarkin@
2019-04-23regenJonathan Gray
2019-04-23Add more amdgpu device ids.Jonathan Gray
The marketing names in libdrm's amdgpu.ids are based on device id and revision id. A single device id often maps to multiple marketing names but the same codename so stick to codenames here. The marketing names in amdgpu.ids also do not cover all the device ids amdgpu matches on. Use the same codenames as amdgpu. Polaris 20 and Polaris 30 as Polaris 10. Polaris 21 as Polaris 11. Polaris 22 as Vega M.
2019-04-23- Update the comment describing why pci retry timeout needs to be disabledKevin Lo
- Override the default cache line size if it's set to zero from Linux ath9k ok stsp@, jmatthew@
2019-04-22In in_cksum() and in6_cksum() convert types to C99 style and makeAlexander Bluhm
both functions consistent. In in_cksum() panic if len is longer than mbuf, but in in6_cksum() do not panic if off and len match exactly to the end of mbuf. OK claudio@