1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 07:27:59 -08:00
Commit Graph

227813 Commits

Author SHA1 Message Date
tobhe
4dacb8188c Ignore CVS directories for easier git + CVS coexistence.
ok bluhm@ stsp@
2023-07-07 15:44:54 +00:00
jsing
cbefc5ebed 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.
2023-07-07 15:09:45 +00:00
jsing
b039d94945 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@
2023-07-07 15:06:50 +00:00
jsing
1fd3fa42d1 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@
2023-07-07 15:03:55 +00:00
op
51ecec67c9 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@
2023-07-07 14:52:00 +00:00
jsing
6fa35e22c1 Remove unused SHA-256 implementation.
ok beck@
2023-07-07 14:32:41 +00:00
yasuoka
032e1cec45 Expand the counters in struct mbstat from u_short to u_long.
ok blumn mvs
2023-07-07 14:17:34 +00:00
beck
ea2baf45ff Hide symbols in hkdf, evp, err, ecdsa, and ec
(part 2 of commit)

ok jsing@
2023-07-07 13:54:45 +00:00
beck
4dd435e971 Hide symbols in hkdf, evp, err, ecdsa and ec
ok jsing@
2023-07-07 13:53:52 +00:00
beck
4a925a6a8d Hide symbols in lhash, pem, and rc2
ok jsing@
2023-07-07 13:40:44 +00:00
job
e50e3288ef Remove softdep from example fstab file 2023-07-07 13:21:28 +00:00
beck
31ef58d7c4 Hit idea with the loving mallet of knfmt
ok knfmt
2023-07-07 12:51:58 +00:00
beck
93f18f112b hide symbols in sm, rand, and poly1305
ok jsing@
2023-07-07 12:01:32 +00:00
patrick
6c89734d1e The per-VQ MSI-X interrupt handler needs to sync DMA mappings in the
same way that the shared interrupt handler does.  This is one of the
requirements of virtio_dequeue(), as specified in its comment above.

Without the DMA sync, it will not see a new entry on the ring and
return.  Since the interrupt is edge-triggered there won't be another
one and we'll get stuck.

ok dv@
2023-07-07 10:23:39 +00:00
jsing
e609121df8 Replace HOST_l2c() with htob32() or crypto_store_htobe32().
ok beck@
2023-07-07 10:22:28 +00:00
patrick
f83e6fb817 Keep more information about the established LPI around, so that we can use
targeted invalidation through INV instead of flushing the whole cache through
INVALL.  Having this information enables us to send DISCARD, which clears the
mapping from the ITT.  This seems to be necessary to make the Hetzner VM's ITS
happy when we try to disestablish and re-establish an LPI.

This also moves the LPI table completely into agintc(4), as LPIs are global to
an agintc(4) and especially with multiple agintcmsi(4) they should be unique.

Tested by claudio@
ok kettenis@
2023-07-07 10:11:39 +00:00
jsing
9c3341465a Rename RSA_eay_* to rsa_*.
Rename all of the RSA_eay_* functions to rsa_*, as well as changing the
method name (and naming). Reorder things slightly so that we can remove
all of the prototypes for static functions.

ok tb@
2023-07-07 10:11:23 +00:00
yasuoka
f1b80c897e Use "llu%" for printing the uint64_t fields in tcpcb.
ok blumn
2023-07-07 09:15:13 +00:00
tb
11b12eccaa Enable reading RSA-PSS certificates
ok beck jsing
2023-07-07 08:53:55 +00:00
kettenis
662594acff Add a few more JH7110 clocks.
ok jsing@
2023-07-07 08:43:47 +00:00
beck
aa1fb01650 Hit rc2 with the loving mallet of knfmt.
ok tb@
2023-07-07 08:29:37 +00:00
bluhm
5ebaba9d29 Fix path MTU discovery for TCP LRO/TSO when forwarding.
When doing LRO (Large Receive Offload), the drivers, currently ix(4)
and lo(4) only, record an upper bound of the size of the original
packets in ph_mss.  When sending, either stack or hardware must
chop the packets with TSO (TCP Segmentation Offload) to that size.
That means we have to call tcp_if_output_tso() before ifp->if_output().
Put that logic into if_output_tso() to avoid code duplication.  As
TCP packets on the wire do not get larger that way, path MTU discovery
should still work.

tested by and OK jan@
2023-07-07 08:05:02 +00:00
tb
0b88608e55 Add test coverage for leading zero octet dance 2023-07-07 07:47:25 +00:00
bcook
d6517dbd6e fixup for MS compilers 2023-07-07 07:44:59 +00:00
claudio
3e37c3917f Add support for multiple batteries to acpithinkpad setchargestart and
setchargestop. With this laptops like x270 or x240 properly set the
thresholds for both batteries.
Tested by kn@ and jmatthew@
OK kettenis@
2023-07-07 07:37:59 +00:00
beck
bb933e2f23 Hide symbols in ts
ok jsing@
2023-07-07 07:25:21 +00:00
tb
d37b81742f Use an unsigned long long and corresponding formats
Fixes build on 32 bit.

