OpenBSD cvs log

created 2022-03-17T16:22:02Z
begin 2022-02-16T00:00:00Z
end 2022-02-23T00:00:00Z
path src/sys
commits 102

date 2022-02-16T01:25:45Z
author dlg
files src/sys/conf/files log diff annotate
src/sys/net/if_vxlan.c log diff annotate
src/sys/netinet/udp_usrreq.c log diff annotate
message rewrite vxlan to better fit the current kernel infrastructure.

the big change is removing the integration with and reliance on
bridge(4) for learning vxlan endpoints. we have the etherbridge
layer now (which is used by veb, nvgre, bpe, etc) so vxlan can
operate independently of bridge(4) (or any other driver) while still
dynamically learning about other endpoints.

vxlan now uses the udp socket upcall mechanism to receive packets.
this means it actually creates and binds udp sockets to use rather
adding code in the udp layer for stealing packets from the udp
layer.

i think it's also important to note that this adds loop prevention
to the code. this stops a vxlan interface being used to transmit a
packet that was encapsulated in itself.

i want to clear this out of my tree where it's been sitting for
nearly a year. noone seems too concerned with the change either
way.

ok claudio@

date 2022-02-16T01:45:31Z
author dlg
files src/sys/net/if_vxlan.c log diff annotate
message fill in support for rx prio handling.

date 2022-02-16T02:22:39Z
author dlg
files src/sys/net/if_tun.c log diff annotate
message prevent (re)opening of tun/tap interfaces that are being destroyed.

if an open tun (or tap) device is destroyed via the clone destroy
ioctl (eg, like what ifconfig destroy does), there is a window while
the open device is being revoked on the vfs side that a third thread
can come and open it again. this in turn triggers a kassert in the
ifconfig destroy path where it expects the
device to be closed.

fix this by having tun_dev_open check for the TUN_DEAD flag that
the destroy function sets. this still relies on the kernel lock for
serialisation.

Reported-by: [email protected]
ok visa@

date 2022-02-16T04:25:34Z
author dlg
files src/sys/net/pf_ioctl.c log diff annotate
message check pf rule "set prio" values consistently.

consistently means we do the check in pf_rule_copyin() so both
DIOCADDRULE and DIOCCHANGERULE have the prio values checked. this in
turn prevents invalid prio values getting set on a rule via
DIOCCHANGERULE.

this was caught by a kassert in the ifq priq code firing.

Reported-by: [email protected]
ok sashan@

date 2022-02-16T06:21:18Z
author anton
files src/sys/arch/hppa/gsc/harmony.c log diff annotate
src/sys/arch/luna88k/cbus/nec86.c log diff annotate
src/sys/arch/macppc/dev/aoa.c log diff annotate
src/sys/arch/macppc/dev/awacs.c log diff annotate
src/sys/arch/macppc/dev/daca.c log diff annotate
src/sys/arch/macppc/dev/onyx.c log diff annotate
src/sys/arch/macppc/dev/snapper.c log diff annotate
src/sys/arch/macppc/dev/tumbler.c log diff annotate
src/sys/arch/sparc64/dev/ce4231.c log diff annotate
src/sys/dev/audio.c log diff annotate
src/sys/dev/audio_if.h log diff annotate
src/sys/dev/fdt/graphaudio.c log diff annotate
src/sys/dev/fdt/simpleaudio.c log diff annotate
src/sys/dev/ic/arcofi.c log diff annotate
src/sys/dev/isa/ess.c log diff annotate
src/sys/dev/isa/gus.c log diff annotate
src/sys/dev/isa/pas.c log diff annotate
src/sys/dev/isa/sb.c log diff annotate
src/sys/dev/pci/auacer.c log diff annotate
src/sys/dev/pci/auglx.c log diff annotate
src/sys/dev/pci/auich.c log diff annotate
src/sys/dev/pci/auixp.c log diff annotate
src/sys/dev/pci/autri.c log diff annotate
src/sys/dev/pci/auvia.c log diff annotate
src/sys/dev/pci/azalia.c log diff annotate
src/sys/dev/pci/cmpci.c log diff annotate
message Make room for a cookie argument passed to audio_attach_mi(). Currently
unused but intended to be used to correlate audio and wskbd devices.

ok ratchov@

