OpenBSD/src AIH5gAVbin/pax tar.1 options.c

   Add tar(1) -F option to select write format

   We want to move towards 'pax' as the default format for writing, this
   option lets users downgrade to -F ustar where the 'pax' format isn't
   convenient/usable (same as -x <format> in pax(1)).

   -F <format> is more generic than -o/-O. -H (GNU tar) was already used
   and we don't want long options so --format (NetBSD/FreeBSD) is excluded
   too.

   ok sthen@ caspar@ millert@
VersionDeltaFile
1.66+76-4bin/pax/tar.1
1.111+30-10bin/pax/options.c
1.81+10-2bin/pax/tar.c
+116-163 files

OpenBSD/src cr9QJrhbin/pax tar.c options.c

   Correctly detect 'pax' format archives in append mode

   We expect that existing pax archives start with a global or extended
   header. If they don't, append operations will be done using ustar
   format.

   Fixes append mode on pax archives where pax(1) would bail out when
   appending to pax archives, falsely detecting a mismatch.  Reading was
   unaffected.  Reported by caspar@, ok caspar@ millert@
VersionDeltaFile
1.80+41-1bin/pax/tar.c
1.110+3-3bin/pax/options.c
1.63+2-1bin/pax/extern.h
+46-53 files

OpenBSD/src 6C0uHlxlib/libssl ssl_tlsext.c

   Fix key share negotiation in HRR case

   In the ClientHello retrying the handshake after a HelloRetryRequest, the
   client must send a single key share matching the group selected by the
   server in the HRR. This is not necessarily the mutually preferred group.
   Incorrect logic added in ssl_tlsect.c r1.134 would potentially reject
   such a key share because of that.

   Instead, add logic to ensure on the server side that there is a single
   share matching the group we selected in the HRR.

   Fixes a regress test in p5-IO-Socket-SSL where server is configured
   with P-521:P-384 and the client with P-256:P-384:P-521. Since the
   client sends an initial P-256 key share, a HRR is triggered which
   the faulty logic rejected because it was not the mutually preferred
   P-384 but rather matching the server-selected P-521.

   This will need some deduplication in subsequent commits. We may also
   want to consider honoring the mutual preference and request a key

    [4 lines not shown]
VersionDeltaFile
1.149+40-1lib/libssl/ssl_tlsext.c
+40-11 files

OpenBSD/src qjI9UFLusr.sbin/httpd server_file.c

   Prevent toctu issues in static file serving and auto index generation.

   This fixes a problem in passing, reported by matthieu@ where httpd
   would return 500 Internal Server Error when it could stat(2) but not
   open(2) a file. The correct error code is 403.

   testing matthieu
   ok tobhe, tl;dr ok stsp
   input & OK deraadt
VersionDeltaFile
1.79+117-126usr.sbin/httpd/server_file.c
+117-1261 files

OpenBSD/src JStJwLJsys/dev/wsfont spleen32x64.h

   Update Spleen kernel fonts to version 2.1.0, bringing the following
   improvements:

   - Fix latin small letter 'u' smoothing in the 32x64 version
VersionDeltaFile
1.10+4-4sys/dev/wsfont/spleen32x64.h
+4-41 files

OpenBSD/src N32P1Lcsys/netinet6 in6.c

   Destination addresses make no sense on loopback interfaces.

   While here use (variable & FLAG) or !(variable & FLAG) consistently in
   in6_update_ifa().

   Discussed with claudio
   OK denis
VersionDeltaFile
1.263+8-9sys/netinet6/in6.c
+8-91 files

OpenBSD/src V6uhI3ilib/libcrypto/bn bn_convert.c

   Invert BN_BITS2 handling in bn_bin2bn_cbs() and bn_hex2bn_cbs().

   This results in simpler code.

   Suggested by tb@ during review.
VersionDeltaFile
1.18+11-11lib/libcrypto/bn/bn_convert.c
+11-111 files

OpenBSD/src iYJYFJ2lib/libcrypto/bn bn_convert.c

   Rewrite BN_bin2bn() using CBS.

   ok tb@
VersionDeltaFile
1.17+59-36lib/libcrypto/bn/bn_convert.c
+59-361 files

