openbsd
9 months agoDrop redundant NULL checks around two for loops
tb [Sun, 24 Mar 2024 08:03:29 +0000 (08:03 +0000)]
Drop redundant NULL checks around two for loops

ok beck

9 months agoFix namespace build
tb [Sun, 24 Mar 2024 06:48:03 +0000 (06:48 +0000)]
Fix namespace build

noticed/ok beck

9 months agopermament -> permanent
jsg [Sun, 24 Mar 2024 06:22:18 +0000 (06:22 +0000)]
permament -> permanent

9 months agoRemove OPENSSL_NO_* #ifdefs from evp_names.c
tb [Sun, 24 Mar 2024 06:15:59 +0000 (06:15 +0000)]
Remove OPENSSL_NO_* #ifdefs from evp_names.c

discussed with jsing

9 months agoBye bye gost, bye, bye turdiness
tb [Sun, 24 Mar 2024 06:05:41 +0000 (06:05 +0000)]
Bye bye gost, bye, bye turdiness

ok beck

9 months agouse LIST_FOREACH_SAFE() to avoid use after free
jsg [Sun, 24 Mar 2024 05:50:20 +0000 (05:50 +0000)]
use LIST_FOREACH_SAFE() to avoid use after free
this can't happen in a libsa environment

found by smatch, ok jsing@

9 months agoRename arg1 to nid because that's what it is
tb [Sun, 24 Mar 2024 01:24:26 +0000 (01:24 +0000)]
Rename arg1 to nid because that's what it is

"Yeah, arg1 is always such an imaginative name" ian
ok beck

9 months agoClamp the manifestNumber to 20 octets value
tb [Sun, 24 Mar 2024 00:38:58 +0000 (00:38 +0000)]
Clamp the manifestNumber to 20 octets value

The standards contain somewhat ambiguous language as to what the largest
acceptable value for a crlNumber or manifestNumber could be, due to a
limitation to 20 octets. The question is what 20 octets specifically are
meant...

Consensus seems to have emerged that the largest value is 2^159-1 since
2^160-1 would encode to 21 octets due to a padding octet to disambiguate
ff .. ff from -7f ff .. ff (iow the top bit of the first octet is a sign
bit).

Thus, switch from 2^160 - 1 to 2^159 - 1 as an upper bound by checking
the length of the value portion of the DER encoded ASN.1 integer to be
at most 20 octets.

Thanks to Martin Hoffmann, Tom Harrison, and Ben Maddison for raising and
discussing the issue. Thanks also to the spec authors for making me waste
a few hours of my life on a single bit.

ok job

9 months agoDrop the unused 'name' member from X509_TRUST
tb [Sun, 24 Mar 2024 00:35:45 +0000 (00:35 +0000)]
Drop the unused 'name' member from X509_TRUST

This used to be exposed via an accessor, but this accessor is no longer
part of the library, so nuke it.

ok beck

9 months agoupdate project-cymru url, from Robert Keizer, slightly tweaked
sthen [Sun, 24 Mar 2024 00:33:41 +0000 (00:33 +0000)]
update project-cymru url, from Robert Keizer, slightly tweaked

9 months agoRemove radius.c which is added mistakenly and under review.
yasuoka [Sun, 24 Mar 2024 00:14:19 +0000 (00:14 +0000)]
Remove radius.c which is added mistakenly and under review.

9 months agoAllow zero-length identity response
yasuoka [Sun, 24 Mar 2024 00:05:01 +0000 (00:05 +0000)]
Allow zero-length identity response

ok tobhe

9 months agoIn kq_del(), delete matching EV_ADD entries to prevent libevent from
yasuoka [Sat, 23 Mar 2024 22:51:49 +0000 (22:51 +0000)]
In kq_del(), delete matching EV_ADD entries to prevent libevent from
passing both EV_ADD and EV_DELETE for the same fd to kevent().

ok visa

9 months agoreaddir_r(3) was never necessary and has been deprecated by POSIX.
guenther [Sat, 23 Mar 2024 16:30:01 +0000 (16:30 +0000)]
readdir_r(3) was never necessary and has been deprecated by POSIX.
Document that in the manpage and stop using it internally.

ok deraadt@ millert@ jmc@

9 months agoRecognise Meinberg PCI510, from Maurice Janssen
sthen [Sat, 23 Mar 2024 10:38:02 +0000 (10:38 +0000)]
Recognise Meinberg PCI510, from Maurice Janssen