date 2022-02-16T06:21:19Z
author anton
files src/sys/dev/pci/cs4280.c log diff annotate
src/sys/dev/pci/cs4281.c log diff annotate
src/sys/dev/pci/eap.c log diff annotate
src/sys/dev/pci/emuxki.c log diff annotate
src/sys/dev/pci/envy.c log diff annotate
src/sys/dev/pci/esa.c log diff annotate
src/sys/dev/pci/eso.c log diff annotate
src/sys/dev/pci/fms.c log diff annotate
src/sys/dev/pci/maestro.c log diff annotate
src/sys/dev/pci/neo.c log diff annotate
src/sys/dev/pci/sv.c log diff annotate
src/sys/dev/pci/yds.c log diff annotate
src/sys/dev/sbus/cs4231.c log diff annotate
src/sys/dev/tc/bba.c log diff annotate
src/sys/dev/usb/uaudio.c log diff annotate
src/sys/dev/usb/utvfu.c log diff annotate
message Make room for a cookie argument passed to audio_attach_mi(). Currently
unused but intended to be used to correlate audio and wskbd devices.

ok ratchov@

date 2022-02-16T06:23:42Z
author anton
files src/sys/dev/audio.c log diff annotate
src/sys/dev/usb/uaudio.c log diff annotate
src/sys/dev/usb/ucc.c log diff annotate
src/sys/dev/usb/usb_subr.c log diff annotate
src/sys/dev/usb/usbdi.h log diff annotate
src/sys/dev/wscons/wskbd.c log diff annotate
src/sys/dev/wscons/wskbdvar.h log diff annotate
message Currently, wskbd_set_mixervolume() only adjusts the volume of the first
attached audio device, i.e. audio0. This approach does not work well
while using additional audio devices equipped with physical volume keys
since those would only affect the volume of audio0.

Instead, correlate audio and ucc devices attached over USB in order to
adjust the volume of the correct audio device. This is done by passing a
cookie from the common point of attachment which is later used to
correlate the audio and wskbd device.

The same approach could be adopted for audio and wskbd devices attaching
on a different bus. Keep in mind that it's of importance to make use of
and increment the same global cookie identifier to avoid collisions.

Makes the volume keys on my Logitech G435 Headset do the right thing.

ok ratchov@

date 2022-02-16T06:41:27Z
author deraadt
files src/sys/arch/arm64/dev/apm.c log diff annotate
src/sys/arch/macppc/dev/apm.c log diff annotate
src/sys/dev/acpi/acpi_x86.c log diff annotate
src/sys/kern/subr_suspend.c log diff annotate
src/sys/sys/device.h log diff annotate
message change MD gosleep() and sleep_finish() to return int, the MI code will be
able to react to this suitably.

date 2022-02-16T06:47:28Z
author deraadt
files src/sys/kern/subr_suspend.c log diff annotate
message If the lid is closed, suspend_finish() now returns EAGAIN, so go to the top
and restart the suspend all over again. This was previously done by issuing
a task to the acpi thread, but this is simpler.
(I want to try to duplicate these tests earlier in the resume path...)

date 2022-02-16T07:13:09Z
author deraadt
files src/sys/dev/acpi/acpi_x86.c log diff annotate
message if the lids indicate we are not supposed to wakeup, return EAGAIN rather
than scheduling an acpi thread

date 2022-02-16T08:01:32Z
author jsg
files src/sys/kern/kern_clock.c log diff annotate
message unifdef PROC_PC
ok guenther@ rob@

date 2022-02-16T08:46:11Z
author sashan
files src/sys/net/pf_lb.c log diff annotate
message nat-to round-robin without a pool should fallback to POOL_NONE
bug reported by giovanni@

OK giovanni@

date 2022-02-16T13:07:36Z
author visa
files src/sys/arch/riscv64/conf/GENERIC log diff annotate
src/sys/arch/riscv64/conf/RAMDISK log diff annotate
src/sys/arch/riscv64/conf/files.riscv64 log diff annotate
src/sys/arch/riscv64/dev/mpfiic.c log diff annotate
message Add mpfiic(4), a driver for the PolarFire SoC MSS I2C controller.

OK kettenis@

date 2022-02-16T13:16:10Z
author visa
files src/sys/kern/uipc_socket.c log diff annotate
message Reduce code duplication in socket event filters.

OK mpi@

date 2022-02-16T13:18:08Z
author visa
files src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
message Reduce code duplication in FIFO event filters.

OK mpi@

date 2022-02-16T13:19:33Z
author visa
files src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
message Add missing FILTEROP_MPSAFE flag to fifoexcept_filtops.

OK mpi@

date 2022-02-16T16:44:17Z
author deraadt
files src/sys/kern/subr_suspend.c log diff annotate
message return unique errors (I chose some errno values.. ) for the various
failure modes. Also, pack the code a little bit, easier to read.

