1
0
mirror of https://github.com/openbsd/src.git synced 2026-06-18 07:13:36 +02:00

245158 Commits

Author SHA1 Message Date
nicm 6cbf4cc07c Move checking of whether the cursor is visible inside the if so that it
always hits the calculation of the oy offset when the status line is at
the top. From Michael Grant.
2026-06-07 20:05:16 +00:00
nicm 546a83c4db Add -H flag to capture-pane to show hyperlinks. 2026-06-07 20:03:02 +00:00
deraadt 1175e773e1 sadly attach functions cannot indicate failure (until we eventually
fix that), so the device node remains inact (but broken).  Strange
callbacks (like activate for suspend/resume) need to detect this situation
in a device-dependent way for now.  Do that here.
ok kettenis
2026-06-07 16:29:28 +00:00
nicm 9977112824 Add -L to show line numbers with capture-pane and -F to show line flags. 2026-06-07 16:23:05 +00:00
mglocker ed5b9ab0bd Enable suspend/resume for qwz(4).
Tested by me on the SGB4E (arm64) and the T40 (arm64) by deraadt@.

ok kettenis@
2026-06-07 16:13:08 +00:00
nicm fb3465e908 Clear entire lines when removing from history or freeing. 2026-06-07 14:41:27 +00:00
deraadt f2d2b3cd91 Adapt to random direct map by also extracting pmap_direct_base with nlist
issue spotted by anton; discussion with mlarkin and guenther
2026-06-07 14:22:07 +00:00
nicm e3237d075b Redraw entire session when making a new pane. 2026-06-07 14:11:20 +00:00
nicm 398f026647 Add -g flag to kill-session to kill all sessions in a group, GitHub
issue 5157 from github at jiku dot jp.
2026-06-07 13:51:42 +00:00
nicm 6c67ce87cf Add some additional environment variables needed for Wayland, from
shbernal dot 01 at gmail dot com.
2026-06-07 13:37:39 +00:00
nicm 2f7dd38467 Tweak previous. 2026-06-07 13:29:16 +00:00
nicm ade6d5138a Add -E to split-window to explicitly make an empty pane rather than
requiring an empty command.
2026-06-07 13:15:28 +00:00
tb 795d9d94aa tls_conn_version: add missing .Pp in HISTORY 2026-06-07 12:06:30 +00:00
tb 36d7efff06 ec_convert: point_conversion_t -> point_conversion_form_t in a comment 2026-06-07 11:17:15 +00:00
nicm c67d9ae8f9 Allow floating panes to be created partially off the window, based on a
change from Michael Grant.
2026-06-07 09:54:25 +00:00
dtucker 55e221da9e Make crypto_sign_ed25519_keypair_from_seed() static to prevent compiler
warnings since it's only used within ed25519.c.
2026-06-07 08:50:17 +00:00
nicm 4471af109f Enable floating panes. These are panes which sit above the layout
("tiled panes") like popups but unlike popups are not modal and behave
like panes (so the same escape sequence support). Floating panes are
created with the "new-pane" command, bound to * by default.

Currently floating panes can only be moved and resized using the mouse.
The default second status line (if "status-format" is set to 2) has
changed to show a list of panes.

This is the first step and many obvious features are not yet complete
(notably the ability to swap floating panes, resize them using
resize-pane, change them between floating and tiles, and restore custom
layouts with floating panes).

Mostly written by Michael Grant with help from Dane Jensen.
2026-06-07 08:25:59 +00:00
nicm ab64c0a3eb Do not allow swapping floating panes for the moment. 2026-06-07 08:22:58 +00:00
dtucker f23883eaa3 Import updated modili 2026-06-07 08:21:06 +00:00
tb 6e27c85b90 ssl_kex: include ssl_local.h 2026-06-07 02:36:04 +00:00
djm 1149a13a65 whitespace 2026-06-06 23:53:59 +00:00
djm 18c9c5cc98 extend regress test for large exponents.
Loosely based on ones in
https://github.com/openssh/openssh-portable/pull/671/
2026-06-06 23:50:28 +00:00
djm a99ed17cfa rearrange scan_scaled(3) ordering of multiplications and divisions
to better preserve accuracy for large exponents. From metsw24-max
via https://github.com/openssh/openssh-portable/pull/671/

ok tb@
2026-06-06 23:49:25 +00:00
nicm f28d8ad5e1 Use correct X position for visible range checks in
screen_write_fast_copy, GitHub issue 5164 from Barrett Ruth.
2026-06-06 17:35:30 +00:00
nicm 1daa894495 Change so that floating panes are always part of the root layout. From
Dane Jensen.
2026-06-06 17:30:48 +00:00
sthen 03010b9869 add X25519MLKEM768 to the start of the default ECDHE curves list, allowing
libtls clients to connect to servers which don't offer any other curves
(this has been seen in the wild with got, reported by stsp).  ok tb@

depends on recent libssl changes (ssl_tlsext.c r1.161, t1_lib.c r1.209).
2026-06-06 16:23:30 +00:00
mglocker 7d22cbfda1 Increase register status polling busy-wait from 250 to 500ms.
This makes ufshci(4) survive a suspend on the Samsung Galaxy Book4 Edge.
2026-06-06 16:12:18 +00:00
jsing 000c4a4fbc Correctly handle failure to buffer DTLS messages.
If we fail to buffer an outgoing DTLS message, we're not going to be able
to retransmit it. Correctly propagate the failure.

ok kenjiro@ tb@
2026-06-06 15:28:14 +00:00
jsing 19e1b3cab3 Move DTLS change cipher spec handling to its own function.
When a TLSv1.2 change cipher spec message has been built, call a separate
function that can handle the DTLS specific processing rather than including
this in the TLS code.

