openbsd
3 weeks agoAdd initial-repeat-time option to allow the first repeat time to be
nicm [Mon, 7 Oct 2024 08:50:47 +0000 (08:50 +0000)]
Add initial-repeat-time option to allow the first repeat time to be
increased and later reduced, from David le Blanc in GitHub issue 4164.

3 weeks agoAdd support for AX88772D.
kevlo [Mon, 7 Oct 2024 07:35:40 +0000 (07:35 +0000)]
Add support for AX88772D.

AX88772D is a USB 2.0 device.  It is very similar to AX88179A overall.
The most significant difference is that AX88179A supports 1000Mbps speeds
while AX88772D does not.

grammer fix from jmc@

ok miod@

3 weeks agodrm/amd/display: Validate backlight caps are sane
jsg [Mon, 7 Oct 2024 05:30:12 +0000 (05:30 +0000)]
drm/amd/display: Validate backlight caps are sane

From Mario Limonciello
c886061bbdd1f37190939b11926055413e86a56c in linux-6.6.y/6.6.54
327e62f47eb57ae5ff63de82b0815557104e439a in mainline linux

3 weeks agodrm/amd/display: Round calculated vtotal
jsg [Mon, 7 Oct 2024 05:28:20 +0000 (05:28 +0000)]
drm/amd/display: Round calculated vtotal

From Robin Chen
9ce1ee22dc6829175ec2dfd74d78d79eb20e0732 in linux-6.6.y/6.6.54
c03fca619fc687338a3b6511fdbed94096abdf79 in mainline linux

3 weeks agodrm/amd/display: Add HDMI DSC native YCbCr422 support
jsg [Mon, 7 Oct 2024 05:25:26 +0000 (05:25 +0000)]
drm/amd/display: Add HDMI DSC native YCbCr422 support

From Leo Ma
55fcbe5f60865717479a9d6a8d8d076c8f443759 in linux-6.6.y/6.6.54
07bfa9cdbf3cd2daadfaaba0601f126f45951ffa in mainline linux

3 weeks agodrm/amd/display: Fix Synaptics Cascaded Panamera DSC Determination
jsg [Mon, 7 Oct 2024 05:23:13 +0000 (05:23 +0000)]
drm/amd/display: Fix Synaptics Cascaded Panamera DSC Determination

From Fangzhi Zuo
b5d38f1d4acb3a0aa0763d4d70bec6c9cf51300c in linux-6.6.y/6.6.54
4437936c6b696b98f3fe1d8679a2788c41b4df77 in mainline linux

3 weeks agodrm/radeon/evergreen_cs: fix int overflow errors in cs track offsets
jsg [Mon, 7 Oct 2024 05:20:34 +0000 (05:20 +0000)]
drm/radeon/evergreen_cs: fix int overflow errors in cs track offsets

From Nikita Zhandarovich
fa94d60546d2ba8c55f3c87483404162f1fbe863 in linux-6.6.y/6.6.54
3fbaf475a5b8361ebee7da18964db809e37518b7 in mainline linux

3 weeks agodrm/amd/amdgpu: Properly tune the size of struct
jsg [Mon, 7 Oct 2024 05:17:14 +0000 (05:17 +0000)]
drm/amd/amdgpu: Properly tune the size of struct

From WangYuli
8e7760ed234f55f28dfd68254d08c9d0527dd766 in linux-6.6.y/6.6.54
0cee47cde41e22712c034ae961076067d4ac13a0 in mainline linux

3 weeks agodrm/radeon: properly handle vbios fake edid sizing
jsg [Mon, 7 Oct 2024 05:14:50 +0000 (05:14 +0000)]
drm/radeon: properly handle vbios fake edid sizing

From Alex Deucher
de67850b401946dc683103d11d7814ae5611750e in linux-6.6.y/6.6.54
17c6baff3d5f65c8da164137a58742541a060b2f in mainline linux

3 weeks agodrm/amdgpu: properly handle vbios fake edid sizing
jsg [Mon, 7 Oct 2024 05:12:00 +0000 (05:12 +0000)]
drm/amdgpu: properly handle vbios fake edid sizing

From Alex Deucher
78b9e10b3bd1bb04c40f9f12b899951a6904772b in linux-6.6.y/6.6.54
8155566a26b8d6c1dd914f06a0c652e4e2f2adf1 in mainline linux

