openbsd
15 months agoProvide optimised bn_subw() for riscv64.
jsing [Sun, 9 Jul 2023 10:37:32 +0000 (10:37 +0000)]
Provide optimised bn_subw() for riscv64.

15 months agoProvide optimised bn_addw() for riscv64.
jsing [Sun, 9 Jul 2023 10:36:53 +0000 (10:36 +0000)]
Provide optimised bn_addw() for riscv64.

15 months agoAllocate enough memory to pervent SIGSEGV or SIGABRT due to write
bluhm [Sun, 9 Jul 2023 09:33:30 +0000 (09:33 +0000)]
Allocate enough memory to pervent SIGSEGV or SIGABRT due to write
after free.  There was confusion between size of struct and size
of pointer.

15 months agosync perl 5.36.1
bluhm [Sun, 9 Jul 2023 09:02:13 +0000 (09:02 +0000)]
sync perl 5.36.1

15 months agoregen
tobhe [Sun, 9 Jul 2023 08:04:09 +0000 (08:04 +0000)]
regen

15 months agoAdd suspend key support in wskbd and make it work on Apple ARM laptops.
tobhe [Sun, 9 Jul 2023 08:02:13 +0000 (08:02 +0000)]
Add suspend key support in wskbd and make it work on Apple ARM laptops.

feedback and ok miod@

15 months agoAdd Xr to EVP_MD_meth_new to top level library
tb [Sun, 9 Jul 2023 06:49:25 +0000 (06:49 +0000)]
Add Xr to EVP_MD_meth_new to top level library

15 months agoFix OpenBSD release
tb [Sun, 9 Jul 2023 06:47:51 +0000 (06:47 +0000)]
Fix OpenBSD release

15 months agosync
tb [Sun, 9 Jul 2023 06:45:48 +0000 (06:45 +0000)]
sync

15 months agoASN1_bn_print() will be removed soon. Remove docs.
tb [Sun, 9 Jul 2023 06:45:03 +0000 (06:45 +0000)]
ASN1_bn_print() will be removed soon. Remove docs.

15 months agocorrect spelling
jsg [Sun, 9 Jul 2023 01:12:04 +0000 (01:12 +0000)]
correct spelling
confirmed by Vladimir

15 months agomax_processes -> max_jobs in usage();
jmc [Sat, 8 Jul 2023 21:51:45 +0000 (21:51 +0000)]
max_processes -> max_jobs in usage();

15 months agofix comment to unbreak things that care about warnings
beck [Sat, 8 Jul 2023 20:38:23 +0000 (20:38 +0000)]
fix comment to unbreak things that care about warnings
ok tb@ krw@

15 months agosync
tb [Sat, 8 Jul 2023 20:14:30 +0000 (20:14 +0000)]
sync

15 months agolink EVP_MD_meth_new.3 to build
tb [Sat, 8 Jul 2023 20:13:13 +0000 (20:13 +0000)]
link EVP_MD_meth_new.3 to build

15 months agoImport EVP_MD_meth_new.3 from OpenSSL 1.1.1 head
tb [Sat, 8 Jul 2023 20:01:26 +0000 (20:01 +0000)]
Import EVP_MD_meth_new.3 from OpenSSL 1.1.1 head

As usual, this has a lot of room for improvement, but it is better than
nothing at all. It leaves a dangling reference to EVP_MD_CTX_md_data(),
which I leave for schwarze to document. This is a terrible API and the
way it is used in the wild is terrifying.

15 months agoFix whitespace
tb [Sat, 8 Jul 2023 19:41:07 +0000 (19:41 +0000)]
Fix whitespace

15 months agonitpicking: singular of children is child
espie [Sat, 8 Jul 2023 18:42:27 +0000 (18:42 +0000)]
nitpicking: singular of children is child

15 months agopartial fix for make -j8 (bluhm@ is sitting right next to me and agreeing)
espie [Sat, 8 Jul 2023 18:33:41 +0000 (18:33 +0000)]
partial fix for make -j8 (bluhm@ is sitting right next to me and agreeing)
there is a subtler issue with make regress/make all that will be way more
of a headache to sort !

15 months agosync perl 5.36.1
bluhm [Sat, 8 Jul 2023 18:10:32 +0000 (18:10 +0000)]
sync perl 5.36.1