date 2022-02-16T20:20:36Z
author deraadt
files src/sys/dev/acpi/acpi_x86.c log diff annotate
message rev 1.4 was wrong to put potential IO operations after _GTS.
re-creating the original (2 weeks ago) order of last-minute-disk-parking
needs a different approach, hmm.

date 2022-02-17T00:11:21Z
author jsg
files src/sys/dev/acpi/acpi_x86.c log diff annotate
message reduce includes
ok deraadt@

date 2022-02-17T00:21:40Z
author jsg
files src/sys/dev/acpi/acpi.c log diff annotate
message reduce includes

date 2022-02-17T00:47:47Z
author jsg
files src/sys/dev/acpi/acpi_x86.c log diff annotate
message remove unused defines

date 2022-02-17T03:12:34Z
author rob
files src/sys/kern/vfs_syscalls.c log diff annotate
message Writes to the ps_flags field of struct process should be atomic.
Ok deraadt@ guenther@

date 2022-02-17T05:17:30Z
author jsg
files src/sys/dev/pci/drm/drm_panel_orientation_quirks.c log diff annotate
message drm: panel-orientation-quirks: Add quirk for the 1Netbook OneXPlayer

From Raymond Jay Golo
9696125fb3ca1660d28a0aef53bcaa1a20a02bdb in linux 5.15.y/5.15.24
d3cbc6e323c9299d10c8d2e4127c77c7d05d07b1 in mainline linux

date 2022-02-17T05:20:32Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn301/dcn301_resource.c log diff annotate
message drm/amd/display: Correct MPC split policy for DCN301

From Zhan Liu
a277422a8d975966de1bd3351cc6cfd8718a166d in linux 5.15.y/5.15.24
ac46d93235074a6c5d280d35771c23fd8620e7d9 in mainline linux

date 2022-02-17T05:23:06Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn20/dcn20_resource.c log diff annotate
message drm/amdgpu/display: change pipe policy for DCN 2.0

From Alex Deucher
c1af59449d80a4f642dbe64fd8be7c1ce86fc2cf in linux 5.15.y/5.15.24
6e7545ddb13416fd200e0b91c0acfd0404e2e27b in mainline linux

date 2022-02-17T05:26:18Z
author jsg
files src/sys/dev/pci/drm/i915/intel_pm.c log diff annotate
message drm/i915: Allow !join_mbus cases for adlp+ dbuf configuration

From Ville Syrjala
8d6a31b83cddd5c3429def795ba7ec8fdaf4541d in linux 5.15.y/5.15.24
8fd5a26e43859547790a7995494c952b708ab3b5 in mainline linux

date 2022-02-17T05:29:41Z
author jsg
files src/sys/dev/pci/drm/i915/intel_pm.c log diff annotate
message drm/i915: Populate pipe dbuf slices more accurately during readout

From Ville Syrjala
ac14a51c31693e11947f9b4e36c84558368fe089 in linux 5.15.y/5.15.24
85bb289215cf37e05e9581b39b114db1293f9ecd in mainline linux

date 2022-02-17T05:32:09Z
author jsg
files src/sys/dev/pci/drm/amd/pm/amdgpu_pm.c log diff annotate
message drm/amd/pm: fix hwmon node of power1_label create issue

From Yang Wang
dcd1c46634697d200c7012d5047302355dce098f in linux 5.15.y/5.15.24
a8b1e8636a3252daa729762b2e3cc9015cc91a5c in mainline linux

date 2022-02-17T17:17:09Z
author deraadt
files src/sys/dev/acpi/acpi_x86.c log diff annotate
message If S4 is not available, use S5 for the ACPI-transitions in hibernate support.
A bunch of servers work now.
Really close to a 3-line diff...
ok kettenis

date 2022-02-17T17:17:11Z
author deraadt
files src/sys/arch/amd64/amd64/acpi_machdep.c log diff annotate
src/sys/arch/i386/i386/acpi_machdep.c log diff annotate
message If S4 is not available, use S5 for the ACPI-transitions in hibernate support.
A bunch of servers work now.
Really close to a 3-line diff...
ok kettenis

date 2022-02-17T17:22:22Z
author deraadt
files src/sys/arch/amd64/amd64/acpi_machdep.c log diff annotate
message remove unused include files

date 2022-02-17T17:22:24Z
author deraadt
files src/sys/arch/i386/i386/acpi_machdep.c log diff annotate
message remove unused include files

date 2022-02-18T00:46:42Z
author dlg
files src/sys/net/if_vxlan.c log diff annotate
message only unwind multicast when in learning mode.

