openbsd
2 years agoWhen calculating the with of spanned columns, which for example matters
schwarze [Fri, 8 Apr 2022 16:53:40 +0000 (16:53 +0000)]
When calculating the with of spanned columns, which for example matters
for centering text spanning multiple tbl(7) columns, correctly account
for the spacing between columns instead of wrongly assuming the default
spacing of 3n.

Patch from Simon Branch <simonmbranch at gmail dot com>.

2 years agoBump because of the last minute mktime -> timegm fix
claudio [Fri, 8 Apr 2022 15:30:27 +0000 (15:30 +0000)]
Bump because of the last minute mktime -> timegm fix

2 years agoAll times in the x509 are UTC so use timegm() and not mktime().
claudio [Fri, 8 Apr 2022 15:29:59 +0000 (15:29 +0000)]
All times in the x509 are UTC so use timegm() and not mktime().
The latter will apply the timezone offset and so the further west
the more probable you are to have problems with valid_from times.
Fix from tb@
OK job@, benno@ and me

2 years agolm, uguru, fins, wbenv: constify sensor tables
naddy [Fri, 8 Apr 2022 15:02:28 +0000 (15:02 +0000)]
lm, uguru, fins, wbenv: constify sensor tables

ok miod@

2 years agofix leaking memory in get_sdr on failure.
mbuhl [Fri, 8 Apr 2022 13:13:14 +0000 (13:13 +0000)]
fix leaking memory in get_sdr on failure.
Found by LLVM scan-build.
ok sthen@

2 years agoregen
kevlo [Fri, 8 Apr 2022 06:07:38 +0000 (06:07 +0000)]
regen

2 years agoAdd MT7921K.
kevlo [Fri, 8 Apr 2022 06:07:01 +0000 (06:07 +0000)]
Add MT7921K.

ok deraadt@

2 years agoNote that curve25519-sha256 was later published in RFC8731. ok djm@
dtucker [Fri, 8 Apr 2022 05:43:39 +0000 (05:43 +0000)]
Note that curve25519-sha256 was later published in RFC8731.  ok djm@

2 years agotwo defensive changes from Tobias Stoeckmann via GHPR287
djm [Fri, 8 Apr 2022 04:40:40 +0000 (04:40 +0000)]
two defensive changes from Tobias Stoeckmann via GHPR287

enforce stricter invarient for sshbuf_set_parent() - never allow
a buffer to have a previously-set parent changed.

In sshbuf_reset(), if the reallocation fails, then zero the entire
buffer and not the (potentially smaller) default initial alloc size.

2 years agochange "PSP runtime database doesn't exist" from warn to info
jsg [Fri, 8 Apr 2022 01:25:34 +0000 (01:25 +0000)]
change "PSP runtime database doesn't exist" from warn to info
suggested by kettenis@

2 years agoRelease PF und NET lock before calling copyin and copyout for
mbuhl [Thu, 7 Apr 2022 19:27:24 +0000 (19:27 +0000)]
Release PF und NET lock before calling copyin and copyout for
DIOCXBEGIN.
OK bluhm@
OK sashan@
Reported-by: syzbot+b22ec16c5bf937578937@syzkaller.appspotmail.com
2 years agoAvoid infinite loop on parsing DSA private keys
tb [Thu, 7 Apr 2022 17:38:24 +0000 (17:38 +0000)]
Avoid infinite loop on parsing DSA private keys

DSA private keys with ill-chosen g could cause an infinite
loop on deserializing. Add a few sanity checks that ensure
that g is according to the FIPS 186-4: check 1 < g < p and
g^q == 1 (mod p). This is enough to ascertain that g is a
generator of a multiplicative group of order q once we know
that q is prime (which is checked a bit later).

Issue reported with reproducers by Hanno Boeck.
Additional variants and analysis by David Benjamin.

ok beck jsing

2 years agoAvoid infinite loop for custom curves of order 1
tb [Thu, 7 Apr 2022 17:37:25 +0000 (17:37 +0000)]
Avoid infinite loop for custom curves of order 1

If a private key encoded with EC parameters happens to have
order 1 and is used for ECDSA signatures, this causes an
infinite loop since a random integer x in the interval [0,1)
will be 0, so do ... while (x == 0); will loop indefinitely.