15 months agotalk about "jobs" because that's make knows, and mention the heuristics
espie [Sat, 8 Jul 2023 18:02:00 +0000 (18:02 +0000)]
talk about "jobs" because that's make knows, and mention the heuristics
about the recursive non exploding kitten recursive behavior outside of
BUGS.

okay naddy@, jca@

15 months agoHide all public symbols in libssl
beck [Sat, 8 Jul 2023 16:40:13 +0000 (16:40 +0000)]
Hide all public symbols in libssl

With the guentherizer 9000

ok tb@

15 months agoHide symbols in dh
beck [Sat, 8 Jul 2023 15:29:03 +0000 (15:29 +0000)]
Hide symbols in dh

ok tb@

15 months agoHide symbols in curve22519
beck [Sat, 8 Jul 2023 15:12:49 +0000 (15:12 +0000)]
Hide symbols in curve22519

ok tb@

15 months agoFloppies don't have bioctl(8)
kn [Sat, 8 Jul 2023 15:01:09 +0000 (15:01 +0000)]
Floppies don't have bioctl(8)

The installer always checks for softraid using it, skip if unavailable.

Apply the usual idiom in encrypt_root() to silence stderr noise.

Do so in do in get_softraid_chunks() as well which is always called in
get_dkdevs_unitialized() and finish_up();  get_softraid_chunks() discards
stderr and both users still do the right thing on bioctl failure/empty
output from get_dkdevs_unitialized(), but there's no point in trying plus
the idiom clarifies how this code is indeed used on floppies.

Found and tested by krw
OK deraadt krw

15 months agoHide symbols in modes.h
beck [Sat, 8 Jul 2023 14:56:54 +0000 (14:56 +0000)]
Hide symbols in modes.h

ok tb@

15 months agoHit modes with the loving mallet of knfmt
beck [Sat, 8 Jul 2023 14:55:36 +0000 (14:55 +0000)]
Hit modes with the loving mallet of knfmt

ok tb@

15 months agoFix Perl tests in OpenBSD regress.
bluhm [Sat, 8 Jul 2023 14:49:55 +0000 (14:49 +0000)]
Fix Perl tests in OpenBSD regress.

Disable Perl test t/porting/exec-bit.t as it only checks permissions.
The x-bit in OpenBSD CVS tree does not match Perl distribution tar.
This is known and accepted.

Set permission of Test-Harness source.sh and source_args.sh to
executable as Perl uses it to test module features.  Stay close to
upstream.  During regress, set the x-bit of the files in obj
directory.  Do not touch src tree, it might be read-only.

discussed with anton@; OK afresh1@

15 months agoAdds request_sleep(), a MI way of sending the machine to sleep in
tobhe [Sat, 8 Jul 2023 14:44:43 +0000 (14:44 +0000)]
Adds request_sleep(), a MI way of sending the machine to sleep in
a safe thread. Support is limited to amd64, i386 and arm64 at the
moment, macppc gets only an empty stub.

feedback from kettenis@
tested by bluhm@
ok phessler@

15 months agoHide symbols in gost.
beck [Sat, 8 Jul 2023 14:30:44 +0000 (14:30 +0000)]
Hide symbols in gost.

ok tb@ after some puking in his mouth.

15 months agohide symbols in dsa
beck [Sat, 8 Jul 2023 14:28:14 +0000 (14:28 +0000)]
hide symbols in dsa

ok tb@

15 months agoHide symbols in cmac
beck [Sat, 8 Jul 2023 14:27:14 +0000 (14:27 +0000)]
Hide symbols in cmac

ok tb@

15 months agoUpdate to perl 5.36.1
afresh1 [Sat, 8 Jul 2023 14:18:35 +0000 (14:18 +0000)]
Update to perl 5.36.1

Many small bugfixes

you should commit 5.36.1 bluhm@

15 months agoturn an ifdef'd _dl_printf call into DL_DEB and various whitespace fixes
jasper [Sat, 8 Jul 2023 14:09:43 +0000 (14:09 +0000)]
turn an ifdef'd _dl_printf call into DL_DEB and various whitespace fixes

sure deraadt@

15 months agoHide symbols in objects
beck [Sat, 8 Jul 2023 12:27:51 +0000 (12:27 +0000)]
Hide symbols in objects

