OpenBSD/src TiszQJnsys/kern kern_pledge.c

   improve wording for __pledge_open description
VersionDeltaFile
1.365+3-3sys/kern/kern_pledge.c
+3-31 files

OpenBSD/src 3k1NNcXsys/kern kern_pledge.c

   extend the "mcast" pledge to allow multicast tweaks on ethernet frame sockets.

   this is for lldpd, which wants to receive lldp packets sent to a
   multicast address on interfaces as they attach at runtime, which
   currently isn't allowed by pledge.

   part of a bigger diff that was ok deraadt@
VersionDeltaFile
1.364+15-1sys/kern/kern_pledge.c
+15-11 files

OpenBSD/src LFB3ukCsys/kern uipc_syscalls.c kern_pledge.c, sys/sys pledge.h

   tighten pledge_sockopt()s level/optname checks for different types of sockets

   tl;dr: the meaning of the setsockopt and getsockopt level and optname
   arguments are dependent on the type of the socket you're working
   with, they can't be safely understood without knowing the address
   family and protocol.

   i think we've been able to ignore to socket address family and
   protocol so far by luck, particularly because openbsd (henning)
   removed a bunch of address families like AF_IPX and AF_NETATALK.
   like AF_INET and AF_INET6, they use values from the wire protocol
   as identifiers in the ABI, particularly sub protocol numbers like
   IPPROTO_TCP. there's no guarantee these numbers don't overlap with
   a protocol from another address family. netipx used IPXPROTO_SPX
   like how AF_INET uses IPPROTO_IP, but it's only luck that their
   values don't collide with each other or another protocol. this
   principle applies to all socktypes though.

   this is also reflected in the way sockopts are handled by protocol

    [17 lines not shown]
VersionDeltaFile
1.363+74-25sys/kern/kern_pledge.c
1.229+7-5sys/kern/uipc_syscalls.c
1.54+4-2sys/sys/pledge.h
+85-323 files

OpenBSD/src 9tonc0cusr.sbin/vmd vmd.c

   Compose a new imsg when relaying terminate to vmd(8) control.

   Instead of forwarding the imsg, which was already consumed in the
   parent vmd process, compose a new one to the control process. When
   vmd was refactored to use the new imsg api for consuming the payload
   instead of reading directly from the underlying ibuf, it caused
   proc_forward_imsg() to forward incomplete data.

   Instead of mucking about with the underlying ibuf and rewinding it,
   update the only case of the consume-then-forward pattern to compose
   a new imsg by using proc_compose_imsg().

   Original diff and issue from Nick Owens.
VersionDeltaFile
1.181+3-2usr.sbin/vmd/vmd.c
+3-21 files

OpenBSD/src 7CFGKfXusr.bin/tmux control.c

   Do not attempt to write to control clients which have been destroyed,
   reported by Artur Penttinen in GitHub issue 5570.
VersionDeltaFile
1.67+13-3usr.bin/tmux/control.c
+13-31 files

OpenBSD/src WY8QzjJusr.bin/tmux tmux.1 cmd-new-window.c

   Extend neww -S to work with -t as well as -t, GitHub issue 5571 from
   Mazunki Hoksaas.
VersionDeltaFile
1.104+36-26usr.bin/tmux/cmd-new-window.c
1.1164+13-6usr.bin/tmux/tmux.1
+49-322 files

OpenBSD/src 1uCzxVvusr.bin/ssh ssh.1

   update fingerprint example from RSA to Ed25519 host key
VersionDeltaFile
1.455+3-3usr.bin/ssh/ssh.1
+3-31 files

OpenBSD/src yErI6Kmusr.bin/tmux server-fn.c

   Wait for pane exit status in all cases not just remain-on-exit since
   events need it.
VersionDeltaFile
1.152+3-3usr.bin/tmux/server-fn.c
+3-31 files