9 months agosync
sthen [Sat, 23 Mar 2024 10:36:37 +0000 (10:36 +0000)]
sync

9 months agoAdd Meinberg PCI510, from Maurice Janssen
sthen [Sat, 23 Mar 2024 10:35:50 +0000 (10:35 +0000)]
Add Meinberg PCI510, from Maurice Janssen

9 months agoRemove unused flags and arg2 members from X509_TRUST
tb [Sat, 23 Mar 2024 06:38:01 +0000 (06:38 +0000)]
Remove unused flags and arg2 members from X509_TRUST

ok jsing

9 months agoRemove unused flags argument from the trust handlers
tb [Sat, 23 Mar 2024 06:37:15 +0000 (06:37 +0000)]
Remove unused flags argument from the trust handlers

The public X509_check_trust() takes a flag parameter which we must leave
in place. However, we can stop passing the flag parameter around without
ever looking at it.

ok jsing

9 months agoExpand ASN range for LACNIC
job [Sat, 23 Mar 2024 04:18:56 +0000 (04:18 +0000)]
Expand ASN range for LACNIC

LACNIC received a new block of ASNs from IANA
https://mail.lacnic.net/pipermail/lacnog/2024-March/009690.html

OK tb@

9 months agoFix main() definition.
mvs [Sat, 23 Mar 2024 01:35:57 +0000 (01:35 +0000)]
Fix main() definition.

9 months agoIncrease /usr/src partition to 2GB - 5GB
jan [Fri, 22 Mar 2024 21:49:52 +0000 (21:49 +0000)]
Increase /usr/src partition to 2GB - 5GB

ok miod@, deraadt@, otto@ and bluhm@

9 months agoRemove padding from union inpaddru.
bluhm [Fri, 22 Mar 2024 21:48:38 +0000 (21:48 +0000)]
Remove padding from union inpaddru.

Alignment of IPv4 address with lower part of IPv6 address looks
like a leftover from times when IPv6 compatible addresses should
contain IPv4 addreses.  Better use a simple union for both IPv4 and
IPv6 addresses like everywhere else.  Use this type also for common
zero address.

OK mvs@

9 months agoadd "-V none" to prevent making any backups
jcs [Fri, 22 Mar 2024 19:22:23 +0000 (19:22 +0000)]
add "-V none" to prevent making any backups

from FreeBSD

ok bluhm deraadt

9 months agoFix chroot(2) call in control process.
bluhm [Fri, 22 Mar 2024 19:14:28 +0000 (19:14 +0000)]
Fix chroot(2) call in control process.

Use /var/empty as chroot directory.  Call chroot(2) before setresuid(2).
Do the error check correctly.  Call chdir(2) after chroot(2).

from spiros thanasoulas; with florian@ tb@; OK millert@

9 months agoMake local port which is bound during connect(2) unique per laddr.
bluhm [Fri, 22 Mar 2024 18:05:01 +0000 (18:05 +0000)]
Make local port which is bound during connect(2) unique per laddr.

in_pcbconnect() did not pass down the address it got from in_pcbselsrc()
to in_pcbpickport().  As a consequence local port numbers selected
during connect(2) were globally unique although they belong to
different addresses.  This strict uniqueness is not necessary and
wastes usable ports for outgoing connections.

To solve this, pass ina from in_pcbconnect() to in_pcbbind_locked().
This does not interfere how wildcard sockets are matched with
specific sockets during bind(2).  It only allows non-wildcard sockets
to share a local port during connect(2).

OK mvs@ deraadt@

9 months agoUse sorflush() instead of direct unp_scan(..., unp_discard) to discard
mvs [Fri, 22 Mar 2024 17:34:11 +0000 (17:34 +0000)]
Use sorflush() instead of direct unp_scan(..., unp_discard) to discard
dead unix(4) sockets.

The difference in direct unp_scan() and sorflush() is the mbuf(9) chain.
For the first case it is still linked to the `so_rcv', for the second it
is not. This is required to make `sb_mtx' mutex(9) the only `so_rcv'
sockbuf protection and remove socket re-locking from the most of
uipc_*send() paths. The unlinked mbuf(9) chain doesn't require any
protection, so this allows to perform sleeping unp_discard() lockless.

Also, the mbuf(9) chain of the discarded socket still contains addresses
of file descriptors and it is much safer to unlink it before FRELE()
them. This is the reason to commit this diff standalone.

