Commit Graph

271284 Commits

Author SHA1 Message Date
martin ac5c0db93c Pull up following revision(s) (requested by rin in ticket #1636):
sys/lib/libsa/subr_prf.c: revision 1.30

libsa/printf: Do not fetch long va_arg as long long.

This does real harm iff all of the following conditions are satisfied:
(1) On ILP32 architectures.
(2) Both LIBSA_PRINTF_LONGLONG_SUPPORT and LIBSA_PRINTF_WIDTH_SUPPORT
    compile-time options are enabled.
(3) Width field is used with 'l' modifier.

This is an implicit-fallthrough bug, but unfortunately, GCC 10.4 cannot
find this out somehow...
2023-06-03 14:35:18 +00:00
martin 1ab296f0e8 Pull up following revision(s) (requested by lukem in ticket #1635):
external/gpl3/gcc/usr.bin/libdecnumber/Makefile: revision 1.9
	external/gpl3/gcc/usr.bin/common/Makefile: revision 1.12
	external/gpl3/gcc/usr.bin/backend/Makefile: revision 1.67
	external/gpl3/gcc/usr.bin/common-target/Makefile: revision 1.12
	external/gpl3/gcc/usr.bin/frontend/Makefile: revision 1.15
	external/gpl3/gcc/usr.bin/libcpp/Makefile: revision 1.10

gcc: fix build with clang++ HOST_CXX

Define HOSTPROG_CXX before .include anything that brings in bsd.own.mk.

This ensures that HOST_DBG (etc) gets assigned before HOST_CFLAGS
and HOST_CXXFLAGS is created.
backend: .include <bsd.init.mk> much earlier, as per the other directories.

Fixes backend build when using clang++ as the host compiler (e.g., macOS),
because backend host tools are now built with -O.
Inspired by https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255760

Fixes PR toolchain/57014
2023-06-03 14:24:25 +00:00
martin 1a913b6c72 Ticket #1634 2023-05-28 10:23:12 +00:00
martin 557b90408d Pull up following revision(s) (requested by andvar in ticket #1634):
external/apache2/mDNSResponder/dist/mDNSPosix/PosixDaemon.c: revision 1.15

reapply changes for the built-in drop-privs support by tsarna.

this commit doesn't reapply "dumping of the unicast server list
to the DumpStateLog debugging output" enhancement.
It doesn't build anymore, no idea how to rewrite.

Should fix PR 57442. Needs pull-ups for netbsd-9, netbsd-10.
2023-05-28 10:21:15 +00:00
martin 26e5364b4e Ammend entry for ticket #1632 2023-05-15 10:26:43 +00:00
martin c315d92035 Apply patch, requested by manu in ticket #1632:
sys/arch/xen/conf/files.xen		(apply patch)

Build fix to define the SELFRELOC option for XEN kernels.
This is not needed in newer branches as those include amd64/conf/files.amd64
from x86/conf/files.x86 (and get the definition via that path)
2023-05-15 10:25:31 +00:00
martin 0624441619 Note tickets #1631 - #1633 2023-05-13 12:24:46 +00:00
martin 66a0de5235 Pull up following revision(s) (requested by chs in ticket #1633):
sys/ufs/ffs/ffs_snapshot.c: revision 1.155

ffs: apply the remaining ffs_snapshot.c part of this FreeBSD commit:
  commit 364ed814e7285c8216d8a201d3ab3674eb34ce29
  Author: Kirk McKusick <mckusick@FreeBSD.org>
  Date:   Thu Dec 9 21:24:00 2004 +0000
    Fixes a bug that caused UFS2 filesystems bigger than 2TB to
    prematurely report that they were full and/or to panic the kernel
    with the message ``ffs_clusteralloc: allocated out of group''.
    Submitted by:   Henry Whincup <henry@jot.to>
    MFC after:      1 week

all the other changes in that commit were applied previously by others:
 - sborrill commmitted ffs_alloc.c rev 1.123 in 2009
 - simonb committed ffs_alloc.c rev 1.110 in 2008
 - the ffs_clusteralloc() part is not needed because we no longer have
   that function.

fixes PR 57307
2023-05-13 12:23:13 +00:00
martin 8420f92950 Pull up following revision(s) (requested by manu in ticket #1632):
share/man/man8/man8.x86/boot.8: revision 1.27
	sys/arch/i386/stand/efiboot/version: revision 1.3
	share/man/man8/man8.x86/boot.8: revision 1.28 (via patch)
	share/man/man8/man8.x86/boot.8: revision 1.29 (via patch)
	sys/arch/i386/stand/lib/exec.c: revision 1.79
	sys/arch/i386/stand/efiboot/efiboot.c: revision 1.13
	sys/arch/i386/stand/efiboot/bootx64/efibootx64.c: revision 1.6
	sys/arch/i386/stand/efiboot/bootia32/efibootia32.c: revision 1.6
	sys/arch/i386/stand/efiboot/boot.c: revision 1.22
	sys/arch/amd64/amd64/locore.S: revision 1.219
	sys/arch/i386/stand/efiboot/bootia32/startprog32.S: revision 1.3
	sys/arch/i386/stand/efiboot/efiboot.h: revision 1.12
	sys/arch/amd64/conf/files.amd64: revision 1.121
	sys/arch/amd64/conf/std.amd64: revision 1.13
	share/man/man8/man8.x86/pxeboot.8: revision 1.6
	sys/arch/i386/stand/efiboot/bootx64/startprog64.S: revision 1.4
	sys/arch/amd64/amd64/locore.S: revision 1.220
	share/man/man8/man8.x86/dosboot.8: revision 1.4
	share/man/man4/options.4: revision 1.524

Add reloc keyworkd to let EFI bootstrap load amd64 kernel at any address

EFI bootstrap assumes it can copy the amd64 kernel to its ELF load
address (that is KERNTEXTOFF - KERNBASE = 0x200000), but it can
clash with previous UEFI memory allocation, as described here:
http://mail-index.netbsd.org/tech-kern/2023/04/07/msg028833.html

This change adds a reloc keyword for controling where the EFI
boostrap will copy the kernel image. Possible values are:
default - the default and prior behavior, copy at 0x200000.
none - do not copy and use the kernel image where it was loaded.
address - specify an explicit address where to copy the kernel.

This comes with an amd64 kernel patch that makes it self-relocatable.
It first discover where it was loaded in memory, and if this is
different than the expected 0x200000, hhe the kernel relocates
itself and start over at the right address.

Merge x86 boot options in x86/boot(8) and add undocumented UEFI options

We were supposed to keep the option list in x86/boot(8), x86/dosoot(8)
and x86/pxeboot(8) in sync, but it did not happen, hence it may work
better with all the options in x86/boot(8). Also add the undocumented
UEFI boot options.

Add a SELFRELOC kernel option for the sake of documentation clarity.
Instead of telling that x86/boot(8) reloc command needs a kernel able
to self relocate, we can tell it needs a kernel built with the
SELFRELOC option. This keeps the reader from wondering what could
make a kernel able to self relocate.

Remove XXX todo marker left by mistake

Raise the version for new feature (here reloc command)
Suggested by Masanobu SAITOH
2023-05-13 11:45:53 +00:00
martin f6e9b66052 Pull up following revision(s) (requested by khorben in ticket #1631):
share/man/man4/video.4: revision 1.11

video(4): fix a typo (PR misc/57364)
2023-05-13 11:30:45 +00:00
martin 34f65cfc1f Ticket #1630 2023-05-02 17:25:54 +00:00
martin 8b8a48ecc8 Pull up following revision(s) (requested by mlelstv in ticket #1630):
lib/libc/locale/newlocale.c: revision 1.4

Fix parsing a locale string with multiple components.
Also check for truncation of a long locale string.
2023-05-02 17:24:55 +00:00
martin 03aba06e26 Tickets #1627 - #1629 2023-04-20 14:15:22 +00:00
martin 69f64ae180 Pull up following revision(s) (requested by tsutsui in ticket #1629):
usr.sbin/npf/npfd/npfd.8: revision 1.7

Fix tcpdump example from "-i npflog0.pcap" to "-i npflog0"
2023-04-20 14:13:27 +00:00
martin 56ff39a829 Pull up following revision(s) (requested by tsutsui in ticket #1628):
sys/arch/dreamcast/dev/microcode/aica_armcode.h: revision 1.5
	sys/arch/dreamcast/dev/microcode/aica_arm_locore.S: revision 1.4
	sys/arch/dreamcast/dev/microcode/aica_arm_locore.S: revision 1.5
	sys/arch/dreamcast/dev/microcode/Makefile: revision 1.6
	sys/arch/dreamcast/dev/microcode/aica_arm.c: revision 1.7
	sys/arch/dreamcast/dev/microcode/aica_arm.c: revision 1.8

arm side of aica(4) sometimes became unresponsive when audioplay was performed several times.
- disabled data cache at startup.
- compiled with cross-arm-none-eabi-gcc-8.3.0nb4 of pkg.
- added memset() in asm because gcc8 (and later) detects the zero clear part in
  own bzero function and calls memset internally, and bzero were replaced with memset.
improve comment, update mailaddr, and remove clause 3 from my licenses.
2023-04-20 14:08:07 +00:00
martin 0ac828a033 Pull up following revision(s) (requested by tsutsui in ticket #1627):
sys/arch/luna68k/conf/Makefile.luna68k: revision 1.30

Fix missing locore.d dependency output on make depend.
Reported from isaki@.  Looks missed in rev 1.13 (22 years ago):

https://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/luna68k/conf/Makefile.luna68k#rev1.13
2023-04-20 13:47:02 +00:00
martin cb81130d74 Backout accidental commit (branch/ticket mismatch) 2023-04-19 16:45:37 +00:00
martin 2e5361aff4 Pull up following revision(s) (requested by tsutsui in ticket #1627):
sys/arch/luna68k/luna68k/mainbus.c: revision 1.20

Fix device name for xpbus at mainbus for LUNA-II, missed on psgpam merge.

Fortunately harmless because xpbus_match() doesn't check ma_name in
mainbus_attach_args.
2023-04-19 16:43:23 +00:00
martin f259a45dad Tickets #1618 - #1626 2023-04-01 16:28:55 +00:00
martin 8e4ec9329c Pull up following revision(s) (requested by kre in ticket #1626):
usr.sbin/iostat/iostat.c: revision 1.68

Fix processing of the archaic arg format (BACKWARD_COMPATIBILITY) so it
doesn't repeat the processing every iteration.  Repeatedly seeing the wait
interval does no harm, but setting the iteration count (reps) over and
over again rather defeats its purpose.
2023-04-01 16:25:10 +00:00
martin 6ff454faa1 Pull up following revision(s) (requested by riastradh in ticket #1625):
sys/uvm/uvm_map.c: revision 1.403

mmap(2): Avoid arithmetic overflow in search for free space.

PR kern/56900
2023-04-01 16:22:14 +00:00
martin 6101e0d0ea Pull up following revision(s) (requested by riastradh in ticket #1624):
libexec/ld.elf_so/rtld.c: revision 1.212

ld.elf_so(8): Make fork take a shared, not exclusive, lock.

We only need to ensure that there are no concurrent modifications to
the rtld data structures in flight, since the threads that began
those modifications will not exist in the child and will therefore be
unable to complete them in the child.

A shared lock suffices to ensure there are no such concurrent
modifications in flight; an exclusive lock is not necessary, and can
cause deadlock if fork is executed from a signal handler, which is
explicitly allowed by POSIX (and our own sigaction(2) man page) which
marks fork as async-signal-safe.

PR lib/56979
2023-04-01 16:08:05 +00:00
martin 6cb45a21d3 Pull up following revision(s) (requested by riastradh in ticket #1623):
sys/uvm/uvm_map.c: revision 1.396

uvm(9): Fix mmap optimization for topdown case.

PR kern/51393
2023-04-01 16:03:48 +00:00
martin e7f7424d79 Pull up following revision(s) (requested by riastradh in ticket #1622):
sys/uvm/uvm_map.c: revision 1.395

uvm(9): Fix 19-year-old bug in assertion about mmap hint.

Previously this would _first_ remember the original hint, and _then_
clamp the hint to the VM map's range:

        orig_hint = hint;
        if (hint < vm_map_min(map)) {   /* check ranges ... */
                if (flags & UVM_FLAG_FIXED) {
                        UVMHIST_LOG(maphist,"<- VA below map range",0,0,0,0);
                        return (NULL);
                }
                hint = vm_map_min(map);
        ...
        KASSERTMSG(!topdown || hint <= orig_hint, "hint: %#jx, orig_hint: %#jx",
            (uintmax_t)hint, (uintmax_t)orig_hint);

Even if nothing else happens in the ellipsis, taking the branch
guarantees the assertion will fail in the topdown case.
2023-04-01 16:00:28 +00:00
martin ad029167bd Pull up following revision(s) (requested by riastradh in ticket #1621):
sys/uvm/uvm_mmap.c: revision 1.180

mmap(2): If we fail with a hint, try again without it.
`Hint' here means nonzero addr, but no MAP_FIXED or MAP_TRYFIXED.

This is suboptimal -- we could teach uvm_mmap to do a fancier search
using the address as a hint.  But this should do for now.

Candidate fix for PR kern/55533.
2023-04-01 15:54:35 +00:00
martin e0d20e0298 Pull up following revision(s) (requested by riastradh in ticket #1620):
sys/compat/netbsd32/netbsd32_fs.c: revision 1.89

data_len == 0 on mount means "the kernel knows". Fixes amd on compat32.
2023-04-01 15:51:16 +00:00
martin a0f3917892 Pull up following revision(s) (requested by mlelstv in ticket #1618):
external/bsd/fetch/dist/libfetch/common.c: revision 1.3
	external/bsd/fetch/dist/libfetch/common.c: revision 1.4

Use SNI.

Shut down SSL when closing connection.
2023-04-01 15:27:07 +00:00
martin 08de065c72 Tickets #1616 and #1617 2023-03-30 12:00:33 +00:00
martin 9450b6d742 Pull up following revision(s) (requested by riastradh in ticket #1617):
sys/nfs/nfs_serv.c: revision 1.184
	sys/nfs/nfs_srvsubs.c: revision 1.17
	sys/nfs/nfsm_subs.h: revision 1.56
	sys/nfs/nfsm_subs.h: revision 1.57

nfs: Use unsigned fhlen so we don't trip over negative values.

nfs: Avoid integer overflow in nfs_namei bounds check.

nfs: Use unsigned name lengths so we don't trip over negative ones.
- nfsm_strsiz is only used with uint32_t in callers, but let's not
  leave it as a rake to step on.
- nfsm_srvnamesiz is abused with signed s.  The internal conversion
  to unsigned serves to reject both negative and too-large values in
  such callers.
  XXX Should make all callers use unsigned, rather than flipping back
  and forth between signed and unsigned for name lengths.

nfs: Avoid free of uninitialized on bad name size in create, mknod.
XXX These error branches are a nightmare and need to be more
systematically cleaned up.  Even if they are correct now, they are
impossible to audit and extremely fragile in case anyone ever needs
to make other changes to them.
2023-03-30 11:59:24 +00:00
martin 179f112001 Pull up following revision(s) (requested by abs in ticket #1616):
distrib/amiga/stand/xdevtostream.uue: revision 1.1
	distrib/amiga/stand/device-streams-2.2.1.lha.uue: revision 1.1
	distrib/amiga/stand/rdbinfo.uue: revision 1.2
	distrib/amiga/stand/device-streams.tar.gz.uue: file removal
	distrib/amiga/stand/Makefile: revision 1.6
	distrib/amiga/stand/device-streams-2.2.1-src.tar.gz.uue: revision 1.1
	distrib/amiga/stand/device-streams.README.md: revision 1.1
	distrib/amiga/stand/update: revision 1.1
	distrib/amiga/stand/xstreamtodev.uue: revision 1.2

Update device-streams binaries from Roc Valles
- Split device-streams.tar.gz.uue into seperate source and
  binaries device-streams-2.2.1-src.tar.gz and device-streams-2.2.1.lha
  to match upstream
- Add device-streams.README.md from upstream
- Add simple 'update' script to help updating next time
- Binaries now avoid 32 bit file offset issues (they use 64 bit
  offsets where supported, and otherwise avoid corrupting data due
  to 32 bit limits)
- Binaries now built with updated bebbo/amiga-gcc toolchain

Pullup: netbsd-10, netbsd-9 and possibly netbsd-8
2023-03-30 11:51:03 +00:00
martin d55e5a57b7 Ticket #1615 2023-03-23 12:07:38 +00:00
martin e354349144 Pull up following revision(s) (requested by ozaki-r in ticket #1615):
sys/netinet6/raw_ip6.c: revision 1.183 (via patch)
	sys/netinet6/ip6_output.c: revision 1.233

in6: reject setting negative values but -1 via setsockopt(IPV6_CHECKSUM)
Same as OpenBSD.

in6: make sure a user-specified checksum field is within a packet
From OpenBSD
2023-03-23 12:06:49 +00:00
martin b26a485995 Ticket #1614 2023-03-15 18:44:39 +00:00
martin 3a958457dc Pull up following revision(s) (requested by hannken in ticket #1614):
sys/dev/vnd.c: revision 1.288

Do not limit the number of pending requests for the worker thread.

With wedge on vnd it prevents a deadlock when requests get queued with
biodone() -> dkstart() -> vndstrategy().

Fixes PR kern/57263 "vnd locks up when using vn_rdwr"
2023-03-15 18:43:28 +00:00
martin e83cb940ea Tickets #1612 and #1613 2023-03-14 17:12:37 +00:00
martin ad8d7d81dc Pull up following revision(s) (requested by kardel in ticket #119):
sys/net/npf/npf_mbuf.c: revision 1.25
	sys/net/npf/npf.h: revision 1.64
	sys/net/npf/npf_sendpkt.c: revision 1.23

PR kern/56052:
allow block-return packets passed through without rule matching.
Included up-stream ashttps://github.com/rmind/npf/pull/115
2023-03-14 17:11:13 +00:00
martin 62ece7108d Pull up following revision(s) (requested by kardel in ticket #1612):
usr.sbin/npf/npf-params.7: revision 1.9
	sys/net/npf/npf_params.c: revision 1.6

PR kern/55654:

Switch default for parameter npf ip4.reassembly to 1.

This makes the NPF default configuration comply with host
requirements for IPv4.
2023-03-14 17:04:51 +00:00
jdc c89a4c7b68 Ticket #1611 2023-03-13 21:38:46 +00:00
jdc 039bc2fcd7 Pull up the following revision (requested by martin in ticket #1611):
build.sh: revision 1.366 via patch

Avoid the dependency on a populated tooldir (or building the tools)
when simply doing mkrepro-timestamp and the current repository setups
does not actually require it.
2023-03-13 21:38:13 +00:00
martin a1c4070b92 Ticket #161 2023-03-07 20:02:04 +00:00
martin c5f0fb4614 Pull up following revision(s) (requested by riastradh in ticket #1610):
sys/kern/vfs_syscalls.c: revision 1.557

open(2): Don't map ERESTART to EINTR.

If a file or device's open function returns ERESTART, respect that --
restart the syscall; don't pretend a signal has been delivered when
it was not.  If an SA_RESTART signal was delivered, POSIX does not
allow it to fail with EINTR:

    SA_RESTART
        This flag affects the behavior of interruptible functions;
        that is, those specified to fail with errno set to [EINTR].
        If set, and a function specified as interruptible is
        interrupted by this signal, the function shall restart and
        shall not fail with [EINTR] unless otherwise specified.  If
        an interruptible function which uses a timeout is restarted,
        the duration of the timeout following the restart is set to
        an unspecified value that does not exceed the original
        timeout value.  If the flag is not set, interruptible
        functions interrupted by this signal shall fail with errno
        set to [EINTR].

https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaction.html

Nothing in the POSIX definition of open specifies otherwise.

In 1990, Kirk McKusick added these lines with a mysterious commit
message:
Author: Kirk McKusick <mckusick>
Date:   Tue Apr 10 19:36:33 1990 -0800
    eliminate longjmp from the kernel (for karels)
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 7bc7b39bbf..d572d3a32d 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -14,7 +14,7 @@
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- *     @(#)vfs_syscalls.c      7.42 (Berkeley) 3/26/90
+ *     @(#)vfs_syscalls.c      7.43 (Berkeley) 4/10/90
  */
 #include "param.h"
@@ -530,8 +530,10 @@ copen(scp, fmode, cmode, ndp, resultfd)
        if (error = vn_open(ndp, fmode, (cmode & 07777) &~ S_ISVTX)) {
                crfree(fp->f_cred);
                fp->f_count--;
-               if (error == -1)        /* XXX from fdopen */
-                       return (0);     /* XXX from fdopen */
+               if (error == EJUSTRETURN)       /* XXX from fdopen */
+                       return (0);             /* XXX from fdopen */
+               if (error == ERESTART)
+                       error = EINTR;
                scp->sc_ofile[indx] = NULL;
                return (error);
        }

(found via this git import of the CSRG history:
cce2869b7a

This change appears to have served two related purposes:
1. The fdopen function (the erstwhile open routine for /dev/fd/N)
   used to return -1 as a hack to mean it had just duplicated the fd;
   it was recently changed by Mike Karels, in kern_descrip.c 7.9, to
   return EJUSTRETURN, now defined to be -2, presumably to avoid a
   conflict with ERESTART, defined to be -1.  So this change finished
   part of the change by Mike Karels to use a different magic return
   code from fdopen.
   Of course, today we use still another disgusting hack, EDUPFD, for
   the same purpose, so none of this is relevant any more.
2. Prior to April 1990, the kernel handled signals during tsleep(9)
   by longjmping out to the system call entry point or similar.  In
   April 1990, Mike Karels worked to convert all of that into
   explicit unwind logic by passing through EINTR or ERESTART as
   appropriate, instead of setjmp at each entry point.

However, it's not clear to me why this setjmp/longjmp and
fdopen/-1/EJUSTRETURN renovation justifies unconditional logic to map
ERESTART to EINTR in open(2).  I suspect it was a mistake.

In 2013, the corresponding logic to map ERESTART to EINTR in open(2)
was removed from FreeBSD:

   r246472 | kib | 2013-02-07 14:53:33 +0000 (Thu, 07 Feb 2013) | 11 lines
   Stop translating the ERESTART error from the open(2) into EINTR.
   Posix requires that open(2) is restartable for SA_RESTART.
   For non-posix objects, in particular, devfs nodes, still disable
   automatic restart of the opens. The open call to a driver could have
   significant side effects for the hardware.
   Noted and reviewed by:  jilles
   Discussed with: bde
   MFC after:      2 weeks

Index: vfs_syscalls.c
===================================================================
--- vfs_syscalls.c      (revision 246471)
+++ vfs_syscalls.c      (revision 246472)
@@ -1106,8 +1106,6 @@
                                goto success;
                }
-               if (error == ERESTART)
-                       error = EINTR;
                goto bad;
        }
        td->td_dupfd = 0;

https://cgit.freebsd.org/src/commit/sys/kern/vfs_syscalls.c?id=2ca49983425886121b506cb5126b60a705afc38c">https://cgit.freebsd.org/src/commit/sys/kern/vfs_syscalls.c?id=2ca49983425886121b506cb5126b60a705afc38c

It's not clear to me that there's any reason to treat device nodes
specially here; in fact, if a driver's .d_open routine sleeps and is
woken by a concurrent revoke without a signal pending or with an
SA_RESTART signal pending, it is wrong for it to fail with EINTR.

But it MUST restart the whole system call rather than continue
sleeping in a loop or just exit the loop and continue to open,
because it is mandatory in the security model of revoke for open(2)
to retry the permissions check at that point.

PR kern/57260
2023-03-07 20:01:06 +00:00
martin 73b18bc5af Ticket #1609 2023-03-03 17:05:04 +00:00
martin 4d750db448 Pull up following revision(s) (requested by sekiya in ticket #1609):
sys/arch/arm/ti/if_cpsw.c: revision 1.17

Uncomment and protect sanity checks that would drop into the debugger with a
CPSW_DEBUG_DMA define.

This handles a condition where checking for DMA_RXEOQ in the received packet
results in the console being spammed with "rxeoq" messages, which soon results
in a kernel panic.  The corresponding Debugger() call for this check was
commented out.

The TI documentation ("AM335x and AMIC110 Sitara(TM) Processors Technical
Reference Manual") documents the EOQ bit thus:

        (14.3.2.4.1.2.4) This bit is set by the EMAC when the EMAC identifies
        that a descriptor is the last for a given packet received (also sets
        the EOP flag), and there are no more descriptors in the receive list
        (next descriptor pointer is NULL).  The software application can use
        this bit to detect when the EMAC receiver for the corresponding channel
        has halted. This is useful when the application appends additional free
        buffer descriptors to an active receive queue. Note that this flag is
        valid on EOP descriptors only.

Moving this check (and the offending printf() ) into a debug #ifdef results in
the BeagleBone Green surviving the nightly checks; it would always drop into
the debugger before this change.
2023-03-03 17:04:17 +00:00
martin 256a0e1e0b Tickets #1606 - #1608 2023-02-24 14:10:25 +00:00
martin 180e8b8e65 Pull up the following revisions, requested by kim in ticket #1608:
crypto/external/bsd/openssl/dist/apps/vms_decc_argv.c up to 1.1.1.1
	crypto/external/bsd/openssl/dist/crypto/bn/rsa_sup_mul.c up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/certs/cross-key.pem up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/certs/cross-root.pem up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/certs/root-cross-cert.pem up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1_issuer-key.pem up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/smime-certs/badrsa.pem up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/ssl-tests/30-supported-groups.conf up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/ssl-tests/30-supported-groups.conf.in up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/dane-cross.in up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/data.bin  up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/testrsa_withattrs.der up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/testrsa_withattrs.pem up to 1.1.1.1
	crypto/external/bsd/openssl/dist/util/perl/OpenSSL/copyright.pm up to 1.1.1.1
	crypto/external/bsd/openssl/dist/test/ssl-tests/16-certstatus.conf delete
	crypto/external/bsd/openssl/dist/CHANGES        up to 1.30
	crypto/external/bsd/openssl/dist/Configure      up to 1.31
	crypto/external/bsd/openssl/dist/NEWS           up to 1.30
	crypto/external/bsd/openssl/dist/README         up to 1.30
	crypto/external/bsd/openssl/dist/config         up to 1.1.1.14
	crypto/external/bsd/openssl/dist/Configurations/10-main.conf up to 1.1.1.12
	crypto/external/bsd/openssl/dist/Configurations/15-android.conf up to 1.1.1.5
	crypto/external/bsd/openssl/dist/Configurations/descrip.mms.tmpl up to 1.1.1.8
	crypto/external/bsd/openssl/dist/Configurations/unix-Makefile.tmpl up to 1.1.1.12
	crypto/external/bsd/openssl/dist/Configurations/windows-makefile.tmpl up to 1.1.1.8
	crypto/external/bsd/openssl/dist/apps/apps.c    up to 1.1.1.23
	crypto/external/bsd/openssl/dist/apps/apps.h    up to 1.1.1.16
	crypto/external/bsd/openssl/dist/apps/ca.c      up to 1.22
	crypto/external/bsd/openssl/dist/apps/ciphers.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/apps/crl2p7.c  up to 1.1.1.7
	crypto/external/bsd/openssl/dist/apps/dgst.c    up to 1.1.1.16
	crypto/external/bsd/openssl/dist/apps/enc.c     up to 1.1.1.17
	crypto/external/bsd/openssl/dist/apps/ocsp.c    up to 1.23
	crypto/external/bsd/openssl/dist/apps/openssl.c up to 1.7
	crypto/external/bsd/openssl/dist/apps/openssl.cnf up to 1.9
	crypto/external/bsd/openssl/dist/apps/passwd.c  up to 1.1.1.8
	crypto/external/bsd/openssl/dist/apps/s_cb.c    up to 1.1.1.21
	crypto/external/bsd/openssl/dist/apps/s_client.c up to 1.25
	crypto/external/bsd/openssl/dist/apps/s_server.c up to 1.25
	crypto/external/bsd/openssl/dist/apps/s_socket.c up to 1.1.1.11
	crypto/external/bsd/openssl/dist/apps/speed.c   up to 1.21
	crypto/external/bsd/openssl/dist/apps/vms_decc_init.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/apps/x509.c    up to 1.1.1.17
	crypto/external/bsd/openssl/dist/crypto/armcap.c up to 1.14
	crypto/external/bsd/openssl/dist/crypto/init.c  up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/ppccap.c up to 1.20
	crypto/external/bsd/openssl/dist/crypto/s390x_arch.h up to 1.1.1.3
	crypto/external/bsd/openssl/dist/crypto/s390xcap.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/crypto/sparcv9cap.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/uid.c   up to 1.8
	crypto/external/bsd/openssl/dist/crypto/aes/asm/aesni-x86.pl up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/aes/asm/aesv8-armx.pl up to 1.1.1.7
	crypto/external/bsd/openssl/dist/crypto/asn1/a_object.c up to 1.1.1.13
	crypto/external/bsd/openssl/dist/crypto/asn1/a_print.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/crypto/asn1/a_strex.c up to 1.10
	crypto/external/bsd/openssl/dist/crypto/asn1/asn1_lib.c up to 1.1.1.10
	crypto/external/bsd/openssl/dist/crypto/asn1/asn_mime.c up to 1.13
	crypto/external/bsd/openssl/dist/crypto/asn1/bio_asn1.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/asn1/bio_ndef.c up to 1.1.1.10
	crypto/external/bsd/openssl/dist/crypto/asn1/charmap.h up to 1.1.1.8
	crypto/external/bsd/openssl/dist/crypto/asn1/charmap.pl up to 1.1.1.7
	crypto/external/bsd/openssl/dist/crypto/asn1/d2i_pr.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/asn1/t_spki.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/crypto/bio/b_addr.c up to 1.1.1.11
	crypto/external/bsd/openssl/dist/crypto/bio/b_print.c up to 1.1.1.11
	crypto/external/bsd/openssl/dist/crypto/bio/b_sock2.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/crypto/bio/bss_dgram.c up to 1.1.1.19
	crypto/external/bsd/openssl/dist/crypto/bio/bss_mem.c up to 1.1.1.12
	crypto/external/bsd/openssl/dist/crypto/bn/bn_blind.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/crypto/bn/bn_div.c up to 1.1.1.15
	crypto/external/bsd/openssl/dist/crypto/bn/bn_err.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/crypto/bn/bn_exp.c up to 1.21
	crypto/external/bsd/openssl/dist/crypto/bn/bn_exp2.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/crypto/bn/bn_gcd.c up to 1.1.1.10
	crypto/external/bsd/openssl/dist/crypto/bn/bn_local.h up to 1.1.1.3
	crypto/external/bsd/openssl/dist/crypto/bn/bn_mont.c up to 1.13
	crypto/external/bsd/openssl/dist/crypto/bn/bn_nist.c up to 1.7
	crypto/external/bsd/openssl/dist/crypto/bn/bn_prime.h up to 1.1.1.8
	crypto/external/bsd/openssl/dist/crypto/bn/bn_prime.pl up to 1.1.1.5
	crypto/external/bsd/openssl/dist/crypto/bn/bn_print.c up to 1.4
	crypto/external/bsd/openssl/dist/crypto/bn/bn_sqrt.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/crypto/bn/build.info up to 1.1.1.4
	crypto/external/bsd/openssl/dist/crypto/bn/rsaz_exp.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/crypto/bn/rsaz_exp.h up to 1.1.1.5
	crypto/external/bsd/openssl/dist/crypto/bn/asm/mips.pl up to 1.9
	crypto/external/bsd/openssl/dist/crypto/bn/asm/x86_64-mont5.pl up to 1.1.1.14
	crypto/external/bsd/openssl/dist/crypto/chacha/asm/chacha-x86_64.pl up to 1.1.1.5
	crypto/external/bsd/openssl/dist/crypto/cms/cms_enc.c up to 1.1.1.10
	crypto/external/bsd/openssl/dist/crypto/cms/cms_env.c up to 1.1.1.13
	crypto/external/bsd/openssl/dist/crypto/cms/cms_err.c up to 1.1.1.10
	crypto/external/bsd/openssl/dist/crypto/conf/conf_def.h up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/conf/keysets.pl up to 1.1.1.6
	crypto/external/bsd/openssl/dist/crypto/dh/dh_ameth.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/dsa/dsa_prn.c up to 1.1.1.5
	crypto/external/bsd/openssl/dist/crypto/ec/ec2_oct.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/crypto/ec/ec_asn1.c up to 1.13
	crypto/external/bsd/openssl/dist/crypto/ec/ec_curve.c up to 1.1.1.11
	crypto/external/bsd/openssl/dist/crypto/ec/ec_key.c up to 1.7
	crypto/external/bsd/openssl/dist/crypto/ec/ecp_nistz256.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/ec/curve448/curve448.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/crypto/ec/curve448/field.h up to 1.1.1.3
	crypto/external/bsd/openssl/dist/crypto/engine/eng_all.c up to 1.14
	crypto/external/bsd/openssl/dist/crypto/engine/eng_dyn.c up to 1.1.1.10
	crypto/external/bsd/openssl/dist/crypto/engine/eng_lib.c up to 1.9
	crypto/external/bsd/openssl/dist/crypto/engine/eng_list.c up to 1.1.1.10
	crypto/external/bsd/openssl/dist/crypto/engine/eng_local.h up to 1.1.1.2
	crypto/external/bsd/openssl/dist/crypto/err/err.c up to 1.1.1.14
	crypto/external/bsd/openssl/dist/crypto/err/openssl.txt up to 1.1.1.10
	crypto/external/bsd/openssl/dist/crypto/evp/bio_enc.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/evp/digest.c up to 1.1.1.13
	crypto/external/bsd/openssl/dist/crypto/evp/e_aes.c up to 1.25
	crypto/external/bsd/openssl/dist/crypto/evp/e_camellia.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/crypto/evp/evp_enc.c up to 1.15
	crypto/external/bsd/openssl/dist/crypto/evp/evp_local.h up to 1.1.1.2
	crypto/external/bsd/openssl/dist/crypto/evp/p_lib.c up to 1.1.1.12
	crypto/external/bsd/openssl/dist/crypto/hmac/hm_ameth.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/lhash/lhash.c up to 1.10
	crypto/external/bsd/openssl/dist/crypto/objects/o_names.c up to 1.10
	crypto/external/bsd/openssl/dist/crypto/objects/obj_dat.c up to 1.1.1.10
	crypto/external/bsd/openssl/dist/crypto/objects/obj_dat.h up to 1.1.1.13
	crypto/external/bsd/openssl/dist/crypto/objects/obj_dat.pl up to 1.1.1.6
	crypto/external/bsd/openssl/dist/crypto/objects/obj_xref.h up to 1.1.1.12
	crypto/external/bsd/openssl/dist/crypto/objects/objects.pl up to 1.1.1.7
	crypto/external/bsd/openssl/dist/crypto/objects/objxref.pl up to 1.1.1.8
	crypto/external/bsd/openssl/dist/crypto/pem/pem_lib.c up to 1.1.1.16
	crypto/external/bsd/openssl/dist/crypto/pkcs12/p12_key.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/crypto/poly1305/poly1305_ameth.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/crypto/rand/drbg_lib.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/crypto/rand/rand_lib.c up to 1.1.1.16
	crypto/external/bsd/openssl/dist/crypto/rand/rand_unix.c up to 1.18
	crypto/external/bsd/openssl/dist/crypto/rand/rand_vms.c up to 1.1.1.12
	crypto/external/bsd/openssl/dist/crypto/rand/rand_win.c up to 1.1.1.14
	crypto/external/bsd/openssl/dist/crypto/rsa/rsa_ameth.c up to 1.1.1.16
	crypto/external/bsd/openssl/dist/crypto/rsa/rsa_ossl.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/rsa/rsa_prn.c up to 1.1.1.5
	crypto/external/bsd/openssl/dist/crypto/siphash/siphash_ameth.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/crypto/sm2/sm2_crypt.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/crypto/sm2/sm2_pmeth.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/crypto/srp/srp_vfy.c up to 1.1.1.13
	crypto/external/bsd/openssl/dist/crypto/store/loader_file.c up to 1.1.1.5
	crypto/external/bsd/openssl/dist/crypto/ts/ts_rsp_verify.c up to 1.1.1.12
	crypto/external/bsd/openssl/dist/crypto/ts/ts_verify_ctx.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/crypto/txt_db/txt_db.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/crypto/ui/ui_openssl.c up to 1.18
	crypto/external/bsd/openssl/dist/crypto/x509/by_dir.c up to 1.1.1.12
	crypto/external/bsd/openssl/dist/crypto/x509/t_x509.c up to 1.1.1.5
	crypto/external/bsd/openssl/dist/crypto/x509/x509_cmp.c up to 1.1.1.17
	crypto/external/bsd/openssl/dist/crypto/x509/x509_req.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/crypto/x509/x509_vfy.c up to 1.26
	crypto/external/bsd/openssl/dist/crypto/x509/x509_vpm.c up to 1.1.1.10
	crypto/external/bsd/openssl/dist/crypto/x509/x_all.c up to 1.1.1.13
	crypto/external/bsd/openssl/dist/crypto/x509/x_crl.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/crypto/x509/x_name.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_addr.c up to 1.9
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_akey.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_alt.c up to 1.1.1.12
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_asid.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_cpols.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_genn.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_lib.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_ncons.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_pci.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_sxnet.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3_utl.c up to 1.1.1.12
	crypto/external/bsd/openssl/dist/crypto/x509v3/v3err.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/demos/bio/client-arg.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/demos/bio/client-conf.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/fingerprints.txt up to 1.1.1.7
	crypto/external/bsd/openssl/dist/doc/man1/cms.pod up to 1.1.1.4
	crypto/external/bsd/openssl/dist/doc/man1/enc.pod up to 1.1.1.7
	crypto/external/bsd/openssl/dist/doc/man1/passwd.pod up to 1.1.1.2
	crypto/external/bsd/openssl/dist/doc/man1/pkeyutl.pod up to 1.1.1.5
	crypto/external/bsd/openssl/dist/doc/man1/s_client.pod up to 1.1.1.8
	crypto/external/bsd/openssl/dist/doc/man1/s_server.pod up to 1.1.1.8
	crypto/external/bsd/openssl/dist/doc/man1/x509.pod up to 1.1.1.7
	crypto/external/bsd/openssl/dist/doc/man3/BIO_ctrl.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/BIO_f_base64.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/BIO_f_ssl.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/BIO_push.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/BN_add.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/BN_cmp.pod up to 1.1.1.2
	crypto/external/bsd/openssl/dist/doc/man3/BN_rand.pod up to 1.1.1.4
	crypto/external/bsd/openssl/dist/doc/man3/CMS_add0_cert.pod up to 1.1.1.2
	crypto/external/bsd/openssl/dist/doc/man3/CMS_verify.pod up to 1.1.1.4
	crypto/external/bsd/openssl/dist/doc/man3/DEFINE_STACK_OF.pod up to 1.1.1.2
	crypto/external/bsd/openssl/dist/doc/man3/EC_KEY_new.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/ENGINE_add.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/ERR_load_strings.pod up to 1.1.1.2
	crypto/external/bsd/openssl/dist/doc/man3/EVP_EncryptInit.pod up to 1.1.1.7
	crypto/external/bsd/openssl/dist/doc/man3/OBJ_nid2obj.pod up to 1.1.1.4
	crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_LH_COMPFUNC.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/OPENSSL_init_crypto.pod up to 1.1.1.4
	crypto/external/bsd/openssl/dist/doc/man3/PKCS7_sign.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/PKCS7_sign_add_signer.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/PKCS7_verify.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/SSL_CONF_cmd.pod up to 1.1.1.5
	crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set1_verify_cert_store.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_num_tickets.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_timeout.pod up to 1.1.1.2
	crypto/external/bsd/openssl/dist/doc/man3/SSL_CTX_set_tlsext_ticket_key_cb.pod up to 1.1.1.5
	crypto/external/bsd/openssl/dist/doc/man3/SSL_get_current_cipher.pod up to 1.1.1.2
	crypto/external/bsd/openssl/dist/doc/man3/SSL_get_session.pod up to 1.1.1.2
	crypto/external/bsd/openssl/dist/doc/man3/SSL_set_fd.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/X509_STORE_CTX_new.pod up to 1.1.1.6
	crypto/external/bsd/openssl/dist/doc/man3/d2i_PrivateKey.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man3/d2i_X509.pod up to 1.1.1.6
	crypto/external/bsd/openssl/dist/doc/man7/ossl_store.pod up to 1.1.1.3
	crypto/external/bsd/openssl/dist/doc/man7/x509.pod up to 1.1.1.2
	crypto/external/bsd/openssl/dist/engines/e_afalg.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/engines/e_dasync.c up to 1.1.1.5
	crypto/external/bsd/openssl/dist/engines/asm/e_padlock-x86.pl up to 1.1.1.3
	crypto/external/bsd/openssl/dist/engines/asm/e_padlock-x86_64.pl up to 1.1.1.3
	crypto/external/bsd/openssl/dist/include/crypto/bn.h up to 1.1.1.2
	crypto/external/bsd/openssl/dist/include/crypto/rand.h up to 1.1.1.2
	crypto/external/bsd/openssl/dist/include/crypto/sm2.h up to 1.1.1.2
	crypto/external/bsd/openssl/dist/include/crypto/x509.h up to 1.1.1.2
	crypto/external/bsd/openssl/dist/include/internal/sockets.h up to 1.1.1.4
	crypto/external/bsd/openssl/dist/include/openssl/bnerr.h up to 1.1.1.3
	crypto/external/bsd/openssl/dist/include/openssl/cmserr.h up to 1.1.1.3
	crypto/external/bsd/openssl/dist/include/openssl/e_os2.h up to 1.1.1.6
	crypto/external/bsd/openssl/dist/include/openssl/ec.h up to 1.1.1.6
	crypto/external/bsd/openssl/dist/include/openssl/engine.h up to 1.1.1.3
	crypto/external/bsd/openssl/dist/include/openssl/obj_mac.h up to 1.1.1.7
	crypto/external/bsd/openssl/dist/include/openssl/opensslv.h up to 1.1.1.17
	crypto/external/bsd/openssl/dist/include/openssl/ssl.h up to 1.1.1.10
	crypto/external/bsd/openssl/dist/include/openssl/sslerr.h up to 1.1.1.6
	crypto/external/bsd/openssl/dist/include/openssl/x509v3.h up to 1.1.1.7
	crypto/external/bsd/openssl/dist/include/openssl/x509v3err.h up to 1.1.1.3
	crypto/external/bsd/openssl/dist/ssl/bio_ssl.c  up to 1.1.1.11
	crypto/external/bsd/openssl/dist/ssl/d1_lib.c   up to 1.12
	crypto/external/bsd/openssl/dist/ssl/packet.c   up to 1.1.1.3
	crypto/external/bsd/openssl/dist/ssl/packet_local.h up to 1.1.1.2
	crypto/external/bsd/openssl/dist/ssl/s3_cbc.c   up to 1.11
	crypto/external/bsd/openssl/dist/ssl/s3_enc.c   up to 1.17
	crypto/external/bsd/openssl/dist/ssl/s3_lib.c   up to 1.30
	crypto/external/bsd/openssl/dist/ssl/s3_msg.c   up to 1.1.1.5
	crypto/external/bsd/openssl/dist/ssl/ssl_asn1.c up to 1.1.1.12
	crypto/external/bsd/openssl/dist/ssl/ssl_cert.c up to 1.1.1.17
	crypto/external/bsd/openssl/dist/ssl/ssl_ciph.c up to 1.23
	crypto/external/bsd/openssl/dist/ssl/ssl_err.c  up to 1.19
	crypto/external/bsd/openssl/dist/ssl/ssl_init.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/ssl/ssl_lib.c  up to 1.22
	crypto/external/bsd/openssl/dist/ssl/ssl_local.h up to 1.1.1.4
	crypto/external/bsd/openssl/dist/ssl/ssl_rsa.c  up to 1.1.1.11
	crypto/external/bsd/openssl/dist/ssl/ssl_txt.c  up to 1.1.1.10
	crypto/external/bsd/openssl/dist/ssl/t1_enc.c   up to 1.22
	crypto/external/bsd/openssl/dist/ssl/t1_lib.c   up to 1.35
	crypto/external/bsd/openssl/dist/ssl/tls13_enc.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/ssl/record/rec_layer_s3.c up to 1.1.1.9
	crypto/external/bsd/openssl/dist/ssl/record/ssl3_buffer.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/ssl/record/ssl3_record.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/ssl/statem/README up to 1.1.1.3
	crypto/external/bsd/openssl/dist/ssl/statem/extensions.c up to 1.1.1.10
	crypto/external/bsd/openssl/dist/ssl/statem/extensions_clnt.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/ssl/statem/extensions_cust.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/ssl/statem/extensions_srvr.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/ssl/statem/statem_clnt.c up to 1.1.1.14
	crypto/external/bsd/openssl/dist/ssl/statem/statem_dtls.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/ssl/statem/statem_lib.c up to 1.1.1.11
	crypto/external/bsd/openssl/dist/ssl/statem/statem_local.h up to 1.1.1.2
	crypto/external/bsd/openssl/dist/ssl/statem/statem_srvr.c up to 1.1.1.12
	crypto/external/bsd/openssl/dist/test/afalgtest.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/asn1_decode_test.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/asn1_internal_test.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/bio_memleak_test.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/test/bntest.c  up to 1.10
	crypto/external/bsd/openssl/dist/test/build.info up to 1.1.1.13
	crypto/external/bsd/openssl/dist/test/clienthellotest.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/test/ct_test.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/test/danetest.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/dtls_mtu_test.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/dtlstest.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/test/ec_internal_test.c up to 1.1.1.5
	crypto/external/bsd/openssl/dist/test/ectest.c  up to 1.9
	crypto/external/bsd/openssl/dist/test/evp_extra_test.c up to 1.11
	crypto/external/bsd/openssl/dist/test/evp_test.c up to 1.9
	crypto/external/bsd/openssl/dist/test/exptest.c up to 1.5
	crypto/external/bsd/openssl/dist/test/packettest.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/test/pemtest.c up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/rsa_test.c up to 1.9
	crypto/external/bsd/openssl/dist/test/sm2_internal_test.c up to 1.1.1.4
	crypto/external/bsd/openssl/dist/test/sslapitest.c up to 1.1.1.12
	crypto/external/bsd/openssl/dist/test/ssltest_old.c up to 1.1.1.7
	crypto/external/bsd/openssl/dist/test/ssltestlib.c up to 1.1.1.8
	crypto/external/bsd/openssl/dist/test/ssltestlib.h up to 1.1.1.9
	crypto/external/bsd/openssl/dist/test/test_test.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/v3ext.c   up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/v3nametest.c up to 1.1.1.5
	crypto/external/bsd/openssl/dist/test/verify_extra_test.c up to 1.1.1.6
	crypto/external/bsd/openssl/dist/test/x509_internal_test.c up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/x509_time_test.c up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/certs/ee-ed25519.pem up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/certs/ee-self-signed.pem up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1-key.pem up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1.pem up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1.sct up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/certs/embeddedSCTs1_issuer.pem up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/certs/root-ed25519.pem up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/certs/rootCA.pem up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/certs/setup.sh up to 1.1.1.10
	crypto/external/bsd/openssl/dist/test/recipes/01-test_symbol_presence.t up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/recipes/15-test_genrsa.t up to 1.1.1.4
	crypto/external/bsd/openssl/dist/test/recipes/20-test_dgst.t up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/recipes/25-test_req.t up to 1.1.1.5
	crypto/external/bsd/openssl/dist/test/recipes/25-test_verify.t up to 1.1.1.8
	crypto/external/bsd/openssl/dist/test/recipes/25-test_x509.t up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13hrr.t up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/recipes/70-test_tls13kexmodes.t up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/recipes/70-test_verify_extra.t up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/recipes/80-test_cms.t up to 1.1.1.4
	crypto/external/bsd/openssl/dist/test/recipes/80-test_dane.t up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/recipes/80-test_ssl_new.t up to 1.1.1.6
	crypto/external/bsd/openssl/dist/test/recipes/80-test_ssl_old.t up to 1.1.1.5
	crypto/external/bsd/openssl/dist/test/recipes/10-test_bn_data/bnmod.txt up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpciph.txt up to 1.1.1.5
	crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evpkdf.txt up to 1.3
	crypto/external/bsd/openssl/dist/test/recipes/30-test_evp_data/evppkey.txt up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/recipes/95-test_external_pyca_data/cryptography.sh up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/smime-certs/mksmime-certs.sh up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/smime-certs/smdh.pem up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/smime-certs/smdsa1.pem up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/smime-certs/smdsa2.pem up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/smime-certs/smdsa3.pem up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/smime-certs/smec1.pem up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/smime-certs/smec2.pem up to 1.1.1.2
	crypto/external/bsd/openssl/dist/test/smime-certs/smroot.pem up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/smime-certs/smrsa1.pem up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/smime-certs/smrsa2.pem up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/smime-certs/smrsa3.pem up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/ssl-tests/10-resumption.conf up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/ssl-tests/11-dtls_resumption.conf up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/ssl-tests/protocol_version.pm up to 1.1.1.3
	crypto/external/bsd/openssl/dist/test/testutil/driver.c up to 1.4
	crypto/external/bsd/openssl/dist/test/testutil/format_output.c up to 1.6
	crypto/external/bsd/openssl/dist/test/testutil/tests.c up to 1.6
	crypto/external/bsd/openssl/dist/tools/c_rehash.in up to 1.1.1.7
	crypto/external/bsd/openssl/dist/util/mkdir-p.pl up to 1.1.1.3
	crypto/external/bsd/openssl/dist/util/private.num up to 1.1.1.4
	crypto/external/bsd/openssl/lib/libcrypto/shlib_version up to 1.15
	crypto/external/bsd/openssl/lib/libcrypto/bn.inc up to 1.8 (patch)
	distrib/sets/lists/base/shl.mi				1.944 (patch)
	distrib/sets/lists/debug/shl.mi				1.302 (patch)
	doc/3RDPARTY						1.1912 (manual edit)

Import OpenSSL 1.1.1t.
2023-02-24 14:07:45 +00:00
martin cc8c8117a4 Pull up following revision(s) (requested by abs in ticket #1607):
sys/arch/amiga/stand/loadbsd/loadbsd.c: revision 1.37
	distrib/amiga/stand/loadbsd.uue: revision 1.3
	sys/arch/amiga/stand/loadbsd/Makefile: revision 1.4
	sys/arch/amiga/stand/loadbsd/README: revision 1.5

Update loadbsd source and distribution binary to version 3.2.

Including the following changes by Gunther Nikl:
- Added detection of A600.
- Fix handling of multiple -n options.
Make it compile with recent AmigaOS gcc ports (for example gcc6), as
older ports no longer work with current NetBSD header files.
2023-02-24 13:51:43 +00:00
martin b828bb68fd Pull up following revision(s) (requested by gutteridge in ticket #1606):
external/bsd/nvi/dist/common/search.c: revision 1.5

search.c: correctly handle escaped backslashes

Addresses PR bin/57106 from Bosco G. G., who supplied the patch.

(This was also committed in the nvi2 sources:
e7054267a3)
2023-02-24 13:06:48 +00:00
martin e44a90cdec Tickets #1600 - #1605 2023-02-22 19:57:11 +00:00
martin 6c5eda55a7 Pull up following revision(s) (requested by riastradh in ticket #1605):
sys/net/bpf.c: revision 1.247 (manually merged)

bpf(4): Reject bogus timeout values before arithmetic overflows.
2023-02-22 19:50:33 +00:00
martin 65696e46ef Pull up following revision(s) (requested by riastradh in ticket #1604):
etc/ssh/Makefile: revision 1.4
	usr.bin/mail/Makefile: revision 1.41
	external/ibm-public/postfix/etc/Makefile: revision 1.2
	etc/bluetooth/Makefile: revision 1.6
	crypto/external/bsd/openssh/bin/Makefile: revision 1.5
	etc/root/Makefile: revision 1.5
	etc/iscsi/Makefile: revision 1.4

/root: Install .cshrc and .profile links with the same mode.

Previously we would:

1. Install /root/.cshrc and /root/.profile with mode FILESMODE=644 as
   requested in src/etc/root/Makefile and as echoed in
   /etc/mtree/special.
2. Create hard links at /.cshrc and /.profile through CONFIGLINKS.
3. Because LINKSMODE was unset and defaults to NOBINMODE=444, change
   the mode to 444.

This scenario is confusing, and mtree objects to it, which is bad for
warning fatigue in a security-relevant mechanism.  (There are also
several other files mtree objects to out of the box -- we should fix
those too.)

With this change we install the links with the same mode as the
original files, in agreement with the mtree.  The files, .cshrc and
.profile, are intended to be editable configuration files, so 644
makes sense while 444 makes no sense and gets in the way of editors
like vi.

Discussed on tech-userlevel:
https://mail-index.netbsd.org/tech-userlevel/2022/08/29/msg013498.html

etc: Fix permissions of various editable configuration files.

This way they match the mtree and make sense and don't cause editors
to ask to override read-only files when editing them.

Exception: Not sure /etc/bluetooth/protocols makes as much sense to
edit, but the mtree says 644, so if you want to change it, make sure
to change it in both places -- Makefile and mtree.

/etc/ssh: Install ssh_known_hosts with mode 644.
Makes it agree with the mtree and more convenient for admin to edit.
2023-02-22 19:30:50 +00:00