tb [Tue, 4 Jan 2022 19:56:53 +0000 (19:56 +0000)]
First pass over x509_addr_validate_path()
Replace reaching into the structs with IPAddressFamily accessors
and add a few comments that explain what the code is actually doing.
ok inoguchi jsing
jeremy [Tue, 4 Jan 2022 19:51:24 +0000 (19:51 +0000)]
Document ruby31 FLAVOR
tb [Tue, 4 Jan 2022 19:49:14 +0000 (19:49 +0000)]
Refactor IPAddressFamily accessors
Introduce a helper function that allows fetching the AFI and the
optional SAFI out of an IPAddressFamily. Also add two wrappers that
only fetch and validate the AFI, where validation currently only
means that the length is between 2 and 3.
Use these accessors throughout to simplify and streamline the code.
ok inoguchi jsing
claudio [Tue, 4 Jan 2022 18:41:32 +0000 (18:41 +0000)]
Pass the filename back from the parser to the parent.
The parent will then add the filename to the filepath tree instead
of doing that in entity_write_req(). In the parser pass the filename
instead of the full entity object to various proc_parser functions.
With this it will be possible to check more then one file in the parser.
OK tb@, earlyer version OK benno@
claudio [Tue, 4 Jan 2022 18:16:09 +0000 (18:16 +0000)]
Fix -n mode by setting repository states to REPO_DONE instead of the
more correct REPO_FAILED. The problem is that with REPO_FAILED the repo
no longer matches a subsequent rrdp_get lookup and as a result the repo
uses rsync which wrong in this case.
OK benno@ tb@
guenther [Tue, 4 Jan 2022 18:13:31 +0000 (18:13 +0000)]
Use the device we read the hibernate signature from for the entire
resume. This fixes setups where a umass device no longer attaching
at resume results in a softraid device being renumbered so the
hibernate-time device is no longer correct
ok mlarkin@ jsing@
kettenis [Tue, 4 Jan 2022 16:15:28 +0000 (16:15 +0000)]
Restrict the pci(4) ioctl interface to devices detected by the kernel.
This fixes issues on the M1 Macs where the PCI probe done by Xorg
breaks the WiFi chip.
ok patrick@
stsp [Tue, 4 Jan 2022 15:55:28 +0000 (15:55 +0000)]
fix length boundary checks for incoming packets in iwm/iwx
The minimum length and the maximum length required were both too low,
due to an error in accounting for the 4-byte packet length+flags header.
Patch by Christian Ehrhardt
stsp [Tue, 4 Jan 2022 15:53:57 +0000 (15:53 +0000)]
fix Rx Block Ack session validity checks in iwm(4) and iwx(4)
I ported a NULL pointer check from iwlwifi rxmq.c which cannot
happen in our version of this code. Instead we need to check
the BA session ID to determine whether a BA session is valid.
Patch by Christian Ehrhardt.
tb [Tue, 4 Jan 2022 15:37:23 +0000 (15:37 +0000)]
Simplify the verify callback
The final warnx() is very noisy and essentially a remnant of earlier
debugging code. By ditching it and erroring directly on encountering
an unknown critical extension, the code becomes a bit simpler.
ok claudio
claudio [Tue, 4 Jan 2022 15:25:05 +0000 (15:25 +0000)]
Try to handle possible vm_register() failures and return an error back
to the caller instead of most probably crashing because of a NULL pointer
access. This fixes also another -Wunused-but-set-variable warning.
OK benno@ dv@
claudio [Tue, 4 Jan 2022 15:22:53 +0000 (15:22 +0000)]
Remove unused imsg type IMSG_VMDOP_RECEIVE_VM_RESPONSE.
OK benno@ dv@
claudio [Tue, 4 Jan 2022 15:21:40 +0000 (15:21 +0000)]
Another -Wunused-but-set-variable fix.
Based on input from dv@
claudio [Tue, 4 Jan 2022 15:18:44 +0000 (15:18 +0000)]
Fix some simple -Wunused-but-set-variable warnings.
OK benno@ dv@
jmc [Tue, 4 Jan 2022 13:43:14 +0000 (13:43 +0000)]
- add LDAP
- capitalise RADIUS when referring to the protocol
- remove tis
from raf czlonka
ok sthen ajacoutot
patrick [Tue, 4 Jan 2022 13:40:58 +0000 (13:40 +0000)]
acpi_getprop() needs to actually make sure that we're looking at the
correct property. While there adjust acpi_getpropint() as well to
increase similarity with acpi_getprop().
ok kettenis@
tb [Tue, 4 Jan 2022 13:39:01 +0000 (13:39 +0000)]
Stop setting X509_V_FLAG_IGNORE_CRITICAL
Since the last bump, libcrypto knows about the RFC 3779 extensions.
Therefore, setting X509_V_FLAG_IGNORE_CRITICAL is no longer needed.
In fact, we want to error on critical extensions neither rpki-client
nor libcrypto knows about.
On older LibreSSL versions with the default verify callback, this
causes verification failures. Implement a verify callback that
intercepts X509_V_ERR_UNHANDLED_CRITICAL_EXTENSIONS and checks that
the cert doesn't contain critical extensions not supported by libcrypto
other than the expected RFC 3779 extensions.
Tested with LibreSSL 3.3 and 3.4 on OpenBSD 6.9 and 7.0-stable by me
and with LibreSSL 3.2 on Linux by claudio.
input/ok claudio
jsing [Tue, 4 Jan 2022 12:53:31 +0000 (12:53 +0000)]
Return 0 on failure from send/get kex functions in the legacy stack.
In the legacy stack, a message handling function returns -1 for failure,
0 for need more data and 1 for success (although in extra special cases
2 may also be used). However, the various send/get kex functions only
need to indicate success or failure - switch these to return 0 on failure
(rather than -1) and use normal result testing.
This leaves GOST unchanged for now, as that code is special and needs
extra work.
ok inoguchi@ tb@
jsg [Tue, 4 Jan 2022 11:31:42 +0000 (11:31 +0000)]
remove the last part of driver for aic-6250 scsi on aviion
jsing [Tue, 4 Jan 2022 11:17:11 +0000 (11:17 +0000)]
Use normal result testing for tls1_check_curve().
jsing [Tue, 4 Jan 2022 11:14:54 +0000 (11:14 +0000)]
Refactor ssl3_get_server_kex_ecdhe() to separate parsing and validation.
If we receive something other than a "named curve", send a handshake
failure alert as we're unable to complete the handshake with the given
parameters. If the server responded with a curve that we did not advertise
send an illegal parameter alert.
ok inoguchi@ tb@
jsing [Tue, 4 Jan 2022 11:01:58 +0000 (11:01 +0000)]
Pull key share group/length CBB code up from tls13_key_share_public()
This provides better symmetry with the parsing code and will allow for
better reuse with the legacy stack, which has different message structures.
ok inoguchi@ tb@
jsg [Tue, 4 Jan 2022 11:01:24 +0000 (11:01 +0000)]
remove files missed when sgi was removed
ok visa@
jsing [Tue, 4 Jan 2022 10:34:16 +0000 (10:34 +0000)]
Only allow zero length key shares when we know we're doing HRR.
ok inoguchi@ tb@
dtucker [Tue, 4 Jan 2022 08:38:53 +0000 (08:38 +0000)]
Log command invocation in debugging log to aid in manually reproducing
failing commands.
djm [Tue, 4 Jan 2022 07:20:33 +0000 (07:20 +0000)]
unbreak test: was picking up system ssh-add instead of the one supposedly
being tested. Spotted by dtucker and using his VM zoo (which includes
some systems old enough to lack
ed25519 key support)
jsg [Tue, 4 Jan 2022 06:48:46 +0000 (06:48 +0000)]
remove unused file
yasuoka [Tue, 4 Jan 2022 06:32:39 +0000 (06:32 +0000)]
Add `ipsec_flows_mtx' mutex(9) to protect `ipsp_ids_*' list and
trees. ipsp_ids_lookup() returns `ids' with bumped reference
counter. original diff from mvs
ok mvs
florian [Tue, 4 Jan 2022 06:20:37 +0000 (06:20 +0000)]
Make host name DHCP option configurable.
Diff from hagen@sdf.org, tweaks by me.
OK phessler
testing & OK bket
florian [Tue, 4 Jan 2022 06:17:46 +0000 (06:17 +0000)]
Wait for the link-local address to become non-tentative.
Otherwise we just end up with an ugly "Can't assign requested address"
error from sendmsg(2).
OK phessler
gnezdo [Tue, 4 Jan 2022 05:50:43 +0000 (05:50 +0000)]
Remove commented out gtp from amd64 GENERIC
It has long been irrelevant as pointed out by Crystal Kolipe
kolipe.c AT exoticsilicon.com
ok mlarkin
deraadt [Mon, 3 Jan 2022 23:48:03 +0000 (23:48 +0000)]
sync
jmc [Mon, 3 Jan 2022 21:49:37 +0000 (21:49 +0000)]
note the -c runs sh -c; from nabijaczleweli
florian [Mon, 3 Jan 2022 16:42:17 +0000 (16:42 +0000)]
Prefix life time is independent from router life time.
Form an IPv6 address even if the router announcing the prefix isn't a
default router.
Problem reported by mgraves AT brainfat.net on misc
OK denis
visa [Mon, 3 Jan 2022 15:50:16 +0000 (15:50 +0000)]
SOCs -> SoCs
jsg [Mon, 3 Jan 2022 12:01:32 +0000 (12:01 +0000)]
the prism54 domain is long abandoned
don't give any traffic to whoever registered it afterwards
ok claudio@ stsp@
jsg [Mon, 3 Jan 2022 09:48:41 +0000 (09:48 +0000)]
ansi
guenther [Mon, 3 Jan 2022 03:40:48 +0000 (03:40 +0000)]
By default, put intermediate files in a temp dir and remove it on
completion. To leave files in /tmp, use new -k option.
jsg [Mon, 3 Jan 2022 03:06:49 +0000 (03:06 +0000)]
Don't use != 0 to check whether a pointer is non-NULL.
jsg [Mon, 3 Jan 2022 02:10:57 +0000 (02:10 +0000)]
reuse gcu(4) comment from GENERIC fixing spelling
jsg [Mon, 3 Jan 2022 00:44:30 +0000 (00:44 +0000)]
happend -> happened
jsg [Sun, 2 Jan 2022 23:39:48 +0000 (23:39 +0000)]
approprate -> appropriate
jsg [Sun, 2 Jan 2022 23:34:15 +0000 (23:34 +0000)]
Resore -> Restore
jsg [Sun, 2 Jan 2022 23:31:10 +0000 (23:31 +0000)]
firmare -> firmware
jsg [Sun, 2 Jan 2022 23:29:12 +0000 (23:29 +0000)]
excuted -> executed
jsg [Sun, 2 Jan 2022 23:14:26 +0000 (23:14 +0000)]
Prism54 (only full-mac varients) -> Prism54 Full-MAC
jsg [Sun, 2 Jan 2022 23:05:15 +0000 (23:05 +0000)]
Mac -> MAC
jsg [Sun, 2 Jan 2022 22:36:03 +0000 (22:36 +0000)]
spelling
ok jmc@ reads ok tb@
tb [Sun, 2 Jan 2022 21:01:20 +0000 (21:01 +0000)]
immediatly -> immediately
tb [Sun, 2 Jan 2022 21:00:37 +0000 (21:00 +0000)]
fix strange indentation in code example
kettenis [Sun, 2 Jan 2022 20:10:24 +0000 (20:10 +0000)]
Grab kernel lock when required.
ok patrick@
kettenis [Sun, 2 Jan 2022 20:00:21 +0000 (20:00 +0000)]
Don't use != 0 to check whether a pointer is non-NULL.
krw [Sun, 2 Jan 2022 17:26:14 +0000 (17:26 +0000)]
Stop writing big-endian checksums into the little-endian GPT
header fields gh_csum and gh_part_csum.
Constrain kernel to accepting only correct little-endian
checksums.
Temporarily allow fdisk(8) to read either endian GPTs so that
big-endian GPTs can be made correct by a simple 'fdisk -e' &&
'w'.
Fixes inter-architecture, inter-OS GPT portability and GPT
fdisk(8) on big-endian architectures. Broken since initial GPT
implementation.
Suggestions and ok kettenis@
jsg [Sun, 2 Jan 2022 06:16:08 +0000 (06:16 +0000)]
priviledged -> privileged
jsg [Sun, 2 Jan 2022 05:59:53 +0000 (05:59 +0000)]
priveledged -> privileged
jsg [Sun, 2 Jan 2022 05:49:50 +0000 (05:49 +0000)]
convension -> convention
jsg [Sun, 2 Jan 2022 05:40:06 +0000 (05:40 +0000)]
Nummber -> Number
jsg [Sun, 2 Jan 2022 05:37:19 +0000 (05:37 +0000)]
numers -> numbers
jsg [Sun, 2 Jan 2022 05:32:00 +0000 (05:32 +0000)]
contoller -> controller
jsg [Sun, 2 Jan 2022 05:30:07 +0000 (05:30 +0000)]
phsyaddr -> physaddr
jsg [Sun, 2 Jan 2022 05:00:28 +0000 (05:00 +0000)]
spelling
jsg [Sun, 2 Jan 2022 03:41:08 +0000 (03:41 +0000)]
addres -> address
jsg [Sun, 2 Jan 2022 02:31:08 +0000 (02:31 +0000)]
unhandle -> unhandled
jsg [Sun, 2 Jan 2022 02:26:50 +0000 (02:26 +0000)]
slignment -> alignment
jsg [Sun, 2 Jan 2022 02:13:33 +0000 (02:13 +0000)]
preferense -> preference
jsg [Sun, 2 Jan 2022 01:59:42 +0000 (01:59 +0000)]
plaform -> platform
guenther [Sun, 2 Jan 2022 01:20:25 +0000 (01:20 +0000)]
Don't use *ENTRY_NB() with END_BUILTIN(), at least yet
Problem noted by naddy@
jsg [Sun, 2 Jan 2022 01:01:04 +0000 (01:01 +0000)]
establush -> establish
guenther [Sat, 1 Jan 2022 23:47:14 +0000 (23:47 +0000)]
Add ENTRY_NB() macro for doing an ASM function entry without setting
the binding to global (NB == "no binding"), as clang 13 is now
warning about changing the binding from global to weak.
This first pass does amd64 and sparc64 and pulls DEFS.h out of the
per-arch directory to a common directory; others to follow
ok kettenis@
kettenis [Sat, 1 Jan 2022 18:54:09 +0000 (18:54 +0000)]
Revert the hack for Apple M1 systems.
ok patrick@
kettenis [Sat, 1 Jan 2022 18:52:36 +0000 (18:52 +0000)]
Rewrite the kernel FPU handling code. The new code saves the FPU state
in cpu_switch() instead of at the kernel edge and gets rid of the FPU
state tracking in struct cpu_info and struct pcb. This fixes the random
crashes seen with SMP kernels on Apple M1.
ok patrick@
patrick [Sat, 1 Jan 2022 18:52:26 +0000 (18:52 +0000)]
Use correct defines for random seed magic/length.
Spotted by Andreas Schnebinger
cheloha [Sat, 1 Jan 2022 18:20:52 +0000 (18:20 +0000)]
uniq(1): miscellaneous style(9)-ish stuff
- Include what you use:
+ Add <strings.h> for strcasecmp(3).
+ Drop <errno.h>, unused.
- Pull the "errstr" declaration out of the getopt(3) loop
up to the top of main().
- Align the strtonum(3) error messages with the argument
names in the uniq.1 manpage and the usage string. They
are referred to as "chars" and "fields".
- Trim some whitespace.
- Return from main() instead of exit(3).
- De-(void) fprintf(3).
- Prefer getprogname(3) to __progname.
cheloha [Sat, 1 Jan 2022 17:44:18 +0000 (17:44 +0000)]
uniq(1): bump numchars, numfields from int to long long
Also bump repeats from int to unsigned long long.
While here, don't cast the result of strtonum() and unwrap some lines.
kettenis [Sat, 1 Jan 2022 14:18:39 +0000 (14:18 +0000)]
Remove unused function prototype.
kettenis [Sat, 1 Jan 2022 11:45:35 +0000 (11:45 +0000)]
Add missing locking to pmap_extract(9) and pmap_unwire(9).
ok patrick@, mpi@
jsg [Sat, 1 Jan 2022 08:10:29 +0000 (08:10 +0000)]
Multiprocol -> Multiprotocol
jsg [Sat, 1 Jan 2022 08:01:27 +0000 (08:01 +0000)]
Identifiier -> Identifier
jsg [Sat, 1 Jan 2022 07:00:57 +0000 (07:00 +0000)]
copyright++;
jsg [Sat, 1 Jan 2022 05:55:06 +0000 (05:55 +0000)]
spelling
djm [Sat, 1 Jan 2022 04:18:06 +0000 (04:18 +0000)]
fix memleak in process_extension(); oss-fuzz issue #42719
jsg [Sat, 1 Jan 2022 03:59:22 +0000 (03:59 +0000)]
eascape -> escape
jsg [Sat, 1 Jan 2022 03:57:20 +0000 (03:57 +0000)]
approciate -> appropriate
jsg [Sat, 1 Jan 2022 02:44:22 +0000 (02:44 +0000)]
failured -> failed
cheloha [Sat, 1 Jan 2022 02:20:38 +0000 (02:20 +0000)]
uniq(1): freopen(3) stdin, stdout
uniq(1) defaults to stdin and stdout, has exactly one input and one
output, and permits the user to replace the default input and/or the
default output with a given file.
freopen(3) is the right idiom in this context. Get rid of file() and
the extra FILE pointers. Switch from fprintf(3) to printf(3).
While here, const the "str" argument to show().
Thread: https://marc.info/?l=openbsd-tech&m=
164078603312936&w=2
ok millert@
jsg [Sat, 1 Jan 2022 02:18:28 +0000 (02:18 +0000)]
contibutions -> contributions
jsg [Sat, 1 Jan 2022 02:06:07 +0000 (02:06 +0000)]
identfier -> identifier
jsg [Sat, 1 Jan 2022 01:55:30 +0000 (01:55 +0000)]
spelling
ok dtucker@
jsg [Fri, 31 Dec 2021 23:19:50 +0000 (23:19 +0000)]
spelling
ok ratchov@
jsg [Fri, 31 Dec 2021 22:40:40 +0000 (22:40 +0000)]
excpetions -> exceptions
jsg [Fri, 31 Dec 2021 22:38:01 +0000 (22:38 +0000)]
deafult -> default
nicm [Fri, 31 Dec 2021 11:35:49 +0000 (11:35 +0000)]
Try to turn on less-capable mouse modes when turning on more-capable, to
increase the chances we get something even if the terminal doesn't support
the one we really want. GitHub issue 3020.
jsg [Fri, 31 Dec 2021 11:24:24 +0000 (11:24 +0000)]
Interrups -> Interrupts
kettenis [Fri, 31 Dec 2021 11:21:45 +0000 (11:21 +0000)]
Add missing locking to pmap_extract(9) and pmap_unwire(9).
ok patrick@, mpi@
jsg [Fri, 31 Dec 2021 10:44:05 +0000 (10:44 +0000)]
avaialble -> available
jsg [Fri, 31 Dec 2021 10:40:30 +0000 (10:40 +0000)]
specifed -> specified
patrick [Fri, 31 Dec 2021 09:24:18 +0000 (09:24 +0000)]
Newer Apple firmware on chipsets without a hardware RNG require the host to
provide a buffer of random bytes to the device on initialization.
jmatthew [Fri, 31 Dec 2021 08:15:47 +0000 (08:15 +0000)]
Fix up handling of IFF_ALLMULTI and call uaq_iff() from uaq_init().
from Brad
dv [Thu, 30 Dec 2021 20:51:34 +0000 (20:51 +0000)]
typo: p5-Socket-SSL -> p5-IO-Socket-SSL
ok kn@
dv [Thu, 30 Dec 2021 20:38:43 +0000 (20:38 +0000)]
relayd(8): don't create sockets between CAs and RELAYs.
CA and RELAY process types don't need to communicate with other CA
or RELAY processes respectively, so don't create and distribute ipc
socketpairs.
Tested by and ok denis@