ok tb@

15 months agoHide symbols in rsa
beck [Sat, 8 Jul 2023 12:26:45 +0000 (12:26 +0000)]
Hide symbols in rsa

ok tb@

15 months agoHide symbols in sha
beck [Sat, 8 Jul 2023 12:24:10 +0000 (12:24 +0000)]
Hide symbols in sha

ok tb@

15 months agoHide symbols in bn
beck [Sat, 8 Jul 2023 12:21:58 +0000 (12:21 +0000)]
Hide symbols in bn

ok tb@

15 months agoHide symbols in txt_db
beck [Sat, 8 Jul 2023 11:28:03 +0000 (11:28 +0000)]
Hide symbols in txt_db

ok tb@

15 months agozap stray backslash
jasper [Sat, 8 Jul 2023 11:03:45 +0000 (11:03 +0000)]
zap stray backslash

ok deraadt@

16 months agoHide symbols in md4 and md5
beck [Sat, 8 Jul 2023 10:45:57 +0000 (10:45 +0000)]
Hide symbols in md4 and md5

ok tb@

16 months agoHide symbols in cast, idea, and ocsp
beck [Sat, 8 Jul 2023 10:43:59 +0000 (10:43 +0000)]
Hide symbols in cast, idea, and ocsp

ok tb@

16 months agostfpcie(4) and stfpciephy(4)
kettenis [Sat, 8 Jul 2023 10:19:19 +0000 (10:19 +0000)]
stfpcie(4) and stfpciephy(4)

16 months agostfpciephy(4)
kettenis [Sat, 8 Jul 2023 10:18:51 +0000 (10:18 +0000)]
stfpciephy(4)

16 months agostfpcie(4)
kettenis [Sat, 8 Jul 2023 10:18:34 +0000 (10:18 +0000)]
stfpcie(4)

16 months agoMention JH7110.
kettenis [Sat, 8 Jul 2023 10:17:35 +0000 (10:17 +0000)]
Mention JH7110.

16 months agoAdd support for the PCIe controller on the JH7110 SoC.
kettenis [Sat, 8 Jul 2023 10:06:13 +0000 (10:06 +0000)]
Add support for the PCIe controller on the JH7110 SoC.

MSIs don't work reliably so these are disabled for now.  The stfpcie(4)
driver is based on preliminary device tree bindings that might still
change.

ok patrick@

16 months agoregen
kettenis [Sat, 8 Jul 2023 09:13:27 +0000 (09:13 +0000)]
regen

16 months agoAdd support for the RK3588 PCIe3 PHY to rkpciephy(4). The PHY controls
patrick [Sat, 8 Jul 2023 09:12:28 +0000 (09:12 +0000)]
Add support for the RK3588 PCIe3 PHY to rkpciephy(4).  The PHY controls
4 lanes that can be routed to 4 of the 5 PCIe controllers in the following
configurations.

Either all 4 lanes go to the x4 controller, then the other 3 controllers
stay disabled.  If those are split, lane 0 goes to the x4 controller and
lane 2 goes to the x2 controller.  Lane 1 now either goes to the x4 one
to build a x2, or it gets routed to a x1 controller.  Lane 3 also either
goes to the x2 one to build a x2, or it gets routed to a x1 controller.

If lanes 1 or lane 3 are configured, they are routed towards the PCIe3 PHY
instead of the Combo PHY.

ok kettenis@

16 months agoAdd PLDA XpressRICH-AXI PCIe controller
kettenis [Sat, 8 Jul 2023 09:11:51 +0000 (09:11 +0000)]
Add PLDA XpressRICH-AXI PCIe controller

16 months agoCheck rx dma map was allocated before trying to free it, so we don't crash
jmatthew [Sat, 8 Jul 2023 09:01:30 +0000 (09:01 +0000)]
Check rx dma map was allocated before trying to free it, so we don't crash
if we ran out of memory while bringing the interface up.

tested by hrvoje, ok kevlo@

16 months agoTidy up #include lines.
yasuoka [Sat, 8 Jul 2023 08:53:26 +0000 (08:53 +0000)]
Tidy up #include lines.

16 months agocosmetic clean-up of UList.pm, no signatures yet
espie [Sat, 8 Jul 2023 08:45:54 +0000 (08:45 +0000)]
cosmetic clean-up of UList.pm, no signatures yet
remove prototype that's actually unused, since method call