3 weeks agodrm/amd/display: Add null check for set_output_gamma in dcn30_set_output_transfer_func
jsg [Mon, 7 Oct 2024 05:02:58 +0000 (05:02 +0000)]
drm/amd/display: Add null check for set_output_gamma in dcn30_set_output_transfer_func

From Srinivasan Shanmugam
ddf9ff244d704e1903533f7be377615ed34b83e7 in linux-6.6.y/6.6.54
08ae395ea22fb3d9b318c8bde28c0dfd2f5fa4d2 in mainline linux

3 weeks agodrop redundant AF attach ioctl
kn [Mon, 7 Oct 2024 04:29:01 +0000 (04:29 +0000)]
drop redundant AF attach ioctl

SIOCAIFADDR_IN6 to configure an IPv6 address does everything SIOCIFAFATTACH
does, i.e. it enables IPv6 on the interface if not done so already.

vm.conf(5) 'local inet6' works as before.

OK mlarkin

3 weeks agoinclude proc.h to fix APMDEBUG build
jsg [Mon, 7 Oct 2024 01:31:22 +0000 (01:31 +0000)]
include proc.h to fix APMDEBUG build

3 weeks agoFix the rx refill timeout to only refill rings that are currently empty.
jmatthew [Sun, 6 Oct 2024 23:43:18 +0000 (23:43 +0000)]
Fix the rx refill timeout to only refill rings that are currently empty.
This is normally how the timeout works, but in this driver it's complicated
by the use of separate rx and ag rings.

This prevents the refill timeout from operating on a ring concurrently
with an rx interrupt, which leads to corruption and crashes as experienced
by bluhm@

ok dlg@
earlier version tested by and ok bluhm@

3 weeks agoremove unused DEBUG_PLEDGE lines; ok deraadt@
jsg [Sun, 6 Oct 2024 23:39:24 +0000 (23:39 +0000)]
remove unused DEBUG_PLEDGE lines; ok deraadt@

3 weeks agoTurn off finite field (a.k.a modp) Diffie-Hellman key exchange in sshd
djm [Sun, 6 Oct 2024 23:37:17 +0000 (23:37 +0000)]
Turn off finite field (a.k.a modp) Diffie-Hellman key exchange in sshd
by default. Specifically, this removes the diffie-hellman-group* and
diffie-hellman-group-exchange-* methods. The client is unchanged and
continues to support these methods by default.

Finite field Diffie Hellman is slow and computationally expensive for
the same security level as Elliptic Curve DH or PQ key agreement while
offering no redeeming advantages.

ECDH has been specified for the SSH protocol for 15 years and some
form of ECDH has been the default key exchange in OpenSSH for the last
14 years.

ok markus@

3 weeks agoremove unneeded includes and defines; ok miod@
jsg [Sun, 6 Oct 2024 22:47:38 +0000 (22:47 +0000)]
remove unneeded includes and defines; ok miod@

3 weeks agouse rdmsr_safe() instead of rdmsr() for probing feature
semarie [Sun, 6 Oct 2024 16:24:02 +0000 (16:24 +0000)]
use rdmsr_safe() instead of rdmsr() for probing feature

the second could raise general protection fault on non-existant MSR

fix with help of jsg@
ok dv@

3 weeks agonew opt-in PATCH_QUIET aka. patch(1) -s; OK tb
kn [Sun, 6 Oct 2024 10:24:52 +0000 (10:24 +0000)]
new opt-in PATCH_QUIET aka. patch(1) -s;  OK tb

3 weeks agoTry to stay near the same line in modes if the current one is removed.
nicm [Sun, 6 Oct 2024 09:30:22 +0000 (09:30 +0000)]
Try to stay near the same line in modes if the current one is removed.

3 weeks agoremove unused axppmic_rsb_cd, axppmic at rsb uses axppmic_cd
jsg [Sun, 6 Oct 2024 03:46:48 +0000 (03:46 +0000)]
remove unused axppmic_rsb_cd, axppmic at rsb uses axppmic_cd

3 weeks agoremove unused sched_cost_load variable
jsg [Sun, 6 Oct 2024 01:50:56 +0000 (01:50 +0000)]
remove unused sched_cost_load variable