ok bluhm

9 months agoRework the cease shutdown reason to work in both directions by looking
claudio [Fri, 22 Mar 2024 15:41:34 +0000 (15:41 +0000)]
Rework the cease shutdown reason to work in both directions by looking
at the ibuf payload passed to log_notification().
Because of this move ibuf_get_string() and the log_notification() call
in parse_notification().
OK tb@

9 months agocorrect history of /dev/mem and /dev/kmem
jsg [Fri, 22 Mar 2024 12:29:33 +0000 (12:29 +0000)]
correct history of /dev/mem and /dev/kmem

The history section (added in CSRG) claimed both first appeared in v6.
Looking at the manuals in the TUHS archive, /dev/mem was in v1 and
/dev/kmem was introduced in v5.

ok jan@

9 months agoRework parse_notification() to use the ibuf API for everything.
claudio [Fri, 22 Mar 2024 07:19:28 +0000 (07:19 +0000)]
Rework parse_notification() to use the ibuf API for everything.

While there fix the RFC5492 handling of ERR_OPEN_CAPA (the current code
has the logic inversed). ERR_OPEN_CAPA is there to signal that a needed
capability is missing in our OPEN message. Just add the handling of
ERR_OPEN_CAPA to log_notification().

Also rework the handling of the shutdown reason and move the printing
into log_notification().

OK tb@

9 months agoLimit NFS connections to originate from a reserved port.
claudio [Fri, 22 Mar 2024 07:15:04 +0000 (07:15 +0000)]
Limit NFS connections to originate from a reserved port.

For TCP connections do the check when adding the socket via nfssvc(2).
For UDP do the check early after soreceive().
On top of this limit the sockets added via nfssvc(2) to IPv4 TCP and UDP
sockets.
OK millert@ deraadt@

9 months agoSimplify X509_STORE_free()
tb [Fri, 22 Mar 2024 06:24:54 +0000 (06:24 +0000)]
Simplify X509_STORE_free()

This had an inlined version of sk_pop_free(). We can just call it the
right way.

ok jsing

9 months agoaucat: Allow any device sample encoding.
ratchov [Fri, 22 Mar 2024 06:20:48 +0000 (06:20 +0000)]
aucat: Allow any device sample encoding.

If the device doesn't support the aucat internal encoding,
then setup a conversion layer instead of failing. This allows
aucat to be used for audio equipment testing/debugging
without involving the full sndiod processing chain.

9 months agoaucat: Add a bytes-per-sample argument to allcobuf()
ratchov [Fri, 22 Mar 2024 06:06:06 +0000 (06:06 +0000)]
aucat: Add a bytes-per-sample argument to allcobuf()

No behavior change.

9 months agopledge: Allow the AUDIO_GETDEV ioctl in "audio"
ratchov [Fri, 22 Mar 2024 05:54:25 +0000 (05:54 +0000)]
pledge: Allow the AUDIO_GETDEV ioctl in "audio"

ok deraadt, kn, phessler

9 months agoReplace protocol literal strings and strlen() calls with defined constants
job [Fri, 22 Mar 2024 03:38:12 +0000 (03:38 +0000)]
Replace protocol literal strings and strlen() calls with defined constants

OK tb@ claudio@

9 months agoNever bindings use the phy-handle property instead of the phy property.
patrick [Thu, 21 Mar 2024 23:12:33 +0000 (23:12 +0000)]
Never bindings use the phy-handle property instead of the phy property.

ok kettenis@

9 months agoAvoid redundant allocation in ikev2_prfplus()
tobhe [Thu, 21 Mar 2024 22:08:49 +0000 (22:08 +0000)]
Avoid redundant allocation in ikev2_prfplus()

from markus@

9 months agoFix white space. OK tobhe@
bluhm [Thu, 21 Mar 2024 16:46:04 +0000 (16:46 +0000)]
Fix white space.  OK tobhe@

9 months agoWrite padding character into the right position.
nicm [Thu, 21 Mar 2024 12:10:57 +0000 (12:10 +0000)]
Write padding character into the right position.

9 months agoReduce escape-time default to 10 milliseconds, 500 is far too long for
nicm [Thu, 21 Mar 2024 11:53:11 +0000 (11:53 +0000)]
Reduce escape-time default to 10 milliseconds, 500 is far too long for
modern terminals and networks. Case made by Kurtis Rader in GitHub issue
3844.