16 months agosync
deraadt [Sat, 8 Jul 2023 08:38:41 +0000 (08:38 +0000)]
sync

16 months agoAdd some resets for the PCIe controllers on the RK3588.
patrick [Sat, 8 Jul 2023 08:37:39 +0000 (08:37 +0000)]
Add some resets for the PCIe controllers on the RK3588.

ok kettenis@

16 months agoHide symbols in crypto.h
beck [Sat, 8 Jul 2023 08:28:23 +0000 (08:28 +0000)]
Hide symbols in crypto.h

ok jsing@

16 months agoHide symbols in cms, comp, conf, and buffer
beck [Sat, 8 Jul 2023 08:26:26 +0000 (08:26 +0000)]
Hide symbols in cms, comp, conf, and buffer

ok jsing@

16 months agoAdd support for the Motorcomm YT8521/YT8531 PHYs. Since these PHYs may
kettenis [Sat, 8 Jul 2023 08:18:30 +0000 (08:18 +0000)]
Add support for the Motorcomm YT8521/YT8531 PHYs.  Since these PHYs may
need various board-dependent tweaks, pass the device tree node down
to the PHY driver such that we can look at various properties to make
the necessary tweaks.  Enable ytphy(4) on riscv64.

ok jsing@, patrick@

16 months agomove everyone besides UList to use v5.36
espie [Sat, 8 Jul 2023 08:15:32 +0000 (08:15 +0000)]
move everyone besides UList to use v5.36

16 months agoregen
kettenis [Sat, 8 Jul 2023 08:13:31 +0000 (08:13 +0000)]
regen

16 months agoAdd Motorcomm YT8531.
kettenis [Sat, 8 Jul 2023 08:10:27 +0000 (08:10 +0000)]
Add Motorcomm YT8531.

ok jsing@, patrick@

16 months agoMove /dev/apm related acpi code to acpi_apm.c which is only built on
tobhe [Sat, 8 Jul 2023 08:01:10 +0000 (08:01 +0000)]
Move /dev/apm related acpi code to acpi_apm.c which is only built on
amd64 and i386. This is the first step towards a machine independent
safe sleep API.

tested by yasuoka@ bluhm@
ok deraadt@ kettenis@

16 months agoRemove unused SHA-1 implementation.
jsing [Sat, 8 Jul 2023 07:58:25 +0000 (07:58 +0000)]
Remove unused SHA-1 implementation.

16 months agoRemove now unnecessary "do { } while (0)"
jsing [Sat, 8 Jul 2023 07:52:25 +0000 (07:52 +0000)]
Remove now unnecessary "do { } while (0)"

16 months agoInline HASH_MAKE_STRING macro.
jsing [Sat, 8 Jul 2023 07:49:45 +0000 (07:49 +0000)]
Inline HASH_MAKE_STRING macro.

No change to generated assembly.

16 months agoReorder functions.
jsing [Sat, 8 Jul 2023 07:43:44 +0000 (07:43 +0000)]
Reorder functions.

No functional change.

16 months agoMore style(9).
jsing [Sat, 8 Jul 2023 07:34:34 +0000 (07:34 +0000)]
More style(9).

16 months agoHit cast with the style(9) stick.
jsing [Sat, 8 Jul 2023 07:25:43 +0000 (07:25 +0000)]
Hit cast with the style(9) stick.

16 months agoHide symbols in dso and ct
beck [Sat, 8 Jul 2023 07:22:58 +0000 (07:22 +0000)]
Hide symbols in dso and ct

ok jsing@

16 months agoToggle IBT off during EFI runtime services calls.
kettenis [Sat, 8 Jul 2023 07:18:39 +0000 (07:18 +0000)]
Toggle IBT off during EFI runtime services calls.

While UEFI 2.10 has a way of indicating that runtime services use the
appropriate ENDBR64 instructions, firmware that's out int the wild doesn't
actually use that yet.  Once the landscape changes we may want to
reconsider toggling IBT off.

ok guenther@, kn@

16 months agoHit the des directory with the loving mallet of knfmt
beck [Sat, 8 Jul 2023 07:11:07 +0000 (07:11 +0000)]
Hit the des directory with the loving mallet of knfmt