Found and reported with a reproducer by Hanno Boeck.
Helpful comments and analysis from David Benjamin.

ok beck jsing

2 years agoSupport more power sensors in IPMI. Tested on several Supermicro and Dell
sthen [Thu, 7 Apr 2022 17:36:38 +0000 (17:36 +0000)]
Support more power sensors in IPMI. Tested on several Supermicro and Dell
amd64 boxes and Lenovo (Ampere) aarch64. tweak/OK mbuhl@

2 years agoconstify ifmedia descriptions; ok deraadt@ miod@
naddy [Thu, 7 Apr 2022 16:41:13 +0000 (16:41 +0000)]
constify ifmedia descriptions; ok deraadt@ miod@

2 years agopf_rollback_rules always has the same return value, make it void.
mbuhl [Thu, 7 Apr 2022 14:13:01 +0000 (14:13 +0000)]
pf_rollback_rules always has the same return value, make it void.
OK sashan
OK bluhm@

2 years agoIn pfsync(4) sc_len is modified with atomic operations except in
bluhm [Thu, 7 Apr 2022 13:38:54 +0000 (13:38 +0000)]
In pfsync(4) sc_len is modified with atomic operations except in
one place.  Use atomic_add_long() there.  Call the local variable
sclen, that makes it easier to grep for the struct field sc_len.
OK sashan@

2 years agoAdjust mkioconf so the emitted extern struct cfattach are const.
tb [Thu, 7 Apr 2022 10:11:27 +0000 (10:11 +0000)]
Adjust mkioconf so the emitted extern struct cfattach are const.

tweak/ok miod

2 years agoFix kernel builds with pseudo-device rd
tb [Thu, 7 Apr 2022 09:37:32 +0000 (09:37 +0000)]
Fix kernel builds with pseudo-device rd

Make the cf_attach member of struct cfdata const and sprinkle a few
const into subr_autoconf.c to make this work. Fixes the compilation
of sys/dev/rd.c with newly const rd_ca.

ok miod (who had a similar diff)

2 years agodrm/vrr: Set VRR capable prop only if it is attached to connector
jsg [Thu, 7 Apr 2022 09:36:23 +0000 (09:36 +0000)]
drm/vrr: Set VRR capable prop only if it is attached to connector

From Manasi Navare
3534c5c005ef99a1804ed50b8a72cdae254cabb5 in linux 5.15.y/5.15.30
62929726ef0ec72cbbe9440c5d125d4278b99894 in mainline linux

2 years agodrm/i915: Workaround broken BIOS DBUF configuration on TGL/RKL
jsg [Thu, 7 Apr 2022 09:32:08 +0000 (09:32 +0000)]
drm/i915: Workaround broken BIOS DBUF configuration on TGL/RKL

From Ville Syrjala
074c88751dc121eb9a7fbcbd632001b8d2b09efa in linux 5.15.y/5.15.29
4e6f55120c7eccf6f9323bb681632e23cbcb3f3c in mainline linux

2 years agodrm/amdgpu: bypass tiling flag check in virtual display case (v2)
jsg [Thu, 7 Apr 2022 09:28:23 +0000 (09:28 +0000)]
drm/amdgpu: bypass tiling flag check in virtual display case (v2)

From Guchun Chen
fcd1d79aa943fff4fbaa0cce1d576995a7960699 in linux 5.15.y/5.15.29
e2b993302f40c4eb714ecf896dd9e1c5be7d4cd7 in mainline linux

2 years agodrm/amdgpu: fix suspend/resume hang regression
jsg [Thu, 7 Apr 2022 07:59:24 +0000 (07:59 +0000)]
drm/amdgpu: fix suspend/resume hang regression

From Qiang Yu
46eed3a37dee87b9c35c7419e1820797121893a0 in linux 5.15.y/5.15.27
f1ef17011c765495c876fa75435e59eecfdc1ee4 in mainline linux

2 years agodrm/i915/guc/slpc: Correct the param count for unset param
jsg [Thu, 7 Apr 2022 07:57:39 +0000 (07:57 +0000)]
drm/i915/guc/slpc: Correct the param count for unset param

From Vinay Belgaumkar
d675c05b792e166a5dd6ab9498a137bfd9bc8570 in linux 5.15.y/5.15.27
1b279f6ad467535c3b8a66b4edefaca2cdd5bdc3 in mainline linux

