openbsd
2 years agodrm/i915/dsi: fix VBT send packet port selection for ICL+
jsg [Fri, 10 Jun 2022 01:21:12 +0000 (01:21 +0000)]
drm/i915/dsi: fix VBT send packet port selection for ICL+

From Jani Nikula
35511d4fdd6b82c887ef038278fd808d7c7f98de in linux 5.15.y/5.15.46
0ea917819d12fed41ea4662cc26ffa0060a5c354 in mainline linux

2 years agodrm/amdgpu/cs: make commands with 0 chunks illegal behaviour.
jsg [Fri, 10 Jun 2022 01:19:27 +0000 (01:19 +0000)]
drm/amdgpu/cs: make commands with 0 chunks illegal behaviour.

From Dave Airlie
70276460e914d560e96bfc208695a872fe9469c9 in linux 5.15.y/5.15.46
31ab27b14daaa75541a415c6794d6f3567fea44a in mainline linux

2 years agodrm/i915: Fix CFI violation with show_dynamic_id()
jsg [Fri, 10 Jun 2022 01:17:26 +0000 (01:17 +0000)]
drm/i915: Fix CFI violation with show_dynamic_id()

From Nathan Chancellor
d50d1c703bbd8930d11e5bc01e2cc3c8dcda8f4b in linux 5.15.y/5.15.46
58606220a2f1407a7516c547f09a1ba7b4350a73 in mainline linux

2 years agodrm/edid: fix invalid EDID extension block filtering
jsg [Fri, 10 Jun 2022 01:15:31 +0000 (01:15 +0000)]
drm/edid: fix invalid EDID extension block filtering

From Jani Nikula
96db9afa4958bbaee77995eb0c84e08cdcce74ae in linux 5.15.y/5.15.46
3aefc722ff52076407203b6af9713de567993adf in mainline linux

2 years agodrm: fix EDID struct for old ARM OABI format
jsg [Fri, 10 Jun 2022 01:13:38 +0000 (01:13 +0000)]
drm: fix EDID struct for old ARM OABI format

From Linus Torvalds
710051ebb77b785d637417564be7fed4c13c6ce0 in linux 5.15.y/5.15.46
47f15561b69e226bfc034e94ff6dbec51a4662af in mainline linux

2 years agodrm/amd/pm: update smartshift powerboost calc for smu13
jsg [Fri, 10 Jun 2022 01:09:40 +0000 (01:09 +0000)]
drm/amd/pm: update smartshift powerboost calc for smu13

From Sathishkumar S
5005002b2e12e9ac4b58e59354d38a4106906f87 in linux 5.15.y/5.15.46
cdf4c8ec39872a61a58d62f19b4db80f0f7bc586 in mainline linux

2 years agodrm/amd/pm: update smartshift powerboost calc for smu12
jsg [Fri, 10 Jun 2022 01:08:09 +0000 (01:08 +0000)]
drm/amd/pm: update smartshift powerboost calc for smu12

From Sathishkumar S
c525d3385f6d34d6dcce89ebe019314d83f23873 in linux 5.15.y/5.15.46
138292f1dc00e7e0724f44769f9da39cf2f3bf0b in mainline linux

2 years agodrm/amdgpu/ucode: Remove firmware load type check in amdgpu_ucode_free_bo
jsg [Fri, 10 Jun 2022 01:06:31 +0000 (01:06 +0000)]
drm/amdgpu/ucode: Remove firmware load type check in amdgpu_ucode_free_bo

From Alice Wong
b305469ed00420e53c66064b554531d6fbd98d5b in linux 5.15.y/5.15.46
ab0cd4a9ae5b4679b714d8dbfedc0901fecdce9f in mainline linux

2 years agodrm/amdgpu/psp: move PSP memory alloc from hw_init to sw_init
jsg [Fri, 10 Jun 2022 01:05:04 +0000 (01:05 +0000)]
drm/amdgpu/psp: move PSP memory alloc from hw_init to sw_init

From Alex Deucher
a2c87348acebd9bacedfe20cf82341928751ff91 in linux 5.15.y/5.15.46
b95b5391684b39695887afb4a13cccee7820f5d6 in mainline linux