OpenBSD/src bwzuS9Blib/libcrypto/bn bn_lib.c bn_local.h

   Provide bn_expand_bytes().

   This will be used in an upcoming change.

   ok tb@
VersionDeltaFile
1.93+14-1lib/libcrypto/bn/bn_lib.c
1.43+2-1lib/libcrypto/bn/bn_local.h
+16-22 files

OpenBSD/src R8v2jZilib/libcrypto/bn bn_lib.c bn_convert.c

   Rename bn_expand() to bn_expand_bits().

   Also change the bits type from int to size_t, since that's what the callers
   are passing and we can avoid unnecessary input validation.

   ok tb@
VersionDeltaFile
1.92+2-5lib/libcrypto/bn/bn_lib.c
1.16+3-3lib/libcrypto/bn/bn_convert.c
1.42+2-2lib/libcrypto/bn/bn_local.h
+7-103 files

OpenBSD/src 2LZW14usys/netinet ip_input.c ip_var.h, sys/netinet6 ip6_forward.c ip6_input.c

   Use route cache function in IP input.

   Instaed of passing a struct rtentry from ip_input() to ip_forward()
   and then embed it into a struct route for ip_output(), start with
   struct route and pass it along.  Then the route cache is used
   consistently.  Also the route cache hit and missed counters should
   reflect reality after this commit.

   There is a small difference in the code.  in_ouraddr() checks for
   NULL and not rtisvalid().  Previous discussion showed that the route
   RTF_UP flag should only be considered for multipath routing.
   Otherwise it does not mean anything.  Especially the local and
   broadcast check in in_ouraddr() should not be affected by interface
   link status.

   When doing cache lookups, route must be valid, but after rtalloc_mpath()
   lookup, use any route that route_mpath() returns.

   OK claudio@
VersionDeltaFile
1.393+28-35sys/netinet/ip_input.c
1.117+25-25sys/netinet6/ip6_forward.c
1.261+8-12sys/netinet6/ip6_input.c
1.116+2-2sys/netinet/ip_var.h
1.290+2-2sys/netinet6/ip6_output.c
1.115+2-2sys/netinet6/ip6_var.h
+67-786 files

OpenBSD/src 8w2HK21sys/netinet6 raw_ip6.c in6_proto.c

   Run raw IPv6 input in parallel.

   Get rip6_input() in the same shape as rip_input().  Call
   soisdisconnected() from rip6_disconnect().  This means that the raw
   IP socket cannot be reconnected later.  Now raw IPv6 behaves like
   IPv4 in this regard, KAME code is quite inconsistent here.  Also
   make sure that there is no race between disconnect, input and wakeup.
   The inpcb fileds inp_icmp6filt and inp_cksum6 are protected by
   exclusive net lock in icmp6_ctloutput().  With all that, mark raw
   IPv6 sockets to handle input in parallel.

   OK mvs@
VersionDeltaFile
1.183+17-9sys/netinet6/raw_ip6.c
1.114+3-3sys/netinet6/in6_proto.c
+20-122 files

OpenBSD/src 1Z99MHAusr.bin/less filename.c

   remove unused functions; ok tb@
VersionDeltaFile
1.32+0-79usr.bin/less/filename.c
+0-791 files

OpenBSD/src KTLthb3sys/uvm uvm_swap.c

   Call bufq_destroy() in swap_off for the VREG case since swap_on() called
   bufq_init(). Similar issue as the use-after-free in mfs.
   Missing call noticed by jsg@
   OK deraadt@ mpi@
VersionDeltaFile
1.170+2-1sys/uvm/uvm_swap.c
+2-11 files

OpenBSD/src KfPbe08sys/ufs/mfs mfs_vnops.c

   Call bufq_destroy() in mfs_reclaim() before freeing the mfsnode.
   This fixes a use-after-free bug in bufq_quiesce() once a mfs partition
   was unmounted.
   OK mpi@ deraadt@
VersionDeltaFile
1.61+4-1sys/ufs/mfs/mfs_vnops.c
+4-11 files

OpenBSD/src MAQjg8Esys/uvm uvm_amap.c

   Prevent a NULL dereference in error code path.

   Under memory pressure allocating an amap chunk can fail.  In such case it
   is not possible to call amap_wipeout() because the newly allocated amap
   isn't yet on the global list.

   Issue reported by bluhm@, ok jsg@
