Age | Commit message (Collapse) | Author |
|
|
|
ok jsg@
|
|
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@
|
|
From Christian Koenig
96800ba9e565ab752774cd88328f96aed28a1436 in linux 4.19.y/4.19.37
a66477b0efe511d98dde3e4aaeb189790e6f0a39 in mainline linux
|
|
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.
|
|
it's not atomic is the main reason. this simplifies leaving the
function too.
|
|
|
|
|
|
|
|
makes vlan more consistent with the rest of the tree, but no
functional change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this makes it more consistent with the rest of the tree, but has
no functional change.
|
|
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@
|
|
on loongson.
|
|
|
|
fails and locks early in boot.
|
|
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@
|
|
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
|
|
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@
|
|
in x_media_change(), return the errno from ieee80211_media_change() and
do the error check from x_init().
ok stsp@, jmatthew@, phessler@
|
|
ok deraadt@ phessler@ sthen@
|
|
|
|
ok deraadt@ phessler@ sthen@
|
|
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@
|
|
- 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@
|
|
|
|
|
|
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@
|
|
|
|
|
|
ok deraadt@
|
|
drive-strength properties. Needed for various HiSilicon SoCs.
ok patrick@, jsg@
|
|
architectures do.
Noticed by deraadt@
|
|
Not enabled yet because of a conflict with octrtc(4).
|
|
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@
|
|
makes input bytes and packets consistent
|
|
ok kettenis@
|
|
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.
|
|
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@
|
|
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.
|
|
in a generic way, correcting the handling of the LAPIC page.
ok mlarkin@
|
|
|
|
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.
|
|
- Override the default cache line size if it's set to zero
from Linux ath9k
ok stsp@, jmatthew@
|
|
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@
|