2 years agodrm/amd/display: Reduce dmesg error to a debug print
jsg [Thu, 7 Apr 2022 07:56:04 +0000 (07:56 +0000)]
drm/amd/display: Reduce dmesg error to a debug print

From Leo (Hanghong) Ma
dab06be16184b087228a55efec878546ffeda491 in linux 5.15.y/5.15.27
1d925758ba1a5d2716a847903e2fd04efcbd9862 in mainline linux

2 years agodrm/i915: s/JSP2/ICP2/ PCH
jsg [Thu, 7 Apr 2022 07:53:31 +0000 (07:53 +0000)]
drm/i915: s/JSP2/ICP2/ PCH

From Ville Syrjala
7508ac360d1e0e6a2b9578226eaffc384b4eb036 in linux 5.15.y/5.15.27
08783aa7693f55619859f4f63f384abf17cb58c5 in mainline linux

2 years agodrm/amd/display: Fix stream->link_enc unassigned during stream removal
jsg [Thu, 7 Apr 2022 07:50:31 +0000 (07:50 +0000)]
drm/amd/display: Fix stream->link_enc unassigned during stream removal

From Nicholas Kazlauskas
10dd26349edf901539d066b866490676cbfad73c in linux 5.15.y/5.15.27
3743e7f6fcb938b7d8b7967e6a9442805e269b3d in mainline linux

2 years agodrm/i915: Disable DRRS on IVB/HSW port != A
jsg [Thu, 7 Apr 2022 07:48:23 +0000 (07:48 +0000)]
drm/i915: Disable DRRS on IVB/HSW port != A

From Ville Syrjala
5c66161cceaabc68912950893394e04c164ef7ad in linux 5.15.y/5.15.27
ee59792c97176f12c1da31f29fc4c2aab187f06e in mainline linux

2 years agodrm/i915/display: Move DRRS code its own file
jsg [Thu, 7 Apr 2022 07:46:04 +0000 (07:46 +0000)]
drm/i915/display: Move DRRS code its own file

From Jose Roberto de Souza
e2b3d1bf6ec3bc4d3687f77731eef349cef54495 in linux 5.15.y/5.15.27
a1b63119ee839c8ff622407aab25c9723943638a in mainline linux

2 years agodrm/i915/display: split out dpt out of intel_display.c
jsg [Thu, 7 Apr 2022 07:39:54 +0000 (07:39 +0000)]
drm/i915/display: split out dpt out of intel_display.c

From Jani Nikula
23eb29281f1e1bc3e33f75186b16c961e62effe6 in linux 5.15.y/5.15.27
dc6d6158a6e8b11a11544a541583296d9323050f in mainline linux

2 years agodrm/amd/display: Update watermark values for DCN301
jsg [Thu, 7 Apr 2022 07:34:02 +0000 (07:34 +0000)]
drm/amd/display: Update watermark values for DCN301

From Agustin Gutierrez
ed4488d8307f282bdf30c333fc028d80d404ff05 in linux 5.15.y/5.15.27
2d8ae25d233767171942a9fba5fd8f4a620996be in mainline linux

2 years agodrm/amd/display: move FPU associated DSC code to DML folder
jsg [Thu, 7 Apr 2022 07:30:54 +0000 (07:30 +0000)]
drm/amd/display: move FPU associated DSC code to DML folder

From Qingqing Zhuo
27e01f10d183cd444eb4a0919934391de4db4ff5 in linux 5.15.y/5.15.27
d738db6883df3e3c513f9e777c842262693f951b in mainline linux

2 years agodrm/amd/display: Use adjusted DCN301 watermarks
jsg [Thu, 7 Apr 2022 07:15:07 +0000 (07:15 +0000)]
drm/amd/display: Use adjusted DCN301 watermarks

From Nikola Cornij
691c0030be65dffc5005bbcdece29f6d65e1eb75 in linux 5.15.y/5.15.27
808643ea56a2f96a42873d5e11c399957d6493aa in mainline linux

2 years agodrm/amdgpu: filter out radeon secondary ids as well
jsg [Thu, 7 Apr 2022 07:13:07 +0000 (07:13 +0000)]
drm/amdgpu: filter out radeon secondary ids as well

