OpenBSD cvs log

created 2021-10-25T14:04:47Z
begin 2021-10-24T00:00:00Z
end 2021-10-25T00:00:00Z
path src/sys
commits 35

date 2021-10-24T00:02:24Z
author jsg
files src/sys/ddb/db_sym.h log diff annotate
src/sys/kern/kern_exit.c log diff annotate
message use NULL not 0 for pointer values in kern
ok semarie@

date 2021-10-24T00:02:25Z
author jsg
files src/sys/kern/kern_proc.c log diff annotate
src/sys/kern/kern_prot.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
src/sys/kern/kern_sysctl.c log diff annotate
src/sys/kern/kern_tc.c log diff annotate
src/sys/kern/subr_disk.c log diff annotate
src/sys/kern/subr_userconf.c log diff annotate
src/sys/kern/sys_socket.c log diff annotate
src/sys/kern/tty.c log diff annotate
src/sys/kern/tty_pty.c log diff annotate
src/sys/kern/uipc_syscalls.c log diff annotate
src/sys/kern/vfs_biomem.c log diff annotate
src/sys/kern/vfs_lookup.c log diff annotate
src/sys/kern/vfs_subr.c log diff annotate
message use NULL not 0 for pointer values in kern
ok semarie@

date 2021-10-24T06:59:54Z
author visa
files src/sys/kern/sys_pipe.c log diff annotate
message Make pipe event filters MP-safe

Add the missing f_modify and f_process callbacks so that pipe_lock
serializes pipe knote handling. As pipe klist locking is already in
place, pipe event filters should now be MP-safe.

This uses write locking everywhere in the callbacks for simplicity.
There is not much multiple-readers parallelism to utilize.

OK mpi@ anton@

date 2021-10-24T07:02:47Z
author visa
files src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
src/sys/sys/event.h log diff annotate
message Set klist lock for sockets to make socket event filters MP-safe

The filterops instances already provide f_modify and f_process
callbacks with proper internal locking. Locking of socket klists
has been the missing detail for MP-safety.

OK mpi@

date 2021-10-24T09:16:53Z
author deraadt
files src/sys/dev/pv/vioscsi.c log diff annotate
message pretty & normalize the cfdriver decl

date 2021-10-24T09:18:51Z
author deraadt
files src/sys/arch/luna88k/dev/lcd.c log diff annotate
src/sys/arch/luna88k/dev/sio.c log diff annotate
src/sys/arch/luna88k/luna88k/mainbus.c log diff annotate
message extra 0 fields in cfdriver are not needed

date 2021-10-24T09:59:52Z
author patrick
files src/sys/tmpfs/tmpfs_vnops.c log diff annotate
message Prohibit renames of tmpfs mount-points to fix a panic.

From gerhard@

date 2021-10-24T10:26:22Z
author patrick
files src/sys/arch/amd64/amd64/aesni.c log diff annotate
src/sys/arch/amd64/amd64/via.c log diff annotate
src/sys/arch/arm64/arm64/cryptox.c log diff annotate
src/sys/arch/i386/i386/via.c log diff annotate
src/sys/arch/i386/pci/glxsb.c log diff annotate
src/sys/arch/octeon/dev/octcrypto.c log diff annotate
src/sys/crypto/crypto.c log diff annotate
src/sys/crypto/cryptosoft.c log diff annotate
message Stop setting etype in the MD crypto code. So far we have set the etype
and returned the error, which made the MI crypto code set the etype for
a second time. We still have to set etype after calling the MD process
function, as the callers of crypto_invoke() still expect error handling
to be shown through the etype. But at least now all MD crypto code does
not have to worry about that anymore. Once the callers are changed to
not look at etype anymore, we can get rid of it completely.

ok tobhe@

date 2021-10-24T10:58:43Z
author sashan
files src/sys/net/pf_table.c log diff annotate
message let pf_table.c to use standard way to work with lists

OK todd@, mvs@, kn@

date 2021-10-24T11:23:22Z
author mpi
files src/sys/kern/sys_generic.c log diff annotate
src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
message Implement poll(2), select(2), ppoll(2) & pselect(2) on top of kqueue.

