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
jsing 703c32638c Provide a small SHA-1 implementation.
This will be used to reduce code size on install media.

ok tb@
2026-06-13 16:21:29 +00:00
nicm 34933f5926 Add flags to move-pane to move floating panes around (-U, -D, -L, -R
similar to resize-pane; -X, -Y similar to new-pane).
2026-06-13 16:16:18 +00:00
bluhm 4019395a45 Drop stale TCP connections in TIME_WAIT state after each test.
Otherwise they accumulate and regress runs out of port numbers.
2026-06-13 13:16:43 +00:00
nicm 83ab708fc0 Missed this one as well. 2026-06-13 13:07:12 +00:00
nicm 19191f4d7a Use correct name for activity time. 2026-06-13 13:06:12 +00:00
kirill 7cf8aaf9ec sys/ogx: fix build without INET6 option
Reported by Gabriel <vashongabriel at gmail dot com>

OK: kn@
2026-06-13 11:48:05 +00:00
nicm 4abe9ebbcc Remove some stray code from an old floating panes implementation, from
Dane Jensen.
2026-06-13 11:37:46 +00:00
nicm a8844f8c56 Extend client mode so the preview can be changed to a view with a
summary of the client terminal and its features, intended to make
troubleshooting easier. "choose-client -i" or the "i" key in the mode.
2026-06-13 10:32:54 +00:00
nicm 4ee6e01dfc Add an I format modifier to get some bits of information about a client
(terminal features, capabilities and environment).
2026-06-13 09:17:29 +00:00
nicm 5e71cf2266 Change relative time for now to only work in the past and not show a
sign which is more useful. Also tidy up some minor style nits.
2026-06-13 08:59:52 +00:00
djm 0092726c83 when replying to a "query" SSH_AGENTC_EXTENSION request, don't
append an SSH_AGENT_SUCCESS to the reply to the query. bz3967
ok dtucker@
2026-06-13 00:37:13 +00:00
jsg ec77777651 fix tty_draw_line() indentation; ok nicm@ 2026-06-12 13:16:36 +00:00
kirill b5f1a9c5e7 sys/vfs: wake vclean after failed vnode lock attempts
vclean() sets VXLOCK and waits for v_lockcount to drain before taking
the vnode lock with LK_DRAIN. vn_lock() already woke that waiter when a
racing VOP_LOCK() succeeded, noticed VXLOCK, and had to drop the lock
again.

Do the same wakeup when the racing VOP_LOCK() fails. A failed attempt
still decrements v_lockcount, and if it was the last in flight attempt,
vclean() must be notified that the drain condition is satisfied.
2026-06-12 12:20:25 +00:00
mvs 23ce23157b Set pr->ps_pgrp to NULL before destroy it.
ok claudio
2026-06-12 11:00:30 +00:00
mvs a0afef91aa Add missing ESRCH error description to getthrname(2) man page.
ok claudio
2026-06-12 10:56:23 +00:00
tb 97f202efc1 c2sp: also run this with openssl/4.0 if available 2026-06-12 08:19:44 +00:00
jsg 59d95d307a remove prototype for removed getbasepath() 2026-06-12 07:12:12 +00:00
jsg 315a7459da remove prototype for removed bufcache_gethighcleanbuf() 2026-06-12 06:34:19 +00:00
jsg 9e18560c5a remove prototypes for removed buf_flip_high() buf_flip_dma() 2026-06-12 06:24:31 +00:00
mglocker f71a537d46 Backout sdmmc(4) arm64 hibernate "fix", since it would cause memory side
effects which are not allowed during hibernation.  We need to find another
solution.