ok tb@

16 months agostyle(9)
jsing [Sat, 8 Jul 2023 07:08:11 +0000 (07:08 +0000)]
style(9)

16 months agoHit ripemd with the style(9) stick.
jsing [Sat, 8 Jul 2023 06:52:56 +0000 (06:52 +0000)]
Hit ripemd with the style(9) stick.

16 months agoHit md5 with the style(9) stick.
jsing [Sat, 8 Jul 2023 06:50:38 +0000 (06:50 +0000)]
Hit md5 with the style(9) stick.

16 months agoHit md4 with the style(9) stick.
jsing [Sat, 8 Jul 2023 06:47:26 +0000 (06:47 +0000)]
Hit md4 with the style(9) stick.

16 months agoInline rmd_local.h in rmd_dgst.c.
jsing [Sat, 8 Jul 2023 06:43:39 +0000 (06:43 +0000)]
Inline rmd_local.h in rmd_dgst.c.

rmd_local.h is not really a local header, just another layer of indirection
that cannot be included by anything other than rmd_dgst.c. As such, include
it directly instead.

No change in generated assembly.

16 months agoInline md5_local.h in md5_dgst.c.
jsing [Sat, 8 Jul 2023 06:41:45 +0000 (06:41 +0000)]
Inline md5_local.h in md5_dgst.c.

md5_local.h is not really a local header, just another layer of indirection
that cannot be included by anything other than md5_dgst.c. As such, include
it directly instead.

No change in generated assembly.

16 months agoInline md4_local.h in md4_dgst.c.
jsing [Sat, 8 Jul 2023 06:39:19 +0000 (06:39 +0000)]
Inline md4_local.h in md4_dgst.c.

md4_local.h is not really a local header, just another layer of indirection
that cannot be included by anything other than md4_dgst.c. As such, include
it directly instead.

No change in generated assembly.

16 months agoInline sm3_local.h in sm3.c.
jsing [Sat, 8 Jul 2023 06:36:55 +0000 (06:36 +0000)]
Inline sm3_local.h in sm3.c.

sm3_local.h is not really a local header, just another layer of indirection
that cannot be included by anything other than sm3.c. As such, include it
directly instead.

No change in generated assembly.

16 months agoHide symbols in sm3
beck [Sat, 8 Jul 2023 06:13:08 +0000 (06:13 +0000)]
Hide symbols in sm3

ok tb@ jsing@

16 months agounbreak build when namespaced, file was here in my tree but didn't manage
beck [Sat, 8 Jul 2023 06:04:33 +0000 (06:04 +0000)]
unbreak build when namespaced, file was here in my tree but didn't manage
to cvs add

16 months agoadd ietp(4);
jmc [Sat, 8 Jul 2023 05:35:24 +0000 (05:35 +0000)]
add ietp(4);

16 months agoAdd ietp driver for Elantech I2C touchpads
jcs [Sat, 8 Jul 2023 02:43:02 +0000 (02:43 +0000)]
Add ietp driver for Elantech I2C touchpads

From Vladimir Serbinenko

16 months agoImplement route reference counting mockup poperly in rtable regress.
bluhm [Fri, 7 Jul 2023 20:38:17 +0000 (20:38 +0000)]
Implement route reference counting mockup poperly in rtable regress.
This allows to change rtable implementation in kernel without
breaking test.

16 months agoupstream portable fix for ocsp_test
bcook [Fri, 7 Jul 2023 19:54:36 +0000 (19:54 +0000)]
upstream portable fix for ocsp_test

16 months agoKeep mbuf header field ph_mss during loopback TCP with LRO/TSO.
bluhm [Fri, 7 Jul 2023 19:45:26 +0000 (19:45 +0000)]
Keep mbuf header field ph_mss during loopback TCP with LRO/TSO.

When M_TCP_TSO is preserved, also keep ph_mss.  In lo(4) this logic
was missing.  This may be relevant only for weird pf configs that
forward from loopback.

OK mvs@ jan@

16 months agoUnbreak the namespace build after a broken mk.conf and tool misfire had
beck [Fri, 7 Jul 2023 19:37:52 +0000 (19:37 +0000)]
Unbreak the namespace build after a broken mk.conf and tool misfire had
me aliasing symbols not in the headers I was procesing.