2 years agodrm/amd/pm: fix the compile warning
jsg [Fri, 10 Jun 2022 01:03:18 +0000 (01:03 +0000)]
drm/amd/pm: fix the compile warning

From Evan Quan
ae488dafe074e420ccf361b2633f7fbc314eaedf in linux 5.15.y/5.15.46
555238d92ac32dbad2d77ad2bafc48d17391990c in mainline linux

2 years agodrm/plane: Move range check for format_count earlier
jsg [Fri, 10 Jun 2022 01:00:53 +0000 (01:00 +0000)]
drm/plane: Move range check for format_count earlier

From Steven Price
978e3d023256bfaf34a0033d40c94e8a8e70cf3c in linux 5.15.y/5.15.46
4b674dd69701c2e22e8e7770c1706a69f3b17269 in mainline linux

2 years agodrm/amdgpu/sdma: Fix incorrect calculations of the wptr of the doorbells
jsg [Fri, 10 Jun 2022 00:59:19 +0000 (00:59 +0000)]
drm/amdgpu/sdma: Fix incorrect calculations of the wptr of the doorbells

From Haohui Mai
7719a8044bf66b9f59818e50b0c7877e1397e7f4 in linux 5.15.y/5.15.46
7dba6e838e741caadcf27ef717b6dcb561e77f89 in mainline linux

2 years agodrm/amd/pm: fix double free in si_parse_power_table()
jsg [Fri, 10 Jun 2022 00:57:24 +0000 (00:57 +0000)]
drm/amd/pm: fix double free in si_parse_power_table()

From Keita Suzuki
a5ce7051db044290b1a95045ff03c249005a3aa4 in linux 5.15.y/5.15.46
f3fa2becf2fc25b6ac7cf8d8b1a2e4a86b3b72bd in mainline linux

2 years agodrm/amd/display: Disabling Z10 on DCN31
jsg [Fri, 10 Jun 2022 00:54:53 +0000 (00:54 +0000)]
drm/amd/display: Disabling Z10 on DCN31

From Saaem Rizvi
d0d266c2f689d6113fe0d43d1b1fc105157c7443 in linux 5.15.y/5.15.46
5d5af34072c8b11f60960c3bea57ff9de5877791 in mainline linux

2 years agoadd struct kobj_attribute
jsg [Fri, 10 Jun 2022 00:50:50 +0000 (00:50 +0000)]
add struct kobj_attribute
required for 5.15.46 inteldrm

2 years agoReorganize the handling of tap inputs.
bru [Thu, 9 Jun 2022 22:17:18 +0000 (22:17 +0000)]
Reorganize the handling of tap inputs.

This change fixes bugs concerning the transition into the hold/drag state
after double taps or two- or three-finger taps.  In addition, it ensures
that button events properly match the logical button state when tap inputs
and button inputs overlap.

2 years agoProperly error out if a variable does not exist. Need to pass back
claudio [Thu, 9 Jun 2022 17:33:47 +0000 (17:33 +0000)]
Properly error out if a variable does not exist. Need to pass back
ERROR to yylex() to make the parser fail nicely.
OK tb@

2 years agoChange argument of ktable_get from ifd->ifi_rdomain to kif->k.rdomain.
claudio [Thu, 9 Jun 2022 16:53:14 +0000 (16:53 +0000)]
Change argument of ktable_get from ifd->ifi_rdomain to kif->k.rdomain.
It is the same value but using the kif seems better.

2 years agoRemove the rdomain / rtableid passed to some kroute functions.
claudio [Thu, 9 Jun 2022 16:45:19 +0000 (16:45 +0000)]
Remove the rdomain / rtableid passed to some kroute functions.

kr_nexthop_add() and kr_nexthop_delete() only operate on the main table
so just pass in the right rdomain id.
kr_shutdown() and kr_dispatch_msg() don't really need the rdomain passed.
The was done for kif_remove(), since that function needs to remove connected
routes from the rdomain table. Connected routes can only exists in the
interfaces rdomain so just use kif->k.rdomain. If such routes exist that
table exists as well. If the table does not exists there are also no
connected routes to track.
OK tb@