found by bluhm@ when he ran the regress tests.

date 2022-02-18T01:27:39Z
author dlg
files src/sys/net/if_vxlan.c log diff annotate
message fix inverted check of running when changing tunnel rdomain.

you should only be able to change the tunnel rdomain when the
interface is down. i was accidentally make sure you could only
change the rdomain when the interface was up.

date 2022-02-18T02:21:24Z
author mlarkin
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c log diff annotate
message Extra whitespace removal. No code change.

ok jsg@

date 2022-02-18T03:22:27Z
author dlg
files src/sys/net/if_vxlan.c log diff annotate
message dont bother running ethernet multicast ioctl handlers.

while here turn ENETRESET into 0 in the ioctl path. there's no
hardware to reset.

date 2022-02-18T09:04:38Z
author kettenis
files src/sys/uvm/uvm_glue.c log diff annotate
src/sys/uvm/uvm_pager.c log diff annotate
message Convert KVA allocation to km_alloc(9).

ok mpi@

date 2022-02-18T10:51:43Z
author visa
files src/sys/arch/riscv64/conf/GENERIC log diff annotate
src/sys/arch/riscv64/conf/RAMDISK log diff annotate
src/sys/arch/riscv64/conf/files.riscv64 log diff annotate
src/sys/arch/riscv64/dev/mpfgpio.c log diff annotate
src/sys/arch/riscv64/riscv64/conf.c log diff annotate
message Add mpfgpio(4), a driver for the PolarFire SoC MSS GPIO controller.

Feedback and OK kettenis@

date 2022-02-19T23:56:18Z
author deraadt
files src/sys/kern/kern_synch.c log diff annotate
message tsleep() prints a stack trace when cold==2. The suspend/resume code has
phases where sleeps are not allowed, and this used to discover it.
msleep() needs the same check.

date 2022-02-19T23:57:09Z
author deraadt
files src/sys/kern/subr_hibernate.c log diff annotate
message The suspend/resume code sleeps-not-allowed phases are protected with
cold=2. Use the same strategy in a a similar phase during hibernate.

date 2022-02-20T17:11:05Z
author deraadt
files src/sys/arch/macppc/stand/tbxidata/bsd.tbxi log diff annotate
src/sys/conf/newvers.sh log diff annotate
src/sys/sys/param.h log diff annotate
message move to 7.1-beta

date 2022-02-20T19:25:57Z
author kettenis
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/files.arm64 log diff annotate
src/sys/arch/arm64/dev/aplcpu.c log diff annotate
message Add aplcpu(4), a driver to control the CPU performance levels on Apple SoCs.

ok gnezdo@

date 2022-02-20T19:59:29Z
author tb
files src/sys/net/if_wg.c log diff annotate
message Add missing newlines in two DPRINTFs (from Matthew Martin)
Tweak capitalization (from jmc)

date 2022-02-20T20:54:29Z
author sthen
files src/sys/conf/newvers.sh log diff annotate
message we should be 7.1-beta not 7.1-current

date 2022-02-21T05:19:07Z
author dlg
files src/sys/net/if_vxlan.c log diff annotate
message in input, clear the address union before putting an ipv4 address in it.

the whole vxlan address is used for lookups in the RB tree, so any
garbage on the stack where the address sits could confuse the lookup.
it looks like i was lucky before, but if you receive vxlan over
ipsec you are less lucky.

found by and fix tested by jason tubnor.

date 2022-02-21T05:54:35Z
author jsg
files src/sys/arch/armv7/imx/imxtemp.c log diff annotate
message tempterature -> temperature

date 2022-02-21T07:15:42Z
author jsg
files src/sys/dev/pci/if_skreg.h log diff annotate
message receice -> receive

date 2022-02-21T08:16:08Z
author jsg
files src/sys/arch/amd64/amd64/powernow-k8.c log diff annotate
message opearting -> operating

date 2022-02-21T08:27:51Z
author jsg
files src/sys/dev/tc/if_le_tc.c log diff annotate
message onbard -> onboard

date 2022-02-21T08:50:18Z
author jsg
files src/sys/dev/pci/auixp.c log diff annotate
message splitted -> split, necesssary -> necessary

date 2022-02-21T09:57:18Z
author jsg
files src/sys/arch/i386/i386/pmap.c log diff annotate
message mappiing -> mapping

date 2022-02-21T10:06:35Z
author jsg
files src/sys/arch/i386/include/specialreg.h log diff annotate
message lenghy -> lengthy