Reported by claudio
2023-07-07 07:04:24 +00:00
tb
549c133be0 Mop up remaining uses of ASN1_bn_print()
This removes lots of silly buffers and will allow us to make this API
go away.

ok jsing
2023-07-07 06:59:18 +00:00
tb
ceca8f99aa Insert leading octet if high bit of first nibble is 1
The reason the function this replaces is called ASN1_bn_print() is that it
actually prints a representation of the ASN.1 encoding.

ok jsing
2023-07-07 06:41:59 +00:00
jsing
a36d572fea One source file per line. 2023-07-07 06:10:14 +00:00
jsg
cbd2bc799b regen 2023-07-07 03:50:46 +00:00
jsg
7c8b62917d add more Intel 13G TBT PCIE ids
from Volker Schlecht's Framework 13 dmesg and
13th Generation Intel Core Processors
Datasheet, Volume 2 of 2, Doc. No.: 764981, Rev.: 1.2
2023-07-07 03:50:02 +00:00
afresh1
63788854cc Adjust perl unveil test to test the right thing
Normal users can't write to /dev/random, so the -w test would always
fail for root and succeed for everyone else no matter what unveil
did.  Testing with a temp file at least gives consistent results
no matter the user, even if I don't completely understand why the
-w and -r test results are different.

Noticed by bluhm@
2023-07-07 02:07:35 +00:00
cheloha
08261913ef timeout_hardclock_update: enter timeout_mutex before reading uptime clock
We have no way of knowing how long we will spin before entering
timeout_mutex.  Enter timeout_mutex first, then wait until just before
we start dumping kclock buckets to read the uptime clock.
2023-07-06 23:24:37 +00:00
dtucker
228cff3439 minleft and maxsign are u_int so cast appropriately. Prompted by
github PR#410, ok deraadt.
2023-07-06 22:17:59 +00:00
kn
4b04b6ae4a Rectify -s lie
-s to read passphrases from stdin can indeed be used for creation.

OK jmc
2023-07-06 21:08:50 +00:00
kn
31147282b7 missed refcnt_init_trace in NAME 2023-07-06 20:53:53 +00:00
kn
1e65b7dde7 Document dt(4)'s refcnt_init_trace
"yes please" mvs
Input jca
2023-07-06 20:51:31 +00:00
uaa
ae0af1675e - fix voltage range defined by base2 and delta2 works correctly
- fix AXP209 dcdc3 vmask value
- always use vmask for voltage setting (especially for AXP209 ldo2/ldo5)
- add AXP305 support

ok kettenis@
2023-07-06 20:02:36 +00:00
sashan
e8c6dd7b2e adding regression tests:
to verify limit on tickets progam can retrieve
    by DIOCXGETRULES. Ad

    tests which verify DIOCXEND works as expected, that program
    can release ticket obtained by earlier call to DIOCGETRULES

improvements from anton@

OK anton@, bluhm@
2023-07-06 19:55:57 +00:00
kn
69761fb125 use refcnt API for multicast addresses, add tracepoint:refcnt:ethmulti probe
Replace hand-rolled reference counting with refcnt_init(9) and hook it up
with a new dt(4) probe.

OK mvs
Feedback OK bluhm
2023-07-06 19:46:53 +00:00
deraadt
4994896c09 oops, an extra PT_ snuck in; spotted by guenther 2023-07-06 16:45:30 +00:00
tb
3c7d04837b Convert ecpk_print_explicit_parameters() to bn_printf()
This eliminates a few stupid dances the horrible ASN1_bn_print() API
required.

ok jsing
2023-07-06 15:18:02 +00:00
tb
69421fdc9e bn_print: remove unused bio, plug leak 2023-07-06 15:11:21 +00:00
tb
f356d55941 Add regress coverage for bn_printf
This must be one of the ugliest tests I've ever written, but I can't think
of a better way of doing it.
2023-07-06 15:08:54 +00:00
tb
37334f50e4 Add bn_printf(), a replacement for ASN1_bn_print()
ASN1_bn_print() will be removed in an upcoming bump. This adds an internal
API that covers the same functionality but doesn't require that the caller
pass in a sufficiently large scratch space that ASN1_bn_print() may or may
not use. In addition, this takes a format string, which allows us to ditch
some extra dances.

ok jsing
2023-07-06 14:37:39 +00:00
espie
602397c1b3 add support for starting at a given timestamp/ISO8601 time 2023-07-06 10:57:03 +00:00
jasper
87a0f9ae9d if panic() is meant, use panic()
ok mpi@
2023-07-06 10:53:11 +00:00
espie
bfb9c3ad8c new options (boilerplate progressmeter options)
and also the ability to specify a timestamp as a subset of ISO8601
2023-07-06 10:43:37 +00:00
visa
4e4f5ce5df Use mtx_init() to initialize stack-based mutexes
mtx_init() ensures the mutex' lock_object has static storage duration.
This makes it safe to re-enable WITNESS with stack-based mutexes.

OK bluhm@ miod@
2023-07-06 10:17:43 +00:00