From Alex Deucher
2157e509e5b2b21176a9fd33b6035996ef1a2895 in linux 5.15.y/5.15.27
9e5a14bce2402e84251a10269df0235cd7ce9234 in mainline linux

2 years agodrm/amdgpu: filter out radeon PCI device IDs
jsg [Thu, 7 Apr 2022 07:11:21 +0000 (07:11 +0000)]
drm/amdgpu: filter out radeon PCI device IDs

From Alex Deucher
f724a438d986701536d68d29ad2b5248385e35ab in linux 5.15.y/5.15.27
bdbeb0dde4258586bb2f481b12da1e83aa4766f3 in mainline linux

2 years agodrm/amd/display: For vblank_disable_immediate, check PSR is really used
jsg [Thu, 7 Apr 2022 07:08:48 +0000 (07:08 +0000)]
drm/amd/display: For vblank_disable_immediate, check PSR is really used

From Michel Daenzer
35afd8ae1184c5201ccc4d32b80d17dcd87f5bda in linux 5.15.y/5.15.27
4d22336f903930eb94588b939c310743a3640276 in mainline linux

2 years agodrm/amdgpu/display: Only set vblank_disable_immediate when PSR is not enabled
jsg [Thu, 7 Apr 2022 07:08:07 +0000 (07:08 +0000)]
drm/amdgpu/display: Only set vblank_disable_immediate when PSR is not enabled

From Nicholas Kazlauskas
48cf33ee6b04ccd1a188ac692a6f260b3682fe9f in linux 5.15.y/5.15.27
70897848730470cc477d5d89e6222c0f6a9ac173 in mainline linux

2 years agodrm/amdkfd: Check for null pointer after calling kmemdup
jsg [Thu, 7 Apr 2022 06:51:19 +0000 (06:51 +0000)]
drm/amdkfd: Check for null pointer after calling kmemdup

From Jiasheng Jiang
5609b7803947eea1711516dd8659c7ed39f5a868 in linux 5.15.y/5.15.27
abfaf0eee97925905e742aa3b0b72e04a918fa9e in mainline linux

2 years agodrm/atomic: Check new_crtc_state->active to determine if CRTC needs disable in self...
jsg [Thu, 7 Apr 2022 06:49:11 +0000 (06:49 +0000)]
drm/atomic: Check new_crtc_state->active to determine if CRTC needs disable in self refresh mode

From Liu Ying
cd07b19fbf37b96a9885fd6e8545c355dba59ac3 in linux 5.15.y/5.15.27
69e630016ef4e4a1745310c446f204dc6243e907 in mainline linux

2 years agodrm/i915: don't call free_mmap_offset when purging
jsg [Thu, 7 Apr 2022 06:46:27 +0000 (06:46 +0000)]
drm/i915: don't call free_mmap_offset when purging

From Matthew Auld
d3f67ceaeb3f7ddabad1d6e8da29e44fd2634f65 in linux 5.15.y/5.15.27
4c2602ba8d74c35d550ed3d518809c697de08d88 in mainline linux

2 years agodrm/amdgpu: check vm ready by amdgpu_vm->evicting flag
jsg [Thu, 7 Apr 2022 06:44:25 +0000 (06:44 +0000)]
drm/amdgpu: check vm ready by amdgpu_vm->evicting flag

From Qiang Yu
a9c6e02d223e327fa928fab3263aa47b9ba20253 in linux 5.15.y/5.15.27
c1a66c3bc425ff93774fb2f6eefa67b83170dd7e in mainline linux

2 years agodrm/amd/pm: correct UMD pstate clocks for Dimgrey Cavefish and Beige Goby
jsg [Thu, 7 Apr 2022 06:42:01 +0000 (06:42 +0000)]
drm/amd/pm: correct UMD pstate clocks for Dimgrey Cavefish and Beige Goby

From Evan Quan
4543426cd7b855cde2c3623ede652652b905635c in linux 5.15.y/5.15.27
0136f5844b006e2286f873457c3fcba8c45a3735 in mainline linux

2 years agoMention Allwinner H6
kevlo [Thu, 7 Apr 2022 02:44:51 +0000 (02:44 +0000)]
Mention Allwinner H6