The given set of fds are converted to equivalent kevents using EV_SET(2)
and passed to the scanning internals of kevent(2): kqueue_scan().

ktrace(1) will now output the converted kevents on top of the usuals set
bits to be able to find possible error in the convertion.

This switch implies that poll(2) and select(2) will now query underlying
kqfilters instead of the *_poll() routines. An increase in latency is
visible, especially with UDP sockets and NET_LOCK()-contended subsystems
and will be addressed in next steps.

Based on similar work done on MacOS and DragonFlyBSD with inputs from
visa@, millert@, anton@, cheloha@, thanks!

Tested by many, thanks!

ok claudio@, bluhm@

date 2021-10-24T13:46:14Z
author mpi
files src/sys/uvm/uvm_aobj.c log diff annotate
message Shuffle variables around and use KASSERT() instead of panic().

No functionnal change.

Reduce differences with NetBSD, tested by many as part of a larger diff.

date 2021-10-24T14:24:29Z
author bluhm
files src/sys/netinet/ip_ah.c log diff annotate
src/sys/netinet/ip_esp.c log diff annotate
src/sys/netinet/ip_ipcomp.c log diff annotate
message Pass the error of the IPsec callback to the caller. The dropped
counter is handled there.
OK tobhe@

date 2021-10-24T14:50:42Z
author tobhe
files src/sys/crypto/crypto.c log diff annotate
src/sys/crypto/cryptodev.h log diff annotate
src/sys/dev/softraid_crypto.c log diff annotate
src/sys/dev/softraid_raid1c.c log diff annotate
src/sys/netinet/ip_ah.c log diff annotate
src/sys/netinet/ip_esp.c log diff annotate
src/sys/netinet/ip_ipcomp.c log diff annotate
message Remove crp_etype and return errors directly from crypto_invoke()

ok patrick@

date 2021-10-24T14:54:52Z
author patrick
files src/sys/arch/arm64/dev/ampintc.c log diff annotate
message Now that ampintcmsi(4)'s establish function returns a pointer to the
more generic machine intr handle, we need to call intr_barrier() for
it instead.

Panic found by bluhm@
ok kettenis@

date 2021-10-24T15:23:52Z
author mpi
files src/sys/uvm/uvm_km.c log diff annotate
src/sys/uvm/uvm_map.c log diff annotate
message Move pmap_{,k}remove() inside uvm_km_pgremove{,_intrsafe}().

Reduce differences with NetBSD, tested by many as part of a larger diff.

ok kettenis@

date 2021-10-24T15:29:10Z
author visa
files src/sys/arch/mips64/mips64/trap.c log diff annotate
message Unlock top part of UVM fault handler on mips64.

OK mpi@

date 2021-10-24T15:33:12Z
author patrick
files src/sys/tmpfs/tmpfs_vfsops.c log diff annotate
message Add mount -ur/uw support to tmpfs.

From Pedro Martelletto

date 2021-10-24T15:41:47Z
author patrick
files src/sys/tmpfs/tmpfs_vfsops.c log diff annotate
message A tiny bit of cleanup.

date 2021-10-24T15:47:39Z
author tobhe
files src/sys/netinet/ip_esp.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
message Remove 'struct tdb_crypto' allocations from esp_input() and esp_output().
This was needed to pass arguments to the callback function, but is no longer
necessary after the API makeover.

ok bluhm@

date 2021-10-24T16:02:44Z
author patrick
files src/sys/tmpfs/tmpfs_subr.c log diff annotate
src/sys/tmpfs/tmpfs_vnops.c log diff annotate
message tiny little whitespace fixes