2 years agoHandle "broken-cd" as "non-removable" like we do in dwmmc(4). Needed on
kettenis [Thu, 9 Jun 2022 14:43:28 +0000 (14:43 +0000)]
Handle "broken-cd" as "non-removable" like we do in dwmmc(4).  Needed on
the StarFive VisionFive board.

ok patrick@

2 years agopoint developers to the other place where the remaining flags values are
espie [Thu, 9 Jun 2022 13:13:14 +0000 (13:13 +0000)]
point developers to the other place where the remaining flags values are
defined (nice gotcha when you come back to the code after a few months).

2 years agoReadd ETHERTYPE_NHRPA case.
mbuhl [Thu, 9 Jun 2022 12:56:14 +0000 (12:56 +0000)]
Readd ETHERTYPE_NHRPA case.
Found by Stefan Butz.
ok dlg@

2 years agoAdd gpiorestart(4).
kettenis [Thu, 9 Jun 2022 12:16:56 +0000 (12:16 +0000)]
Add gpiorestart(4).

2 years agoAdd gpiorestart(4), a driver that resets a SoC/board/machine using a GPIO
kettenis [Thu, 9 Jun 2022 12:13:56 +0000 (12:13 +0000)]
Add gpiorestart(4), a driver that resets a SoC/board/machine using a GPIO
pin.

ok jsg@

2 years agose more specific discrimination to know if extra data is still there after
espie [Thu, 9 Jun 2022 09:27:11 +0000 (09:27 +0000)]
se more specific discrimination to know if extra data is still there after
an update.

2 years agoIf an application gives the first parameter to OSC 52, validate and pass
nicm [Thu, 9 Jun 2022 09:12:55 +0000 (09:12 +0000)]
If an application gives the first parameter to OSC 52, validate and pass
on to outside terminal. GitHub issue 3192.

2 years agoAdd Lublin airport (LUZ), which I visited today during a day trip to Lublin.
fcambus [Wed, 8 Jun 2022 21:28:59 +0000 (21:28 +0000)]
Add Lublin airport (LUZ), which I visited today during a day trip to Lublin.

2 years agodo not refuse valid IPv6 addresses in -X connect (HTTP CONNECT proxy)
djm [Wed, 8 Jun 2022 20:20:26 +0000 (20:20 +0000)]
do not refuse valid IPv6 addresses in -X connect (HTTP CONNECT proxy)
support. Identified by Wilmer van der Gaast, ok millert@

2 years agoKNF, mostly whitespace - no binary change on amd64
tb [Wed, 8 Jun 2022 20:07:31 +0000 (20:07 +0000)]
KNF, mostly whitespace - no binary change on amd64

2 years agoWhen looking for the next block to tag, we aren't interested in children
schwarze [Wed, 8 Jun 2022 16:29:12 +0000 (16:29 +0000)]
When looking for the next block to tag, we aren't interested in children
of the current block but really want the next block instead.  This fixes
a segfault reported by Evan Silberman <evan at jklol dot net> on bugs@.

2 years agorecognize @extraglob for later
espie [Wed, 8 Jun 2022 14:57:12 +0000 (14:57 +0000)]
recognize @extraglob for later
okay sthen@

2 years agoSurprisingly, every escape sequence can also be used as an argument
schwarze [Wed, 8 Jun 2022 13:08:00 +0000 (13:08 +0000)]
Surprisingly, every escape sequence can also be used as an argument
delimiter for an outer escape sequence, in which case the delimiting
escape sequence retains its syntax but usually ignores its argument
and loses its inherent effect.  Add rudimentary support for this
syntax quirk in order to improve parsing compatibility with groff.

2 years agosync
sthen [Wed, 8 Jun 2022 11:09:33 +0000 (11:09 +0000)]
sync

2 years agostfpinctrl(4)
kettenis [Wed, 8 Jun 2022 10:49:08 +0000 (10:49 +0000)]
stfpinctrl(4)