9 months agoAdd -M to always turn mouse on in a menu, GitHub issue 3779.
nicm [Thu, 21 Mar 2024 11:51:32 +0000 (11:51 +0000)]
Add -M to always turn mouse on in a menu, GitHub issue 3779.

9 months agoLook for feature code 21 for DECSLRM and 28 for DECFRA in the device
nicm [Thu, 21 Mar 2024 11:47:55 +0000 (11:47 +0000)]
Look for feature code 21 for DECSLRM and 28 for DECFRA in the device
attributes and also accept level 1 (there is no hardware with this but
some emulators may use it). Pointed out by James Holderness.

9 months agoUse -p for default paste-buffer command in buffer mode, it will only do
nicm [Thu, 21 Mar 2024 11:32:49 +0000 (11:32 +0000)]
Use -p for default paste-buffer command in buffer mode, it will only do
anything if the application asked for it. From Gregory Anders.

9 months agoDo not notify window-layout-changed if the window is about to be
nicm [Thu, 21 Mar 2024 11:30:42 +0000 (11:30 +0000)]
Do not notify window-layout-changed if the window is about to be
destroyed (since it may have been freed by the time the notify happens),
from Romain Francoise in GitHub issue 3860.

9 months agoRevert detach-client part of last, did not intend this to go in.
nicm [Thu, 21 Mar 2024 11:27:18 +0000 (11:27 +0000)]
Revert detach-client part of last, did not intend this to go in.

9 months agoDo not consider a selection present if it is empty, from Michael Grant
nicm [Thu, 21 Mar 2024 11:26:28 +0000 (11:26 +0000)]
Do not consider a selection present if it is empty, from Michael Grant
(GitHub issue 3869). Also a typo fix from GitHub issue 3877.

9 months agoDo not exit the master process if a client TCP connection fails to be
claudio [Thu, 21 Mar 2024 10:58:15 +0000 (10:58 +0000)]
Do not exit the master process if a client TCP connection fails to be
added.
OK millert@

9 months agoRemove now unused certificates (which are also soon to expire).
jsing [Thu, 21 Mar 2024 08:17:23 +0000 (08:17 +0000)]
Remove now unused certificates (which are also soon to expire).

9 months agoadd uao_read_to_iosys_map() alternative to shmem_read_to_iosys_map()
jsg [Thu, 21 Mar 2024 05:14:35 +0000 (05:14 +0000)]
add uao_read_to_iosys_map() alternative to shmem_read_to_iosys_map()

9 months agounstub intel_uc_fw_copy_rsa()
jsg [Thu, 21 Mar 2024 05:06:42 +0000 (05:06 +0000)]
unstub intel_uc_fw_copy_rsa()

9 months agomention that SR-IOV virtual functions work too
jmatthew [Thu, 21 Mar 2024 04:10:37 +0000 (04:10 +0000)]
mention that SR-IOV virtual functions work too

9 months agoClear spinner after each cycle
afresh1 [Thu, 21 Mar 2024 01:02:29 +0000 (01:02 +0000)]
Clear spinner after each cycle

Otherwise we can get left with a piece of the spinner if all firmware
gets updates and don't print a "kept" value.

While here, replace \010 with the ksh supported \b, as suggested by cheloha@

Noticed by deraadt@

9 months agoFix build with bitmap_copy() on i386 by adding const qualifier.
bluhm [Wed, 20 Mar 2024 22:52:44 +0000 (22:52 +0000)]
Fix build with bitmap_copy() on i386 by adding const qualifier.

OK jsg@

9 months agoRename the remaining pmod to mod
tb [Wed, 20 Mar 2024 22:11:07 +0000 (22:11 +0000)]
Rename the remaining pmod to mod

9 months agopmod -> mod in CONF_IMODULE
tb [Wed, 20 Mar 2024 22:08:22 +0000 (22:08 +0000)]
pmod -> mod in CONF_IMODULE

Hungarian notation occasionally helps, but only if it is done consistently.
Steve and consistency... cf e.g the last few commits. Accordingly,
Hensonian Hungarian notation is a complete disaster. Start cleaning this
mess up.

9 months agotmod -> mod
tb [Wed, 20 Mar 2024 21:53:57 +0000 (21:53 +0000)]
tmod -> mod

requested by jsing