3 weeks agoremove unused wi_usb_cd, wi at usb uses wi_cd
jsg [Sun, 6 Oct 2024 01:28:39 +0000 (01:28 +0000)]
remove unused wi_usb_cd, wi at usb uses wi_cd

3 weeks agoremove unused atw_beacon_len_adjust variable
jsg [Sun, 6 Oct 2024 01:12:15 +0000 (01:12 +0000)]
remove unused atw_beacon_len_adjust variable

3 weeks agoSeperate -> Separate
jsg [Sun, 6 Oct 2024 00:13:42 +0000 (00:13 +0000)]
Seperate -> Separate

3 weeks agoMake scaling available for normal mice, too; not just for touchpads.
chrisz [Sat, 5 Oct 2024 13:27:16 +0000 (13:27 +0000)]
Make scaling available for normal mice, too; not just for touchpads.
Add reverse_scrolling to the manpage.

ok bru@

3 weeks agoSend focus events to pane when entering or leaving popup, GitHub issue
nicm [Sat, 5 Oct 2024 12:10:16 +0000 (12:10 +0000)]
Send focus events to pane when entering or leaving popup, GitHub issue
3991.

3 weeks agoremove unneeded includes
jsg [Sat, 5 Oct 2024 09:54:39 +0000 (09:54 +0000)]
remove unneeded includes

3 weeks agoerror on long locator lines, don't overflow buffers
jsg [Sat, 5 Oct 2024 01:07:38 +0000 (01:07 +0000)]
error on long locator lines, don't overflow buffers
found with afl, feedback and ok millert@

3 weeks agoRemove some debugging left behind.
nicm [Sat, 5 Oct 2024 00:35:35 +0000 (00:35 +0000)]
Remove some debugging left behind.

3 weeks agoAdd copy-mode-position-format to configure the position indicator.
nicm [Sat, 5 Oct 2024 00:32:55 +0000 (00:32 +0000)]
Add copy-mode-position-format to configure the position indicator.

3 weeks agoDocument missing window-layout-changed hook.
nicm [Fri, 4 Oct 2024 22:36:11 +0000 (22:36 +0000)]
Document missing window-layout-changed hook.

3 weeks agoAllow boot loader to run as AMD SEV guest on QEMU with EFI.
bluhm [Fri, 4 Oct 2024 22:21:28 +0000 (22:21 +0000)]
Allow boot loader to run as AMD SEV guest on QEMU with EFI.

When efibooting amd64, the boot loader rewrites the page table built
by EFI firmware to ensure that there are no read-only mappings.
The rewrite is needed for some HP EFI BIOS, that maps computrace
section read-only.
When efibooting on SEV enabled QEMU, we would have to ensure the
crypt bit is set when changing page tables.  However, there is no
need for the HP workaround when booting on QEMU (or any other VM),
so just do not modify the page table, when SEV gest mode is detected.

from Sebastian Sturm; via hshoexer@; OK kettenis@

3 weeks agoAllow kernel boot on QEMU with AMD SEV.
bluhm [Fri, 4 Oct 2024 21:15:52 +0000 (21:15 +0000)]
Allow kernel boot on QEMU with AMD SEV.

When booting an OpenBSD kernel on Linux QEMU with SEV enabled, the
hypervisor does not forward the SME feature, only the SEV bit is
set.  Therefore do not depend on SME when checking for SEV guest
mode in locore0.

from Sebastian Sturm; via hshoexer@; OK jsg@

3 weeks agoAdd -y flag to disable confirmation prompts in modes, GitHub issue 4152.
nicm [Fri, 4 Oct 2024 19:16:13 +0000 (19:16 +0000)]
Add -y flag to disable confirmation prompts in modes, GitHub issue 4152.

3 weeks agoRemove unused SIGEMT.
miod [Fri, 4 Oct 2024 19:00:27 +0000 (19:00 +0000)]
Remove unused SIGEMT.

3 weeks agoIncrease psp(4) timeouts.
bluhm [Fri, 4 Oct 2024 16:58:26 +0000 (16:58 +0000)]
Increase psp(4) timeouts.

On EPYC 9124 psp(4) seems to need more to time to respond.  Otherwise
it will not attach.  Increase timeouts for both polling during
autoconf and interrupt during normal operation.

from hshoexer@ OK mlarkin@