date 2021-10-24T16:57:30Z
author mpi
files src/sys/scsi/cd.c log diff annotate
src/sys/scsi/ch.c log diff annotate
src/sys/scsi/mpath.c log diff annotate
src/sys/scsi/mpath_emc.c log diff annotate
src/sys/scsi/mpath_hds.c log diff annotate
src/sys/scsi/mpath_rdac.c log diff annotate
src/sys/scsi/mpath_sym.c log diff annotate
src/sys/scsi/safte.c log diff annotate
src/sys/scsi/scsiconf.c log diff annotate
src/sys/scsi/sd.c log diff annotate
src/sys/scsi/ses.c log diff annotate
src/sys/scsi/st.c log diff annotate
src/sys/scsi/uk.c log diff annotate
message Constify struct cfattach.

ok visa@ a long time ago, ok krw@

date 2021-10-24T17:05:03Z
author mpi
files src/sys/arch/sparc64/dev/auxio.c log diff annotate
src/sys/arch/sparc64/dev/bbc.c log diff annotate
src/sys/arch/sparc64/dev/beep.c log diff annotate
src/sys/arch/sparc64/dev/beeper.c log diff annotate
src/sys/arch/sparc64/dev/cbus.c log diff annotate
src/sys/arch/sparc64/dev/ce4231.c log diff annotate
src/sys/arch/sparc64/dev/central.c log diff annotate
src/sys/arch/sparc64/dev/clkbrd.c log diff annotate
src/sys/arch/sparc64/dev/cmp.c log diff annotate
src/sys/arch/sparc64/dev/com_ebus.c log diff annotate
src/sys/arch/sparc64/dev/comkbd_ebus.c log diff annotate
src/sys/arch/sparc64/dev/core.c log diff annotate
src/sys/arch/sparc64/dev/creator.c log diff annotate
src/sys/arch/sparc64/dev/ebus.c log diff annotate
src/sys/arch/sparc64/dev/ebus_mainbus.c log diff annotate
src/sys/arch/sparc64/dev/environ.c log diff annotate
src/sys/arch/sparc64/dev/fd.c log diff annotate
src/sys/arch/sparc64/dev/fhc_central.c log diff annotate
src/sys/arch/sparc64/dev/fhc_mainbus.c log diff annotate
src/sys/arch/sparc64/dev/gfb.c log diff annotate
src/sys/arch/sparc64/dev/gfxp.c log diff annotate
src/sys/arch/sparc64/dev/ifb.c log diff annotate
src/sys/arch/sparc64/dev/led.c log diff annotate
src/sys/arch/sparc64/dev/lom.c log diff annotate
src/sys/arch/sparc64/dev/lpt_ebus.c log diff annotate
src/sys/arch/sparc64/dev/machfb.c log diff annotate
src/sys/arch/sparc64/dev/mgiic.c log diff annotate
src/sys/arch/sparc64/dev/pcf8591_envctrl.c log diff annotate
src/sys/arch/sparc64/dev/pcf8591_ofw.c log diff annotate
src/sys/arch/sparc64/dev/pcfiic_ebus.c log diff annotate
src/sys/arch/sparc64/dev/pckbc_ebus.c log diff annotate
message Constify struct cfattach.

ok visa@ a long time ago