9 months agomd -> imod for CONF_IMODULEs
tb [Wed, 20 Mar 2024 21:51:23 +0000 (21:51 +0000)]
md -> imod for CONF_IMODULEs

A CONF_IMODULE is neither an EVP_MD nor a CONF_MODULE, so call it imod
instead of md or mod.

9 months agomd -> mod for CONF_MODULEs
tb [Wed, 20 Mar 2024 21:49:00 +0000 (21:49 +0000)]
md -> mod for CONF_MODULEs

A CONF_MODULE is no EVP_MD, so call it mod instead of md.

9 months agoChange return type of module_add()
tb [Wed, 20 Mar 2024 21:41:09 +0000 (21:41 +0000)]
Change return type of module_add()

There is one caller of this function which returns module_add() != NULL.
Make the function return an int instead.

suggested by and ok jsing

9 months agoImplement imodule_free() and call it from module_finish()
tb [Wed, 20 Mar 2024 21:31:31 +0000 (21:31 +0000)]
Implement imodule_free() and call it from module_finish()

ok jsing

9 months agoMake module_free() NULL safe
tb [Wed, 20 Mar 2024 21:21:03 +0000 (21:21 +0000)]
Make module_free() NULL safe

ok jsing

9 months agofix ORCPT handling
op [Wed, 20 Mar 2024 17:52:43 +0000 (17:52 +0000)]
fix ORCPT handling

due to a swapped strlcpy() arguments we don't save the ORCPT argument
after validation.  There's no buffer overflow since dsn_orcpt is zeroed.
Spotted by Tassilo Philipp, thanks!

ok millert gilles

9 months agoUse the new certificates/chains in regress.
jsing [Wed, 20 Mar 2024 10:38:05 +0000 (10:38 +0000)]
Use the new certificates/chains in regress.

The new certificates are more representative of the real world. The old
certificates use weak algorithms and expire in the very near future. Most
of our regress has already been switched over, this changes the remainder.

Thanks to Bernhard M. Wiedemann for reminding us of the upcoming expiry.

ok tb@

9 months agoCleanup AID handling.
claudio [Wed, 20 Mar 2024 09:35:46 +0000 (09:35 +0000)]
Cleanup AID handling.

- Loops over all valid AID should start with AID_MIN and go up to AID_MAX - 1
   e.g. for (i = AID_MIN; i < AID_MAX; i++)
  If for some reason AID_UNSPEC must be handled make that explicit in the
  for loop.

- aid2afi() now returns an error for AID_UNSPEC since there is no valid
  AFI SAFI combo for AID_UNSPEC.

- Add additional checks for AID_MIN where currently only AID_MAX was checked.
  This affects imsg for route refresh and graceful restart.

- Simplify add-path capability handling. Only the negotiated add_path capa
  sets the flag for AID_UNSPEC to help code to quickly check if any add-path
  is active.

OK tb@

9 months agoRemove some else statements in if () else if () chains that don't need
claudio [Wed, 20 Mar 2024 09:26:42 +0000 (09:26 +0000)]
Remove some else statements in if () else if () chains that don't need
to be written this way. Makes the code more readable.
OK tb@

9 months agoaucat: Add generic channel mapping in place of -j and -c options.
ratchov [Wed, 20 Mar 2024 08:42:11 +0000 (08:42 +0000)]
aucat: Add generic channel mapping in place of -j and -c options.

The argument to the -m option specifies the source and destination
channel ranges to be mapped. Compatibility is maintained: if -m
is not used, the -c and -j options still work.

Help and suggestions from Jan Stary <hans@stare.cz>, thanks.

9 months agoremove i915_gem_object_map() removed in linux 5.10
jsg [Wed, 20 Mar 2024 06:11:41 +0000 (06:11 +0000)]
remove i915_gem_object_map() removed in linux 5.10

9 months agoswitch ggtt from agp_map to io_mapping
jsg [Wed, 20 Mar 2024 06:02:19 +0000 (06:02 +0000)]
switch ggtt from agp_map to io_mapping

reduces the diff to linux, no functional change

9 months agoadd io_mapping_map_atomic_wc()
jsg [Wed, 20 Mar 2024 05:44:19 +0000 (05:44 +0000)]
add io_mapping_map_atomic_wc()

9 months agoRun most of regress explicitly in filemode to avoid hitting location checks
job [Wed, 20 Mar 2024 04:39:10 +0000 (04:39 +0000)]
Run most of regress explicitly in filemode to avoid hitting location checks