2 years agoAdd a new option which allows to set an alternative base-directory to
mglocker [Wed, 8 Jun 2022 09:03:11 +0000 (09:03 +0000)]
Add a new option which allows to set an alternative base-directory to
download the installation files to.  This is helpful if the default
base-directory /home isn't available for writing, i.e. when using auto
mounted home directories.

Discussed with and input received from
florian@, jmc@, sthen@, schwarze@, and ajacoutot@.

OK florian@, jmc@, sthen@

2 years agoAdd stfpinctrl(4).
kettenis [Wed, 8 Jun 2022 08:42:09 +0000 (08:42 +0000)]
Add stfpinctrl(4).

2 years agoAdd stfpinctrl(4), a driver for the pinctrl/gpio block found on the
kettenis [Wed, 8 Jun 2022 08:40:53 +0000 (08:40 +0000)]
Add stfpinctrl(4), a driver for the pinctrl/gpio block found on the
StarFive JH7100 SoC.

ok jsg@

2 years agosync
sthen [Wed, 8 Jun 2022 07:43:16 +0000 (07:43 +0000)]
sync

2 years agofixes potential memory leak. if_vinput() should always consume packet
sashan [Tue, 7 Jun 2022 22:18:34 +0000 (22:18 +0000)]
fixes potential memory leak. if_vinput() should always consume packet
by either passing it further or releasing it.

OK mvs@

2 years agofixes NULL pointer dereference panic triggered by relayd.
sashan [Tue, 7 Jun 2022 22:14:15 +0000 (22:14 +0000)]
fixes NULL pointer dereference panic triggered by relayd.
same panic can be triggered when address table is part
of anchor loaded by 'load anchor ... from ..,' statement.
pf_find_or_create_ruleset() function called by pfr_add_tables()
must receive ruleset name which comes from pre-allocated root
table.

OK claudio@ dlg@

2 years agoEnable stfclock(4) and make xhci(4) attach to fdt.
kettenis [Tue, 7 Jun 2022 18:55:55 +0000 (18:55 +0000)]
Enable stfclock(4) and make xhci(4) attach to fdt.

2 years agoFix format strings: change %i, %li, %lli to %d, %ld, %lld and switch to
tb [Tue, 7 Jun 2022 18:00:51 +0000 (18:00 +0000)]
Fix format strings: change %i, %li, %lli to %d, %ld, %lld and switch to
%zu for master_key_length, session_id_length and sid_ctx_length, which
are now size_t.

2 years agoChange the loop index from an unsigned int to size_t now that all
tb [Tue, 7 Jun 2022 17:55:08 +0000 (17:55 +0000)]
Change the loop index from an unsigned int to size_t now that all
upper bounds are known to be size_t.

ok jsing

2 years agoSimplify another CBS_write_bytes() call in d2i_SSL_SESSION()
tb [Tue, 7 Jun 2022 17:53:42 +0000 (17:53 +0000)]
Simplify another CBS_write_bytes() call in d2i_SSL_SESSION()

ok jsing

2 years agoSwitch sid_ctx_length in SSL, SSL_CTX and SSL_SESSION to a size_t
tb [Tue, 7 Jun 2022 17:52:00 +0000 (17:52 +0000)]
Switch sid_ctx_length in SSL, SSL_CTX and SSL_SESSION to a size_t

ok jsing

2 years agoUse CBS_write_bytes() instead of manual unpacking of a CBS and assigning
tb [Tue, 7 Jun 2022 17:49:22 +0000 (17:49 +0000)]
Use CBS_write_bytes() instead of manual unpacking of a CBS and assigning
length and using memcpy(). This also provides a missing overflow check
(which is done by the only caller, however).

ok jsing

2 years agoSimplify various CBS_write_bytes() calls
tb [Tue, 7 Jun 2022 17:45:13 +0000 (17:45 +0000)]
Simplify various CBS_write_bytes() calls

Now that session_id_length is a size_t, we can pass it directly to
CBS_write_bytes() instead of using a temporary variable.

ok jsing

