miod [Mon, 8 Apr 2024 20:02:18 +0000 (20:02 +0000)]
Introduce more assembler macros to deduplicate code and improve readability:
- one macro for the inline pseg_get logic used in various MMU trap handlers.
- one macro for the TSB locking logic in various PTE update routines.
- one macro for the sun4v rwindow content saving.
ok kettenis@
miod [Mon, 8 Apr 2024 20:00:27 +0000 (20:00 +0000)]
Remove dead code and data, fix typos, kill wrong comments.
ok kettenis@
miod [Mon, 8 Apr 2024 19:59:57 +0000 (19:59 +0000)]
Fix cut'n'paste error in data miss handler causing wrong label to be used in
some failure conditions.
miod [Mon, 8 Apr 2024 19:59:28 +0000 (19:59 +0000)]
Fix sun4v patching of sp_tlb_flush_ctx() to pass flags in the right register.
ok kettenis@
beck [Mon, 8 Apr 2024 19:57:40 +0000 (19:57 +0000)]
Make ASN1_TIME_set_string_X509 and ASN1_TIME_set_string match the man page
This makes it where people can't put dumb values in certs without
trying harder, and changes the regress to test this.
GENERALIZED times outside of the RFC5280 spec are required for OCSP
but these should be constructed with the GENERALIZED time string
setters.
ok tb@
tb [Mon, 8 Apr 2024 14:02:13 +0000 (14:02 +0000)]
Fix capping of VAPs
The previous approach introduced a cap, but it might not always be hit as
intended (I missed this on review). Fix this to check the cap after merging
an ASPA into an already existing VAP. Also free the list of providers since
nothing should be looking at it anymore.
Count VAPs that hit the limit with a new overflowed counter. There are
still a few aspects of the accounting that probably aren't entirely right.
This will be fixed at another point. It's just statistics after all.
with/ok claudio, ok job
tobhe [Mon, 8 Apr 2024 13:18:54 +0000 (13:18 +0000)]
Call daemon() only in parent and before proc_exec() to avoid orphaning child
processes. Synced from relayd.
ok florian@
tobhe [Mon, 8 Apr 2024 12:50:05 +0000 (12:50 +0000)]
Move daemon() after proc_setup() to sync with other proc.c daemons.
tobhe [Mon, 8 Apr 2024 12:48:26 +0000 (12:48 +0000)]
Call daemon() only in parent and before proc_exec() to avoid orphaning child
processes. Synced from relayd.
ok mlarkin@ dv@
tobhe [Mon, 8 Apr 2024 12:45:18 +0000 (12:45 +0000)]
Call daemon() only in parent and before proc_exec() to avoid orphaning child
processes. Synced from relayd.
ok kn@
jsg [Mon, 8 Apr 2024 02:51:14 +0000 (02:51 +0000)]
more ansi function decls
ok deraadt@
jsg [Mon, 8 Apr 2024 01:59:36 +0000 (01:59 +0000)]
drm: panel-orientation-quirks: Add quirk for GPD Win Mini
From Samuel Dionne-Riel
2f862fdc0fd802e728b6ca96bc78ec3f01bf161e in mainline linux
jsg [Mon, 8 Apr 2024 01:56:20 +0000 (01:56 +0000)]
drm: panel-orientation-quirks: Add quirk for Lenovo Legion Go
From Brenton Simpson
430143b0d3611f4a9c8434319e5e504244749e79 in mainline linux
kettenis [Sun, 7 Apr 2024 21:08:59 +0000 (21:08 +0000)]
The RISC-V architecture has cache-coherent DMA... until it doesn't. This
is indicated by a "dma-noncoherent" property on the bus or device nodes
in the device tree. Set the BUS_DMA_COHERENT flag on the DMA tag for
mainbus(4) and modify the flags based on the presence of "dma-coherent"
and "dma-noncoherent" properties where appropriate.
ok patrick@
tb [Sun, 7 Apr 2024 06:34:42 +0000 (06:34 +0000)]
Rework CMS_add_simple_smimecap()
This is an API to add an OID attribute to the set of SMIMECapabilities.
While attributes are complicated in general, this only supports simple
capabilities encoded as an OID with an optional integer parameter (e.g.,
the key size of a cipher).
Make this API transactional, i.e., don't leave a new empty set behind on
failure or leak the key size if setting the parameter on the X509_ALGOR
fails.
Also convert to single exit and add a doc comment with a reference.
ok beck
jsg [Sun, 7 Apr 2024 01:04:58 +0000 (01:04 +0000)]
match another two Alder Lake-N DesignWare I2C ids
Not in the Intel datasheet but are matched by their Windows driver.
ok mglocker@ who tested on Surface Go 4.
jsg [Sun, 7 Apr 2024 00:59:23 +0000 (00:59 +0000)]
regen
jsg [Sun, 7 Apr 2024 00:58:57 +0000 (00:58 +0000)]
another two Alder Lake-N DesignWare I2C ids
Not in the Intel datasheet but are matched by their Windows driver.
Seen on Surface Go 4.
ok mglocker@
kettenis [Sat, 6 Apr 2024 18:33:54 +0000 (18:33 +0000)]
Now that we support RISC-V CPUs that have MMUs with memory cachability
attributes, the "direct map" becomes problematic as it results in
mappings for the same physical memory pages with different cachability
addresses. The RISC-V specification of the "Svpbmt" extension doesn't
outright state that this is "verboten" like on some other
architectures that we support. But it does say that it may result in
access with the wrong attributes. So restrict the use of the direct
map to just mapping the 64MB block that the bootloader loaded us into.
To make this possible map the device tree later like we do on arm64.
This allows us to get rid of some assembly code in locore.S as a bonus!
ok miod@, jca@
bluhm [Sat, 6 Apr 2024 14:23:27 +0000 (14:23 +0000)]
IP multicast sysctl mrtmfc must not write outside of allocation.
Reading sysctl mrt_sysctl_mfc() allocates memory to be copied back
to user. Chunks of struct mfcinfo are copied from routing table
to linear heap memory. If the allocated memory was not a multiple
the struct size, a struct mfcinfo could be copied to a partially
unallocated destination. Check that the end of the struct is within
the allocation.
From Alfredo Ortega; OK claudio@
mpi [Sat, 6 Apr 2024 11:18:02 +0000 (11:18 +0000)]
Remove (unused) in-kernel event filtering, it's currently dead code.
All events are currently exported to userland in order to support complex
filters. If this becomes a bottleneck it should be possible to translate
(some) user-land filters to in-kernel fitlers.
Prodded by a diff from Christian Ludwig to also trace the tracing program.
ok claudio@
mpi [Sat, 6 Apr 2024 10:59:52 +0000 (10:59 +0000)]
Prevent accounting bug when an anon w/ swap slot is passed to uvm_anon_release()
uvm_anon_release() is always called for anon that have an associated page so
decrementing `uvmexp.swpgonly' is incorrect. This happened because the page
was cleared before calling uvm_anfree().
Reported by many including mvs@, miod@ and robert@
ok kettenis@, miod@
jsg [Sat, 6 Apr 2024 08:40:27 +0000 (08:40 +0000)]
regen
jsg [Sat, 6 Apr 2024 08:39:51 +0000 (08:39 +0000)]
more Alder Lake-N ids
from:
Intel Processor and Intel Core i3 N-Series
Datasheet, Volume 1 of 2, Doc. No.: 759603, Rev.: 001
deraadt [Fri, 5 Apr 2024 18:01:56 +0000 (18:01 +0000)]
ANSI functions; ok tb
job [Fri, 5 Apr 2024 16:05:15 +0000 (16:05 +0000)]
Don't emit Validated ASPAs for Customer ASIDs with more than MAX_ASPA_PROVIDERS
The number of providers in a single ASPA object already was limited to
MAX_ASPA_PROVIDERS, now also impose a limit on the total number of providers
across multiple ASPA objects. If the MAX_ASPA_PROVIDERS limit is hit, omit
the Customer ASID's entry from OpenBGPD and JSON output.
OK tb@
jsg [Fri, 5 Apr 2024 14:31:57 +0000 (14:31 +0000)]
use inline functions instead of do while(0) for dev_*
avoids unused variable warning on gcc archs with ttm_tt.c rev 1.21
reported by deraadt@
deraadt [Fri, 5 Apr 2024 14:16:05 +0000 (14:16 +0000)]
delete msyscall stub
deraadt [Fri, 5 Apr 2024 14:15:37 +0000 (14:15 +0000)]
sync
deraadt [Fri, 5 Apr 2024 14:15:13 +0000 (14:15 +0000)]
msyscall(2) goes away
deraadt [Fri, 5 Apr 2024 13:55:26 +0000 (13:55 +0000)]
noone calls msyscall() anymore.
deraadt [Fri, 5 Apr 2024 13:51:47 +0000 (13:51 +0000)]
ld.so should stop calling msyscall(2), since it is fully neutered and
about to be removed. Please be careful building through this, you need
a kernel at least March 29th or so to build through it, otherwise use
snapshots to cross over.
ok various people
deraadt [Fri, 5 Apr 2024 12:58:49 +0000 (12:58 +0000)]
On machines lacking xonly support hardware, we emulate xonly in the
copyin(9) layer below system calls, using a 4-entry lookup; the 4th
entry is libc.so text. We were assuming, or rather insisting, that
on all our architectures libc.so text is treated as xonly, even if
the linker was behind in it's game.
Since msyscall(2) is gone, kernel no longer has information about the
start,len of libc.so text segment. But we can instead use the (same)
start,len range of pinsyscalls() instead for this purpose.
ld.so is passing the same text-range to the kernel in this position.
regression tests run by anton discovered that libc.so text had become
copyin-readable.
ok kettenis
deraadt [Fri, 5 Apr 2024 12:51:15 +0000 (12:51 +0000)]
Esure the base,len range provided by ld.so is definately in the map.
Being outside the map doesn't seem like it can do anything bad.
Discussed with kettenis
nicm [Thu, 4 Apr 2024 22:44:40 +0000 (22:44 +0000)]
Pick newest session as documented, not oldest, from Magnus Gross.
semarie [Thu, 4 Apr 2024 16:00:51 +0000 (16:00 +0000)]
set right mode on ssh-agent at boot-time
which sthen@
ok deraadt@
tb [Thu, 4 Apr 2024 09:30:43 +0000 (09:30 +0000)]
Remove incorrect function counts
Vincent Lee spotted that I failed to update numbers that count how many
functions are documented here when removing {CRYPTO,OPENSSL}_realloc.
This isn't helpful information and nobody will remember to go look for
such numbers next time this page is adjusted, so remove the counts.
agreement from jmc
jsg [Thu, 4 Apr 2024 08:14:53 +0000 (08:14 +0000)]
drm/amdgpu: fix use-after-free bug
From Vitaly Prosyak
e87e08c94c9541b4e18c4c13f2f605935f512605 in linux-6.6.y/6.6.24
22207fd5c80177b860279653d017474b2812af5e in mainline linux
jsg [Thu, 4 Apr 2024 08:13:21 +0000 (08:13 +0000)]
drm/amd/display: Clear OPTC mem select on disable
From Ilya Bakoulin
2ceddecdd0ef6fe7cdb31ec14ff2e26ed938fa4b in linux-6.6.y/6.6.24
b4e05bb1dec53fe28c3c88425aded824498666e5 in mainline linux
jsg [Thu, 4 Apr 2024 08:11:23 +0000 (08:11 +0000)]
drm/amd/display: Disconnect phantom pipe OPP from OPTC being disabled
From George Shen
6a1cb68b9810f71644eb5d2d663e59083540bada in linux-6.6.y/6.6.24
7bdbfb4e36e34eb788e44f27666bf0a2b3b90803 in mainline linux
jsg [Thu, 4 Apr 2024 08:09:03 +0000 (08:09 +0000)]
drm/amd/display: Fix hang/underflow when transitioning to ODM4:1
From Ilya Bakoulin
ae62f1dde66a6f0eee98defc4c7a346bd5acd239 in linux-6.6.y/6.6.24
e7b2b108cdeab76a7e7324459e50b0c1214c0386 in mainline linux
jsg [Thu, 4 Apr 2024 08:07:39 +0000 (08:07 +0000)]
drm/i915/gt: Reset queue_priority_hint on parking
From Chris Wilson
3b031e4fcb2740988143c303f81f69f18ce86325 in linux-6.6.y/6.6.24
4a3859ea5240365d21f6053ee219bb240d520895 in mainline linux
jsg [Thu, 4 Apr 2024 08:05:26 +0000 (08:05 +0000)]
drm/i915: Do not match JSL in ehl_combo_pll_div_frac_wa_needed()
From Jonathon Hall
07c011e3351da3e5d4633ec1b259457b1626faa4 in linux-6.6.y/6.6.24
e41d769f1a7a1dc533c35ef7b366be3dbf432a1c in mainline linux
jsg [Thu, 4 Apr 2024 08:03:27 +0000 (08:03 +0000)]
drm/i915/dsi: Go back to the previous INIT_OTP/DISPLAY_ON order, mostly
From Ville Syrjala
69fa0e23a6a3b30dc14b731c7e5818375aaa4da6 in linux-6.6.y/6.6.24
18846627ef1210dcd55d65342b055ea97a46ffff in mainline linux
tb [Thu, 4 Apr 2024 08:02:21 +0000 (08:02 +0000)]
Recommit a better version of the removal of the F5 workaround
Unlike for previous TLS versions, TLSv1.3 servers can send the supported
groups extension to inform a client of the server's preferences. The
intention is that a client can adapt for subsequent commits. We ignore
this info for now, but sthen ran into java-based servers that do this.
Thus, rejecting the extension outright was incorrect. Instead, only allow
the extension in TLSv1.3 encrypted extensions. This way the F5 workaround
is also disabled, but we continue to interoperate with TLSv1.3 servers that
do follow the last paragraph of RFC 8446, section 4.2.7.
This mostly adjusts outdated/misleading comments.
ok jsing sthen
jsg [Thu, 4 Apr 2024 08:00:22 +0000 (08:00 +0000)]
drm/i915/bios: Tolerate devdata==NULL in intel_bios_encoder_supports_dp_dual_mode()
From Ville Syrjala
a891add409e3bc381f4f68c2ce9d953f1865cb1f in linux-6.6.y/6.6.24
32e39bab59934bfd3f37097d4dd85ac5eb0fd549 in mainline linux
jsg [Thu, 4 Apr 2024 07:58:45 +0000 (07:58 +0000)]
drm/i915/hwmon: Fix locking inversion in sysfs getter
From Janusz Krzysztofik
510c5f5e4837cab803c4f594c5f79783ff7b463d in linux-6.6.y/6.6.24
b212b79768ccde74429f872c37618c543fa11333 in mainline linux
jsg [Thu, 4 Apr 2024 07:56:50 +0000 (07:56 +0000)]
drm/amdgpu: fix deadlock while reading mqd from debugfs
From Johannes Weiner
197f6d6987c55860f6eea1c93e4f800c59078874 in linux-6.6.y/6.6.24
8678b1060ae2b75feb60b87e5b75e17374e3c1c5 in mainline linux
jsg [Thu, 4 Apr 2024 07:53:08 +0000 (07:53 +0000)]
drm/amdkfd: fix TLB flush after unmap for GFX9.4.2
From Eric Huang
2684393685f7f3e264a55d4b55282e780bc2376d in linux-6.6.y/6.6.24
1210e2f1033dc56b666c9f6dfb761a2d3f9f5d6c in mainline linux
jsg [Thu, 4 Apr 2024 07:51:23 +0000 (07:51 +0000)]
Revert "drm/amd/display: Fix sending VSC (+ colorimetry) packets for DP/eDP displays without PSR"
From Harry Wentland
78516979792d4bf890e1df24c7f425ebe920ad29 in linux-6.6.y/6.6.24
78aca9ee5e012e130dbfbd7191bc2302b0cf3b37 in mainline linux
jsg [Thu, 4 Apr 2024 07:48:59 +0000 (07:48 +0000)]
drm/amd/display: handle range offsets in VRR ranges
From Alex Deucher
23b99c7bf6ecf643a4a37bd98eeae81323aef6f8 in linux-6.6.y/6.6.24
937844d661354bf142dc1c621396fdab10ecbacc in mainline linux
jsg [Thu, 4 Apr 2024 07:47:26 +0000 (07:47 +0000)]
drm/i915: Don't explode when the dig port we don't have an AUX CH
From Ville Syrjala
e21fee1035b9172fb7dc0e77692df7ebdbfce425 in linux-6.6.y/6.6.24
0b385be4c3ccd5636441923d7cad5eda6b4651cb in mainline linux
jsg [Thu, 4 Apr 2024 07:43:15 +0000 (07:43 +0000)]
drm/i915: Check before removing mm notifier
From Nirmoy Das
a30c36bc0cfc32ec3662408e6a5cdf8a809fde51 in linux-6.6.y/6.6.24
01bb1ae35006e473138c90711bad1a6b614a1823 in mainline linux
jsg [Thu, 4 Apr 2024 07:39:57 +0000 (07:39 +0000)]
drm/amdgpu/pm: Fix the error of pwm1_enable setting
From Ma Jun
6f3c1dabe8d014ad95b72fc56276d82a6f5e6ab3 in linux-6.6.y/6.6.24
0dafaf659cc463f2db0af92003313a8bc46781cd in mainline linux
jsg [Thu, 4 Apr 2024 07:38:34 +0000 (07:38 +0000)]
drm/amd/display: Use freesync when `DRM_EDID_FEATURE_CONTINUOUS_FREQ` found
From Mario Limonciello
95232806972adab87d6979256df37f5ceb1ad561 in linux-6.6.y/6.6.24
2f14c0c8cae8e9e3b603a3f91909baba66540027 in mainline linux
jsg [Thu, 4 Apr 2024 07:35:50 +0000 (07:35 +0000)]
drm/bridge: add ->edid_read hook and drm_bridge_edid_read()
From Jani Nikula
2b6aaf7b193be2bfa4e1af90c0d96e78a80aef69 in linux-6.6.y/6.6.24
d807ad80d811ba0c22adfd871e2a46491f80d6e2 in mainline linux
jsg [Thu, 4 Apr 2024 07:33:22 +0000 (07:33 +0000)]
drm/ttm: Make sure the mapped tt pages are decrypted when needed
From Zack Rusin
de125efb3bae7720d10364a9ab6785466e4e2461 in linux-6.6.y/6.6.24
71ce046327cfd3aef3f93d1c44e091395eb03f8f in mainline linux
jsg [Thu, 4 Apr 2024 07:29:56 +0000 (07:29 +0000)]
drm/amd/display: Fix noise issue on HDMI AV mute
From Leo Ma
066bbc4306445f16e529a13a6e8d05ec6074416e in linux-6.6.y/6.6.24
69e3be6893a7e668660b05a966bead82bbddb01d in mainline linux
jsg [Thu, 4 Apr 2024 07:27:46 +0000 (07:27 +0000)]
drm/amd/display: Return the correct HDCP error code
From Rodrigo Siqueira
c7c855fd3d5af01496aaa8be93a1e9811166cf11 in linux-6.6.y/6.6.24
e64b3f55e458ce7e2087a0051f47edabf74545e7 in mainline linux
jsg [Thu, 4 Apr 2024 07:26:19 +0000 (07:26 +0000)]
drm/amdgpu: amdgpu_ttm_gart_bind set gtt bound flag
From Philip Yang
6fcd12cb90888ef2d8af8d4c04e913252eee4ef3 in linux-6.6.y/6.6.24
6c6064cbe58b43533e3451ad6a8ba9736c109ac3 in mainline linux
jsg [Thu, 4 Apr 2024 07:23:40 +0000 (07:23 +0000)]
drm/panel: do not return negative error codes from drm_panel_get_modes()
From Jani Nikula
a686732df6cecc3561595e6ce7a962a0121eed00 in linux-6.6.y/6.6.24
fc4e97726530241d96dd7db72eb65979217422c9 in mainline linux
jsg [Thu, 4 Apr 2024 07:20:55 +0000 (07:20 +0000)]
drm/probe-helper: warn about negative .get_modes()
From Jani Nikula
12bbe2c25cdb571190d523fd814e7696964a84d9 in linux-6.6.y/6.6.24
7af03e688792293ba33149fb8df619a8dff90e80 in mainline linux
jsg [Thu, 4 Apr 2024 05:43:43 +0000 (05:43 +0000)]
add pgprot_decrypted() for 6.6.24 drm
jsg [Thu, 4 Apr 2024 05:38:35 +0000 (05:38 +0000)]
add cc_platform_has() for 6.6.24 drm
millert [Thu, 4 Apr 2024 02:20:01 +0000 (02:20 +0000)]
tzset_basic: only call issetugid(2) if TZ has changed
If we are just going to return without parsing TZ, there is no need
to call issetugid(2) first. We only need to call issetugid(2) the
first time TZ is checked or when the value of TZ has changed.
Previously, we called issetugid(2) for every call to the functions
described by localtime(3). OK deraadt@
kettenis [Wed, 3 Apr 2024 22:21:48 +0000 (22:21 +0000)]
Stopping grabbing the kernel lock in kbind(2).
ok mpi@
gkoehler [Wed, 3 Apr 2024 19:30:59 +0000 (19:30 +0000)]
Initialize earlier macppc's and powerpc64's pmap_hash_lock
At boot, the powerpc64 kernel was calling
pmap_bootstrap -> pmap_kenter_pa -> mtx_enter(&pmap_hash_lock)
before it did
pmap_init -> mtx_init(&pmap_hash_lock, IPL_HIGH)
Change from mtx_init to MUTEX_INITIALIZER. This allows an option
WITNESS kernel to boot without warning of an uninitialized mutex.
Also change macppc's pmap_hash_lock from __ppc_lock_init to
PPC_LOCK_INITIALIZER, though WITNESS doesn't see this lock.
ok mpi@
miod [Wed, 3 Apr 2024 18:43:32 +0000 (18:43 +0000)]
pmap_virtual_space() and pmap_steal_memory() are mutually exclusive, so
make sure only one of them is prototyped and only one of them is implemented.
ok mpi@ kettenis@
miod [Wed, 3 Apr 2024 18:41:38 +0000 (18:41 +0000)]
Reuse the timeout from struct scsi_xfer rather than declaring one in
struct ncr53c9x_ecb.
When the scsi_xfer timeout was introduced *cough* 23 years ago, SCSI drivers
were progressively updated to use this, but for some reason that driver got
missed.
ok dlg@ krw@
gkoehler [Wed, 3 Apr 2024 18:32:47 +0000 (18:32 +0000)]
Change ipmi(4)'s taskq from IPL_NONE to IPL_MPFLOOR
The IPL_NONE mutex didn't block interrupts that can cause a powerpc64
kernel with option WITNESS to "panic: acquiring blockable sleep lock
with spinlock or critical section held (kernel_lock) &kernel_lock".
ok mpi@
deraadt [Wed, 3 Apr 2024 15:21:03 +0000 (15:21 +0000)]
sync
claudio [Wed, 3 Apr 2024 08:58:55 +0000 (08:58 +0000)]
Switch one of the tcpmd5 passwords over to use the hex key instead.
This way both modes are tested.
claudio [Wed, 3 Apr 2024 08:57:26 +0000 (08:57 +0000)]
Rewrite str2key() to not use strtoul() to convert 2 hexdigits into one
char. Instead use a simple function to do the conversion per nibble.
OK deraadt@ tb@
anton [Wed, 3 Apr 2024 06:01:11 +0000 (06:01 +0000)]
Since ssh-agent(1) is only readable by root by now, use ssh(1) while
generating data in tests.
deraadt [Wed, 3 Apr 2024 04:36:53 +0000 (04:36 +0000)]
Reading https://github.com/Geal/rust-syslog/issues/79, I came to a
related conclusion that our syslog_r should not stomp on errno.
The errno being returned from sendsyslog() isn't exactly compatible
with the what a legacy syslog_r() would do here anyways, and it is
better to just be void and non-stomping;
ok millert bluhm
tb [Wed, 3 Apr 2024 04:20:13 +0000 (04:20 +0000)]
Fix warning about DistributionPointName type
The warning incorrectly mentioned GEN_OTHERNAME, while this is about
fullName vs nameRelativeToCRLIssuer. Also add a comment to indicate
that there's no enum or macros obviate the meaning of the magic 0.
ok claudio job
guenther [Wed, 3 Apr 2024 02:01:21 +0000 (02:01 +0000)]
Add ci_cpuid_level and ci_vendor holding the per-CPU basic cpuid
level and a numeric mapping of the cpu vendor, both from CPUID(0).
Convert the general use of strcmp(cpu_vendor) to simple numeric
tests of ci_vendor. Track the minimum of all ci_cpuid_level in the
cpuid_level global and continue to use that for what we vmm exposes.
AMD testing help matthieu@ krw@
ok miod@ deraadt@ cheloha@
sthen [Tue, 2 Apr 2024 22:50:54 +0000 (22:50 +0000)]
Backout previous commit (intending that libressl client rejects a supported
groups extension from the server). It triggers 'CONNECT_CR_SRVR_HELLO:tlsv1
alert decode error' when connecting to a (modern) java server (tomcat 10.1.18
on openjdk 17.0.10).
"please revert" tb@
jan [Tue, 2 Apr 2024 20:59:48 +0000 (20:59 +0000)]
Implement and enable TSO in vmx(4)
Tested with IPv4/IPv6 and vlan(4).
ok jmatthew@
tobhe [Tue, 2 Apr 2024 19:58:28 +0000 (19:58 +0000)]
Add check to make sure EAP header length matches expected payload length.
ok markus@ yasuoka@
claudio [Tue, 2 Apr 2024 14:23:15 +0000 (14:23 +0000)]
Implement SO_ACCEPTCONN in getsockopt(2)
Requested by robert@
OK mvs@ millert@ deraadt@
deraadt [Tue, 2 Apr 2024 12:22:38 +0000 (12:22 +0000)]
Oops, incorrect hex conversion spotted by claudio. While here try to
improve how it reads a bit better. Surprising the regression tests
didn't spot this error, maybe it fails to roundtrip the values.
mvs [Tue, 2 Apr 2024 12:21:39 +0000 (12:21 +0000)]
Remove wrong "temporary udp error" comment in filt_so{read,write}(). Not
only udp(4) sockets set and check `so_error'.
No functional changes.
ok bluhm
claudio [Tue, 2 Apr 2024 10:04:28 +0000 (10:04 +0000)]
Remove unused file
deraadt [Tue, 2 Apr 2024 10:02:08 +0000 (10:02 +0000)]
for parse_ipqos(), use strtonum() instead of mostly idiomatic strtoul(),
but wow it's so gross.
ok djm
deraadt [Tue, 2 Apr 2024 09:56:58 +0000 (09:56 +0000)]
can shortcut by returning strtonum() value directly; ok djm
deraadt [Tue, 2 Apr 2024 09:52:14 +0000 (09:52 +0000)]
rewrite convtime() to use a isdigit-scanner and strtonum() instead of
strange strtoul can might be fooled by garage characters.
passes regress/usr.bin/ssh/unittests/misc
ok djm
claudio [Tue, 2 Apr 2024 09:48:24 +0000 (09:48 +0000)]
Remove unused ptr[3] char array in pkcs11_decode_hex.
OK deraadt@
deraadt [Tue, 2 Apr 2024 09:32:28 +0000 (09:32 +0000)]
Replace non-idiomatic strtoul(, 16) to parse a region of 2-character
hex sequences with a low-level replacement designed just for the task.
ok djm
deraadt [Tue, 2 Apr 2024 09:29:31 +0000 (09:29 +0000)]
Use strtonum() instead of severely non-idomatic strtoul()
In particular this will now reject trailing garbage, ie. '12garbage'.
ok djm
jsg [Tue, 2 Apr 2024 08:51:06 +0000 (08:51 +0000)]
fix unintended sizeof(pointer) introduced in rev 1.41
found with noderef.cocci, ok deraadt@
deraadt [Tue, 2 Apr 2024 08:39:16 +0000 (08:39 +0000)]
Delete the msyscall mechanism entirely, since mimmutable+pinsyscalls has
replaced it with a more strict mechanism, which happens to be lockless O(1)
rather than micro-lock O(1)+O(log N). Also nop-out the sys_msyscall(2) guts,
but leave the syscall around for a bit longer so that people can build through
it, since ld.so(1) still wants to call it.
deraadt [Tue, 2 Apr 2024 08:27:22 +0000 (08:27 +0000)]
remove useless whitespace; from Jia Tan
deraadt [Tue, 2 Apr 2024 08:21:04 +0000 (08:21 +0000)]
also relink ssh-agent
ratchov [Tue, 2 Apr 2024 05:32:10 +0000 (05:32 +0000)]
sndiod: Migrate clients upon watchdog timeout
When -F is used, fixes the difference in behavior between watchdog
timer expiry and other errors.
ratchov [Tue, 2 Apr 2024 05:21:32 +0000 (05:21 +0000)]
sndiod: Fix confusion between the slot and ctlslot pointers
Fixes crash when the device is disconnected and the clients are not
migrated to another device.
tb [Tue, 2 Apr 2024 04:04:07 +0000 (04:04 +0000)]
Simplify ecx_cms_sign_or_verify() using X509_ALGOR_set0_by_nid()
ok jsing
jsg [Mon, 1 Apr 2024 22:49:04 +0000 (22:49 +0000)]
init var to fix missing symtab section path
found by smatch, ok mpi@
millert [Mon, 1 Apr 2024 21:09:44 +0000 (21:09 +0000)]
Advertise SMTPUTF8 and 8BITMIME extensions in EHLO.
Fixes potential interoperability issues when the real MTA
supports those extensions. From Arnt Gulbrandsen, OK benno@
benno [Mon, 1 Apr 2024 19:29:16 +0000 (19:29 +0000)]
pinsyscalls appeared in 7.5
ok deraadt