date 2021-10-24T17:05:04Z
author mpi
files src/sys/arch/sparc64/dev/pcons.c log diff annotate
src/sys/arch/sparc64/dev/pmc.c log diff annotate
src/sys/arch/sparc64/dev/power.c log diff annotate
src/sys/arch/sparc64/dev/ppm.c log diff annotate
src/sys/arch/sparc64/dev/prtc.c log diff annotate
src/sys/arch/sparc64/dev/psycho.c log diff annotate
src/sys/arch/sparc64/dev/radeonfb.c log diff annotate
src/sys/arch/sparc64/dev/raptor.c log diff annotate
src/sys/arch/sparc64/dev/rtc.c log diff annotate
src/sys/arch/sparc64/dev/sab.c log diff annotate
src/sys/arch/sparc64/dev/sbbc.c log diff annotate
src/sys/arch/sparc64/dev/sbus.c log diff annotate
src/sys/arch/sparc64/dev/ssm.c log diff annotate
src/sys/arch/sparc64/dev/stp_sbus.c log diff annotate
src/sys/arch/sparc64/dev/tda.c log diff annotate
src/sys/arch/sparc64/dev/upa.c log diff annotate
src/sys/arch/sparc64/dev/uperf_ebus.c log diff annotate
src/sys/arch/sparc64/dev/vbus.c log diff annotate
src/sys/arch/sparc64/dev/vcc.c log diff annotate
src/sys/arch/sparc64/dev/vcctty.c log diff annotate
src/sys/arch/sparc64/dev/vcons.c log diff annotate
src/sys/arch/sparc64/dev/vds.c log diff annotate
src/sys/arch/sparc64/dev/vdsk.c log diff annotate
src/sys/arch/sparc64/dev/vdsp.c log diff annotate
src/sys/arch/sparc64/dev/vgafb.c log diff annotate
src/sys/arch/sparc64/dev/vldc.c log diff annotate
src/sys/arch/sparc64/dev/vldcp.c log diff annotate
src/sys/arch/sparc64/dev/vnet.c log diff annotate
src/sys/arch/sparc64/dev/vrng.c log diff annotate
src/sys/arch/sparc64/dev/vrtc.c log diff annotate
src/sys/arch/sparc64/dev/vsw.c log diff annotate
src/sys/arch/sparc64/dev/wbsd_ebus.c log diff annotate
src/sys/arch/sparc64/dev/z8530kbd.c log diff annotate
src/sys/arch/sparc64/dev/zs.c log diff annotate
src/sys/arch/sparc64/sparc64/autoconf.c log diff annotate
src/sys/arch/sparc64/sparc64/clock.c log diff annotate
src/sys/arch/sparc64/sparc64/cpu.c log diff annotate
message Constify struct cfattach.

ok visa@ a long time ago

date 2021-10-24T17:08:27Z
author bluhm
files src/sys/netinet/ip_ah.c log diff annotate
src/sys/netinet/ip_esp.c log diff annotate
src/sys/netinet/ip_ipcomp.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
src/sys/netinet/ipsec_input.c log diff annotate
message There are more m_pullup() in IPsec input. Pass down the pointer
to the mbuf to update it globally. At the end it will reach
ip_deliver() which expects a pointer to an mbuf.
OK sashan@

date 2021-10-24T17:20:06Z
author patrick
files src/sys/tmpfs/tmpfs_subr.c log diff annotate
message Some more whitespace cleanup

date 2021-10-24T17:49:19Z
author deraadt
files src/sys/arch/amd64/stand/efi32/exec_i386.c log diff annotate
src/sys/arch/amd64/stand/efi64/exec_i386.c log diff annotate
src/sys/arch/amd64/stand/efiboot/exec_i386.c log diff annotate
src/sys/arch/amd64/stand/libsa/exec_i386.c log diff annotate
src/sys/arch/i386/stand/libsa/exec_i386.c log diff annotate
src/sys/arch/landisk/stand/xxboot/boot1.c log diff annotate
src/sys/arch/sparc64/stand/ofwboot/boot.c log diff annotate
src/sys/lib/libsa/loadfile.c log diff annotate
src/sys/lib/libsa/stand.h log diff annotate
src/sys/lib/libsa/stat.c log diff annotate
src/sys/stand/boot/boot.c log diff annotate
src/sys/stand/boot/cmd.c log diff annotate
message #define open O_* flags in libsa/stand.h, so that bootblocks can use
O_RDONLY rather using 0
ok beck