ok jsg@

2 years agoAdd instructions on how to prepare Apple arm64 machines for installing
kettenis [Wed, 6 Apr 2022 23:01:05 +0000 (23:01 +0000)]
Add instructions on how to prepare Apple arm64 machines for installing
OpenBSD.

2 years agoSupport switching from glass console to serial console on systems that
kettenis [Wed, 6 Apr 2022 21:27:03 +0000 (21:27 +0000)]
Support switching from glass console to serial console on systems that
default to glass console.

ok miod@, patrick@

2 years agoconstify struct cfattach
naddy [Wed, 6 Apr 2022 18:59:26 +0000 (18:59 +0000)]
constify struct cfattach

2 years agoAvoid traversing SLIST twice to remove a link.
krw [Wed, 6 Apr 2022 17:39:13 +0000 (17:39 +0000)]
Avoid traversing SLIST twice to remove a link.

From millert@

2 years ago- document where dependency tree is built
espie [Wed, 6 Apr 2022 14:15:27 +0000 (14:15 +0000)]
- document where dependency tree is built
- remove future code that was never used.
- reformat

2 years agoRecognize LUN 0 device if SID_QUAL_LU_OFFLINE and T_NODEVICE are
krw [Wed, 6 Apr 2022 13:23:58 +0000 (13:23 +0000)]
Recognize LUN 0 device if SID_QUAL_LU_OFFLINE and T_NODEVICE are
true. This enables the discovery and probing of other LUNs the
target has to offer.

Add uk* to amd64 RAMDISK_CD so such devices are configured.

Allows bsd.rd as well as bsd[.mp] to boot on Oracle Cloud amd64
instances.

Issue reported by Ryan Kavanagh and Scott Nicholas via bugs@.

Original diff and much subsequent testing by Scott. Thanks!

ok dlg@ jmatthew@

2 years agore-enable POOL_DEBUG
naddy [Tue, 5 Apr 2022 18:38:07 +0000 (18:38 +0000)]
re-enable POOL_DEBUG

2 years agoZap emacs version in the pkg_add example
jca [Tue, 5 Apr 2022 18:07:46 +0000 (18:07 +0000)]
Zap emacs version in the pkg_add example

Instead of updating/forgetting the emacs version at each release cycle.
ok tb@ deraadt@

2 years agobump emacs version so the pkg_add example works
tb [Tue, 5 Apr 2022 16:28:59 +0000 (16:28 +0000)]
bump emacs version so the pkg_add example works

ok deraadt

2 years agoback to working on 7.1-current
deraadt [Tue, 5 Apr 2022 16:25:30 +0000 (16:25 +0000)]
back to working on 7.1-current

2 years agodisable pool debug for release
deraadt [Tue, 5 Apr 2022 15:14:59 +0000 (15:14 +0000)]
disable pool debug for release

2 years agosync
deraadt [Tue, 5 Apr 2022 15:08:00 +0000 (15:08 +0000)]
sync

2 years agoadd 7.2 firmware public key, ok deraadt
sthen [Tue, 5 Apr 2022 09:48:52 +0000 (09:48 +0000)]
add 7.2 firmware public key, ok deraadt

2 years agoadd 7.2 syspatch public key
robert [Tue, 5 Apr 2022 06:20:47 +0000 (06:20 +0000)]
add 7.2 syspatch public key

2 years agoFix two missing checks in the SIA extension
tb [Tue, 5 Apr 2022 03:56:20 +0000 (03:56 +0000)]
Fix two missing checks in the SIA extension

Make sure that the caRepository and rpkiManifest are present before
calling strstr on them. Also check that the extension is not critical.

ok claudio deraadt

2 years agoNew day is a Thursday
tb [Tue, 5 Apr 2022 03:49:27 +0000 (03:49 +0000)]
New day is a Thursday

please fix deraadt

2 years agoopenssh-9.0
djm [Mon, 4 Apr 2022 22:45:25 +0000 (22:45 +0000)]
openssh-9.0

2 years agomove release date a little
deraadt [Mon, 4 Apr 2022 21:16:47 +0000 (21:16 +0000)]
move release date a little

2 years agowscons: const-ify font encoding mappings
naddy [Mon, 4 Apr 2022 19:53:15 +0000 (19:53 +0000)]
wscons: const-ify font encoding mappings