OpenBSD/src ImHFJorusr.sbin/rpki-client cms.c

   rpki-client: remove another layer in the cms code

   The cms_parse_validate() -> _internal() split was done for detached
   messages, i.e., geofeed. This has been retired for a while now, and
   won't come back.

   ok claudio
VersionDeltaFile
1.64+6-29usr.sbin/rpki-client/cms.c
+6-291 files

OpenBSD/src rEEm0tKetc rc

   remove now-invalid vendored ssh-mldsa44-ed25519 at openssh.com host keys
   that ssh-keygen -A generated during an 11-week time window
VersionDeltaFile
1.593+7-1etc/rc
+7-11 files

OpenBSD/src ZPlGi4Ssys/arch/amd64/amd64 vmm_machdep.c

   vmm(4): support variable length instructions in VMX paths.

   The Intel VMX handlers for things like HLT, RDMSR, etc. perform
   strict checks for instruction length. This is excessive and incorrect
   given the joys of x86/amd64. There's no need to kill the vcpu if
   it was silly enough to prefix a HLT for some strange reason.

   "sure", mlarkin@
VersionDeltaFile
1.81+2-28sys/arch/amd64/amd64/vmm_machdep.c
+2-281 files

OpenBSD/src OvyoAAMusr.sbin/rpki-client spl.c rsc.c

   rpki-client: garbage collect the _parse() functions

   The _parse() functions are no longer used and can be removed.
   With them gone, cms_parse_validate() becomes internal to cms.c

   ok claudio
VersionDeltaFile
1.34+1-45usr.sbin/rpki-client/tak.c
1.143+1-45usr.sbin/rpki-client/mft.c
1.20+1-44usr.sbin/rpki-client/spl.c
1.49+1-44usr.sbin/rpki-client/rsc.c
1.92+1-44usr.sbin/rpki-client/roa.c
1.46+1-44usr.sbin/rpki-client/aspa.c
+6-2662 files not shown
+9-2848 files

OpenBSD/src IvgfGU6regress/usr.sbin/rpki-client test-tak.c test-spl.c

   rpki-client: convert regress to signed_object_parse()
VersionDeltaFile
1.13+3-2regress/usr.sbin/rpki-client/test-tak.c
1.8+3-2regress/usr.sbin/rpki-client/test-spl.c
1.16+3-2regress/usr.sbin/rpki-client/test-rsc.c
1.31+3-2regress/usr.sbin/rpki-client/test-roa.c
1.34+3-2regress/usr.sbin/rpki-client/test-mft.c
1.13+3-2regress/usr.sbin/rpki-client/test-aspa.c
+18-126 files

OpenBSD/src MJWDX7xusr.sbin/rpki-client filemode.c parser.c

   rpki-client: replace _parse() functions for signed objects

   Replace calls to _parse() with calls to signed_object_parse() both
   in file mode and in the parser process.

   ok claudio
VersionDeltaFile
1.184+11-6usr.sbin/rpki-client/parser.c
1.87+7-7usr.sbin/rpki-client/filemode.c
+18-132 files

OpenBSD/src 6CWFy2pusr.sbin/rpki-client extern.h cms.c

   rpki-client: add signed_object_parse()

   Now that all signed object parser functions have been unified,
   we can replace them all with a single implementation. Add a helper
   that returns the appropriate struct signed_obj * for a given rtype
   and then use its handlers to allocate, parse, validate and free
   the underlying C type. This is wrapped in signed_object_parse().

   There is one small subtlety: for mft and tak the parse functions
   fail if their _validate handler fails, for the remaining objects
   only a flag is set and the handler always succeeds, so checking
   the error of ->validate() does not change behavior.

   ok claudio
VersionDeltaFile
1.62+68-1usr.sbin/rpki-client/cms.c
1.293+3-1usr.sbin/rpki-client/extern.h
+71-22 files