2 years agoSwitch SSL_SESSION's session_id_length to a size_t
tb [Tue, 7 Jun 2022 17:42:35 +0000 (17:42 +0000)]
Switch SSL_SESSION's session_id_length to a size_t

ok jsing

2 years agoAdd missing error check call in ssl3_get_new_session_ticket()
tb [Tue, 7 Jun 2022 17:39:16 +0000 (17:39 +0000)]
Add missing error check call in ssl3_get_new_session_ticket()

EVP_Digest() can fail, so handle failure appropriately and prepare
switch of session_id_length to a size_t.

ok jsing

2 years agoAnother small readability tweak: compare explicitly against 0 and NULL,
tb [Tue, 7 Jun 2022 17:35:49 +0000 (17:35 +0000)]
Another small readability tweak: compare explicitly against 0 and NULL,
respectively

ok jsing

2 years agoTweak readability of a test: compare tmp explicitly against 0 and drop
tb [Tue, 7 Jun 2022 17:32:53 +0000 (17:32 +0000)]
Tweak readability of a test: compare tmp explicitly against 0 and drop
redundant parentheses.

ok jsing

2 years agoAdd a cast to SSL_SESSION_get_id() to indicate that session_id_length
tb [Tue, 7 Jun 2022 17:31:36 +0000 (17:31 +0000)]
Add a cast to SSL_SESSION_get_id() to indicate that session_id_length
is deliberately reduced to an unsigned int. Since the session_id is at
most 32 bytes, this is not a concern.

ok jsing

2 years agofix indent
tb [Tue, 7 Jun 2022 17:28:05 +0000 (17:28 +0000)]
fix indent

2 years agoUnindent and simplify remove_session_lock()
tb [Tue, 7 Jun 2022 17:26:39 +0000 (17:26 +0000)]
Unindent and simplify remove_session_lock()

ok jsing (who informs me he had the same diff in his jungle)

2 years agoDrop an unnecessary cast
tb [Tue, 7 Jun 2022 17:22:22 +0000 (17:22 +0000)]
Drop an unnecessary cast

ok jsing

2 years agoSimplify CBS_write_bytes() invocation
tb [Tue, 7 Jun 2022 17:20:26 +0000 (17:20 +0000)]
Simplify CBS_write_bytes() invocation

Now that master_key_length is a size_t, we no longer have to fiddle with
data_len. We can rather pass a pointer to it to CBS_write_bytes().

ok jsing

2 years agoThe master_key_length can no longer be < 0
tb [Tue, 7 Jun 2022 17:19:09 +0000 (17:19 +0000)]
The master_key_length can no longer be < 0

ok jsing

2 years agoSwitch the SSL_SESSION's master_key_length to a size_t
tb [Tue, 7 Jun 2022 17:18:21 +0000 (17:18 +0000)]
Switch the SSL_SESSION's  master_key_length to a size_t

ok jsing

2 years agoAdd error checking to tls_session_secret_cb() calls
tb [Tue, 7 Jun 2022 17:14:17 +0000 (17:14 +0000)]
Add error checking to tls_session_secret_cb() calls

Failure of this undocumented callback was previously silently ignored.
Follow OpenSSL's behavior and throw an internal error (for lack of a
better choice) if the callback failed or if it set the master_key_length
to a negative number.

Unindent the success path and clean up some strange idioms.

ok jsing

2 years agoTry to be more precise with rtlabelid tracking.
claudio [Tue, 7 Jun 2022 16:42:07 +0000 (16:42 +0000)]
Try to be more precise with rtlabelid tracking.

By moving the rtlabel_unref into kroute_remove the unref is more reliable.
There are still places where handling is not quite right but it is a step
in the right direction.
OK tb@

2 years agouint8_t not u_int8_t. Damn finger memory.
claudio [Tue, 7 Jun 2022 16:12:00 +0000 (16:12 +0000)]
uint8_t not u_int8_t. Damn finger memory.

2 years agoRetire F_RTLABEL it was not used for anything.
claudio [Tue, 7 Jun 2022 15:57:47 +0000 (15:57 +0000)]
Retire F_RTLABEL it was not used for anything.
Also cleanup some redundant if statements.
OK tb@