ok miod@

2 years agoAdjust cache cleanup to the deficits of RRDP. Unlike rysnc, RRDP has no
claudio [Mon, 4 Apr 2022 16:02:54 +0000 (16:02 +0000)]
Adjust cache cleanup to the deficits of RRDP. Unlike rysnc, RRDP has no
method to sync the cache. It just depends on all deltas to work but has
no method to check if the result is consistent with the source.
Because of this do not unlink files which were fetched via RRDP. Instead
move them back to their .rrdp directory and hope the will be cleaned up.
This should help to keep the cache coherent in some edge cases.
OK tb@

2 years agoAs a hack, use CD_SKIPHIBERNATE. For 2.0, our TPM lifecycle management
deraadt [Mon, 4 Apr 2022 15:46:45 +0000 (15:46 +0000)]
As a hack, use CD_SKIPHIBERNATE.  For 2.0, our TPM lifecycle management
is improper, and some chips are more sensitive to this than others.  In an
unhibernate situation, /bsd.booted will 'suspend' the TPM, then jump directly
into unhib /bsd, which 'resumes' it.  This is wrong because the lifecycle is
supposed to be more like suspend->BIOS->resume.  This is a hack until we figure
out how to fix the lifecycle.
from claudio, ok dv

2 years agoChange from a dynamic allocation for the process list to a static
claudio [Mon, 4 Apr 2022 13:47:58 +0000 (13:47 +0000)]
Change from a dynamic allocation for the process list to a static
array because the maximum size. The number of processes was already
limited by stopping to poll for new commands but this enforces it
even more. With this remove the FIXME comment since it is no longer
true.
OK tb@

2 years agoRemove outdated XXX comment. This got fixed in January.
claudio [Mon, 4 Apr 2022 13:45:02 +0000 (13:45 +0000)]
Remove outdated XXX comment. This got fixed in January.

2 years agoRemove two more FIXMEs: to get there, we rely on the OID already.
tb [Mon, 4 Apr 2022 13:15:11 +0000 (13:15 +0000)]
Remove two more FIXMEs: to get there, we rely on the OID already.

ok claudio

2 years agopf_validate_range() must not assume rdr ports are in network order.
sashan [Mon, 4 Apr 2022 12:57:36 +0000 (12:57 +0000)]
pf_validate_range() must not assume rdr ports are in network order.
bug found and reported by Kurt (kmos@).

OK bluhm@

2 years agorpki-client: remove a stale FIXME
tb [Mon, 4 Apr 2022 12:11:54 +0000 (12:11 +0000)]
rpki-client: remove a stale FIXME

We fixed this back in January when we added rtype_from_mftfile().

ok claudio

2 years agoInclude license rather than referring to it. Text from
tb [Mon, 4 Apr 2022 11:42:12 +0000 (11:42 +0000)]
Include license rather than referring to it. Text from
https://chromium.googlesource.com/chromium/src/+/refs/heads/main/LICENSE

2 years agoReplace KASSERT in uvm_fault_unwire_locked() with code that handles the
kettenis [Mon, 4 Apr 2022 09:27:05 +0000 (09:27 +0000)]
Replace KASSERT in uvm_fault_unwire_locked() with code that handles the
case where not all pages are wired.  The KASSERT can be triggered in
multi-threaded applications when a thread calling munmap(2) races another
thread that invokes sysctl(2).  Properly written code shouldn't do this,
but making the kernel crash in this case is a bit harsh.

ok gezdo@, deraadt@

Fixes:
Reported-by: syzbot+e8310909e2910c9cca08@syzkaller.appspotmail.com
2 years agoPrepare for next release.
claudio [Mon, 4 Apr 2022 08:37:35 +0000 (08:37 +0000)]
Prepare for next release.

2 years agoPrepare for new release.
claudio [Mon, 4 Apr 2022 08:36:51 +0000 (08:36 +0000)]
Prepare for new release.

2 years agoAdd support for the CP115 block found on Marvell CN9K SoCs.
patrick [Sun, 3 Apr 2022 20:23:45 +0000 (20:23 +0000)]
Add support for the CP115 block found on Marvell CN9K SoCs.

ok kettenis@