OpenBSD/src 4mA8JcJusr.sbin/rpki-client tak.c spl.c

   rpki-client: add OID getter to struct signed_obj

   This simply returns the OID ASN1_OBJECT created by x509_init_oid()
   appropriate for each signed object. We need this for CMS validation.
   Since these aren't runtime constants, they can't hang directly off
   the static structs.

   ok claudio
VersionDeltaFile
1.33+10-1usr.sbin/rpki-client/tak.c
1.19+10-1usr.sbin/rpki-client/spl.c
1.48+10-1usr.sbin/rpki-client/rsc.c
1.91+10-1usr.sbin/rpki-client/roa.c
1.142+10-1usr.sbin/rpki-client/mft.c
1.45+10-1usr.sbin/rpki-client/aspa.c
+60-61 files not shown
+64-77 files

OpenBSD/src wmhQieousr.bin/ssh scp.c scp.1

   Remove scp '-s' flag from synopsis, the flag has been a no-op for some time now

   OK djm@
VersionDeltaFile
1.276+3-3usr.bin/ssh/scp.c
1.116+3-3usr.bin/ssh/scp.1
+6-62 files

OpenBSD/src nXloMyIusr.sbin/ospfd ospfe.h ospfe.c

   Improve imsg handling of LS_UPD, LS_FLOOD and LS_SNAP

   Instead of passing imsg data around pass the lsa cache ref to lsa_flood
   and ls_retrans_list_add. The ref holds all the data needed for those
   calls. lsa_cache_add is also changed to pass an ibuf instead of imsg->data
   and it is more careful at extracting the data. On top of this
   lsa_cache_get becomes unused and is replaced by lsa_cache_ref which is
   used in ls_retrans_list_add to increase the refcount on the lsa_ref.

   Looks good to tb@
VersionDeltaFile
1.124+20-26usr.sbin/ospfd/ospfe.c
1.57+21-25usr.sbin/ospfd/lsupdate.c
1.50+4-6usr.sbin/ospfd/ospfe.h
+45-573 files

OpenBSD/src tyFh6fDregress/usr.sbin/rpki-client Makefile.inc

   Handle rsc, spl, tak the same way as all other signed objects
   CVSt : ----------------------------------------------------------------------
VersionDeltaFile
1.49+6-5regress/usr.sbin/rpki-client/Makefile.inc
+6-51 files

OpenBSD/src hLPv3Lqsys/arch/arm64/arm64 cpu.c

   rename Ampere part 0xac3 from 'AmpereOne' to 'AmpereOne AC03'
   identify Ampere part 0xac4 as 'AmpereOne AC04'

   follows names used by Ampere in errata documents

   ok kettenis@
VersionDeltaFile
1.151+6-4sys/arch/arm64/arm64/cpu.c
+6-41 files

OpenBSD/src bApfIt5usr.sbin/pppd demand.c

   Use pcap_offline_filter() instead of calling bpf_filter directly.

   OK tb@
VersionDeltaFile
1.14+5-2usr.sbin/pppd/demand.c
+5-21 files

OpenBSD/src DZGREJesys/dev/acpi qcuart_acpi.c, sys/dev/fdt qcuart_fdt.c

   Add suspend/resume support.

   ok mlarkin@, deraadt@
VersionDeltaFile
1.2+35-1sys/dev/ic/qcuart.c
1.2+3-2sys/dev/fdt/qcuart_fdt.c
1.2+3-2sys/dev/acpi/qcuart_acpi.c
1.2+2-1sys/dev/ic/qcuartvar.h
+43-64 files

OpenBSD/src 1ZuIMA6gnu/llvm/llvm/lib/CodeGen RegisterCoalescer.cpp

   llvm: backport [RegisterCoalescer] Avoid retrying high-cost joins for live intervals

   OK: tb@
VersionDeltaFile
1.2+1,258-761gnu/llvm/llvm/lib/CodeGen/RegisterCoalescer.cpp
+1,258-7611 files