with tb@

9 months agoCheck whether filename and SIA match
job [Wed, 20 Mar 2024 04:36:30 +0000 (04:36 +0000)]
Check whether filename and SIA match

Verify whether the filename as presented by the publication point (which
is unsigned information) matches the filename in the SIA attribute
(which is signed information). Based on RFC 6487 section 4.8.8.

with and OK tb@

9 months agounstub i915_ttm_io_mem_pfn()
jsg [Wed, 20 Mar 2024 04:28:39 +0000 (04:28 +0000)]
unstub i915_ttm_io_mem_pfn()

9 months agohandle ttm_sg_tt_init() not being called before ttm_tt_fini()
jsg [Wed, 20 Mar 2024 03:02:24 +0000 (03:02 +0000)]
handle ttm_sg_tt_init() not being called before ttm_tt_fini()

Check that dmamap and segs are non-NULL as not all drivers call
ttm_sg_tt_init().

9 months agounstub i915_ttm_memcpy_init() i915_ttm_move_memcpy()
jsg [Wed, 20 Mar 2024 03:00:21 +0000 (03:00 +0000)]
unstub i915_ttm_memcpy_init() i915_ttm_move_memcpy()

9 months agoinit bus_space tags in ttm struct
jsg [Wed, 20 Mar 2024 02:58:40 +0000 (02:58 +0000)]
init bus_space tags in ttm struct

9 months agoenable io_mapping paths for lmem
jsg [Wed, 20 Mar 2024 02:56:49 +0000 (02:56 +0000)]
enable io_mapping paths for lmem

9 months agounstub xehp_load_dss_mask()
jsg [Wed, 20 Mar 2024 02:54:40 +0000 (02:54 +0000)]
unstub xehp_load_dss_mask()

9 months agoadd bitmap_intersects() bitmap_from_arr32()
jsg [Wed, 20 Mar 2024 02:51:06 +0000 (02:51 +0000)]
add bitmap_intersects() bitmap_from_arr32()

9 months agounstub i915_gem_object_map_pfn()
jsg [Wed, 20 Mar 2024 02:48:20 +0000 (02:48 +0000)]
unstub i915_gem_object_map_pfn()

9 months agoadd replacements for io_mapping_init_wc() paths
jsg [Wed, 20 Mar 2024 02:47:24 +0000 (02:47 +0000)]
add replacements for io_mapping_init_wc() paths

9 months agostart implementing io_mapping
jsg [Wed, 20 Mar 2024 02:44:57 +0000 (02:44 +0000)]
start implementing io_mapping

9 months agoadd vmap_pfn()
jsg [Wed, 20 Mar 2024 02:42:17 +0000 (02:42 +0000)]
add vmap_pfn()

9 months agoin vga_get_uninterruptible() return early if behind a bridge
jsg [Wed, 20 Mar 2024 02:38:35 +0000 (02:38 +0000)]
in vga_get_uninterruptible() return early if behind a bridge

remove KASSERT() that triggered on dg2

9 months agoMove the OPENSSL_init() stub from o_init.c to crypto_init.c
tb [Tue, 19 Mar 2024 19:27:33 +0000 (19:27 +0000)]
Move the OPENSSL_init() stub from o_init.c to crypto_init.c

9 months agoRemove OPENSSL/CRYPTO_realloc documentation
tb [Tue, 19 Mar 2024 17:48:57 +0000 (17:48 +0000)]
Remove OPENSSL/CRYPTO_realloc documentation

9 months agoRemove X509_ALGOR_set_md() documentation
tb [Tue, 19 Mar 2024 17:34:05 +0000 (17:34 +0000)]
Remove X509_ALGOR_set_md() documentation

As far as LibreSSL is concerned, this terrible API is pushing up the
daisies.

9 months agoRename parent to issuer in struct auth
tb [Tue, 19 Mar 2024 05:04:13 +0000 (05:04 +0000)]
Rename parent to issuer in struct auth

Parent is confusing and issuer is the appropriate terminology. This is
a mechanical diff. The only remaining uses of 'parent' in this code
base now mean 'parent process'.

discussed with beck and job
ok job

9 months agocount if_enqueue/ifq_enqueue errors as oqdrops.
dlg [Tue, 19 Mar 2024 03:49:11 +0000 (03:49 +0000)]
count if_enqueue/ifq_enqueue errors as oqdrops.