Highlighted by mlarkin@
2026-06-12 03:56:30 +00:00
millert 3fecf65470 Fix typo in STAILQ_INSERT_AFTER that prevented it from working
From Nick Owens
2026-06-12 01:04:42 +00:00
nicm 35916d049b Make buffer creation time sort oldest first like it used to, but change
windows to match sessions and panes as newest first.
2026-06-11 23:01:31 +00:00
nicm 6ced1e293b When MODE_SYNC is on, all terminal updates need to deferred, not just
scrolling. Check the flag before each one. GitHub issue 4983.
2026-06-11 19:50:23 +00:00
bluhm 10fabdd075 Fix race during socket unsplicing.
Problem was that splicing holds the socket lock when it writes
so_sp, but unsplicing does not when it reads so_sp.  So it may get
the new pointer, but PR_ZERO is not visible due to reordering.  Then
so->so_sp->ssp_socket is garbage.  Crash happend on octeon/mips64
during regress/sys/netinet/udpthread test run-unsplice.
When creating a splice from socket 1 to socket 2, kernel holds
socket buffer lock on so1->so_rcv and so2->so_snd and socket lock
on both while installing so_sp on so1 and so2.  Concurrent sosplice()
on socket 2 has the opposite order, we hold sblock on so2->so_rcv,
sblock on so1->so_snd and solock on both sockets.
The unsplice thread of the source socket did hold sblock on so->so_rcv
only.  So we did lockless so_sp check while concurrent sosplice()
thread installs so_sp on the same socket as drain, holding sblock
on so->so_snd.
Grabbing sblock on both so->so_srv and so->so_snd fixes the crash.

with and OK mvs@
2026-06-11 19:21:51 +00:00
nicm 889c2a510d Change send-keys -K to insert keys in the right place in the queue, like
we already do for key bindings. GitHub issue 3476.
2026-06-11 19:13:34 +00:00
mglocker dd9f6fc91f Prepare sdmmc(4) for hibernation on arm64:
arm64 doesn't know about "struct bus_dmamap"; use bus_dmamap_t instead.