date 2022-02-21T10:20:51Z
author jsg
files src/sys/arch/sparc64/dev/iommureg.h log diff annotate
message iommmu -> iommu

date 2022-02-21T10:24:28Z
author mpi
files src/sys/arch/i386/i386/acpi_machdep.c log diff annotate
src/sys/arch/i386/i386/amdmsr.c log diff annotate
src/sys/arch/i386/i386/apm.c log diff annotate
src/sys/arch/i386/i386/bios.c log diff annotate
src/sys/arch/i386/i386/cpu.c log diff annotate
src/sys/arch/i386/i386/esm.c log diff annotate
src/sys/arch/i386/i386/ioapic.c log diff annotate
src/sys/arch/i386/i386/mainbus.c log diff annotate
src/sys/arch/i386/i386/mpbios.c log diff annotate
src/sys/arch/i386/isa/ahc_isa.c log diff annotate
src/sys/arch/i386/isa/joy_isa.c log diff annotate
src/sys/arch/i386/isa/joy_isapnp.c log diff annotate
src/sys/arch/i386/isa/lms.c log diff annotate
src/sys/arch/i386/isa/mms.c log diff annotate
src/sys/arch/i386/isa/npx.c log diff annotate
src/sys/arch/i386/pci/elan520.c log diff annotate
src/sys/arch/i386/pci/geodesc.c log diff annotate
src/sys/arch/i386/pci/glxsb.c log diff annotate
src/sys/arch/i386/pci/gscpcib.c log diff annotate
src/sys/arch/i386/pci/gscpm.c log diff annotate
src/sys/arch/i386/pci/ichpcib.c log diff annotate
src/sys/arch/i386/pci/pchb.c log diff annotate
src/sys/arch/i386/pci/pcib.c log diff annotate
src/sys/arch/i386/pci/pcibios.c log diff annotate
message Constify struct cfattach.

date 2022-02-21T10:26:20Z
author jsg
files src/sys/uvm/uvm_addr.c log diff annotate
message interting -> inserting

date 2022-02-21T10:38:50Z
author jsg
files src/sys/arch/macppc/dev/openpic.c log diff annotate
message interrunts -> interrupts

date 2022-02-21T10:44:58Z
author jsg
files src/sys/arch/sh/include/cpu.h log diff annotate
message instructinos -> instructions

date 2022-02-21T10:51:36Z
author jsg
files src/sys/arch/sh/sh/sh_machdep.c log diff annotate
message initiailze -> initialize

date 2022-02-21T10:57:58Z
author jsg
files src/sys/arch/armv7/omap/dmtimer.c log diff annotate
src/sys/arch/armv7/omap/gptimer.c log diff annotate
message initializion -> initialization

date 2022-02-21T11:03:39Z
author mpi
files src/sys/arch/amd64/amd64/acpi_machdep.c log diff annotate
src/sys/arch/amd64/amd64/bios.c log diff annotate
src/sys/arch/amd64/amd64/cpu.c log diff annotate
src/sys/arch/amd64/amd64/ioapic.c log diff annotate
src/sys/arch/amd64/amd64/mainbus.c log diff annotate
src/sys/arch/amd64/amd64/mpbios.c log diff annotate
src/sys/arch/amd64/pci/aapic.c log diff annotate
src/sys/arch/amd64/pci/acpipci.c log diff annotate
src/sys/arch/amd64/pci/pchb.c log diff annotate
src/sys/arch/amd64/pci/pcib.c log diff annotate
message Constify struct cfattach.

date 2022-02-21T11:09:52Z
author jsg
files src/sys/arch/sparc64/dev/psycho.c log diff annotate
message independednt -> independent, let's -> lets

date 2022-02-21T11:15:09Z
author jsg
files src/sys/arch/powerpc64/dev/phb.c log diff annotate
message implenent -> implement

date 2022-02-21T11:20:34Z
author jsg
files src/sys/dev/pci/vmwpvs.c log diff annotate
message ignorint -> ignoring

date 2022-02-21T11:43:02Z
author jsg
files src/sys/netinet6/raw_ip6.c log diff annotate
message futther -> further

date 2022-02-21T12:09:15Z
author jsg
files src/sys/kern/uipc_socket2.c log diff annotate
message expliclitly -> explicitly

date 2022-02-21T12:16:55Z
author jsg
files src/sys/arch/sh/include/mmu.h log diff annotate
message entris -> entries

date 2022-02-21T12:18:54Z
author jsg
files src/sys/dev/pci/bktr/bktr_card.c log diff annotate
message entried -> entries

