jsg [Thu, 14 Apr 2022 08:37:17 +0000 (08:37 +0000)]
drm/amd/display: Use PSR version selected during set_psr_caps
From Nicholas Kazlauskas
6040c99cb1a18c8da3f84e5051db12b6353a2576 in linux 5.15.y/5.15.34
b80ddeb29d9df449f875f0b6f5de08d7537c02b8 in mainline linux
jsg [Thu, 14 Apr 2022 08:35:27 +0000 (08:35 +0000)]
drm/amd/display: Fix memory leak
From Yongzhi Liu
7e10369c72db7a0e2f77b2e306aadc07aef6b07a in linux 5.15.y/5.15.34
5d5c6dba2b43e28845d7d7ed32a36802329a5f52 in mainline linux
jsg [Thu, 14 Apr 2022 08:33:54 +0000 (08:33 +0000)]
drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj
From Xin Xiong
3edd8646cb7c11b57c90e026bda6f21076223f5b in linux 5.15.y/5.15.34
dfced44f122c500004a48ecc8db516bb6a295a1b in mainline linux
jsg [Thu, 14 Apr 2022 08:32:15 +0000 (08:32 +0000)]
drm/amd/display: Add signal type check when verify stream backends same
From Dale Zhao
c4b64a80554e57a68b594f2920988f4bc39768d9 in linux 5.15.y/5.15.34
047db281c026de5971cedb5bb486aa29bd16a39d in mainline linux
jsg [Thu, 14 Apr 2022 08:30:38 +0000 (08:30 +0000)]
drm: Add orientation quirk for GPD Win Max
From Anisse Astier
b3ca02c1ee93b9a998cf26e1734986ba570422c4 in linux 5.15.y/5.15.34
0b464ca3e0dd3cec65f28bc6d396d82f19080f69 in mainline linux
nicm [Thu, 14 Apr 2022 06:59:29 +0000 (06:59 +0000)]
Fix clearphist alias, from Jacqueline Jolicoeur via jmc@.
krw [Wed, 13 Apr 2022 22:29:30 +0000 (22:29 +0000)]
Correct a gh_part_csum calculation used in debug output.
Always calculate the GPT partition entries checksum over
gh_part_num * gh_part_size bytes, not the maximal size of the
internal partition entries array.
No functional change.
millert [Wed, 13 Apr 2022 22:17:33 +0000 (22:17 +0000)]
Fix typo in last commit.
espie [Wed, 13 Apr 2022 21:22:40 +0000 (21:22 +0000)]
scaffolding from using the locate db that's now in quirks to avoid
asking the network about updateinfo (not active yet, you need to uncomment
some lines)
espie [Wed, 13 Apr 2022 21:20:23 +0000 (21:20 +0000)]
track ::Sample and ::Extra across an UpdateSet so that we may eventually
give out more accurate diagnostic (soon !)
espie [Wed, 13 Apr 2022 21:19:16 +0000 (21:19 +0000)]
add Paths to the quirks locate db and the locate binary proper
deraadt [Wed, 13 Apr 2022 20:54:55 +0000 (20:54 +0000)]
IKED_LIFETIME_BYTES is > 2GB, and potentially used in strange place,
it should really be marked ULL
ok bluhm tobhe
schwarze [Wed, 13 Apr 2022 20:19:18 +0000 (20:19 +0000)]
To prevent infinite recursion while expanding eqn(7) definitions,
we must not reset the recursion counter when moving beyond the end
of the *previous* expansion, but we may only do so when moving
beyond the rightmost position reached by *any* expansion in the
current equation. This matters because definitions can nest;
consider:
.EQ
define inner "content"
define outer "inner outer"
outer
.EN
This endless loop was found by tb@ using afl(1).
Incidentally, GNU eqn(1) also performs an infinite loop in this
situation and then crashes when memory runs out, but that's not an
excuse for nasty behaviour of mandoc(1).
While here, consistently print the expanded content even when the
expansion is finally truncated. While that is not likely to help
end-users, it may help authors of eqn(7) code to understand what's
going on. Besides, it sends a very clear signal that something is
amiss, which was easy to miss in the past unless people
enabled -W error or used -T lint.
espie [Wed, 13 Apr 2022 18:00:34 +0000 (18:00 +0000)]
we're not 2000 anymore, direct the user to using binary packages, the ports
tree should be about on par with release(8)
okay schwarze@, sthen@
millert [Wed, 13 Apr 2022 16:23:53 +0000 (16:23 +0000)]
ftok: avoid left shift of a signed in by 24 places
Fix "left shift of 255 by 24 places cannot be represented in type 'int'"
error from UBSAN. Adapted from a FreeBSD diff via tb@. OK tb@ deraadt@
millert [Wed, 13 Apr 2022 16:20:11 +0000 (16:20 +0000)]
inet_net_pton_ipv6: avoid signed vs unsigned comparison
Use a temporary variable to store the number of bytes to be copied
(size_t) and also use it as the memcpy(3) length. Previously we
copied "size" bytes instead of just the necessary number.
OK claudio@ tb@
krw [Wed, 13 Apr 2022 15:32:33 +0000 (15:32 +0000)]
Correct a gh_csum calculation used in debug output.
Always calculate the GPT header checksum over gh_size bytes
(a.k.a. 92), not sizeof(struct gpt_header). Compilers in their
wisdom may pad the struct to a nice round size, e.g. 96 bytes.
No functional change.
krw [Wed, 13 Apr 2022 15:07:25 +0000 (15:07 +0000)]
Eliminate a couple of 'XXX' assumptions by calculating the actual
number of sectors a given number of GPT partition entries
require.
No intentional functional change.
schwarze [Wed, 13 Apr 2022 14:37:34 +0000 (14:37 +0000)]
Do not die on an assertion if an input file contains no section
whatsoever and ends with a broken next-line scope. Obviously, this
cannot happen in a real manual page, but mandoc(1) should not die
even when fed absurd input.
This bug was independently reported by both jsg@ and tb@ who both
found it with afl(1).
schwarze [Wed, 13 Apr 2022 13:11:33 +0000 (13:11 +0000)]
Surprisingly, groff supports multiple copy mode escapes at the
beginning of an escape sequence: \, \E, \EE, \EEE, and so on all do
the same outside copy mode, so let them do the same in mandoc(1), too.
This fixes an assertion failure triggered by \EE*X that tb@ found
with afl(1). The first E was consumed by roff_expand(), but that
function failed to recognize the escape sequence as the expansion
of a user-defined string and handed it over to mandoc_escape(),
which consumed the second E and then died on an assertion because
it is not prepared to handle user-defined strings. Fix this by
letting *both* functions handly arbitrary numbers of 'E's correctly.
tobhe [Wed, 13 Apr 2022 11:06:15 +0000 (11:06 +0000)]
Document sntrup761x25519 key exchange.
sthen [Wed, 13 Apr 2022 10:08:10 +0000 (10:08 +0000)]
Use a simpler "formula" to decide a default kern.maxthread value;
just 2*NPROCESS rather than NPROCESS+8*MAXUSERS. Results in a slightly
higher maxthread value - the previous value was fairly likely to be
exceeded on a system running a couple of heavily threaded processes.
> previous new
> MAXUSERS NPROCESS maxthread (2*NPROCESS)
> 80 1310 1950 2620
> 64 1054 1566 2108
> 32 542 798 1084
ok kettenis@
naddy [Tue, 12 Apr 2022 19:44:31 +0000 (19:44 +0000)]
ddb: simplify machine command handling
Define a consistently named db_machine_command_table[] across all
archs that implement the MD "machine" command, and hook this into
the main command table instead of patching it at runtime.
ok mpi@ jca@
naddy [Tue, 12 Apr 2022 19:41:11 +0000 (19:41 +0000)]
constify USB host controller method tables and root hub descriptors
ok mglocker@
ajacoutot [Tue, 12 Apr 2022 14:54:32 +0000 (14:54 +0000)]
Make this more readable.
Document gi-docgen which is coming to gnome.port.mk soon.
claudio [Tue, 12 Apr 2022 14:51:04 +0000 (14:51 +0000)]
Do not convert the int value twice from little to host endian.
io_read_int() already does the conversion so don't double up in
io_read_ulong(). Fixes openrsync on sparc64.
OK miod@ deraadt@
semarie [Tue, 12 Apr 2022 14:34:11 +0000 (14:34 +0000)]
struct vnode: document the protection required for manipulating v_numoutput
correct sr_rw() and sr_ccb_rw() to properly manipulate v_numoutput under splbio.
ok visa@
jmc [Tue, 12 Apr 2022 12:54:09 +0000 (12:54 +0000)]
fix bad space;
job [Tue, 12 Apr 2022 11:05:50 +0000 (11:05 +0000)]
Extend -f filemode to decode & print TAL details
"fine" claudio@ tb@
tb [Tue, 12 Apr 2022 10:42:35 +0000 (10:42 +0000)]
KNF for a brace and zap trailing blank line
tb [Tue, 12 Apr 2022 09:48:23 +0000 (09:48 +0000)]
Add a colon to warning for consistency
tb [Tue, 12 Apr 2022 09:32:23 +0000 (09:32 +0000)]
Shuffle sbgp_sia() a bit down to a place where it makes more sense
ok claudio
tb [Tue, 12 Apr 2022 08:46:33 +0000 (08:46 +0000)]
Adjust regress for x509_location() change
tb [Tue, 12 Apr 2022 08:45:34 +0000 (08:45 +0000)]
Generalize sbgp_sia_location() to x509_location()
AIA and CRL URIs can reuse the code in sbgp_sia_location and thus get the
same checks as the SIA locations. This eliminates some more duplication
and makes the checks more stringent in that embedded NULs and "./" are no
longer allowed.
ok claudio
dtucker [Tue, 12 Apr 2022 05:09:49 +0000 (05:09 +0000)]
Correct path for system known hosts file in description of
IgnoreUserKnownHosts. Patch from Martin Vahlensieck via tech@
afresh1 [Tue, 12 Apr 2022 02:54:51 +0000 (02:54 +0000)]
Improve test and clean targets
They failed if there was nothing to clean.
The test target now depends on the all target so we have something
to run tests against. They still don't like to pass in-tree,
but that is a separate issue.
Noticed by deraadt@, suggestions and improvements from geunther@ and bluhm@
djm [Mon, 11 Apr 2022 22:52:08 +0000 (22:52 +0000)]
clear io_want/io_ready flags at start of poll() cycle;
avoids plausible spin during rekeying if channel io_want flags are
reused across cycles. ok markus@ deraadt@
tobhe [Mon, 11 Apr 2022 20:41:21 +0000 (20:41 +0000)]
Fix leak of esnxf if esn ore noesn are configured explicitly.
claudio [Mon, 11 Apr 2022 18:59:23 +0000 (18:59 +0000)]
Refactor on how the subprocesses are started.
Move the unveil and pledges to the actuall subprocesses and put all the
common code to start these into process_start(). Reduces the lenght of
main() a fair bit.
OK tb@
mvs [Mon, 11 Apr 2022 18:18:17 +0000 (18:18 +0000)]
Keep `fdp' locked until we finish the second loop of unp_externalize().
This prevents descriptors from being closed concurrently on receiver side.
ok bluhm@ claudio@
mpi [Mon, 11 Apr 2022 16:43:49 +0000 (16:43 +0000)]
Remove trailing spaces.
visa [Mon, 11 Apr 2022 14:30:05 +0000 (14:30 +0000)]
gpio: Add missing device_unref() calls
device_lookup() returns a reference that the caller has to release.
OK jca@
tb [Mon, 11 Apr 2022 10:39:45 +0000 (10:39 +0000)]
Simplify SIA extension parsing further
Inline sbgp_sia_resource_entry() into sbgp_sia(). Add sbgp_sia_location()
to deduplicate sbgp_sia_resource_{notify,mft,carepo}(). Pull the GEN_URI
check into sbgp_sia_location() now that it doesn't have to be repeated
three times.
ok claudio
claudio [Mon, 11 Apr 2022 10:03:12 +0000 (10:03 +0000)]
Sort RTYPE in case alphabetically and mention ASPA in the comment.
No functional change.
sthen [Mon, 11 Apr 2022 09:32:20 +0000 (09:32 +0000)]
Fix spamlogd's rc_pre to avoid creating pflog0 if spamd is disabled.
The conditional was not checked (prior to r1.2 the exit code from the
conditional was implicitly used as the exit code from the whole shell
function, but this wasn't adapted when pflog creation was added).
Reported/tested by Clint Pachl
tb [Mon, 11 Apr 2022 08:29:34 +0000 (08:29 +0000)]
Adjust regress: test-cert now needs mft.c for rtype_from_file_extension().
tb [Mon, 11 Apr 2022 08:28:54 +0000 (08:28 +0000)]
Merge sbgp_sia() and sbgp_sia_resource()
These two functions are now short and easy, so there's no need for a split.
Also, pull the .mft extension check out of sbgp_sia_resource_mft() and use
rtype_from_file_extension() instead.
ok claudio
tb [Mon, 11 Apr 2022 08:04:43 +0000 (08:04 +0000)]
Simplify cert_parse_pre()
Remove rc and c and check things the straightforward way. Avoids some
contorted code and shaves off a few lines.
ok claudio
jsg [Mon, 11 Apr 2022 06:50:58 +0000 (06:50 +0000)]
don't warn on output type 0 result in dm_edid_parser_send_cea()
shows on renoir when using HP ZR2440w display via hdmi
[drm] Unknown EDID CEA parser results
tb [Mon, 11 Apr 2022 06:47:38 +0000 (06:47 +0000)]
Let the templated ASN.1 parse the SIA extension
Instead of using super low level ASN.1 fiddling, let libcrypto's templated
ASN.1 take care of parsing the SIA extension. This trivializes much of this
code. Resolves one FIXME and adds a missing check for URI type of the SIA
repo resources.
ok claudio
jsg [Mon, 11 Apr 2022 04:10:47 +0000 (04:10 +0000)]
drm/connector: Fix typo in documentation
From Maxime Ripard
b9cf1208af36f6552e6f3b8fdf364983e3cc8e60 in linux 5.15.y/5.15.33
dca384a3bf5af1c781cfa6aec63904bdb5018c36 in mainline linux
jsg [Mon, 11 Apr 2022 04:08:37 +0000 (04:08 +0000)]
drm/i915: Reject unsupported TMDS rates on ICL+
From Ville Syrjala
f5a0cf225f8d3cf06aff181b291a0ff32f4ad2c8 in linux 5.15.y/5.15.33
9cddf03b2af07443bebdc73cba21acb360c079e8 in mainline linux
jsg [Mon, 11 Apr 2022 04:06:32 +0000 (04:06 +0000)]
drm/i915: Fix PSF GV point mask when SAGV is not possible
From Ville Syrjala
beeebae6ea82979d0fdeaa5e2f8ce9949ec22a24 in linux 5.15.y/5.15.33
3ef8b5e19ead5a79600ea55f9549658281415893 in mainline linux
jsg [Mon, 11 Apr 2022 04:04:30 +0000 (04:04 +0000)]
drm/i915: Treat SAGV block time 0 as SAGV disabled
From Ville Syrjala
102cba6d5ae2378a8467504c71ac1008658f36c6 in linux 5.15.y/5.15.33
1937f3feb0e84089ae4065e09c871b8ab4676f01 in mainline linux
jsg [Mon, 11 Apr 2022 04:01:52 +0000 (04:01 +0000)]
drm/dp: Fix off-by-one in register cache size
From Kees Cook
e912d697400c5f4bc8c1c8090416dad6c59cb28c in linux 5.15.y/5.15.33
d4da1f27396fb1dde079447a3612f4f512caed07 in mainline linux
jsg [Mon, 11 Apr 2022 03:57:39 +0000 (03:57 +0000)]
drm/i915/display: Fix HPD short pulse handling for eDP
From Jose Souza
7ff346ee019bcf3b008a56a43b7aac45e771479b in linux 5.15.y/5.15.33
3a84fd1ed53582b31e843a152ee3219e9e4ccb8c in mainline linux
jsg [Mon, 11 Apr 2022 03:55:26 +0000 (03:55 +0000)]
drm/amd/display: Remove vupdate_int_entry definition
From Maira Canal
bd443887ed2adbc7d89b12b6b2980024da1f8d31 in linux 5.15.y/5.15.33
3679b8518cd213c25d555553ef212e233faf698c in mainline linux
jsg [Mon, 11 Apr 2022 03:53:42 +0000 (03:53 +0000)]
drm/amd/display: Add affected crtcs to atomic state for dsc mst unplug
From Roman Li
0f47edc22c2b7e4c1903d74c3992f09db9453d11 in linux 5.15.y/5.15.33
128f8ed5902a287a6bb4afe0ffdae8a80b2a64ec in mainline linux
jsg [Mon, 11 Apr 2022 03:51:41 +0000 (03:51 +0000)]
drm/amd/pm: enable pm sysfs write for one VF mode
From Yiqing Yao
ac98fdec111485b5eb88cb91d20473fb67631684 in linux 5.15.y/5.15.33
e610941c45bad75aa839af015c27d236ab6749e5 in mainline linux
jsg [Mon, 11 Apr 2022 03:50:08 +0000 (03:50 +0000)]
drm/amd/pm: return -ENOTSUPP if there is no get_dpm_ultimate_freq function
From Tom Rix
b175bc58641032cfdb89f92afd76939be2ae22b4 in linux 5.15.y/5.15.33
430e6a0212b2a0eb1de5e9d47a016fa79edf3978 in mainline linux
jsg [Mon, 11 Apr 2022 03:48:23 +0000 (03:48 +0000)]
drm/amd/display: Fix a NULL pointer dereference in amdgpu_dm_connector_add_common_modes()
From Zhou Qingyang
bdc7429708a0772d90c208975694f7c2133b1202 in linux 5.15.y/5.15.33
588a70177df3b1777484267584ef38ab2ca899a2 in mainline linux
jsg [Mon, 11 Apr 2022 03:46:07 +0000 (03:46 +0000)]
drm/edid: Split deep color modes between RGB and YUV444
From Maxime Ripard
da491fc54e4e387419948840636df15f4a611ec4 in linux 5.15.y/5.15.33
4adc33f36d80489339f1b43dfeee96bb9ea8e459 in mainline linux
jsg [Mon, 11 Apr 2022 03:41:03 +0000 (03:41 +0000)]
drm/edid: Don't clear formats if using deep color
From Maxime Ripard
19da408ab41c984d49c55582b265645b964b6619 in linux 5.15.y/5.15.33
75478b3b393bcbdca4e6da76fe3a9f1a4133ec5d in mainline linux
jsg [Mon, 11 Apr 2022 03:38:46 +0000 (03:38 +0000)]
drm/i915/gem: add missing boundary check in vm_access
From Mastan Katragadda
312d3d4f49e12f97260bcf972c848c3562126a18 in linux 5.15.y/5.15.33
3886a86e7e6cc6ce2ce93c440fecd8f42aed0ce7 in mainline linux
jsg [Mon, 11 Apr 2022 03:36:37 +0000 (03:36 +0000)]
drm/i915/opregion: check port number bounds for SWSCI
From Jani Nikula
d8b8bd1d03ee7db8e7cb79748a70c2eef4dd706f in linux 5.15.y/5.15.33
24a644ebbfd3b13cda702f98907f9dd123e34bf9 in mainline linux
jsg [Mon, 11 Apr 2022 03:34:20 +0000 (03:34 +0000)]
drm/fb-helper: Mark screen buffers in system memory with FBINFO_VIRTFB
From Thomas Zimmermann
51f0af904fb621721d2c95c1eb349fb46af63a04 in linux 5.15.y/5.15.33
cd9f7f7ac5932129fe81b4c7559cfcb226ec7c5c in mainline linux
jsg [Mon, 11 Apr 2022 03:31:42 +0000 (03:31 +0000)]
drm/syncobj: flatten dma_fence_chains on transfer
From Christian Koenig
7585d0f56f29b5a7900ba21ff9a1a9d48cbe9860 in linux 5.15.y/5.15.33
721255b52700b320c4ae2e23d57f7d9ad1db50b9 in mainline linux
jsg [Mon, 11 Apr 2022 03:29:27 +0000 (03:29 +0000)]
drm/edid: check basic audio support on CEA extension block
From Cooper Chiou
6e72980d588e220adbc2469181735399ceb9f9a8 in linux 5.15.y/5.15.33
5662abf6e21338be6d085d6375d3732ac6147fd2 in mainline linux
jsg [Mon, 11 Apr 2022 03:27:24 +0000 (03:27 +0000)]
drm/amdgpu: only check for _PR3 on dGPUs
From Alex Deucher
fe953e0f77e55d004a5b0c533262e389d01e3198 in linux 5.15.y/5.15.33
85ac2021fe3ace59cc0afd6edf005abad35625b0 in mainline linux
jsg [Mon, 11 Apr 2022 03:24:33 +0000 (03:24 +0000)]
drm/amdgpu: move PX checking into amdgpu_device_ip_early_init
From Alex Deucher
0884abb259f180bc737cdb2c681d907b86f266e8 in linux 5.15.y/5.15.33
901e2be20dc55079997ea1885ea77fc72e6826e7 in mainline linux
jsg [Mon, 11 Apr 2022 03:02:40 +0000 (03:02 +0000)]
add pci_upstream_bridge() and pci_pr3_present()
needed for changes to amdgpu_device.c in 5.15.y
for now always return false when checking for ACPI _PR3 method
jsg [Mon, 11 Apr 2022 01:28:50 +0000 (01:28 +0000)]
include dma-fence-array.h
needed for changes to drm_syncobj.c in 5.15.y
dv [Sun, 10 Apr 2022 19:36:58 +0000 (19:36 +0000)]
Free vm_info_result in error paths.
vmd(8)'s get_info_vm() mallocs vm_info_result structs when using
the VMM_IOC_INFO ioctl. The error paths failed to free the resulting
objects.
Diff adapted from suggestions by jca@. ok mlarkin@.
jca [Sun, 10 Apr 2022 18:05:39 +0000 (18:05 +0000)]
Print a more accurate message when -v is used with -k
Report and different proposal by "prx", ok millert@
jca [Sun, 10 Apr 2022 17:47:54 +0000 (17:47 +0000)]
Add more missing archs to "categories": aarch64, mips64el and powerpc64
The categories listing is long and maybe adding archs in there isn't
very relevant (any more?).
claudio [Sun, 10 Apr 2022 14:08:35 +0000 (14:08 +0000)]
Print the strerror of the expected error. errno is not valid here since
bind(2) succeeded.
visa [Sun, 10 Apr 2022 13:23:14 +0000 (13:23 +0000)]
mips64: Enforce memory ordering on SMP rendezvous
Make sure that each CPU sees the initiator's pre-action state when
running the action function, and that the initiator sees the combined
post-action state.
Use CPU_BUSY_CYCLE() when busy-waiting.
inoguchi [Sun, 10 Apr 2022 12:42:33 +0000 (12:42 +0000)]
Set ASN1_OBJECT_FLAG_DYNAMIC_DATA flag with t2i_ASN1_OBJECT_internal
'flags' should have ASN1_OBJECT_FLAG_DYNAMIC_DATA bit to free 'data'
by ASN1_OBJECT_free as c2i_ASN1_OBJECT_cbs does.
ok jsing@ tb@
kettenis [Sun, 10 Apr 2022 10:43:34 +0000 (10:43 +0000)]
Fix definition of "local" IPI system register. Spotted by Kyle Evans.
ok patrick@, jsg@
naddy [Sat, 9 Apr 2022 20:10:26 +0000 (20:10 +0000)]
atascsi: constify method tables
ok miod@
naddy [Sat, 9 Apr 2022 20:09:03 +0000 (20:09 +0000)]
constify method tables in OAK USB sensor drivers
ok miod@
naddy [Sat, 9 Apr 2022 20:07:44 +0000 (20:07 +0000)]
constify method tables in USB serial drivers
ok miod@
dv [Sat, 9 Apr 2022 15:40:55 +0000 (15:40 +0000)]
fix grammar in comment: successfully -> successful
mbuhl [Sat, 9 Apr 2022 13:15:44 +0000 (13:15 +0000)]
Release PF und NET lock before calling copyin for DIOCXROLLBACK.
OK bluhm@
Reported-by: syzbot+2945769fc3e6fd9ee413@syzkaller.appspotmail.com
dv [Sat, 9 Apr 2022 01:49:43 +0000 (01:49 +0000)]
Simplify vmx instruction error handling.
Removes jumps and shortens the code while keeping functionality the
same.
ok mlarkin@
bluhm [Fri, 8 Apr 2022 18:17:24 +0000 (18:17 +0000)]
Rename the pf state assert locked macro consistently.
OK sashan@
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>.
claudio [Fri, 8 Apr 2022 15:30:27 +0000 (15:30 +0000)]
Bump because of the last minute mktime -> timegm fix
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
naddy [Fri, 8 Apr 2022 15:02:28 +0000 (15:02 +0000)]
lm, uguru, fins, wbenv: constify sensor tables
ok miod@
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@
kevlo [Fri, 8 Apr 2022 06:07:38 +0000 (06:07 +0000)]
regen
kevlo [Fri, 8 Apr 2022 06:07:01 +0000 (06:07 +0000)]
Add MT7921K.
ok deraadt@
dtucker [Fri, 8 Apr 2022 05:43:39 +0000 (05:43 +0000)]
Note that curve25519-sha256 was later published in RFC8731. ok djm@
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.
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@
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
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
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
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@