OpenBSD cvs log

created 2023-04-23T03:29:41Z
begin 2023-04-19T00:00:00Z
end 2023-04-20T00:00:00Z
path src/sys
commits 13

date 2023-04-19T00:19:17Z
author dlg
files src/sys/dev/fdt/files.fdt log diff annotate
message dwmshc config

date 2023-04-19T00:40:24Z
author dlg
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
message enable dwmshc to support the emmc controller on rockchip rk356x boards.

date 2023-04-19T01:38:32Z
author dlg
files src/sys/dev/fdt/dwmshc.c log diff annotate
message flag the device as non-removable if the dt says it's non-removable

this may help if we end up doing suspend/resume on rk356x/rk3588.

date 2023-04-19T01:41:12Z
author dlg
files src/sys/dev/fdt/dwmshc.c log diff annotate
message get rid of some dead code.

date 2023-04-19T01:42:13Z
author dlg
files src/sys/dev/sdmmc/sdmmc_scsi.c log diff annotate
message handle some more manufacturer ids.

date 2023-04-19T01:46:10Z
author dlg
files src/sys/dev/sdmmc/sdmmc_scsi.c log diff annotate
message dont advertise non-removable sdmmc devices as removable to the scsi layer.

this is cosmetic more than anything cos it gets rid of "removable"
in dmesg output when sd attaches.

date 2023-04-19T02:01:02Z
author dlg
files src/sys/dev/fdt/dwmshc.c log diff annotate
src/sys/dev/sdmmc/sdhc.c log diff annotate
src/sys/dev/sdmmc/sdhcvar.h log diff annotate
src/sys/dev/sdmmc/sdmmc.c log diff annotate
src/sys/dev/sdmmc/sdmmcchip.h log diff annotate
message dwmshc on rockchips don't support dma crossy 128M boundaries.

let controllers pass the dma boundaries to sdmmc as part of the
attach args so it can be used for the bus_dmamap_create. add the
boundary to sdhci so dwmshc can set it to be bassed to sdmmc.

tested on a radxa e25 booting and rooting off the onboard emmc.
before this diff some programs would fault with weird instructions.

date 2023-04-19T04:51:53Z
author miod
files src/sys/dev/usb/ugold.c log diff annotate
message Remove strict checks added in 1.22, for they break some sensors.
Reported by Paul de Weerd on bugs@

date 2023-04-19T14:30:35Z
author cheloha
files src/sys/kern/kern_clockintr.c log diff annotate
src/sys/sys/clockintr.h log diff annotate
message clockintr: rename CL_CPU_* flags to CQ_* flags

The CL_CPU_* flags were originally so-named because they were set from
clockintr_cpu_init(), which was itself named before I had named the
clockintr_queue struct. It makes more for the flag namespace to match
the struct namespace, so CQ_* is a better flag prefix than CL_CPU_*.

While we're at it, move the CQ_* flag definitions up so they
immediately follow the clockintr_queue structure definition in
sys/clockintr.h.

date 2023-04-19T15:37:36Z
author kettenis
files src/sys/kern/exec_elf.c log diff annotate
src/sys/sys/exec.h log diff annotate
src/sys/sys/exec_elf.h log diff annotate
message Add a new PT_OPENBSD_NOBTCFI "segment type" to indicate that the kernel
should not enforce branch target control flow integrety for a binary.
This works analoguous to PT_OPENBSD_WXNEEDED in that we will set it on
binaries that don't have the necessary landing pads (yet). The kernel
will enforce branch target CFI by default in the near future!

This is a better match for what we want to achieve than the GNU property
note mechanism that the Linux folks came up with. We can still use the
GNU property notes for diagnostic purposes so we won't disable their
generation in the toolchain. But ports will need to pass an explicit
-Wl,-z,nobtcfi option to disable branch target CFI.

Like with PT_OPENBSD_WXNEEDED we convert the presence of PT_OPENBSD_NOBTCFI
into a flag in struct exec_package. From there MD code can pick it up
and set a struct process flag or take action in setregs().

ok deraadt@

date 2023-04-19T17:42:47Z
author bluhm
files src/sys/net/art.h log diff annotate
src/sys/net/rtable.c log diff annotate
src/sys/net/rtsock.c log diff annotate
message Protect rtable_setsource() and rtable_getsource() with exclusive
and shared netlock respectively.
OK kn@ mvs@

date 2023-04-19T20:03:51Z
author kn
files src/sys/netinet/in.c log diff annotate
src/sys/netinet/ip_mroute.c log diff annotate
message move kernel lock into multicast ioctl handlers; OK mvs

date 2023-04-19T20:03:52Z
author kn
files src/sys/netinet6/in6.c log diff annotate
src/sys/netinet6/ip6_mroute.c log diff annotate
message move kernel lock into multicast ioctl handlers; OK mvs