3 weeks agoDo not translate BSpace as Unicode, GitHub issue 4156.
nicm [Fri, 4 Oct 2024 14:55:17 +0000 (14:55 +0000)]
Do not translate BSpace as Unicode, GitHub issue 4156.

3 weeks agoRemove two MHI LOOPBACK channels, there's no need to match them.
kevlo [Fri, 4 Oct 2024 07:46:33 +0000 (07:46 +0000)]
Remove two MHI LOOPBACK channels, there's no need to match them.

Also move PCI ops registration ahead.  That way the ops will be registered
if any subsequent operations within the case processing require the ops to

See Linux commit fbb2a14afe00a5691b43cd19c946472e59e16fc6 and
515bcdf587f9911f2d5de51524cb7e048d295052

ok stsp@

3 weeks agoRework of copy mode commands ("send-keys -X") to parse the arguments so
nicm [Fri, 4 Oct 2024 07:03:08 +0000 (07:03 +0000)]
Rework of copy mode commands ("send-keys -X") to parse the arguments so
that flags may be detected propertly rather than just looking for
strings ("-O" and so on). Also add -C and -P flags to the copy commands:
-C prevents the commands from sending the text to the clipboard and -P
prevents them from adding the text as a paste buffer.

Note some of the default key bindings change to add "--" and any similar
custom key bindings using "send-keys -X" may need a similar change.

GitHub issue 4153.

3 weeks agoAs with other multiqueue drivers, print the number of queues we set up
jmatthew [Fri, 4 Oct 2024 06:37:22 +0000 (06:37 +0000)]
As with other multiqueue drivers, print the number of queues we set up
along with the interrupt and ethernet address details.

ok dlg@

3 weeks agoExpose {T,R}X desc trail and add link_enabled field to prepare VF
yasuoka [Fri, 4 Oct 2024 05:22:10 +0000 (05:22 +0000)]
Expose {T,R}X desc trail and add link_enabled field to prepare VF
support.  diff from naito.yuichiro at gmail.com

ok jan jmatthew

3 weeks agoIn rucheck() sum up the tusage from all threads to get the real current
claudio [Thu, 3 Oct 2024 10:20:05 +0000 (10:20 +0000)]
In rucheck() sum up the tusage from all threads to get the real current
runtime of the process. Also this no longer needs the SCHED_LOCK().
OK mpi@

3 weeks agoFix the clock_gettime() handler for pthread_getcpuclockid() to
claudio [Thu, 3 Oct 2024 10:18:29 +0000 (10:18 +0000)]
Fix the clock_gettime() handler for pthread_getcpuclockid() to
use the proper way to read tu_runtime.
OK mpi@

3 weeks agovio: Increase rx mbuf size with lro
sf [Thu, 3 Oct 2024 08:59:49 +0000 (08:59 +0000)]
vio: Increase rx mbuf size with lro

bluhm found that using bigger rx mbufs helps tcp splice performance if
lro is enabled. Use 4k in that case.

Also fix confusion in rx dmamap segment count. Even with lro/tso, we
only put unfragmented mbufs into the rx queue. Therefore we only need
max. 2 segments, one for the mbuf and one for the separate header for
legacy virtio devices.

OK bluhm@

3 weeks agoRemove the unused field_mod_func from EC_GROUP
tb [Thu, 3 Oct 2024 06:24:07 +0000 (06:24 +0000)]
Remove the unused field_mod_func from EC_GROUP

This was only used by the NIST method. For all other group methods it's
an uninitialized pointer (as EC_GROUP_new() still uses the malloc + set
all members to 0 idiom).

ok jsing

3 weeks agoImprove fix for shifted keys so it works for all the keys it should,
nicm [Thu, 3 Oct 2024 05:41:59 +0000 (05:41 +0000)]
Improve fix for shifted keys so it works for all the keys it should,
Stanislav Kljuhhin in GitHub issue 4146.

3 weeks agoMake EC{,PK}PARAMETERS_it static
tb [Thu, 3 Oct 2024 05:07:49 +0000 (05:07 +0000)]
Make EC{,PK}PARAMETERS_it static

They aren't used outside of this file.

3 weeks agoWe've left release mode. Time to re-enable POOL_DEBUG
tb [Thu, 3 Oct 2024 04:39:09 +0000 (04:39 +0000)]
We've left release mode. Time to re-enable POOL_DEBUG