date 2022-02-21T12:22:21Z
author jsg
files src/sys/arch/hppa/include/exec.h log diff annotate
message enries -> entries

date 2022-02-21T12:36:21Z
author jsg
files src/sys/dev/pci/if_ixgb.c log diff annotate
message dmammem -> dmamem

date 2022-02-21T12:41:39Z
author jsg
files src/sys/dev/usb/umcs.h log diff annotate
message diviedr -> divider

date 2022-02-21T12:46:59Z
author jsg
files src/sys/arch/loongson/dev/voyager.c log diff annotate
message disatcher -> dispatcher

date 2022-02-21T12:53:39Z
author jsg
files src/sys/arch/i386/isa/ahc_isa.c log diff annotate
message differenent -> different

date 2022-02-21T13:32:45Z
author jsg
files src/sys/arch/arm/include/vfp.h log diff annotate
message cululative -> cumulative

date 2022-02-21T13:51:04Z
author jsg
files src/sys/kern/sysv_msg.c log diff annotate
message consisitent -> consistent

date 2022-02-21T14:16:49Z
author jsg
files src/sys/kern/subr_witness.c log diff annotate
message anscestors -> ancestors

date 2022-02-21T14:21:58Z
author jsg
files src/sys/dev/usb/uaudio.c log diff annotate
message ambigus -> ambiguous

date 2022-02-21T14:26:19Z
author jsg
files src/sys/arch/i386/include/pcb.h log diff annotate
message aligend -> aligned

date 2022-02-21T16:08:36Z
author kn
files src/sys/uvm/uvm_object.c log diff annotate
message Grab vmobjlocks with RW_DUPOK in vm_obj_wire() to silence WITNESS

The drm subsystem implements graphics buffers as uvm objects backed by
anonymous memory, thus drm locks and aobj locks share the same "vmobjlock"
type.

uvm_obj_wire() is only called from sys/dev/pci/drm/, so instead of changing
drm's lock init/alloc routines to mark allow duplicate locks in general,
enter uvm's vmobjlock with RW_DUPOK in this function to allow duplicate
lock types per thread in this specific call path alone.

Fixes the following WITNESS report when booting/starting X (as seen already
in other unrelated bugs@ reports):

wsdisplay0: screen 1-5 added (std, vt100 emulation)
witness: acquiring duplicate lock of same type: "&uobj->vmobjlock"
1st uobjlk
2nd uobjlk
Starting stack trace...
witness_checkorder(fffffd83b625f9b0,9,0) at witness_checkorder+0x8ac
rw_enter(fffffd83b625f9a0,1) at rw_enter+0x68
uvm_obj_wire(fffffd843c39e948,0,40000,ffff800033b70428) at uvm_obj_wire+0x46
shmem_get_pages(ffff800008008500) at shmem_get_pages+0xb8
__i915_gem_object_get_pages(ffff800008008500) at __i915_gem_object_get_pages+0x6d
i915_gem_fault(ffff800008008500,ffff800033b707c0,10009b000,a43d6b1c000,ffff800033b70740,1,35ba896911df1241,ffff8000000aa078,ffff8000000aa178) at i915_gem_fault+0x203
drm_fault(ffff800033b707c0,a43d6b1c000,ffff800033b70740,1,0,0,7eca45006f70ee0,ffff800033b707c0) at drm_fault+0x156
uvm_fault(fffffd843a7cf480,a43d6b1c000,0,2) at uvm_fault+0x179
upageflttrap(ffff800033b70920,a43d6b1c000) at upageflttrap+0x62
usertrap(ffff800033b70920) at usertrap+0x129
recall_trap() at recall_trap+0x8
end of kernel
end trace frame: 0x7f7ffffdc7c0, count: 246
End of stack trace.

Input kettenis
OK mpi

date 2022-02-21T19:15:58Z
author kettenis
files src/sys/arch/arm/arm/pmap7.c log diff annotate
src/sys/arch/arm/arm/vm_machdep.c log diff annotate
message Convert KVA allocation to km_alloc(9).

ok mpi@

date 2022-02-21T19:17:51Z
author kettenis
files src/sys/arch/powerpc/powerpc/vm_machdep.c log diff annotate
message Convert KVA allocation to km_alloc(9).

ok gkoehler@

date 2022-02-21T19:18:52Z
author kettenis
files src/sys/arch/i386/i386/vm_machdep.c log diff annotate
message Convert KVA allocation to km_alloc(9).

ok mpi@

date 2022-02-21T19:22:21Z
author kettenis
files src/sys/arch/alpha/alpha/vm_machdep.c log diff annotate
src/sys/arch/m88k/m88k/vm_machdep.c log diff annotate
message Convert KVA allocation to km_alloc(9).