date 2021-10-24T17:52:26Z
author mpi
files src/sys/dev/fdt/acrtc.c log diff annotate
src/sys/dev/fdt/ahci_fdt.c log diff annotate
src/sys/dev/fdt/amlclock.c log diff annotate
src/sys/dev/fdt/amldwusb.c log diff annotate
src/sys/dev/fdt/amliic.c log diff annotate
src/sys/dev/fdt/amlmmc.c log diff annotate
src/sys/dev/fdt/amlpciephy.c log diff annotate
src/sys/dev/fdt/amlpinctrl.c log diff annotate
src/sys/dev/fdt/amlpwm.c log diff annotate
src/sys/dev/fdt/amlreset.c log diff annotate
src/sys/dev/fdt/amlrng.c log diff annotate
src/sys/dev/fdt/amlsm.c log diff annotate
src/sys/dev/fdt/amltemp.c log diff annotate
src/sys/dev/fdt/amluart.c log diff annotate
src/sys/dev/fdt/amlusbphy.c log diff annotate
src/sys/dev/fdt/axppmic.c log diff annotate
src/sys/dev/fdt/bcm2835_aux.c log diff annotate
src/sys/dev/fdt/bcm2835_dog.c log diff annotate
src/sys/dev/fdt/bcm2835_rng.c log diff annotate
src/sys/dev/fdt/bcm2835_temp.c log diff annotate
src/sys/dev/fdt/ccp_fdt.c log diff annotate
src/sys/dev/fdt/com_fdt.c log diff annotate
src/sys/dev/fdt/dwdog.c log diff annotate
src/sys/dev/fdt/dwmmc.c log diff annotate
src/sys/dev/fdt/dwpcie.c log diff annotate
src/sys/dev/fdt/ehci_fdt.c log diff annotate
src/sys/dev/fdt/exrtc.c log diff annotate
src/sys/dev/fdt/fanpwr.c log diff annotate
src/sys/dev/fdt/fusbtc.c log diff annotate
src/sys/dev/fdt/hiclock.c log diff annotate
src/sys/dev/fdt/hidwusb.c log diff annotate
src/sys/dev/fdt/hireset.c log diff annotate
src/sys/dev/fdt/hitemp.c log diff annotate
src/sys/dev/fdt/if_dwge.c log diff annotate
src/sys/dev/fdt/if_dwxe.c log diff annotate
src/sys/dev/fdt/if_fec.c log diff annotate
src/sys/dev/fdt/if_mvneta.c log diff annotate
src/sys/dev/fdt/imxanatop.c log diff annotate
src/sys/dev/fdt/imxccm.c log diff annotate
src/sys/dev/fdt/imxesdhc.c log diff annotate
src/sys/dev/fdt/imxgpc.c log diff annotate
src/sys/dev/fdt/imxgpio.c log diff annotate
src/sys/dev/fdt/imxiomuxc.c log diff annotate
src/sys/dev/fdt/imxrtc.c log diff annotate
src/sys/dev/fdt/imxspi.c log diff annotate
src/sys/dev/fdt/imxsrc.c log diff annotate
src/sys/dev/fdt/imxtmu.c log diff annotate
src/sys/dev/fdt/imxuart.c log diff annotate
src/sys/dev/fdt/moxtet.c log diff annotate
src/sys/dev/fdt/mvclock.c log diff annotate
src/sys/dev/fdt/mvdog.c log diff annotate
src/sys/dev/fdt/mvgicp.c log diff annotate
src/sys/dev/fdt/mvgpio.c log diff annotate
src/sys/dev/fdt/mvicu.c log diff annotate
src/sys/dev/fdt/mviic.c log diff annotate
src/sys/dev/fdt/mvmdio.c log diff annotate
src/sys/dev/fdt/mvpinctrl.c log diff annotate
src/sys/dev/fdt/mvrng.c log diff annotate
src/sys/dev/fdt/mvrtc.c log diff annotate
src/sys/dev/fdt/mvspi.c log diff annotate
src/sys/dev/fdt/mvtemp.c log diff annotate
src/sys/dev/fdt/mvuart.c log diff annotate
src/sys/dev/fdt/ohci_fdt.c log diff annotate
src/sys/dev/fdt/pinctrl.c log diff annotate
src/sys/dev/fdt/plgpio.c log diff annotate
src/sys/dev/fdt/plrtc.c log diff annotate
src/sys/dev/fdt/pluart_fdt.c log diff annotate
src/sys/dev/fdt/psci.c log diff annotate
src/sys/dev/fdt/pwmbl.c log diff annotate
src/sys/dev/fdt/pwmfan.c log diff annotate
src/sys/dev/fdt/pwmreg.c log diff annotate
src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkdwusb.c log diff annotate
src/sys/dev/fdt/rkemmcphy.c log diff annotate
src/sys/dev/fdt/rkgpio.c log diff annotate
src/sys/dev/fdt/rkgrf.c log diff annotate
src/sys/dev/fdt/rkiic.c log diff annotate
src/sys/dev/fdt/rkpcie.c log diff annotate
src/sys/dev/fdt/rkpinctrl.c log diff annotate
message Constify struct cfattach.