this helps narrow down where some "output failures" on sec interfaces
occur.

based on discussion with jason tubnor

9 months agoImplement Spectre-V4 mitigations. The only real effect of this change is
kettenis [Mon, 18 Mar 2024 21:57:22 +0000 (21:57 +0000)]
Implement Spectre-V4 mitigations.  The only real effect of this change is
that we now make a firmware call to enable the mitigations if the
firmware tells us mitigations are implemented and needed.  But according
to the specification these mitigations should be enabled by default.
The open source TF-A implementation only implements mitigations for older
Cortex-A76 cores.  Newer Cortex-A76 revisions are not vulnerable and as
far as I can tell we only support SoCs with the newer cores.

ok patrick@

9 months agoPass PHY OF node to the MII layer for use by PHY drivers.
patrick [Mon, 18 Mar 2024 21:37:44 +0000 (21:37 +0000)]
Pass PHY OF node to the MII layer for use by PHY drivers.

9 months agoReduce dmesg spam and only print about resource conflicts for resources
kettenis [Mon, 18 Mar 2024 21:20:46 +0000 (21:20 +0000)]
Reduce dmesg spam and only print about resource conflicts for resources
that are actually enabled.

ok dlg@, deraadt@

9 months agoAdd support for the new layout of the CCSIDR_EL1 register that was
kettenis [Mon, 18 Mar 2024 18:35:21 +0000 (18:35 +0000)]
Add support for the new layout of the CCSIDR_EL1 register that was
introduced in Armv8.3 when the CCIDX feature is advertised.  This
makes us properly detect the cache size on newer CPU cores like
Neoverse N2, at least when emulated by QEMU.

ok jsg@

9 months agoTypecast char argument to isxdigit() to unsigned char since isxdigit()
claudio [Mon, 18 Mar 2024 14:54:52 +0000 (14:54 +0000)]
Typecast char argument to isxdigit() to unsigned char since isxdigit()
only works that way correctly.
OK deraadt@

9 months agoDouble PEER_DESCR_LEN to 64 characters since 32 is a bit on the short side.
claudio [Mon, 18 Mar 2024 10:49:24 +0000 (10:49 +0000)]
Double PEER_DESCR_LEN to 64 characters since 32 is a bit on the short side.
OK sthen@, deraadt@, dlg@, tb@

9 months agoUse same markup for origin-set arguments as for roa-set. The maxlen argument
claudio [Mon, 18 Mar 2024 10:16:50 +0000 (10:16 +0000)]
Use same markup for origin-set arguments as for roa-set. The maxlen argument
is optional.
OK tb@

9 months agofix markup of _PATH_DEFPATH (Li -> Dv); ok jmc
op [Mon, 18 Mar 2024 08:50:54 +0000 (08:50 +0000)]
fix markup of _PATH_DEFPATH (Li -> Dv); ok jmc

9 months agoimprove the MDA documentation
op [Mon, 18 Mar 2024 08:48:50 +0000 (08:48 +0000)]
improve the MDA documentation

 - add a pointer to the section when documenting the `mda' keyword
 - rename the section to MDA COMMANDS
 - document also what happens when the MDA doesn't exit with status 0
 - add the missing environment variables
 - sort the variables
 - minor other tweaks to the text

with several improvements from jmc, ok jmc

9 months agoexpose per port information via kstats.
dlg [Mon, 18 Mar 2024 06:14:50 +0000 (06:14 +0000)]
expose per port information via kstats.

the most interesting information exposed here is the number of times
a port changes state according to the lacp state machine. if a port
is flapping, it's hard to see if you only look at the current state.
getting a count of changes over time makes problems a lot more
visible and therefore fixable.

this also exposes counters around how the lacp protocol packets.
all of these can be useful when trying to line up behaviors with
another system (eg, a switch).

ok jmatthew@

9 months agouse high bits from the mbuf flowid to pick a port to transmit on.
dlg [Mon, 18 Mar 2024 06:05:23 +0000 (06:05 +0000)]
use high bits from the mbuf flowid to pick a port to transmit on.

a port here is a physical interface used by an aggr.

this leaves the low bits for a physical interface to use to pick a
tx ring. without this, aggr used low bits for port selection, which
takes bits away from the ring selection, which can lead to uneven
distribution of packets over tx rings.

ive been running this in production for well over a year now.