2 years agomerge unbound 1.16.0
sthen [Tue, 7 Jun 2022 15:42:53 +0000 (15:42 +0000)]
merge unbound 1.16.0

2 years agoupdate to unbound 1.16.0, discussed with florian@, test from Renaud Allard
sthen [Tue, 7 Jun 2022 15:39:58 +0000 (15:39 +0000)]
update to unbound 1.16.0, discussed with florian@, test from Renaud Allard

2 years agoRemove uvm_km_valloc_prefer_wait(9) and uvm_km_free_wakeup(9) now that
kettenis [Tue, 7 Jun 2022 12:07:45 +0000 (12:07 +0000)]
Remove uvm_km_valloc_prefer_wait(9) and uvm_km_free_wakeup(9) now that
nothing uses these functions anymore.

ok mpi@

2 years agoRemove redundant check for free pages. The pmemrange code that is called
kettenis [Tue, 7 Jun 2022 12:02:52 +0000 (12:02 +0000)]
Remove redundant check for free pages.  The pmemrange code that is called
by uvm_pglistalloc(9) does a similar check already.

ok mpi@

2 years agoExpand arguments to some commands where it makes sense, GitHub issue
nicm [Tue, 7 Jun 2022 10:02:19 +0000 (10:02 +0000)]
Expand arguments to some commands where it makes sense, GitHub issue
3204 from Anindya Mukherjee.

2 years agoSplit the excessively generic diagnostic message "invalid escape sequence"
schwarze [Tue, 7 Jun 2022 09:51:03 +0000 (09:51 +0000)]
Split the excessively generic diagnostic message "invalid escape sequence"
into the more specific messages "invalid escape argument delimiter"
and "invalid escape sequence argument".

2 years agoPurge duplicate error reporting from the .tr request parser:
schwarze [Tue, 7 Jun 2022 09:41:22 +0000 (09:41 +0000)]
Purge duplicate error reporting from the .tr request parser:
the error was already reported earlier when roff_expand()
called roff_escape().

2 years agoFix path validation of AS numbers
tb [Tue, 7 Jun 2022 08:50:07 +0000 (08:50 +0000)]
Fix path validation of AS numbers

If a certificate along the chain does not have an AS numbers extension,
this is a failure condition according to RFC 3779, section 3.3.

ok job

2 years agostfclock(4)
kettenis [Mon, 6 Jun 2022 22:28:57 +0000 (22:28 +0000)]
stfclock(4)

2 years agobump pbuild's datasize-cur from 2G to 3G on i386, this or close to it
sthen [Mon, 6 Jun 2022 20:53:22 +0000 (20:53 +0000)]
bump pbuild's datasize-cur from 2G to 3G on i386, this or close to it
is needed to build some important ports.  ok tb@

2 years agoTo better match groff parsing, reject digits and some mathematical
schwarze [Mon, 6 Jun 2022 19:22:54 +0000 (19:22 +0000)]
To better match groff parsing, reject digits and some mathematical
operators as argument delimiters for some escape sequences that take
numerical arguments, in the same way as it had already been done for \h.

Argument delimiter parsing for escape sequences taking numerical arguments
is not perfect yet.  In particular, when a character representing a
scaling unit is abused as the argument delimiter, parsing for that
character becomes context-dependent, and it is no longer possible to
find the end of the escape sequence without calling the full numerical
expression parser, which i refrain from attempting in this commit.

For now, continuing to misparse insane constructions like \Bc1c+1cc
(which is valid in groff and resolves to "1" because 1c+1c = two
centimeters is a valid numerical expression and 'c' is also a valid
delimiter) is a small price to pay for keeping complexity at bay
and for not losing focus in the ongoing series of refinements.

2 years agoUse SSL3_CK_VALUE_MASK instead of hardcoded 0xffff and remove some
tb [Mon, 6 Jun 2022 16:12:30 +0000 (16:12 +0000)]
Use SSL3_CK_VALUE_MASK instead of hardcoded 0xffff and remove some
SSLv2 remnants.

ok jsing