ok visa@ a long time ago, ok patrick@

date 2021-10-24T17:52:27Z
author mpi
files src/sys/arch/armv7/broadcom/bcm2836_intr.c log diff annotate
src/sys/arch/armv7/exynos/crosec.c log diff annotate
src/sys/arch/armv7/exynos/exclock.c log diff annotate
src/sys/arch/armv7/exynos/exdisplay.c log diff annotate
src/sys/arch/armv7/exynos/exdog.c log diff annotate
src/sys/arch/armv7/exynos/exdwusb.c log diff annotate
src/sys/arch/armv7/exynos/exehci.c log diff annotate
src/sys/arch/armv7/exynos/exgpio.c log diff annotate
src/sys/arch/armv7/exynos/exiic.c log diff annotate
src/sys/arch/armv7/exynos/exmct.c log diff annotate
src/sys/arch/armv7/exynos/expower.c log diff annotate
src/sys/arch/armv7/exynos/tps65090.c log diff annotate
src/sys/arch/armv7/imx/imxahci.c log diff annotate
src/sys/arch/armv7/imx/imxtemp.c log diff annotate
src/sys/arch/armv7/marvell/mvacc.c log diff annotate
src/sys/arch/armv7/marvell/mvagc.c log diff annotate
src/sys/arch/armv7/marvell/mvahci.c log diff annotate
src/sys/arch/armv7/marvell/mvmbus.c log diff annotate
src/sys/arch/armv7/marvell/mvmpic.c log diff annotate
src/sys/arch/armv7/marvell/mvpcie.c log diff annotate
src/sys/arch/armv7/marvell/mvpxa.c log diff annotate
src/sys/arch/armv7/marvell/mvsysctrl.c log diff annotate
src/sys/arch/armv7/marvell/mvxhci.c log diff annotate
src/sys/arch/armv7/omap/amdisplay.c log diff annotate
src/sys/arch/armv7/omap/dmtimer.c log diff annotate
src/sys/arch/armv7/omap/edma.c log diff annotate
src/sys/arch/armv7/omap/gptimer.c log diff annotate
src/sys/arch/armv7/omap/if_cpsw.c log diff annotate
src/sys/arch/armv7/omap/intc.c log diff annotate
src/sys/arch/armv7/omap/nxphdmi.c log diff annotate
src/sys/arch/armv7/omap/omap.c log diff annotate
src/sys/arch/armv7/omap/omapid.c log diff annotate
src/sys/arch/armv7/omap/omdisplay.c log diff annotate
src/sys/arch/armv7/omap/omdog.c log diff annotate
src/sys/arch/armv7/omap/omehci.c log diff annotate
src/sys/arch/armv7/omap/omgpio.c log diff annotate
src/sys/arch/armv7/omap/ommmc.c log diff annotate
src/sys/dev/fdt/rkpmic.c log diff annotate
src/sys/dev/fdt/rkpwm.c log diff annotate
src/sys/dev/fdt/rktemp.c log diff annotate
src/sys/dev/fdt/sdhc_fdt.c log diff annotate
src/sys/dev/fdt/sfp.c log diff annotate
src/sys/dev/fdt/simplefb.c log diff annotate
src/sys/dev/fdt/simplepanel.c log diff annotate
src/sys/dev/fdt/ssdfb.c log diff annotate
src/sys/dev/fdt/sxiccmu.c log diff annotate
src/sys/dev/fdt/sxidog.c log diff annotate
src/sys/dev/fdt/sximmc.c log diff annotate
src/sys/dev/fdt/sxipio.c log diff annotate
src/sys/dev/fdt/sxipwm.c log diff annotate
src/sys/dev/fdt/sxirsb.c log diff annotate
src/sys/dev/fdt/sxirtc.c log diff annotate
src/sys/dev/fdt/sxisid.c log diff annotate
src/sys/dev/fdt/sxisyscon.c log diff annotate
src/sys/dev/fdt/sxitemp.c log diff annotate
src/sys/dev/fdt/sxits.c log diff annotate
src/sys/dev/fdt/sxitwi.c log diff annotate
src/sys/dev/fdt/sypwr.c log diff annotate
src/sys/dev/fdt/syscon.c log diff annotate
src/sys/dev/fdt/virtio_mmio.c log diff annotate
src/sys/dev/fdt/xhci_fdt.c log diff annotate
message Constify struct cfattach.

