OpenBSD cvs log

created 2023-01-29T09:02:18Z
begin 2023-01-24T00:00:00Z
end 2023-01-25T00:00:00Z
path src/sys
commits 14

date 2023-01-24T00:12:03Z
author deraadt
files src/sys/kern/sys_process.c log diff annotate
message ptrace reads/writes memory using uvm_io, which generates an temporary
alias mapping using uvm_map_extract. With xonly now operational, this
alias mapping is created with minprot, which for text will be xonly, and
the kernel cannot read it (unless the architecture has implied read for
exec from kernel pov).
Pass UVM_IO_FIXPROT to create the alias with maxprot instead.
ok kettenis

date 2023-01-24T00:14:30Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message uvm_map_extract() UVM_EXTRACT_FIXPROT alias mappings are only used for
read/write operations, so mask out PROT_EXEC to avoid creating an pointless
exec mapping in the kernel.
We probably need this masking upon minprot (for the non-UVM_EXTRACT_FIXPROT
case) also, but I haven't done a test yet.
ok kettenis

date 2023-01-24T00:16:08Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message oops, a silly typo

date 2023-01-24T07:26:33Z
author miod
files src/sys/arch/sparc64/include/pmap.h log diff annotate
message Add and use a specific routine to fetch instructions from userland when
doing floating-point emulation, as copyin will fail on exec-only mappings
now.
ok deraadt@ kettenis@

date 2023-01-24T07:26:34Z
author miod
files src/sys/arch/sparc64/sparc64/pmap.c log diff annotate
src/sys/arch/sparc64/sparc64/trap.c log diff annotate
message Add and use a specific routine to fetch instructions from userland when
doing floating-point emulation, as copyin will fail on exec-only mappings
now.
ok deraadt@ kettenis@

date 2023-01-24T13:28:31Z
author jca
files src/sys/arch/riscv64/conf/GENERIC log diff annotate
message Hook up the same USB device drivers as arm64/conf/GENERIC

Input from kettenis@, ok deraadt@ miod@

date 2023-01-24T13:29:51Z
author jca
files src/sys/arch/riscv64/riscv64/conf.c log diff annotate
message Enable access to usb(4), ugen(4), ulpt(4), ucom(4) and ujoy(4)

Input kettenis@, ok deraadt@ miod@

date 2023-01-24T16:18:22Z
author stsp
files src/sys/dev/pci/if_iwx.c log diff annotate
message Fix a crash in iwx(4) when connecting to WEP networks via ifconfig join.

In if_iwx.c r1.63 / CVS commit ID QzTzJtyPl10L63Yi, I fixed a problem with
connecting to WPA1/TKIP networks. This change introduced a deference of
the 'ni' pointer passed to ic_set_key(). This pointer will be passed in
as NULL in certain situations, such as when WEP is used. Add the missing
NULL check.

reported by and fix tested by matthieu@

date 2023-01-24T16:51:05Z
author kettenis
files src/sys/arch/hppa/hppa/pmap.c log diff annotate
message Make sure pmap_page_protect() does the right thing for execute-only
mappings and enforce this with a KASSERT like we do on amd64. Bring
the pmap_protect() inline in line with the amd64 version.

ok miod@, deraadt@

date 2023-01-24T16:51:06Z
author kettenis
files src/sys/arch/hppa/include/pmap.h log diff annotate
message Make sure pmap_page_protect() does the right thing for execute-only
mappings and enforce this with a KASSERT like we do on amd64. Bring
the pmap_protect() inline in line with the amd64 version.

ok miod@, deraadt@

date 2023-01-24T20:06:16Z
author claudio
files src/sys/netinet6/nd6.c log diff annotate
message Refactor nd6_options() a bit more. Rewrite the loop to be a proper loop
and not some endless loop with some gotos.
OK kn@

date 2023-01-24T21:48:04Z
author jcs
files src/sys/arch/arm64/conf/GENERIC log diff annotate
message Parallels Desktop 17 emulates an azalia audio device, add it

azalia0 at pci0 dev 1 function 0 "Intel 82801I HD Audio" rev 0x00: msi
azalia0: codecs: Parallels/0x0001

ok patrick

date 2023-01-24T22:35:46Z
author jan
files src/sys/dev/pci/if_ix.c log diff annotate
src/sys/dev/pci/if_ixl.c log diff annotate
message consolidate mbuf header parsing on device driver layer

with tweaks from mvs@, mpi@ and dlg@

ok mvs@, dlg@

date 2023-01-24T22:35:47Z
author jan
files src/sys/net/if_ethersubr.c log diff annotate
src/sys/netinet/if_ether.h log diff annotate
message consolidate mbuf header parsing on device driver layer

with tweaks from mvs@, mpi@ and dlg@

ok mvs@, dlg@