2 years agoAdd support for the AP807 block found on Marvell CN9K SoCs. The fixed
patrick [Sun, 3 Apr 2022 20:23:14 +0000 (20:23 +0000)]
Add support for the AP807 block found on Marvell CN9K SoCs.  The fixed
clocks are the same as AP806, so we can use the same code.

ok kettenis@

2 years agoInitialize the mutex before making us of it from many threads. Prevents
anton [Sun, 3 Apr 2022 16:52:50 +0000 (16:52 +0000)]
Initialize the mutex before making us of it from many threads. Prevents
a race in which one thread is currently initializing the mutex which is
not an atomic operation whereas another thread tries to use it too
early.

With and ok schwarze@

2 years agoUpdate an old comment
mlarkin [Sat, 2 Apr 2022 22:45:18 +0000 (22:45 +0000)]
Update an old comment

The old comment only mentioned that tty_nmea was used for time, but
subsequently position data was added to this line discipline.

2 years agowhitespace fix
mlarkin [Sat, 2 Apr 2022 22:43:01 +0000 (22:43 +0000)]
whitespace fix

2 years agoAdd a paranoia/future proofing check for link->pool == NULL to
krw [Sat, 2 Apr 2022 17:25:10 +0000 (17:25 +0000)]
Add a paranoia/future proofing check for link->pool == NULL to
the SDEV_OWN_IOPL flag check.

Ambiguous/inconsistant code pointed out by Coverity #1515557.