ok visa@ a long time ago, ok patrick@

date 2021-10-24T17:52:28Z
author mpi
files src/sys/arch/arm64/arm64/acpi_machdep.c log diff annotate
src/sys/arch/arm64/arm64/cpu.c log diff annotate
src/sys/arch/arm64/dev/acpipci.c log diff annotate
src/sys/arch/arm64/dev/agintc.c log diff annotate
src/sys/arch/arm64/dev/agtimer.c log diff annotate
src/sys/arch/arm64/dev/ampintc.c log diff annotate
src/sys/arch/arm64/dev/apm.c log diff annotate
src/sys/arch/arm64/dev/bcm2836_intr.c log diff annotate
src/sys/arch/arm64/dev/efi.c log diff annotate
src/sys/arch/arm64/dev/mainbus.c log diff annotate
src/sys/arch/arm64/dev/simplebus.c log diff annotate
src/sys/arch/arm64/dev/smbios.c log diff annotate
src/sys/arch/armv7/omap/omohci.c log diff annotate
src/sys/arch/armv7/omap/omusbtll.c log diff annotate
src/sys/arch/armv7/omap/omwugen.c log diff annotate
src/sys/arch/armv7/omap/prcm.c log diff annotate
src/sys/arch/armv7/omap/ti_iic.c log diff annotate
src/sys/arch/armv7/sunxi/sxiahci.c log diff annotate
src/sys/arch/armv7/sunxi/sxie.c log diff annotate
src/sys/arch/armv7/sunxi/sxiintc.c log diff annotate
src/sys/arch/armv7/sunxi/sxitimer.c log diff annotate
src/sys/arch/armv7/vexpress/pciecam.c log diff annotate
src/sys/arch/armv7/vexpress/sysreg.c log diff annotate
message Constify struct cfattach.

ok visa@ a long time ago, ok patrick@

date 2021-10-24T18:15:58Z
author tobhe
files src/sys/netinet/ip_ipcomp.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
message Refactor ipcomp_input() and ipcomp_output(). Remove obsolete code related
to old crypto API.

ok bluhm@

date 2021-10-24T21:24:22Z
author deraadt
files src/sys/arch/alpha/stand/headersize.c log diff annotate
src/sys/arch/alpha/stand/setnetbootinfo/setnetbootinfo.c log diff annotate
message For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert

date 2021-10-24T21:37:49Z
author deraadt
files src/sys/dev/microcode/cyclades/cyzfirm2h.c log diff annotate
message For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert

date 2021-10-24T22:34:19Z
author tobhe
files src/sys/netinet/ip_ah.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
message Refactor ah_input() and ah_output() for new crypto API.

ok bluhm@

date 2021-10-24T22:59:47Z
author bluhm
files src/sys/netinet/in_proto.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
src/sys/netinet/ipsec_input.c log diff annotate
src/sys/netinet6/in6_proto.c log diff annotate
message Remove code duplication by merging the v4 and v6 input functions
for ah, esp, and ipcomp. Move common code into ipsec_protoff()
which finds the offset of the next protocol field in the previous
header.
OK tobhe@

date 2021-10-24T23:33:37Z
author tobhe
files src/sys/netinet/ip_esp.c log diff annotate
src/sys/netinet/ip_ipsp.h log diff annotate
message Merge esp_input_cb() intp esp_input().

ok bluhm@