ok mpi@

date 2022-02-22T01:01:02Z
author guenther
files src/sys/sys/socket.h log diff annotate
message pfctlinput() is already declared in <sys/protosw.h>, which is
more specific and appropriate, so delete it here

ok gnezdo@ deraadt@ jsg@ mpi@ millert@

date 2022-02-22T01:02:57Z
author guenther
files src/sys/netinet6/ip6protosw.h log diff annotate
src/sys/sys/protosw.h log diff annotate
message Move declarations of ip6_protox[] and inet6sw[] to <sys/protosw.h>
where the IPv4 versions have been forever

ok gnezdo@ deraadt@ jsg@ mpi@ millert@

date 2022-02-22T01:15:01Z
author guenther
files src/sys/arch/macppc/dev/if_mc.c log diff annotate
src/sys/dev/ic/dc.c log diff annotate
src/sys/dev/ic/lemac.c log diff annotate
src/sys/dev/ic/xl.c log diff annotate
src/sys/dev/isa/if_ie.c log diff annotate
src/sys/dev/pci/if_dc_pci.c log diff annotate
src/sys/dev/pci/if_de.c log diff annotate
src/sys/dev/pci/if_sis.c log diff annotate
src/sys/dev/pci/if_ste.c log diff annotate
src/sys/dev/pci/if_xl_pci.c log diff annotate
src/sys/kern/init_main.c log diff annotate
src/sys/kern/kern_event.c log diff annotate
src/sys/kern/uipc_mbuf.c log diff annotate
message Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>

net/if_pppx.c pointed out by jsg@
ok gnezdo@ deraadt@ jsg@ mpi@ millert@

date 2022-02-22T01:15:02Z
author guenther
files src/sys/net/if_ethersubr.c log diff annotate
src/sys/net/if_pppx.c log diff annotate
src/sys/net/if_tun.c log diff annotate
src/sys/net/if_wg.c log diff annotate
src/sys/net/route.c log diff annotate
src/sys/netinet/ip_spd.c log diff annotate
src/sys/netinet/tcp_debug.c log diff annotate
src/sys/netinet6/dest6.c log diff annotate
src/sys/netinet6/frag6.c log diff annotate
src/sys/netinet6/icmp6.c log diff annotate
src/sys/netinet6/in6_src.c log diff annotate
src/sys/netinet6/ip6_forward.c log diff annotate
src/sys/netinet6/nd6.c log diff annotate
src/sys/netinet6/udp6_output.c log diff annotate
src/sys/netmpls/mpls_proto.c log diff annotate
src/sys/netmpls/mpls_raw.c log diff annotate
src/sys/nfs/nfs_socket.c log diff annotate
src/sys/uvm/uvm_swap.c log diff annotate
message Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>

net/if_pppx.c pointed out by jsg@
ok gnezdo@ deraadt@ jsg@ mpi@ millert@

date 2022-02-22T01:35:40Z
author guenther
files src/sys/netinet/ip_input.c log diff annotate
src/sys/netinet/ipsec_input.c log diff annotate
message Delete unnecessary #includes of <netinet6/ip6protosw.h>: some never
needed it and some no longer need it after moving the externs from
there to <sys/protosw.h>

ok jsg@

date 2022-02-22T01:35:41Z
author guenther
files src/sys/netinet6/in6_proto.c log diff annotate
src/sys/netinet6/ip6_input.c log diff annotate
src/sys/netinet6/ip6_output.c log diff annotate
src/sys/netinet6/udp6_output.c log diff annotate
message Delete unnecessary #includes of <netinet6/ip6protosw.h>: some never
needed it and some no longer need it after moving the externs from
there to <sys/protosw.h>

ok jsg@

date 2022-02-22T03:34:51Z
author deraadt
files src/sys/sys/sysctl.h log diff annotate
message The FILL_KPROC() macro should be useable in situations where sys/param.h
hasn't been included, so the use of MIN() is not legit, and a local
version is required.

date 2022-02-22T07:34:06Z
author visa
files src/sys/dev/audio.c log diff annotate
message Make audio(4) event filters MP-safe

Add f_modify and f_process callbacks, and initialize the knote lists
to use audio_lock. This makes audio_lock cover the device's knote
processing.

OK mpi@

date 2022-02-22T07:46:04Z
author visa
files src/sys/arch/riscv64/riscv64/db_trace.c log diff annotate
message ddb: Improve stack unwinding on riscv64