2 years agoDon't byte swap URE_TXPKT_VLAN_TAG when setting up the packet to transmit.
sthen [Sat, 2 Apr 2022 15:35:06 +0000 (15:35 +0000)]
Don't byte swap URE_TXPKT_VLAN_TAG when setting up the packet to transmit.
Fixes vlan transmission with hw tagging (problem seen on RTL8153B but there's
no reason this wouldn't apply to others) and matches what the Linux driver
is doing.  looks correct kettenis@ ok kevlo@

2 years agoBring back r1.247, using scsi_detach_link() to release
krw [Sat, 2 Apr 2022 13:57:39 +0000 (13:57 +0000)]
Bring back r1.247, using scsi_detach_link() to release
a partially configured struct scsi_link.

Problematic code path found by jungle Boogie was plugged
by r1.249.

2 years agoAdjust test code after addition of cert_parse_pre and change to cert_parse
claudio [Sat, 2 Apr 2022 12:23:20 +0000 (12:23 +0000)]
Adjust test code after addition of cert_parse_pre and change to cert_parse
and ta_parse.
Reminder from tb@

2 years agoAdd preliminary support for RTL8156B and bug fixes for RTL8153/RTL8156.
kevlo [Sat, 2 Apr 2022 12:22:56 +0000 (12:22 +0000)]
Add preliminary support for RTL8156B and bug fixes for RTL8153/RTL8156.

ok stsp@

Tested:
RTL8152  (0x4c10): jmatthew, Marcus Merighi
RTL8153  (0x5c10): Yifei Zhan
RTL8153  (0x5c20): James Jerkins, Paul de Weerd, stsp
RTL8153  (0x5c30): gerhard, sthen
RTL8153B (0x6010): Paul de Weerd

2 years agoSplit certificate parsing in two steps. cert_parse_pre() which does
claudio [Sat, 2 Apr 2022 12:17:53 +0000 (12:17 +0000)]
Split certificate parsing in two steps. cert_parse_pre() which does
the parse and some checks and cert_parse() or ta_parse() to do the
additional checks for regular certs or TAs.
With this adjust the cert parser in -f mode to identify TAs (by checking
if it is self signed) and adjust the validation in that case. Now -f
should be able to parse and show all object correctly.
With and OK tb@

2 years agoAdd dmamap syncs for rings and mbufs, fixing occasional errors seen
jmatthew [Sat, 2 Apr 2022 09:00:45 +0000 (09:00 +0000)]
Add dmamap syncs for rings and mbufs, fixing occasional errors seen
on a rockpro64, where dma is less coherent than on typical amd64 systems.

with and ok dlg@

2 years agomatch on Intel 300 Series audio (0xa348)
jsg [Fri, 1 Apr 2022 22:37:21 +0000 (22:37 +0000)]
match on Intel 300 Series audio (0xa348)

on a Dell G3 3590 the audio device is subclass audio not hd audio
so azalia does not match

should fix azalia not attaching reported by Adriano Barbosa

2 years agoChange x509_get_aki(), x509_get_ski(), x509_get_aia(), and x509_get_crl()
claudio [Fri, 1 Apr 2022 17:22:07 +0000 (17:22 +0000)]
Change x509_get_aki(), x509_get_ski(), x509_get_aia(), and x509_get_crl()
to work more like x509_get_expire(). They will return an error if the
extension extraction failed but not if it was not present. The callers
must now do that check but most did already.
With this cert_parse_inner() no longer cares about TA vs non-TA certs.
Feedback and OK tb@

2 years agoMove the TA specific checks from cert_parse_inner() to ta_parse() and
claudio [Fri, 1 Apr 2022 13:27:38 +0000 (13:27 +0000)]
Move the TA specific checks from cert_parse_inner() to ta_parse() and
the regular cert checks from cert_parse_inner() to cert_parse().
OK tb@

2 years agoDon't print "You may wish to update your font path" at pkg_add time
sthen [Fri, 1 Apr 2022 10:14:17 +0000 (10:14 +0000)]
Don't print "You may wish to update your font path" at pkg_add time
for paths which are under /usr/local/share/fonts.

In most cases only fontconfig is relevant and this automatically
searches subdirectories, so user changes are not often needed any more.

The case where they might be needed is for server-side bit-map fonts
(managed via 'xset fp' or 'fontpath' in /etc/X11/xorg.conf) but this is
not common any more (most fonts in ports are not bit-map anyway) and
this gets rid of some cases of pkg_add messages which the user does
not need to act upon.

ok landry@ matthieu@ and I think there were some others

2 years agoAdd missing command in description.
ajacoutot [Fri, 1 Apr 2022 10:13:35 +0000 (10:13 +0000)]
Add missing command in description.

from Matthew Martin

2 years agoPreserve CRLF flag when respawning.
nicm [Fri, 1 Apr 2022 10:11:59 +0000 (10:11 +0000)]
Preserve CRLF flag when respawning.

2 years agoFix error message from d2i_X509_bio() to d2i_X509()
tb [Fri, 1 Apr 2022 10:00:41 +0000 (10:00 +0000)]
Fix error message from d2i_X509_bio() to d2i_X509()

ok claudio

2 years agomissing full stop;
jmc [Thu, 31 Mar 2022 21:43:38 +0000 (21:43 +0000)]
missing full stop;

2 years agoIf we've created multiple queues, set up an RSS key and indirection table
jmatthew [Thu, 31 Mar 2022 21:41:17 +0000 (21:41 +0000)]
If we've created multiple queues, set up an RSS key and indirection table
to distribute received packets across the queues.

ok dlg@

2 years agoImplement support for multiple dies. This should make OpenBSD work on the
kettenis [Thu, 31 Mar 2022 18:47:04 +0000 (18:47 +0000)]
Implement support for multiple dies.  This should make OpenBSD work on the
M1 Ultra.

ok patrick@

2 years agossh: document sntrup761x25519-sha512@openssh.com as default KEX
naddy [Thu, 31 Mar 2022 17:58:44 +0000 (17:58 +0000)]
ssh: document sntrup761x25519-sha512@openssh.com as default KEX

2 years agoman pages: fix some typos found while looking for other issues
naddy [Thu, 31 Mar 2022 17:30:05 +0000 (17:30 +0000)]
man pages: fix some typos found while looking for other issues

2 years agoman pages: add missing commas between subordinate and main clauses
naddy [Thu, 31 Mar 2022 17:27:13 +0000 (17:27 +0000)]
man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@

2 years agoon-ramdisk firmware extraction can overflow the install-media directory
deraadt [Thu, 31 Mar 2022 16:16:09 +0000 (16:16 +0000)]
on-ramdisk firmware extraction can overflow the install-media directory
because of the the tar+mv combination.  Purge both path variations
better, so that an interrupted install can be restarted.
ok miod abieber kettenis

2 years agoRemove duplicate scsi devices.
krw [Thu, 31 Mar 2022 14:44:49 +0000 (14:44 +0000)]
Remove duplicate scsi devices.

ok miod@ deraadt@