ok deraadt@
2026-06-11 18:55:13 +00:00
bluhm d3b2ec4c84 Move syslogd-parent to /usr/libexec/ to avoid access by $PATH.
suggested by deraadt@
2026-06-11 18:28:45 +00:00
bluhm a89412eb10 Adapt regress tests for separate syslogd parent. 2026-06-11 16:51:14 +00:00
robert 8ba2a59033 fir crashing with scalable TypeSizes
From 537f3d3a7588d226b86590f97c4401107585e1ce Mon Sep 17 00:00:00 2001
From: Jakob Koschel <jakobkoschel@google.com>
Date: Thu, 5 Mar 2026 01:11:44 +0100
Subject: [PATCH] [SafeStack] Fix crashing with scalable TypeSizes (#180547)

On e.g. aarch64 the TypeSize of scalar types can have a size that is not
known at compile time.
Currently when safestack occurs those it simply crashes as described in
https://github.com/llvm/llvm-project/issues/175868.
2026-06-11 16:46:20 +00:00
bluhm 13d1fa1150 Provide a separate executable file for syslogd parent.
syslogd(8) forks and execs its parent process to keep privileged
parts separated.  This parent process can be easily implemented as
a separate program.  It gets its own main() and minimal debug logging
functions.  The splitted parent process image is smaller, especially
without additional libs.
Use additional directories to build both parts.  The rcctl script
has to be adopted, as the parent process has a different name.

OK deraadt@
2026-06-11 15:41:33 +00:00
nicm 7238ecfd40 Add a helper to free the list of pending resizes. 2026-06-11 14:19:59 +00:00
claudio 22e93cbe62 Implement mwx_mac_tx_free() for MT7921 and add some extra bits to
mwx_txwi_put(). With this MT7921 is able to connect to an open WIFI.

This commit was done over mwx(4) with a MT7921
2026-06-11 13:52:45 +00:00
bluhm 3a7d373a2c Fix typo in locking comment.
OK mvs@
2026-06-11 12:50:52 +00:00
nicm 0f00dbff39 Add support for floating panes to resize-pane, from Dane Jensen. 2026-06-11 10:16:19 +00:00
hshoexer 28cce1e713 isakmpd(8): Fix NULL dereference in message_alloc_reply() callers
message_alloc_reply() dereferences the returned pointer of
message_alloc() without a NULL check.  Add one so callers can handle
the failure.

Also add NULL checks at both call sites in exchange.c.

test & ok sthen
2026-06-11 09:55:17 +00:00
hshoexer 4cbf09889d isakmpd(8): Fix possible unaligned 32 bit read
When validating IPsec SPIs in a DELETE message, access to the
32 bit SPI value might be unaligned.  On platforms requiring strict
alignment, this would cause termination of isakmpd by signal.

To avoid this, memcpy(3) the SPI value to a local variable.

test & ok sthen
2026-06-11 09:50:49 +00:00
hshoexer 09fa88f5d6 isakmpd(8): Validate DELETE payload SPI array size [2/2]
Similar to message_validate_delete() also validate in
ipsec_handle_leftover_payload() that the provided number of SPIs
actually fit in the payload. This is redundant as we already would
bail out in message_validate_delete().

test & ok sthen
2026-06-11 09:46:59 +00:00
hshoexer cf741e9cb9 isakmpd(8): Validate DELETE payload SPI array size [1/2]
The number of SPIs provided in a DELETE message is not properly
validated. This might cause a read beyond the message end. However,
the outside read is limited to 4 bytes for IPsec SAs and 16 bytes
for ISAKMP SAs. A crash is possible, but seems unlikely to me.

test & ok sthen
2026-06-11 09:44:07 +00:00
hshoexer 910fad734d isakmpd(8): Validate proposal and transform sizes
Check
- that a proposal payload fits within the outer SA payload,
- that the provided SPI and the following transform header fit within
  the proposal, and
- transforms fit within the outer proposal payload.

It's already ensured that we never read outside the message.  However,
within the message the mentioned payloads might be misinterpreted due
to malformed size values.

test & ok sthen
2026-06-11 09:40:20 +00:00
nicm b4c445b55f Hide Swap Marked also since floating panes cannot be swapped yet. 2026-06-11 07:52:17 +00:00
ratchov 47f6a7a21f sndiod: Drop extra \n in debug printf 2026-06-11 06:56:44 +00:00
yasuoka a8bd8000e0 Add length checks for the Port-Message and State attributes in the
handling of Access-Challenge.  The problem reported by Steve Caffrey.

ok sthen@
2026-06-11 04:55:12 +00:00
jsg 9fdec354d7 in inteldrm_burner_cb() call fb_blank() instead of drm_fb_helper_blank()
this indirectly calls intel_fbdev_blank(), which does
drm_fb_helper_blank() followed by intel_fbdev_invalidate()

avoids on screen garbage when wscons screen blanking is enabled on
mvs' Alder Lake and Gemini Lake machines.
2026-06-11 03:45:17 +00:00
jsg 1fc859df78 Add fb_blank function pointer to struct fb_ops and enable paths that
set it.  Also add fb_blank() which uses it, for use in inteldrm(4).
2026-06-11 03:36:13 +00:00
claudio d5f6c8e096 Use a task queue to schedule the newstate transitions. Mostly taken from
iwx/qwx and all other modern wifi chips.
2026-06-10 19:07:22 +00:00
nicm 46422b23c8 Make list-keys only use a message if -1 is given, otherwise behave like
other commands (stdout or mode).
2026-06-10 18:32:33 +00:00
nicm f4c0513b1a Fix text to refer to status-keys not mode-keys, GitHub issue 5191. 2026-06-10 16:08:03 +00:00
nicm b1653e05a9 Rename new-pane -B to -W since -B is best kept to match -B to
display-popup.
2026-06-10 16:03:14 +00:00
nicm 293caf0d3f Use correct size when calculating status line right trim. GitHub issue
5098 from Aung Myo Kyaw.
2026-06-10 14:51:20 +00:00
nicm b0f8d4863f Replace refresh-from-pane in copy mode with a way to automatically
update as pane content changes. This is toggled by pressing r. GitHub
issue 5165 from Barrett Ruth.
2026-06-10 14:29:08 +00:00