OpenBSD/src ACzvkBUsys/net pf.c

   Prevent pf dropping TCP state with crafted reset packet.

   Revision 1.1212 of pf.c weakened the TCP reset check in stateful
   connection tracking to let legitimate resets pass in the backwards
   window.  Such a reset is accepted only if its acknowledgment number
   matches perfectly.  But as a workaround for broken stacks, pf
   replaces an acknowledgment number of 0 in a reset with the tracked
   sequence of the peer.  Then the perfect match always succeeds, and
   an attacker can spoof resets more easily than intended.  Use the
   acknowledgment number from the wire, before the workaround has
   modified it.

   discovered by Minghao Zhang; OK sashan@
VersionDeltaFile
1.1239+4-3sys/net/pf.c
+4-31 files

OpenBSD/src TIGM0yRsys/arch/amd64/amd64 identcpu.c, sys/arch/amd64/include specialreg.h

   Require NRIP Save support for vmm(4) on AMD hosts.

   This feature gives a fast, reliable path to accurately advancing
   RIP when emulating certain instructions. Most AMD hardware from the
   past 15 years should have NRIP Save and nested paging support so
   this drops support for AMD hardware from roughly family 11h and
   older with some rare exceptions.

   Discussed multiple times in the past.

   ok mlarkin@
VersionDeltaFile
1.156+4-3sys/arch/amd64/amd64/identcpu.c
1.126+2-1sys/arch/amd64/include/specialreg.h
+6-42 files

OpenBSD/src yIkHPNosys/arch/amd64/amd64 vmm_machdep.c, sys/dev/vmm vmm.h vmm.c

   Centralize vmm(4) vcpu yield logic.

   Put all checks for "should the vcpu yield?" into the same function
   and rename it to better fit semantics ("stop" -> "yield"). This
   pulls in some scheduler flag checks that were duplicated between
   amd64 cpu-dependent code paths.

   sure, mlarkin@
VersionDeltaFile
1.80+3-16sys/arch/amd64/amd64/vmm_machdep.c
1.11+12-5sys/dev/vmm/vmm.c
1.14+2-2sys/dev/vmm/vmm.h
+17-233 files

OpenBSD/src i0qYWVnsys/arch/amd64/amd64 vmm_machdep.c

   Make vmm(4) exception helpers return void.

   None of the vmm_inject_{gp,ud,etc.}() functions can fail. There's
   no need to return 0 for all of them, so simplify the function
   signature and update call sites to clean things up a bit.

   sure, mlarkin@
VersionDeltaFile
1.79+32-57sys/arch/amd64/amd64/vmm_machdep.c
+32-571 files

OpenBSD/src ADOkh0Ysys/arch/amd64/amd64 vmm_machdep.c

   vmm(4): classify injected #DB as hardware exception.

   vmm was incorrectly classifying as a software exception. Change to
   hardware exception without an error code.

   ok mlarkin@
VersionDeltaFile
1.78+3-2sys/arch/amd64/amd64/vmm_machdep.c
+3-21 files

OpenBSD/src XUfPxWisys/net bpf.c bpf.h

   Use bpf_mfilter in bpf_movein since it operates on an mbuf

   With this bpf_filter is no longer used by the kernel and all the code
   around it can be hidden from _KERNEL.

   OK tb@
VersionDeltaFile
1.38+5-1sys/net/bpf_filter.c
1.236+2-2sys/net/bpf.c
1.76+3-1sys/net/bpf.h
+10-43 files

OpenBSD/src e5r9inMsys/net if_ppp.c

   Use correct bpf filter calls in ppp(4)

   10 years ago the bpf_filter interface was changed and bpf_mfilter was
   introduced. bpf_filter no longer support passing an mbuf as pkt by using
   a buflen of 0. Finally adjust this code and switch it over to bpf_mfilter.

   OK tb@
VersionDeltaFile
1.122+5-9sys/net/if_ppp.c
+5-91 files