This unbreaks the namespace build so it will pass again

ok tb@

16 months agoMissing bit to make ld.bfd actually emit PT_OPENBSD_NOBTCFI.
pascal [Fri, 7 Jul 2023 17:23:03 +0000 (17:23 +0000)]
Missing bit to make ld.bfd actually emit PT_OPENBSD_NOBTCFI.

ok deraadt@

16 months agoAdd clocks for the RK3588 PWM controllers.
patrick [Fri, 7 Jul 2023 16:53:39 +0000 (16:53 +0000)]
Add clocks for the RK3588 PWM controllers.

ok kettenis@

16 months agoAdd clocks for the RK3588 I2C controllers.
patrick [Fri, 7 Jul 2023 16:52:57 +0000 (16:52 +0000)]
Add clocks for the RK3588 I2C controllers.

ok kettenis@

16 months agoAdd resets for the RK3588 USB 3.0 controllers.
patrick [Fri, 7 Jul 2023 16:52:09 +0000 (16:52 +0000)]
Add resets for the RK3588 USB 3.0 controllers.

ok kettenis@

16 months agoExpand the counters in struct mbstat from u_short to u_long. Use
bluhm [Fri, 7 Jul 2023 16:27:46 +0000 (16:27 +0000)]
Expand the counters in struct mbstat from u_short to u_long.  Use
malloc(9) memory instead of kernel stack for sysctl kern.mbstat.

from yasuoka@; chunk missed in previous commit; OK claudio@ tb@

16 months agoProvide optimised bn_mulw() for riscv64.
jsing [Fri, 7 Jul 2023 16:10:32 +0000 (16:10 +0000)]
Provide optimised bn_mulw() for riscv64.

This provides a 1.5-2x performance gain for BN multiplication, with a
similar improvement being seen for RSA operations.

16 months agoRemove symbols already declared in the public header
tb [Fri, 7 Jul 2023 16:04:57 +0000 (16:04 +0000)]
Remove symbols already declared in the public header

ok bcook beck jsing

16 months agoProvide a libcrypto Makefile.inc for riscv64.
jsing [Fri, 7 Jul 2023 15:51:03 +0000 (15:51 +0000)]
Provide a libcrypto Makefile.inc for riscv64.

This is currently no different from the existing behaviour and just pulls
in the C code that would have previously been built. However, it means that
OPENSSL_NO_ASM is no longer being defined by the main libcrypto Makefile,
which in turn will allow us to implement assembly optimisations.

16 months agoIgnore CVS directories for easier git + CVS coexistence.
tobhe [Fri, 7 Jul 2023 15:44:54 +0000 (15:44 +0000)]
Ignore CVS directories for easier git + CVS coexistence.

ok bluhm@ stsp@

16 months agoImplement SHA1_{Update,Transform,Final}() directly in sha1.c.
jsing [Fri, 7 Jul 2023 15:09:45 +0000 (15:09 +0000)]
Implement SHA1_{Update,Transform,Final}() directly in sha1.c.

Copy the update, transform and final functions from md32_common.h, manually
expanding the macros for SHA1. This will allow for further clean up to
occur.

No change in generated assembly.

16 months agoClean up alignment handling for SHA-256.
jsing [Fri, 7 Jul 2023 15:06:50 +0000 (15:06 +0000)]
Clean up alignment handling for SHA-256.

If input data is 32 bit aligned use be32toh() directly, otherwise use
crypto_load_be32toh(), cleaning up all of the HOST_c2l() usage.

ok beck@

16 months agoClean up SHA-256 input handling and round macros.
jsing [Fri, 7 Jul 2023 15:03:55 +0000 (15:03 +0000)]
Clean up SHA-256 input handling and round macros.

Avoid reach around and initialisation outside of the macro, cleaning up
the call sites to remove the initialisation.

ok beck@

16 months agoswap link-auth filter arguments
op [Fri, 7 Jul 2023 14:52:00 +0000 (14:52 +0000)]
swap link-auth filter arguments

Fields which can contain a '|' character are kept last to avoid
ambiguities so move result before username; link-auth was likely forgot
in r1.61 of lka_filter.c when the same treatment was applied to other
events.

Discovered after a report on -portable due to filter-rspamd crashing.

ok millert@