Add logic to navigate across trapframes. Stop unwinding if the frame
pointer is clearly bad. Adjust output, and tweak details.

OK miod@ kettenis@

date 2022-02-22T07:47:46Z
author visa
files src/sys/arch/riscv64/riscv64/cpuswitch.S log diff annotate
src/sys/arch/riscv64/riscv64/vm_machdep.c log diff annotate
message Clear frame pointer in cpu_fork() on riscv64

This ensures the chain of call frames is terminated properly, preventing
errors when unwinding kernel stacks.

OK miod@ kettenis@

date 2022-02-22T13:34:23Z
author visa
files src/sys/arch/powerpc64/dev/ipmi_opal.c log diff annotate
src/sys/arch/powerpc64/dev/kexec.c log diff annotate
src/sys/arch/riscv64/riscv64/syscall.c log diff annotate
message Remove extra ;

No functional change.

date 2022-02-22T16:58:08Z
author deraadt
files src/sys/sys/syslimits.h log diff annotate
message Add _MAXCOMLEN to syslimits, it is 24, and includes the NUL. Following
commits will change sys/param.h MAXCOMLEN, sys/sysctl.h KI_MAXCOMLEN,
sys/acct.h ac_comm[], dev/ic/dtvar.h DTMAXCOMLEN to use this, and also
adapt most to the included NUL correctly. This will allow us to remove
sys/param.h include from userland base.
sys/syslimits.h is chosen as the best place for this define because it
has very small namespace which is already pulled in often.
ok millert

date 2022-02-22T17:04:29Z
author deraadt
files src/sys/sys/param.h log diff annotate
message Define MAXCOMLEN in terms of _MAXCOMLEN (-1, because MAXCOMLEN does not
have the terminating NUL). In the near future, fewer programs will use
this yucky non-string, some kernel:userland interfaces will to change to
pass a proper string.
ok millert

date 2022-02-22T17:05:51Z
author deraadt
files src/sys/sys/sysctl.h log diff annotate
message sysctl already passed the commandname as a 24-byte string KI_MAXCOMLEN
because it was padded. Define it in terms of _MAXCOMLEN from syslimits.h
ok millert

date 2022-02-22T17:14:13Z
author deraadt
files src/sys/sys/core.h log diff annotate
message Start using new _MAXCOMLEN (a proper string expanded to 24 bytes
including the NUL), in all internal interafaces, and expose this
in ktrace, core, or proc.h visibility.
ok millert

date 2022-02-22T17:14:14Z
author deraadt
files src/sys/kern/kern_exec.c log diff annotate
src/sys/kern/kern_ktrace.c log diff annotate
src/sys/sys/ktrace.h log diff annotate
src/sys/sys/proc.h log diff annotate
message Start using new _MAXCOMLEN (a proper string expanded to 24 bytes
including the NUL), in all internal interafaces, and expose this
in ktrace, core, or proc.h visibility.
ok millert

date 2022-02-22T17:22:28Z
author deraadt
files src/sys/sys/acct.h log diff annotate
message Since other exported commandnames were increased to 24 and graduated into
proper strings, adapt struct acct's ac_comm similarily. While here increase
ac_mem to 32-bits, increase ac_flag from 8 to 32 bits for future extensions,
add ac_pid for forensics, and reorder the structure to avoid compiler pads.
More work remains in the sa(8) command to use ac_pid better.
This is a flag day for the acct file format, new/old files/tools are incompatible.
ok bluhm millert

date 2022-02-22T17:22:29Z
author deraadt
files src/sys/kern/kern_acct.c log diff annotate
message Since other exported commandnames were increased to 24 and graduated into
proper strings, adapt struct acct's ac_comm similarily. While here increase
ac_mem to 32-bits, increase ac_flag from 8 to 32 bits for future extensions,
add ac_pid for forensics, and reorder the structure to avoid compiler pads.
More work remains in the sa(8) command to use ac_pid better.
This is a flag day for the acct file format, new/old files/tools are incompatible.
ok bluhm millert

date 2022-02-22T17:26:04Z
author deraadt
files src/sys/dev/dt/dt_dev.c log diff annotate
src/sys/dev/dt/dtvar.h log diff annotate
message Since other exported commandnames were increased to 24 and graduated into
proper strings, adapt dt's exported string in the same way.
Old/new files/tools will not work the same way.
That this interface needs to also change was pointed out by jsg

date 2022-02-22T20:37:19Z
author kettenis
files src/sys/arch/arm64/dev/aplsmc.c log diff annotate
message Fix thinko in construction of SMC key for the targeted GPIO pin.

visa@