VersionDeltaFile
1.93+5-4sys/uvm/uvm_amap.c
+5-41 files

OpenBSD/src CQ3DnYLlib/libcrypto Symbols.list

   sort
VersionDeltaFile
1.187+1-1lib/libcrypto/Symbols.list
+1-11 files

OpenBSD/src kked9vLbin/pax options.c

   Amend previous: improve comment
VersionDeltaFile
1.109+3-3bin/pax/options.c
+3-31 files

OpenBSD/src wyC2DAnsys/kern uipc_socket.c

   Don't take solock() in soreceive() for udp(4) sockets.

   These sockets are not connection oriented, they don't call pru_rcvd(),
   but they have splicing ability and they set `so_error'.

   Splicing ability is the most problem. However, we can hold `sb_mtx'
   around `ssp_socket' modifications together with solock(). So the
   `sb_mtx' is pretty enough to isspiced() check in soreceive(). The
   unlocked `so_sp' dereference is fine, because we set it only once for
   the whole socket life-time and we do this before `ssp_socket'
   assignment.

   We also need to take sblock() before splice sockets, so the sosplice()
   and soreceive() are both serialized. Since `sb_mtx' required to unsplice
   sockets too, it also serializes somove() with soreceive() regardless on
   somove() caller.

   The sosplice() was reworked to accept standalone sblock() for udp(4)
   sockets.

    [11 lines not shown]
VersionDeltaFile
1.330+61-62sys/kern/uipc_socket.c
+61-621 files

OpenBSD/src HTZB5jvsys/netinet in_pcb.h

   Delete unused inp_csumoffset define.

   OK mvs@
VersionDeltaFile
1.155+1-4sys/netinet/in_pcb.h
+1-41 files

OpenBSD/src 2IXlJ1Lbin/pax options.c pax.1

   Switch pax(1) to write archives using the 'pax' format by default

   ramdisk versions will keep using ustar for writing.

   ok millert@
VersionDeltaFile
1.108+6-2bin/pax/options.c
1.78+3-3bin/pax/pax.1
+9-52 files

OpenBSD/src 0edazS3regress/lib/libcrypto/symbols symbols.awk

   Remove workarounds for unprototyped symbols
VersionDeltaFile
1.11+1-71regress/lib/libcrypto/symbols/symbols.awk
+1-711 files

OpenBSD/src bUFoCYnshare/man/man5 port-modules.5

   Sync with font module variable namespacing changes.

   ok sthen@
VersionDeltaFile
1.268+9-11share/man/man5/port-modules.5
+9-111 files

OpenBSD/src Urj5Tnflib/libcrypto o_fips.c

   Include the correct header
VersionDeltaFile
1.8+2-2lib/libcrypto/o_fips.c
+2-21 files

OpenBSD/src qHDrn9Mdistrib/sets/lists/base mi

   sync libressl bump
VersionDeltaFile
1.1127+4-4distrib/sets/lists/base/mi
+4-41 files

OpenBSD/src Pwb8jBDlib/libtls shlib_version

   crank libtls like libcrypto and libssl
VersionDeltaFile
1.77+1-1lib/libtls/shlib_version
+1-11 files

OpenBSD/src oEXHqx2lib/libssl shlib_version

   crank libssl major after libcrypto major and symbol removal
VersionDeltaFile
1.99+1-1lib/libssl/shlib_version
+1-11 files

OpenBSD/src kPjAmtUlib/libssl ssl_lib.c Symbols.list

   Unexport SSL_version_str

   ok jsing
VersionDeltaFile
1.323+1-3lib/libssl/ssl_lib.c
1.44+0-1lib/libssl/Symbols.list
+1-42 files

OpenBSD/src VLMmmQKlib/libcrypto shlib_version

   crank libcrypto major after symbol removal
VersionDeltaFile
1.68+1-1lib/libcrypto/shlib_version
+1-11 files

OpenBSD/src HiGG2zMlib/libcrypto Makefile Symbols.list

   Bye, bye, OPENSSL_str{,n}casecmp()

   ok jsing
VersionDeltaFile
1.193+1-2lib/libcrypto/Makefile
1.186+0-2lib/libcrypto/Symbols.list
1.10+1-1lib/libcrypto/o_str.c
+2-53 files