2 years agoTweak comment describing the SSL_SESSION ASN.1
tb [Mon, 6 Jun 2022 16:11:00 +0000 (16:11 +0000)]
Tweak comment describing the SSL_SESSION ASN.1

ok jsing

2 years agoMinor style cleanup in ssl_txt.c
tb [Mon, 6 Jun 2022 15:20:54 +0000 (15:20 +0000)]
Minor style cleanup in ssl_txt.c

Wrap long lines and fix a bug where the wrong struct member was checked
for NULL.

ok jsing

2 years agoEnable stfclock(4) and make xhci(4) attach to fdt.
kettenis [Mon, 6 Jun 2022 14:58:19 +0000 (14:58 +0000)]
Enable stfclock(4) and make xhci(4) attach to fdt.

2 years agoAdd stfclock(4), a driver for the clock controller found on the StarFive
kettenis [Mon, 6 Jun 2022 14:57:33 +0000 (14:57 +0000)]
Add stfclock(4), a driver for the clock controller found on the StarFive
JH7100 SoC.

ok jsg@

2 years agoSimplify solock() and sounlock(). There is no reason to return a value
claudio [Mon, 6 Jun 2022 14:45:41 +0000 (14:45 +0000)]
Simplify solock() and sounlock(). There is no reason to return a value
for the lock operation and to pass a value to the unlock operation.
sofree() still needs an extra flag to know if sounlock() should be called
or not. But sofree() is called less often and mostly without keeping the lock.
OK mpi@ mvs@

2 years agoRemove unused prototype.
kettenis [Mon, 6 Jun 2022 14:34:11 +0000 (14:34 +0000)]
Remove unused prototype.
Fix a whitespace issue.

2 years agoFix comment + spacing.
tb [Mon, 6 Jun 2022 13:46:37 +0000 (13:46 +0000)]
Fix comment + spacing.

Apparently 60 * 5 + 4 seconds is 5 minutes. Presumably this is the case
with sufficiently potent crack, which would explain a few things in here.

2 years agoRemove incorrect and ungrammattical comment
tb [Mon, 6 Jun 2022 13:18:34 +0000 (13:18 +0000)]
Remove incorrect and ungrammattical comment

The fallback to SHA-1 if SHA-256 is disabled fell victim to tedu many
moons ago when this file was still called s3_clnt.c and had no RCS ID.

2 years agoadjust two desired error messages after roff_escape.c rev. 1.11
schwarze [Mon, 6 Jun 2022 12:17:31 +0000 (12:17 +0000)]
adjust two desired error messages after roff_escape.c rev. 1.11
improved diagnostics for the \C escape sequence

2 years agoAllow arbitrary argument delimiters for \C, like groff does.
schwarze [Mon, 6 Jun 2022 12:09:18 +0000 (12:09 +0000)]
Allow arbitrary argument delimiters for \C, like groff does.
The restriction of only allowing ' as the delimiter was introduced
by kristaps@ on 2011/04/09 when he first supported \C.
For most other escape sequences, similar restrictions were relaxed
later on, but for the rarely used \C, it was apparently forgotten.

While here, reject empty character names: they are never valid.

2 years agoThe StarFive JH7100 SoC has peripherals that only support 32-bit DMA
kettenis [Mon, 6 Jun 2022 10:50:56 +0000 (10:50 +0000)]
The StarFive JH7100 SoC has peripherals that only support 32-bit DMA
(in particular the dwmmc(4) and dwge(4) devices; there may be more).

ok jsg@

2 years agoAdd support for the XHCI function that is part of the Cadence USB3 DRD
kettenis [Mon, 6 Jun 2022 09:46:07 +0000 (09:46 +0000)]
Add support for the XHCI function that is part of the Cadence USB3 DRD
controller.  There are various incarnations of the controller.  This diff
only adds support for the "V1"/"CDNS3" version as found on the StarFive
JH7100 SoC.  Further changes may be needed to support controllers integrated
on other SoCs.

ok jsg@

2 years agoFix spaces before tabs
tb [Mon, 6 Jun 2022 08:48:11 +0000 (08:48 +0000)]
Fix spaces before tabs