ok kenjiro@ tb@
2026-06-06 15:24:26 +00:00
jsing 1e1b050f55 Move DTLS handshake message handling to its own function.
When a TLSv1.2 handshake message has been built, call a separate function
that can handle the DTLS specific processing rather than including this in
the TLS code.

ok kenjiro@ tb@
2026-06-06 15:22:25 +00:00
jsing 6176b0a2ef Remove ssl3_handshake_msg_hdr_len()
This function is only called in one location, which is always a DTLS
context - use DTLS1_HM_HEADER_LENGTH directly instead.

ok kenjiro@ tb@
2026-06-06 15:08:15 +00:00
tb d1317e99cc libssl: don't break TLSv1.2 with X25519MLKEM768
If the list of 'groups' starts with X25519MLKEM768 for a TLSv1.2 server,
ssl3_send_server_kex_ecdhe() attempts to use NID_X25519MLKEM768, which
it receives from tls1_get_supported_groups(). This does not work because
it never received the peer's public keys, which causes an error return
from tls_key_share_server_generate_mlkem768x25519().

For a TLSv1.2-only client with custom supported group list we will
currently send ML-KEM if configured. We should not do this.

There is more to fix here: if a TLSv1.2 client is misconfigured with
only X25519MLKEM768, we should not send a supported groups extension
(with this commit we'll send an empty one, which is an RFC violation).

This commit simply filters X25519MLKEM768 out of the supported groups
list if we're configured to be TLSv1.2-only.

feedback/ok jsing kenjiro (on an earlier version)
2026-06-06 08:45:41 +00:00
jsing b19ee74128 Add regress tests for DTLS handshake messages. 2026-06-06 08:13:50 +00:00
djm f12de7fa29 pass >9 commandline arguments to the internal-sftp server,
previously they were silently dropped; reported by Steve Caffrey
ok deraadt@
2026-06-05 08:53:07 +00:00
djm e35442a684 avoid truncation of pathnames headed to lstat() for systems where
PATH_MAX is not the actual max; reported by sahvx655-wq via GHPR688
2026-06-05 08:48:43 +00:00
asou ce89dc54e9 Tweak sr_crypto_create_key_disk() to match sr_crypto_read_key_disk().
ok yasuoka
2026-06-05 08:22:12 +00:00
nicm 13facf8de4 Add a way to quote for command arguments and use for key in list-keys,
GitHub issue 5153.
2026-06-05 08:04:03 +00:00
djm 89271e0334 rename a variable to be more accurate 2026-06-05 06:51:02 +00:00
jmatthew beba0a53a3 Properly set up interrupts in multivec mode if we have multiple msix
vectors but only one queue, making the driver work in uniprocessor
kernels, including RAMDISK.

problem reported by Lexi Winter
ok dlg@
2026-06-05 05:06:10 +00:00
claudio fd5e443660 Fix mwx_mcu_send_mbuf() for both mt7925 and mt7921 and the next bit
of 7925 bringup.

mwx_mcu_send_mbuf() handling of the len field was not quite right. Also
implement the mt7925 bits for UNI commands. Fix an issue with the wakeup
of commands, register the command in sc_mcu_wait before enqueuing the
command into the tx queue. Cleanup on error as well.

Implement mt7925_mcu_get_nic_capability() and mt7925_mcu_fw_log_2_host()
with this mwx_mcu_init() is done.

In mwx_dma_txwi_enqueue() use the right len0 value (mt_desc is a pointer).

With this MT7925 prints the mac-address (mwx_mcu_init() succeeds) but
more is needed mwx_init_hardware() after that mwx_preinit() should pass
which is a big step.

For MT7921 it seems this fixes the TX issue I was trying to fix for
so long. Also with this the driver works like before with the new
firmware package.

Mostly adapted form a large diff from mlarkin@
2026-06-04 19:26:48 +00:00
tb 0863b78107 Drop gcc3 -Wunininitialized workaround
discussed with miod
2026-06-04 18:02:52 +00:00
deraadt 1d54e76051 sync 2026-06-04 15:01:00 +00:00
claudio 70cb4e1f31 Fix up DMA allocation, interrupt handling and early hw init up to
the firmware load sequence.

Rename most functions used in the hw_init and firmware loading path
from mt7921 to mwx since these functions work on all versions now.

This diff allows both 7921 and 7925 devices to load and start the firmware.
Untested are 7920 and 7922 (I lack those devices).

Lots of bits picked up from a diff by mlarkin@
2026-06-04 13:15:20 +00:00
tb bda9fb276b libssl: const correct ssl_*version* API
None of these functions modifies the SSL pointer. An upcoming diff will
need to call one of them with a const pointer, so fix all of them.

ok jsing kenjiro
2026-06-04 12:05:57 +00:00
tb b583cabed5 rfc3779: uwrap a line 2026-06-04 12:01:55 +00:00
tb b62ec3b0ad rfc3779: whitespace fixes 2026-06-04 11:40:51 +00:00
kettenis 344fe49ad4 Fix interrupt barriers for the integrated MSI controller.
ok jca@
2026-06-04 10:07:22 +00:00
tb e098f50ba3 systat: prepare userland for upcoming buffer cache work
ok deraadt
2026-06-04 09:29:47 +00:00
nicm 04cdc1d116 Fix scrollbar drag position when window is taller than tty, from Michael
Grant.
2026-06-04 09:24:03 +00:00
nicm be298ee032 Fix window_copy_write_lines to iterate with yy not py, from Michael Grant. 2026-06-04 09:18:33 +00:00