ok deraadt

3 weeks agoFix ASN1_INTEGER_to_BN() misuse
tb [Thu, 3 Oct 2024 04:20:28 +0000 (04:20 +0000)]
Fix ASN1_INTEGER_to_BN() misuse

Same issue/leak as for BN_to_ASN1_INTEGER(). Stop reusing the elliptic
curve parameters a and b for order and cofacter. It's confusing.

ok jsing

3 weeks agoSwitch field_bits to be an int
tb [Thu, 3 Oct 2024 04:17:05 +0000 (04:17 +0000)]
Switch field_bits to be an int

ok jsing

3 weeks agoFix BN_to_ASN1_INTEGER() misuse
tb [Thu, 3 Oct 2024 04:15:52 +0000 (04:15 +0000)]
Fix BN_to_ASN1_INTEGER() misuse

You can either let this API reuse an existing ASN1_INTEGER or you can let
it allocate a new one. If you try to do both at the same time, you'll leak.

ok jsing

3 weeks agoProvide OPENSSL_INIT_NO_ATEXIT noop
tb [Thu, 3 Oct 2024 03:47:40 +0000 (03:47 +0000)]
Provide OPENSSL_INIT_NO_ATEXIT noop

The brilliant idea of installing a fragile non-idempotent cleanup atexit
handler as a library has bitten many people over time. This gets particularly
exciting when you can't control who dlopens the lib first (don't we all love
Python bindings) or if you are in a threaded context. Fake OpenSSL clones
chose not to do this but now get to carry a noop flag since people start
opting out of this madness (there's a good old tradition at work here).

ok beck joshua jsing millert miod

3 weeks agoX509V3_EXT_get_nid.3: indicate what nid means
tb [Thu, 3 Oct 2024 03:31:47 +0000 (03:31 +0000)]
X509V3_EXT_get_nid.3: indicate what nid means

3 weeks agoImprove the heuristic for detecting i2c devices. On the x1e some of the
kettenis [Wed, 2 Oct 2024 21:21:32 +0000 (21:21 +0000)]
Improve the heuristic for detecting i2c devices.  On the x1e some of the
USB controllers have an I2cSerialBusV2() (possibly defining a connection
to some sort of eUSB2 to USB2 redriver chip) but are not i2c devices
themselves.  So check if a device has MMIO resources and assume it isn't
a proper i2c device if it has those.  Makes the Type-A ports on my
vivobook work in acpi mode.

ok patrick@, mlarkin@

3 weeks agoamd64: implement a pmap_shootept() for non-MP kernels.
dv [Wed, 2 Oct 2024 18:18:27 +0000 (18:18 +0000)]
amd64: implement a pmap_shootept() for non-MP kernels.

Simplifies some of the recent INVEPT changes and mirrors the design
of other pmap tlb shootdown functions that provide simplified non-MP
implementations.

ok mlarkin@

3 weeks agoUpdate to 2024bgtz from https://github.com/JodaOrg/global-tz
millert [Wed, 2 Oct 2024 17:08:47 +0000 (17:08 +0000)]
Update to 2024bgtz from https://github.com/JodaOrg/global-tz
 o Improve historical data for Mexico, Mongolia, and Portugal.
 o System V names are now obsolescent.
 o The main data form now uses %z.

3 weeks agoMove some PCI MMIO defines from vmm(4) kernel headers to userland.
dv [Wed, 2 Oct 2024 17:05:56 +0000 (17:05 +0000)]
Move some PCI MMIO defines from vmm(4) kernel headers to userland.

vmm(4) doesn't need this information anymore. vmd(8) is the only
consumer of this information.

ok mlarkin@

3 weeks agoReorder functions.
jsing [Wed, 2 Oct 2024 15:21:39 +0000 (15:21 +0000)]
Reorder functions.

Reorder functions so that things are somewhat more logical, moving internal
functions towards the top (and removing now unnecessary prototypes).

3 weeks agoRemove err_fns and associated machinery.
jsing [Wed, 2 Oct 2024 14:54:26 +0000 (14:54 +0000)]
Remove err_fns and associated machinery.

Like all good OpenSSL code, errors was built to be completely extensible.
Thankfully, the ERR_{get,set}_implementation() functions were removed in
r1.127 of err.c, which means that the extensibility can no longer be used.

Take the first of many steps to clean up this code - remove err_fns and
associated machinery, calling functions directly. Rename so that we have
an 'err_' prefix rather than 'int_' (or nothing).

ok joshua@ tb@

3 weeks agoHook up the err regress.
jsing [Wed, 2 Oct 2024 14:50:58 +0000 (14:50 +0000)]
Hook up the err regress.

3 weeks agoAdd initial regress for the error stack and ERR_* APIs.
jsing [Wed, 2 Oct 2024 14:41:46 +0000 (14:41 +0000)]
Add initial regress for the error stack and ERR_* APIs.

3 weeks agoEnable additional CRYPTO_get_ex_new_index() tests.
jsing [Wed, 2 Oct 2024 14:12:21 +0000 (14:12 +0000)]
Enable additional CRYPTO_get_ex_new_index() tests.

It was previously possible to call CRYPTO_get_ex_new_index() with either
a negative index or a positive index that equaled or exceeded
CRYPTO_EX_INDEX__COUNT. The reimplementation of exdata treats these as
error cases.

3 weeks agoOn i386 long double is 80bit expanded to 96bits or 12 bytes. This is the
claudio [Wed, 2 Oct 2024 12:31:33 +0000 (12:31 +0000)]
On i386 long double is 80bit expanded to 96bits or 12 bytes. This is the
size that the ctftools ctfconvert uses and I think we should do as well.
Fixes regress/usr.bin/ctfdump on i386.
OK miod@

3 weeks agoAdd MSYSTEM to default update-environment.
nicm [Wed, 2 Oct 2024 11:51:15 +0000 (11:51 +0000)]
Add MSYSTEM to default update-environment.

3 weeks agoAdd a define for the socket permissions check so it can be overridden
nicm [Wed, 2 Oct 2024 11:48:16 +0000 (11:48 +0000)]
Add a define for the socket permissions check so it can be overridden
more easily (for Cgywin).

4 weeks agoModify uvmpd_scan_inactive() to access `uvmexp.pdfreed' only once.
mpi [Wed, 2 Oct 2024 10:36:33 +0000 (10:36 +0000)]
Modify uvmpd_scan_inactive() to access `uvmexp.pdfreed' only once.

ok kettenis@

4 weeks agoImprove responsiveness in OOM situations & make free target checks coherent.
mpi [Wed, 2 Oct 2024 10:24:11 +0000 (10:24 +0000)]
Improve responsiveness in OOM situations & make free target checks coherent.

Remove a change introduced in NetBSD to pageout 4 times as many pages as
required to meet the low water mark of free pages.   With todays' Gbs of
RAMs, it makes the pagedaemon hog the CPU for too long when the amount of
free pages is close to none.

ok sthen@, kettenis@

4 weeks agoReturn number of freed pages in uvm_pmr_cache_drain().
mpi [Wed, 2 Oct 2024 10:17:28 +0000 (10:17 +0000)]
Return number of freed pages in uvm_pmr_cache_drain().

ok kettenis@

4 weeks agoSwitch PV pool allocator to use km_alloc(9) instead of uvm_km_kmemalloc(9).
mpi [Wed, 2 Oct 2024 10:12:52 +0000 (10:12 +0000)]
Switch PV pool allocator to use km_alloc(9) instead of uvm_km_kmemalloc(9).

Reduce differences between pmaps & allow us to remove another deprecated
allocator.

ok phessler@, miod@

4 weeks agoNo need to check as->established before calling pfkey_remove().
claudio [Wed, 2 Oct 2024 09:45:29 +0000 (09:45 +0000)]
No need to check as->established before calling pfkey_remove().

Remove the extra checks in the caller and simplify some code because of that.
OK tb@

4 weeks agoAdding pkg_add from stdin hasn't worked in ages. It was something
tb [Wed, 2 Oct 2024 09:14:08 +0000 (09:14 +0000)]
Adding pkg_add from stdin hasn't worked in ages. It was something
we inherited from the initial implemention on FreeBSD which has
made no sense in years.

prompted by a diff by Johannes Thyssen Tishman
from espie

4 weeks agoReport shifted keys like S-A as A not as S-A in mode 1 extended keys,
nicm [Wed, 2 Oct 2024 08:06:45 +0000 (08:06 +0000)]
Report shifted keys like S-A as A not as S-A in mode 1 extended keys,
from Stanislav Kljuhhin.

4 weeks agoExtend Log->system to support the same features as BaseState->system
tb [Tue, 1 Oct 2024 18:48:29 +0000 (18:48 +0000)]
Extend Log->system to support the same features as BaseState->system

In order to support privsep in tags, we need to be able to pass some
code values in child/parent.

from espie, tested by sthen, ok giovanni

4 weeks agoUse auth_conf.method instead of auth_state.method. The latter is always 0.
claudio [Tue, 1 Oct 2024 18:33:16 +0000 (18:33 +0000)]
Use auth_conf.method instead of auth_state.method. The latter is always 0.

4 weeks agoExplicitly set peer.auth_conf.method, the auth_state value is never
claudio [Tue, 1 Oct 2024 18:31:10 +0000 (18:31 +0000)]
Explicitly set peer.auth_conf.method, the auth_state value is never
initialized in the SE so bgpctl did always see 0, auth_conf.method
is on the other hand properly shared.
OK tb@

4 weeks agoIn merge_peers also copy over the auth_conf from the new peer to the old
claudio [Tue, 1 Oct 2024 18:29:34 +0000 (18:29 +0000)]
In merge_peers also copy over the auth_conf from the new peer to the old
since that one is kept.
OK tb@

4 weeks agoFix typo in comment
claudio [Tue, 1 Oct 2024 18:28:17 +0000 (18:28 +0000)]
Fix typo in comment
OK tb@

4 weeks agoAdjust to the pfkey changes in bgpd.
claudio [Tue, 1 Oct 2024 11:50:15 +0000 (11:50 +0000)]
Adjust to the pfkey changes in bgpd.
OK tb@

4 weeks agoRework the pfkey and tcp md5 API to not depend on struct peer.
claudio [Tue, 1 Oct 2024 11:49:24 +0000 (11:49 +0000)]
Rework the pfkey and tcp md5 API to not depend on struct peer.

Instead use struct auth_config and struct auth_state in the pfkey calls
and those tcp_md5 calls where it matters.

This is preparation work to allow RTR to use TCP MD5 as well.
OK tb@

4 weeks agoAdd a way to make the preview larger in tree mode, GitHub issue 4124.
nicm [Tue, 1 Oct 2024 10:10:29 +0000 (10:10 +0000)]
Add a way to make the preview larger in tree mode, GitHub issue 4124.

4 weeks agoMake it more obvious which ruadd argument is the source and which one is
claudio [Tue, 1 Oct 2024 09:22:25 +0000 (09:22 +0000)]
Make it more obvious which ruadd argument is the source and which one is
the destination by adding const to the source pointer.

OK tb@

4 weeks agoAdjust ptrace interface to properly suport single threaded continue.
claudio [Tue, 1 Oct 2024 08:28:34 +0000 (08:28 +0000)]
Adjust ptrace interface to properly suport single threaded continue.

Introduce P_TRACESINGLE flag to instruct the trapped thread to not
wakeup the other threads (via single_thread_clear). This must be done
like this since ptrace must wake just the single thread to ensure it
runs first and gets the ps_xsig value from ptrace.

Modern gdb depends on this for multi-threaded processes, when a breakpoint
is hit gdb fixes up the trapping instruction and then single steps over
it with only that thread. After that single step gdb continues with all
threads. If all threads are run like now it is possible that one of the
other threads hits a breakpoint before the single step is done which results
in an assertion in gdb (because that is not expected).
OK mpi@

4 weeks agoUse global cursor style and colour options for modes instead of default,
nicm [Tue, 1 Oct 2024 08:01:19 +0000 (08:01 +0000)]
Use global cursor style and colour options for modes instead of default,
GitHub issue 4117.

4 weeks agoremove unused variable
jsg [Tue, 1 Oct 2024 06:46:19 +0000 (06:46 +0000)]
remove unused variable

4 weeks agodrm: Expand max DRM device number to full MINORBITS
jsg [Tue, 1 Oct 2024 06:41:22 +0000 (06:41 +0000)]
drm: Expand max DRM device number to full MINORBITS

From Michal Winiarski
e615cd84dcf834e83b333bfb690fc2032b3fdb85 in linux-6.6.y/6.6.53
071d583e01c88272f6ff216d4f867f8f35e94d7d in mainline linux

4 weeks agoaccel: Use XArray instead of IDR for minors
jsg [Tue, 1 Oct 2024 06:36:45 +0000 (06:36 +0000)]
accel: Use XArray instead of IDR for minors

From Michal Winiarski
f6b589e361538285fdad8cf62143e3cf3b2c8b2a in linux-6.6.y/6.6.53
45c4d994b82b08f0ce5eb50f8da29379c92a391e in mainline linux

4 weeks agodrm: Use XArray instead of IDR for minors
jsg [Tue, 1 Oct 2024 06:30:40 +0000 (06:30 +0000)]
drm: Use XArray instead of IDR for minors

From Michal Winiarski
d2e3d344e20e605378556610811549249298d0aa in linux-6.6.y/6.6.53
5fbca8b48b3050ae7fb611a8b09af60012ed6de1 in mainline linux

4 weeks agoadd DEFINE_XARRAY_ALLOC for 6.6.53 drm
jsg [Tue, 1 Oct 2024 06:19:39 +0000 (06:19 +0000)]
add DEFINE_XARRAY_ALLOC for 6.6.53 drm

4 weeks agoadd MINORBITS for 6.6.53 drm
jsg [Tue, 1 Oct 2024 06:18:20 +0000 (06:18 +0000)]
add MINORBITS for 6.6.53 drm

4 weeks agoadd ACCEL_MAX_MINORS for 6.6.53 drm
jsg [Tue, 1 Oct 2024 06:17:46 +0000 (06:17 +0000)]
add ACCEL_MAX_MINORS for 6.6.53 drm

4 weeks agoChange pasting to bypass the output key processing entirely and write
nicm [Tue, 1 Oct 2024 06:15:47 +0000 (06:15 +0000)]
Change pasting to bypass the output key processing entirely and write
what was originally received. Fixes problems with pasted text being
interpreted as extended keys reported by Mark Kelly.

4 weeks agochange release date
deraadt [Mon, 30 Sep 2024 14:31:56 +0000 (14:31 +0000)]
change release date

4 weeks agoImprove some currently impossible error path in log_ext_subtype().
claudio [Mon, 30 Sep 2024 12:54:12 +0000 (12:54 +0000)]
Improve some currently impossible error path in log_ext_subtype().
Mainly handle unknown ext-communities better and handle the special
case of type == -1.
OK tb@

4 weeks agoUse ps_ppid instead of ps_pptr->ps_pid in all places.
claudio [Mon, 30 Sep 2024 12:32:26 +0000 (12:32 +0000)]
Use ps_ppid instead of ps_pptr->ps_pid in all places.
OK mpi@

4 weeks agohandle non xa_limit_32b ranges in xarray
jsg [Mon, 30 Sep 2024 12:21:17 +0000 (12:21 +0000)]
handle non xa_limit_32b ranges in xarray

4 weeks agostore xarray flags for XA_FLAGS_ALLOC1 test in alloc
jsg [Mon, 30 Sep 2024 12:09:04 +0000 (12:09 +0000)]
store xarray flags for XA_FLAGS_ALLOC1 test in alloc

4 weeks agoRemove code after exit1() and NOTREACHED comment. Nothing will ever get there.
claudio [Mon, 30 Sep 2024 11:49:44 +0000 (11:49 +0000)]
Remove code after exit1() and NOTREACHED comment. Nothing will ever get there.
OK mpi@

4 weeks agoIn bgpd_rtr_connect() do the setsockopt dance for IP_TOS and TCP_NODELAY
claudio [Mon, 30 Sep 2024 09:42:24 +0000 (09:42 +0000)]
In bgpd_rtr_connect() do the setsockopt dance for IP_TOS and TCP_NODELAY
before calling connect(). This way it happens for sure and on top the TOS
is already set on the initial SYN.
OK tb@

4 weeks agoOn some Windows terminals, if TIOCWINSZ does not return xpixel and
nicm [Mon, 30 Sep 2024 08:10:20 +0000 (08:10 +0000)]
On some Windows terminals, if TIOCWINSZ does not return xpixel and
ypixel (they are zero), if this is the case then try the query escape
sequences. From Dmitry Galchinsky in GitHub issue 4099.