2 years agohave compute_checksum return a status, so that we don't report similar
espie [Mon, 6 Jun 2022 08:18:22 +0000 (08:18 +0000)]
have compute_checksum return a status, so that we don't report similar
errors several times (for instance, if a file doesn't exist, its checksum
is not going to match, obviously)

2 years agozap fairly old bug from refactoring: we already validated all the set plists,
espie [Mon, 6 Jun 2022 08:03:32 +0000 (08:03 +0000)]
zap fairly old bug from refactoring: we already validated all the set plists,
don't do it again (would skew the file system usage a bit).

Also: we don't need to check for firmware if we're not actively deleting.
normal updates won't touch them.

2 years agothis message is seriously outdated: the packing-lists have been read by
espie [Mon, 6 Jun 2022 07:57:21 +0000 (07:57 +0000)]
this message is seriously outdated: the packing-lists have been read by
the code that calls delete_handle already

2 years agoYet another iteration of the tied algorithm: some packages contain
espie [Mon, 6 Jun 2022 07:39:39 +0000 (07:39 +0000)]
Yet another iteration of the tied algorithm: some packages contain
several hundred copies of the same file (even thousands! I'm looking at you
sdcc), so matching through a list is O(n^2).

So hash the hashes on the actual file name so that we match directly if
the same name file didn't change, and use the first entry otherwise, since
the name won't match.

speeds up updating of texlive somewhat, and makes a huge difference for sdcc.

2 years agoalso zap signer if we zap digital-signature
espie [Mon, 6 Jun 2022 07:21:17 +0000 (07:21 +0000)]
also zap signer if we zap digital-signature

2 years agodrm/i915: Fix -Wstringop-overflow warning in call to intel_read_wm_latency()
jsg [Mon, 6 Jun 2022 07:10:15 +0000 (07:10 +0000)]
drm/i915: Fix -Wstringop-overflow warning in call to intel_read_wm_latency()

From Gustavo A. R. Silva
195fffbf8291a84580762ac6e3101489954d0216 in linux 5.15.y/5.15.45
336feb502a715909a8136eb6a62a83d7268a353b in mainline linux

2 years agoexpand on the mismatches between the tarball and the packing-list
espie [Mon, 6 Jun 2022 06:57:35 +0000 (06:57 +0000)]
expand on the mismatches between the tarball and the packing-list

2 years agoMinor tweaks to psk modes regress
tb [Mon, 6 Jun 2022 06:11:04 +0000 (06:11 +0000)]
Minor tweaks to psk modes regress

2 years agoregen
jsg [Mon, 6 Jun 2022 03:59:38 +0000 (03:59 +0000)]
regen

2 years agodrm/amdgpu: add beige goby PCI ID
jsg [Mon, 6 Jun 2022 03:58:19 +0000 (03:58 +0000)]
drm/amdgpu: add beige goby PCI ID

From Alex Deucher
62e9bd20035b53ff6c679499c08546d96c6c60a7 in mainline linux

2 years agomove the calls to psk kex modes tests down to match order in ssl_tlsext.c
tb [Sun, 5 Jun 2022 20:37:24 +0000 (20:37 +0000)]
move the calls to psk kex modes tests down to match order in ssl_tlsext.c

2 years agoAdd regress coverage for PSK kex modes tlsext handlers.
tb [Sun, 5 Jun 2022 20:24:10 +0000 (20:24 +0000)]
Add regress coverage for PSK kex modes tlsext handlers.

2 years agoWith the improved escape sequence parser, it becomes easy to also improve
schwarze [Sun, 5 Jun 2022 13:42:49 +0000 (13:42 +0000)]
With the improved escape sequence parser, it becomes easy to also improve
diagnostics.  Distinguish "incomplete escape sequence", "invalid special
character", and "unknown special character" from the generic "invalid
escape sequence", also promoting them from WARNING to ERROR because
incomplete escape sequences are severe syntax violations and because
encountering an invalid or unknown special character makes it likely
that part of the document content intended by the authors gets lost.