openbsd
2 years agosplit the code in figure_out_kept:
espie [Wed, 27 Apr 2022 15:19:03 +0000 (15:19 +0000)]
split the code in figure_out_kept:
we need a somewhat complete updateset so we can proceed with handling
dependencies.

The case where the signature is equal is not an issue, but the case
where we need to keep the package because it still contains oldlibs is!

So we do that AFTER dependencies so that dependencies have been updated
and we possibly depend on old libs (which may happen even if the signature
didn't change)

2 years agoadd a test case for the Imath update, along with notes about what's
espie [Wed, 27 Apr 2022 15:15:45 +0000 (15:15 +0000)]
add a test case for the Imath update, along with notes about what's
exactly going on, if one day we trust wantlib enough to be accurate
(hello libsets)

2 years ago"pretty print" verbose messages: more context, and indent them to make
espie [Wed, 27 Apr 2022 15:04:11 +0000 (15:04 +0000)]
"pretty print" verbose messages: more context, and indent them to make
clearer those message are grouped together

2 years agogive a bit more context in verbose message
espie [Wed, 27 Apr 2022 14:55:08 +0000 (14:55 +0000)]
give a bit more context in verbose message

2 years agovgone() is vgonel() with curproc as 2nd argument. Use vgonel() like the
claudio [Wed, 27 Apr 2022 14:52:25 +0000 (14:52 +0000)]
vgone() is vgonel() with curproc as 2nd argument. Use vgonel() like the
other call in vop_generic_revoke().
OK semarie@

2 years agovmm(4): dt(4) tracepoints for vm exit reporting previous exit.
dv [Wed, 27 Apr 2022 14:23:37 +0000 (14:23 +0000)]
vmm(4): dt(4) tracepoints for vm exit reporting previous exit.

On Intel/VMX, the tracepoint for vm exits was before extracting the
vm exit reason meaning we either reported stack garbage (on first
exit) or the prior exit reason. Move the tracepoint to after
extraction and refactor the logic to collect all exit info processing
in one place. (We were extracting the guest RFLAGS register state
before checking the exit info extraction success.)

On AMD/SVM, the tracepoint was always triggered even on unsuccessful
vm entry leading to garbage data. Tuck the tracepoint into the If
block and merge them.

ok mlarkin@

2 years agonote to myself for 7.2
espie [Wed, 27 Apr 2022 14:11:27 +0000 (14:11 +0000)]
note to myself for 7.2

2 years agoFix three bugs regarding the interaction of \z and \h:
schwarze [Wed, 27 Apr 2022 13:30:19 +0000 (13:30 +0000)]
Fix three bugs regarding the interaction of \z and \h:

1. The combination \z\h is a no-op whatever the argument may be.
In the past, the \z only affected the first space character generated
by the \h, which was wrong.

2. For the conbination \zX\h with a positive argument, the first
space resulting from the \h is not printed but consumed by the \z.

3. For the combination \zX\h with a negative argument, application
of the \z needs to be completed before the \h can be started.
In the past, if this combination occurred at the beginning of an
output line, the \h backed up to the beginning of the line and
after that, the \z attempted to back up even further, triggering
an assertion.

Bugs found during an audit of assignments to termp->col that i
started after the bugfix tbl_term.c rev. 1.65.  The assertion
triggered by bug 3 was *not* yet found by afl(1).

2 years agotypo: exceded -> exceed
tb [Wed, 27 Apr 2022 11:46:19 +0000 (11:46 +0000)]
typo: exceded -> exceed

2 years agoAdd authfd path to debug output. ok markus@
dtucker [Wed, 27 Apr 2022 11:08:55 +0000 (11:08 +0000)]
Add authfd path to debug output.  ok markus@

2 years agoASN1_{,const_}check_infinite_end(3) were removed in the last major bump,
tb [Wed, 27 Apr 2022 08:06:37 +0000 (08:06 +0000)]
ASN1_{,const_}check_infinite_end(3) were removed in the last major bump,
so there's no longer a need to document that they are undocumented.

2 years agoDecode via c2i_ASN1_BIT_STRING_cbs() from asn1_ex_c2i().
jsing [Tue, 26 Apr 2022 20:00:18 +0000 (20:00 +0000)]
Decode via c2i_ASN1_BIT_STRING_cbs() from asn1_ex_c2i().

ok inoguchi@ tb@

2 years agoBump __mp_lock_spinout to INT_MAX.
dv [Tue, 26 Apr 2022 15:31:14 +0000 (15:31 +0000)]
Bump __mp_lock_spinout to INT_MAX.

The previous value set years ago was causing amd64 kernels to spin
out when run with MP_LOCKDEBUG during boot.

ok kettenis@

2 years agotypo in example text: unsused -> unused; noticed by tb@
schwarze [Tue, 26 Apr 2022 15:04:46 +0000 (15:04 +0000)]
typo in example text: unsused -> unused; noticed by tb@

2 years agoDo not send a hostname option when we don't have a hostname.
florian [Tue, 26 Apr 2022 14:50:04 +0000 (14:50 +0000)]
Do not send a hostname option when we don't have a hostname.

The minimum length of a hostname is 1 according to RFC 2132.
Found the hard way by Ibrahim Khalifa (ibo AT trukonsult.se) with DHCP
Relay on a Cisco ASA in the installer where we don't have a hostname
yet.
Ibrahim also provided a diff which I simplified a bit.
OK tb

2 years agoAt the end of every tbl(7) cell, clear the \z state.
schwarze [Tue, 26 Apr 2022 14:46:30 +0000 (14:46 +0000)]
At the end of every tbl(7) cell, clear the \z state.
This is needed because the TERMP_MULTICOL mode is designed such
that term_tbl() buffers all the cells of the table row before the
normal reset logic near the end of term_flushln() can be reached.

This fixes an assertion failure triggered by \z near the end
of a table cell, found by tb@ using afl(1).

2 years agoIf a node is tagged explicitly, skip implicit tagging for that node.
schwarze [Tue, 26 Apr 2022 11:28:35 +0000 (11:28 +0000)]
If a node is tagged explicitly, skip implicit tagging for that node.
Apart from making sense in the first place, this fixes an assertion
failure that happened when the calculated implicit tag did not match
the string value of the first child of the node,

Bug found by tb@ using afl(1).

2 years agoNo need for line wrap here.
claudio [Tue, 26 Apr 2022 10:48:20 +0000 (10:48 +0000)]
No need for line wrap here.

2 years agoOn CPUs that have MPERF/APERF support use that information to install a
claudio [Tue, 26 Apr 2022 08:35:30 +0000 (08:35 +0000)]
On CPUs that have MPERF/APERF support use that information to install a
cpu frequency sensor for each core. This works on many "modern" Intel and
AMD cpus (probably anything that has some kind of turbo mode).
OK kettenis@

2 years agoCheck sshauthopt_new() for NULL. bz#3425, from tessgauthier at
dtucker [Tue, 26 Apr 2022 07:41:44 +0000 (07:41 +0000)]
Check sshauthopt_new() for NULL.  bz#3425, from tessgauthier at
microsoft.com.  ok djm@

2 years agoReimplement the page allocation code using bus_dma(9) APIs to make sure
kettenis [Mon, 25 Apr 2022 21:53:09 +0000 (21:53 +0000)]
Reimplement the page allocation code using bus_dma(9) APIs to make sure
that on architectures with an IOMMU, DMA addresses are translated
properly.

Fixes radeondrm(4) and amdgpu(4) on powerpc64, sparc64 and arm64 machines
with smmu(4).

ok jsg@

2 years agoPush DISK_[read|write]sectors() down to disk.c local functions
krw [Mon, 25 Apr 2022 17:10:09 +0000 (17:10 +0000)]
Push DISK_[read|write]sectors() down to disk.c local functions
and expose new DISK_[read|write]bytes() functions.

Eliminates many bytes <-> sector i/o dances and makes the code
much easier to understand.

Be a bit more careful to consistently write only bytes that
checksums are calculated over.

No intentional functional change.

2 years agoExtend ksmn(4) driver to also show CCD tempratures if available.
claudio [Mon, 25 Apr 2022 16:17:19 +0000 (16:17 +0000)]
Extend ksmn(4) driver to also show CCD tempratures if available.
Based information from the linux k10temp driver.
OK brynet@

2 years agogh_csum an gh_part_csum are not used between initializing
krw [Mon, 25 Apr 2022 13:07:53 +0000 (13:07 +0000)]
gh_csum an gh_part_csum are not used between initializing
the GPT and calculating them when writing the GPT to disk.

No need to update them in add_partition().

Pointed out by jmatthew@

2 years agoFix spelling error in warnx()
job [Mon, 25 Apr 2022 10:52:09 +0000 (10:52 +0000)]
Fix spelling error in warnx()

Thanks Marco D'Itri

2 years agozap extra blank line
tb [Sun, 24 Apr 2022 22:26:44 +0000 (22:26 +0000)]
zap extra blank line

2 years agoWrap two overlong lines
tb [Sun, 24 Apr 2022 18:20:12 +0000 (18:20 +0000)]
Wrap two overlong lines

2 years agotrailing whitespace
tb [Sun, 24 Apr 2022 18:19:52 +0000 (18:19 +0000)]
trailing whitespace

2 years agoWhen we open a new .while loop, let's not attempt to close out
schwarze [Sun, 24 Apr 2022 17:39:31 +0000 (17:39 +0000)]
When we open a new .while loop, let's not attempt to close out
another enclosing .while loop at the same time.
Instead, postpone the closing until the next iteration of ROFF_RERUN.

This prevents one-line constructions like ".while 0 .while 0 something"
and ".while rx .while rx .rr x" (which admittedly aren't particularly
useful) from dying of abort(3), which was a bug tb@ found with afl(1).

2 years agoIf a .shift request has a negative argument, do not use a negative array
schwarze [Sun, 24 Apr 2022 13:34:53 +0000 (13:34 +0000)]
If a .shift request has a negative argument, do not use a negative array
index but use 0 instead of the argument, just like groff.
Warn about the invalid argument.
While here, fix the column number in another warning message.

Segfault reported by tb@, found with afl(1).

2 years agoIn filemode emit the hash which uniquely identifies a given Signed Object
job [Sun, 24 Apr 2022 12:25:25 +0000 (12:25 +0000)]
In filemode emit the hash which uniquely identifies a given Signed Object

RPKI Signed Objects are not malleable; this means the SHA256 digest
of an input file containing a signed object is a very stable identifier
to associate with the decoded (validated) output shown in filemode.

The SHA256 in hash_id is base64 encoded (just like hashes on manifest listings).

OK tb@

2 years agoUse warnx() if errno is not relevant. close() after errno of
krw [Sun, 24 Apr 2022 12:13:37 +0000 (12:13 +0000)]
Use warnx() if errno is not relevant. close() after errno of
interest is checked, not before.

Less confusing error messages.

2 years agoIncrease rx buffer size to 62kB (same as linux). It turns out the device
jmatthew [Sun, 24 Apr 2022 00:04:10 +0000 (00:04 +0000)]
Increase rx buffer size to 62kB (same as linux).  It turns out the device
doesn't fit packets into the host's rx buffer until it's full, it keeps
going as long as it has space in its own receive buffer, and then
truncates to fit the usb transfer.  The packet descriptors are at the end,
so this means losing all the packets in the buffer.  At 32kB, it's fairly
easy to overrun, but 62kB seems fine.

tested by and ok mlarkin@

2 years agoRewrite c2i_ASN1_BIT_STRING() using CBS.
jsing [Sat, 23 Apr 2022 18:56:54 +0000 (18:56 +0000)]
Rewrite c2i_ASN1_BIT_STRING() using CBS.

Also switch to freeing and allocating, rather than attempting to recycle.
While here, factor out the flags ASN1_STRING_FLAG_BITS_LEFT bit bashing
and use the name "unused bits" rather than "bits left", to be more inline
with X.690 wording.

ok inoguchi@ tb@

2 years agoConvert asn1_ex_c2i() to CBS.
jsing [Sat, 23 Apr 2022 18:47:08 +0000 (18:47 +0000)]
Convert asn1_ex_c2i() to CBS.

This allows us to make direct use of c2i_ASN1_OBJECT_cbs().

ok inoguchi@ tb@

2 years agotweak previous: update .Bl -column line
schwarze [Sat, 23 Apr 2022 18:41:13 +0000 (18:41 +0000)]
tweak previous: update .Bl -column line

2 years agoAdd ASN1_INTEGER test coverage.
jsing [Sat, 23 Apr 2022 18:23:48 +0000 (18:23 +0000)]
Add ASN1_INTEGER test coverage.

2 years agoShow which bwfm(4) chipsets are 11n and which are 11ac. ok miod@
sthen [Sat, 23 Apr 2022 18:15:02 +0000 (18:15 +0000)]
Show which bwfm(4) chipsets are 11n and which are 11ac. ok miod@

2 years agoFix compilation on octeon, arm64, and riscv64.
mbuhl [Sat, 23 Apr 2022 16:04:05 +0000 (16:04 +0000)]
Fix compilation on octeon, arm64, and riscv64.

2 years agoAdd missing uuid_dec_le() to init_gp() so -A works on
krw [Sat, 23 Apr 2022 14:39:16 +0000 (14:39 +0000)]
Add missing uuid_dec_le() to init_gp() so -A works on
big-endian architectures too.

2 years agoIf the last data row of a tbl(7) contains nothing but a horizontal line,
schwarze [Sat, 23 Apr 2022 13:58:09 +0000 (13:58 +0000)]
If the last data row of a tbl(7) contains nothing but a horizontal line,
do not skip closing the table and cleaning up memory at the end of the
table in the HTML output module.

This bug resulted in skipping the tblcalc() function and reusing
the existing roffcol array for the next tbl(7) processed.  If the
next table had more columns than the one ending with a horizontal
line in the last data row, uninitialized memory was read, potentially
resulting in near-infinite output.

The bug was introduced in rev. 1.24 (2018/11/26) but only fully exposed
by rev. 1.33 (2021/09/09).  Until rev. 1.32, it could only cause
misformatting and invalid HTML output syntax but not huge output
because up to that point, the function did not use the roffcol array.

Nasty bug found the hard way by Michael Stapelberg on the production
server manpages.debian.org.  Michael also supplied example files
and excellent instructions how to reproduce the bug, which was very
difficult because no real-world manual page is known that triggers
the bug by itself, so to reproduce the bug, mandoc(1) had to be
invoked with at least two file name arguments.

2 years agoVerify sizes before arithmetic operations
tobias [Sat, 23 Apr 2022 08:57:52 +0000 (08:57 +0000)]
Verify sizes before arithmetic operations

Unsigned overflows are not a bug in C but we have to make sure that
requested buffer sizes will be actually available.

If not, set errno to ERANGE and return an error value.

ok deraadt, millert

2 years agoescape the word "An" in an Rs/Re block, since it can be
jmc [Fri, 22 Apr 2022 21:09:48 +0000 (21:09 +0000)]
escape the word "An" in an Rs/Re block, since it can be
interpreted as a macro;

2 years agoRemove some of the workarounds for the tests by inputing the right numbers
otto [Fri, 22 Apr 2022 18:05:29 +0000 (18:05 +0000)]
Remove some of the workarounds for the tests by inputing the right numbers
(without impliciit conversion from int to long double).

The previous commit message talked about reading numbers, but the issue
(loss of precision due to too little digits) actually occurred when printing
the input to be read by bc.

2 years agoarm64 has real IEEE quads, it needs more digits when reading the
otto [Fri, 22 Apr 2022 17:37:47 +0000 (17:37 +0000)]
arm64 has real IEEE quads, it needs more digits when reading the
bc results otherwise truncation and loss of precision occurs, making the
test fail.

Test failure on arm64 noted by anton@ and bluhmn@

2 years agochecking for /mnt and /root in is_rootdisk() is excessively zealous,
deraadt [Fri, 22 Apr 2022 17:25:10 +0000 (17:25 +0000)]
checking for /mnt and /root in is_rootdisk() is excessively zealous,
the remaining directory list is good enough
ok sthen

2 years agoCheck tkp->output != NULL before taking strlen for both command mappings
tb [Fri, 22 Apr 2022 15:50:07 +0000 (15:50 +0000)]
Check tkp->output != NULL before taking strlen for both command mappings
and input mappings. This adds a missing check for command mappings and
simplifies the input mappings.

ok millert

2 years agovi: apply expandtab to the output of a ! command
millert [Fri, 22 Apr 2022 15:48:29 +0000 (15:48 +0000)]
vi: apply expandtab to the output of a ! command
This is consistent with vim's expandtab behavior.
From nvi2 (Craig Leres).  OK tb@

2 years agoARP, ND6 and PPPoE are not MP safe. Protect them with kernel lock
bluhm [Fri, 22 Apr 2022 12:10:57 +0000 (12:10 +0000)]
ARP, ND6 and PPPoE are not MP safe.  Protect them with kernel lock
for now.  Then IP forward can run in parallel and this can be fixed
later.
OK sashan@

2 years agoOnly run agent-ptrace.sh if gdb is available as all architectures do not
anton [Fri, 22 Apr 2022 05:08:43 +0000 (05:08 +0000)]
Only run agent-ptrace.sh if gdb is available as all architectures do not
ship with gdb.

2 years agohandle 16 bit kstat_kv types
dlg [Fri, 22 Apr 2022 00:29:20 +0000 (00:29 +0000)]
handle 16 bit kstat_kv types

2 years agoadd 16 bit types to kstat_kv structs.
dlg [Fri, 22 Apr 2022 00:27:55 +0000 (00:27 +0000)]
add 16 bit types to kstat_kv structs.

of course it is a realtek card that needs this because they provide
some 16 bit counters.

2 years agoUse memset() to initialize struct ieee80211_rxinfo properly.
stsp [Thu, 21 Apr 2022 21:03:02 +0000 (21:03 +0000)]
Use memset() to initialize struct ieee80211_rxinfo properly.

Sven Wolf noticed that scans on ral(4) are buggy ever since I added a new
field to this struct. Turns out a lot of drivers were initializing fields
one-by-one, leaving any newly added fields uninitialized by default.

Affected drivers may report wrong channel numbers for received beacons.
The net80211 stack will discard such beacons, assuming they were received
on the wrong channel due to signal leakage. Scanning is broken as result.

ok miod@

2 years agoRemove _switchd user/group/alias
danj [Thu, 21 Apr 2022 20:48:50 +0000 (20:48 +0000)]
Remove _switchd user/group/alias

ok millert deraadt

switchd(8) was removed back in November. Commit message was:

Retire switchd and switchctl. While interesting they never managed to
really get into a usable state. The OpenFlow API is mostly superseeded
by P4 and so this is a bit of a dead end.

2 years agoOur malloc(3) guarantees 16-byte alignment.
kettenis [Thu, 21 Apr 2022 20:48:33 +0000 (20:48 +0000)]
Our malloc(3) guarantees 16-byte alignment.

ok sthen@, tb@

2 years agoIn vmm regress skip all corner cases that do not support vmm. Link
bluhm [Thu, 21 Apr 2022 19:21:04 +0000 (19:21 +0000)]
In vmm regress skip all corner cases that do not support vmm.  Link
dump_tables and vmm to the build.  Adopt all makefiles to skip tests
on non amd64 machines.
OK dv@

2 years agoAdd missing self. From anton
tb [Thu, 21 Apr 2022 18:01:09 +0000 (18:01 +0000)]
Add missing self. From anton

2 years agov_event_get: check qp->output for NULL before passing to e_memcmp().
millert [Thu, 21 Apr 2022 17:50:29 +0000 (17:50 +0000)]
v_event_get: check qp->output for NULL before passing to e_memcmp().
Other users of qp->output already include a NULL check.
Avoids a crash when cursor key support is disabled in cl/cl_term.c.
From Jeremy Mates.  OK tb@

2 years agoIntroduce a dedicated link entries for snapshots in pfsync(4). The purpose
sashan [Thu, 21 Apr 2022 15:22:49 +0000 (15:22 +0000)]
Introduce a dedicated link entries for snapshots in pfsync(4). The purpose
of snapshots is to allow pfsync(4) to move items from global lists
to local lists (a.k.a. snapshots) under a mutex protection. Snapshots
are then processed without holding any mutexes. Such idea does not fly
well if link entry is currently used for global lists as well as snapshots.
Feedback by bluhm@ Credits also goes to hrvoje@ for extensive testing.

OK bluhm@

2 years ago-current recognizes that a symlink was deleted and just keep going with
espie [Thu, 21 Apr 2022 14:59:58 +0000 (14:59 +0000)]
-current recognizes that a symlink was deleted and just keep going with
a warning and no fuss.

2 years agoFurther refactor and cleanup filemode.c mainly remove the copies of
claudio [Thu, 21 Apr 2022 12:59:03 +0000 (12:59 +0000)]
Further refactor and cleanup filemode.c mainly remove the copies of
proc_parser_cert_validate() and proc_parser_root_cert() adjust
parse_load_certchain() and parse_load_ta() respectivly.
Also cleanup the functions in parser.c and make it possible to call
ta_parse and cert_parse with a NULL cert.
OK tb@

2 years agodrm/i915: Sunset igpu legacy mmap support based on GRAPHICS_VER_FULL
jsg [Thu, 21 Apr 2022 10:01:24 +0000 (10:01 +0000)]
drm/i915: Sunset igpu legacy mmap support based on GRAPHICS_VER_FULL

From Matt Roper
14785927a1d46817b1648806ed5124be049bea75 in linux 5.15.y/5.15.35
1acb34e7dd7720a1fff00cbd4d000ec3219dc9d6 in mainline linux

2 years agodrm/amdgpu: Enable gfxoff quirk on MacBook Pro
jsg [Thu, 21 Apr 2022 09:59:41 +0000 (09:59 +0000)]
drm/amdgpu: Enable gfxoff quirk on MacBook Pro

From Tomasz Mon
2dd7d2eddf8e1ff3556e333979af99e4c167a7b5 in linux 5.15.y/5.15.35
4593c1b6d159f1e5c35c07a7f125e79e5a864302 in mainline linux

2 years agodrm/amd/display: don't ignore alpha property on pre-multiplied mode
jsg [Thu, 21 Apr 2022 09:55:25 +0000 (09:55 +0000)]
drm/amd/display: don't ignore alpha property on pre-multiplied mode

From Melissa Wen
804c096d640ece718d6505c5252eb66544bbc2c9 in linux 5.15.y/5.15.35
e4f1541caf60fcbe5a59e9d25805c0b5865e546a in mainline linux

2 years agodrm/amd/display: Fix allocate_mst_payload assert on resume
jsg [Thu, 21 Apr 2022 09:53:32 +0000 (09:53 +0000)]
drm/amd/display: Fix allocate_mst_payload assert on resume

From Roman Li
6a03581ccffa571bfa1a9f3a097e1a4d7164fd2d in linux 5.15.y/5.15.35
f4346fb3edf7720db3f7f5e1cab1f667cd024280 in mainline linux

2 years agoThe filemode code is enough different from the regular parser code that it
claudio [Thu, 21 Apr 2022 09:53:07 +0000 (09:53 +0000)]
The filemode code is enough different from the regular parser code that it
makes sense to totally split it out. Duplicate proc_parser_cert_validate()
and proc_parser_root_cert() for now.

The valid_x509() plus the required static functions are moved to validate.c.
The crl_tree code moved into crl.c similar to the auth_tree handling in
cert.c. All the proc functions are now tagged with __attribute(noreturn)
which allows to remove the errx() after them.

OK tb@

2 years agodrm/amd/display: Revert FEC check in validation
jsg [Thu, 21 Apr 2022 09:51:39 +0000 (09:51 +0000)]
drm/amd/display: Revert FEC check in validation

From Martin Leung
ac2eb310af0582428400186173d070320a8bfd6f in linux 5.15.y/5.15.35
b2075fce104b88b789c15ef1ed2b91dc94198e26 in mainline linux

2 years agodrm/amd/display: Enable power gating before init_pipes
jsg [Thu, 21 Apr 2022 09:49:14 +0000 (09:49 +0000)]
drm/amd/display: Enable power gating before init_pipes

From Roman Li
eab8e585840f84c6a352eaab70e5495eda7ebb6f in linux 5.15.y/5.15.35
58e16c752e9540b28a873c44c3bee83e022007c1 in mainline linux

2 years agodrm/amdkfd: Check for potential null return of kmalloc_array()
jsg [Thu, 21 Apr 2022 09:47:25 +0000 (09:47 +0000)]
drm/amdkfd: Check for potential null return of kmalloc_array()

From QintaoShen
f2658d5966bcee8c3eb487875f459756d4f7cdfc in linux 5.15.y/5.15.35
ebbb7bb9e80305820dc2328a371c1b35679f2667 in mainline linux

2 years agodrm/amdgpu/vcn: improve vcn dpg stop procedure
jsg [Thu, 21 Apr 2022 09:45:53 +0000 (09:45 +0000)]
drm/amdgpu/vcn: improve vcn dpg stop procedure

From Tianci Yin
9f0fabf30b486e3d5c9b578073cea369ffc05c43 in linux 5.15.y/5.15.35
6ea239adc2a712eb318f04f5c29b018ba65ea38a in mainline linux

2 years agodrm/amdkfd: Fix Incorrect VMIDs passed to HWS
jsg [Thu, 21 Apr 2022 09:44:07 +0000 (09:44 +0000)]
drm/amdkfd: Fix Incorrect VMIDs passed to HWS

From Tushar Patel
25efb191d86b108f100f82f414229f8269d00b28 in linux 5.15.y/5.15.35
b7dfbd2e601f3fee545bc158feceba4f340fe7cf in mainline linux

2 years agodrm/amd/display: Update VTEM Infopacket definition
jsg [Thu, 21 Apr 2022 09:42:38 +0000 (09:42 +0000)]
drm/amd/display: Update VTEM Infopacket definition

From Leo (Hanghong) Ma
7a3bc11a40346987649018ecd82caa744117c347 in linux 5.15.y/5.15.35
c9fbf6435162ed5fb7201d1d4adf6585c6a8c327 in mainline linux

2 years agodrm/amd/display: FEC check in timing validation
jsg [Thu, 21 Apr 2022 09:40:40 +0000 (09:40 +0000)]
drm/amd/display: FEC check in timing validation

From Chiawen Huang
92951699a5f11043b9d1402ea21787f420b36094 in linux 5.15.y/5.15.35
7d56a154e22ffb3613fdebf83ec34d5225a22993 in mainline linux

2 years agodrm/amd/display: fix audio format not updated after edid updated
jsg [Thu, 21 Apr 2022 09:37:52 +0000 (09:37 +0000)]
drm/amd/display: fix audio format not updated after edid updated

From Charlene Liu
b054e8183fbdec15955311956df8a9ce47e0ab6d in linux 5.15.y/5.15.35
5e8a71cf13bc9184fee915b2220be71b4c6cac74 in mainline linux

2 years agodrm/amdgpu/gmc: use PCI BARs for APUs in passthrough
jsg [Thu, 21 Apr 2022 09:36:10 +0000 (09:36 +0000)]
drm/amdgpu/gmc: use PCI BARs for APUs in passthrough

From Alex Deucher
37bc29a445384f4bdfc734dfe7f763ede604acfe in linux 5.15.y/5.15.35
b818a5d374542ccec73dcfe578a081574029820e in mainline linux

2 years agodrm/amdgpu: conduct a proper cleanup of PDB bo
jsg [Thu, 21 Apr 2022 09:33:45 +0000 (09:33 +0000)]
drm/amdgpu: conduct a proper cleanup of PDB bo

From Guchun Chen
5a3b56a4a1c79111bc4aaa9caba5eb5e9cfaeaeb in linux 5.15.y/5.15.35
2d505453f38e18d42ba7d5428aaa17aaa7752c65 in mainline linux

2 years agodrm/amd: Add USBC connector ID
jsg [Thu, 21 Apr 2022 09:31:58 +0000 (09:31 +0000)]
drm/amd: Add USBC connector ID

From Aurabindo Pillai
6dded62e5aa6e29f18a1079002109cb6068e9bf6 in linux 5.15.y/5.15.35
c5c948aa894a831f96fccd025e47186b1ee41615 in mainline linux

2 years agoFix previous rc.d/spamlogd commit, the check in rc_pre is not needed
sthen [Thu, 21 Apr 2022 09:31:28 +0000 (09:31 +0000)]
Fix previous rc.d/spamlogd commit, the check in rc_pre is not needed
because rc.subr has special-casing for spamd/spamlogd.

Teach the script to detect the pflog interface from spamlogd flags and
create the correct interface if needed.

ok jturner@

2 years agodrm/amd/display: Fix p-state allow debug index on dcn31
jsg [Thu, 21 Apr 2022 09:30:18 +0000 (09:30 +0000)]
drm/amd/display: Fix p-state allow debug index on dcn31

From Nicholas Kazlauskas
8e663865f5284124196bc04e010e7344d8a278f3 in linux 5.15.y/5.15.35
3107e1a7ae088ee94323fe9ab05dbefd65b3077f in mainline linux

2 years agodrm/amd/display: Add pstate verification and recovery for DCN31
jsg [Thu, 21 Apr 2022 09:28:16 +0000 (09:28 +0000)]
drm/amd/display: Add pstate verification and recovery for DCN31

From Nicholas Kazlauskas
685a19fa6ae99dc7a18a9af2a7626162e1db7aff in linux 5.15.y/5.15.35
e7031d8258f1b4d6d50e5e5b5d92ba16f66eb8b4 in mainline linux

2 years agofix SEE ALSO;
jmc [Thu, 21 Apr 2022 05:27:53 +0000 (05:27 +0000)]
fix SEE ALSO;

2 years agoRepair hw vlan tagging. Previously swapped byte RGE_TDEXTSTS_VTAG, this
kevlo [Thu, 21 Apr 2022 05:08:39 +0000 (05:08 +0000)]
Repair hw vlan tagging.  Previously swapped byte RGE_TDEXTSTS_VTAG, this
caused no tag was sent on the outgoing packet.

Bug reported and the fix tested by Andrew Laramore.

2 years agoClarify comments at the start of {asid,addr}_validate_path_internal()
tb [Thu, 21 Apr 2022 05:06:07 +0000 (05:06 +0000)]
Clarify comments at the start of {asid,addr}_validate_path_internal()

Requested by jsing

2 years agoAvoid expensive RFC 3779 checks during cert verification
tb [Thu, 21 Apr 2022 04:48:12 +0000 (04:48 +0000)]
Avoid expensive RFC 3779 checks during cert verification

X509v3_{addr,asid}_is_canonical() check that the ipAddrBlocks and
autonomousSysIds extension conform to RFC 3779. These checks are not
cheap. Certs containing non-conformant extensions should not be
considered valid, so mark them with EXFLAG_INVALID while caching the
extension information in x509v3_cache_extensions(). This way the
expensive check while walking the chains during X509_verify_cert() is
replaced with a cheap check of the extension flags. This avoids a lot
of superfluous work when validating numerous certs with similar chains
against the same roots as is done in rpki-client.

Issue noticed and fix suggested by claudio
ok claudio inoguchi jsing

2 years agoFix X509_get_extension_flags()
tb [Thu, 21 Apr 2022 04:24:51 +0000 (04:24 +0000)]
Fix X509_get_extension_flags()

Ensure that EXFLAG_INVALID is set on X509_get_purpose() failure.

ok inoguchi jsing

2 years agoIt looks like we can't completely avoid waiting for processes to
dtucker [Thu, 21 Apr 2022 01:36:46 +0000 (01:36 +0000)]
It looks like we can't completely avoid waiting for processes to
exit so retrieve the pid via controlmaster and use that.

2 years agoRefine the GPT partition entry table validity check to ensure
krw [Wed, 20 Apr 2022 23:36:30 +0000 (23:36 +0000)]
Refine the GPT partition entry table validity check to ensure
that the partition entry table associated with the primary GPT
header at sector 1 doesn't overwrite the header or intrude into
the sectors available for partitions.

Similarly ensure that the partition entry table associated with
the alternate header does not overwrite that header or intrude
into the sectors available for partitions.

2 years agoUse glob to expand wildcards in "other device" paths rather than a
jcs [Wed, 20 Apr 2022 21:55:17 +0000 (21:55 +0000)]
Use glob to expand wildcards in "other device" paths rather than a
custom implementation that only allowed matching all files in a
directory.

ok millert

2 years agoIn pfsync there were some KASSERT hidden behind #ifdef PFSYNC_DEBUG.
bluhm [Wed, 20 Apr 2022 20:51:09 +0000 (20:51 +0000)]
In pfsync there were some KASSERT hidden behind #ifdef PFSYNC_DEBUG.
Assertions should be active and rely on #ifdef DIAGNOSTIC.  Retire
PFSYNC_DEBUG.
OK sashan@ dlg@

2 years agoWrap a long line.
krw [Wed, 20 Apr 2022 20:43:32 +0000 (20:43 +0000)]
Wrap a long line.

2 years agoFix mandoc -Tlint warning about trailing whitespace
tb [Wed, 20 Apr 2022 20:26:22 +0000 (20:26 +0000)]
Fix mandoc -Tlint warning about trailing whitespace

2 years agoFix white space and wrap long lines.
bluhm [Wed, 20 Apr 2022 17:58:22 +0000 (17:58 +0000)]
Fix white space and wrap long lines.

2 years agoWhile I'm here, prepare regress for claudio's upcoming diff
tb [Wed, 20 Apr 2022 17:37:53 +0000 (17:37 +0000)]
While I'm here, prepare regress for claudio's upcoming diff

2 years agoFix rpki-client regress after -j -f change
tb [Wed, 20 Apr 2022 17:26:53 +0000 (17:26 +0000)]
Fix rpki-client regress after -j -f change

2 years agoSigh. Another forgotten header file.
krw [Wed, 20 Apr 2022 17:14:35 +0000 (17:14 +0000)]
Sigh. Another forgotten header file.

2 years agoRemove unnecessary includes: openssl/hmac.h and openssl/evp.h.
millert [Wed, 20 Apr 2022 16:00:25 +0000 (16:00 +0000)]
Remove unnecessary includes: openssl/hmac.h and openssl/evp.h.
From Martin Vahlensieck.

2 years agoAdd missing includes of stdlib.h and stdint.h.
millert [Wed, 20 Apr 2022 15:59:18 +0000 (15:59 +0000)]
Add missing includes of stdlib.h and stdint.h.
We need stdlib.h for malloc(3) and stdint.h for SIZE_MAX.
Unlike the other xmss files, ssh-xmss.c does not include xmss_commons.h
so ssh-xmss.c must include those headers itself.
From Martin Vahlensieck

2 years agoAvoid an unnecessary xstrdup in rm_env() when matching patterns.
millert [Wed, 20 Apr 2022 15:56:49 +0000 (15:56 +0000)]
Avoid an unnecessary xstrdup in rm_env() when matching patterns.
Since match_pattern() doesn't modify its arguments (they are const),
there is no need to make an extra copy of the strings in options->send_env.
From Martin Vahlensieck

2 years agoSimpify code manipulating GPT partition names by coalescing
krw [Wed, 20 Apr 2022 15:49:56 +0000 (15:49 +0000)]
Simpify code manipulating GPT partition names by coalescing
logic into GPT_get_name(), string_to_name() and name_to_string()
functions. Remove unnecessarily abstract functions ask_string(),
utf16le_to_string() and string_to_utf16le().

No intentional functional change.

2 years agomore whitespace cleanups
deraadt [Wed, 20 Apr 2022 15:38:24 +0000 (15:38 +0000)]
more whitespace cleanups