1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-15 09:44:36 +00:00

243905 Commits

Author SHA1 Message Date
job
8928aa2468 Provide an example how to disambiguate mktime() return values
OK beck@
2026-04-15 00:20:28 +00:00
dv
35f31cb19b vmd(8): remove config parsing TOCTOU with disk parsing.
When vmd parses vm.conf, it's inspecting any provided disk images
to determine the disk format (raw or qcow) if left unspecified.
This is a big TOCTOU because nothing prevents these files from
changing between vmd startup and vm launch.

This change defers detection to vm launch time and tracks the disk
format as an enum instead of an int to make things more interpretable.

ok hshoexer@
2026-04-14 21:41:19 +00:00
canacar
54c4adda4f Clear the pointer in tm data structures before passing them to
unprivileged side. Prevents address information leak.

Reported by Systopia Team, thanks!

ok deraadt@ (for the previous version).
2026-04-14 18:19:50 +00:00
dv
e11cf29b70 vmd(8): zero potential heap pointers before IPC.
vmd sends two large structs over an ipc socket after fork+exec:
vmd_vm and virtio_dev.

Both have heap pointers from being put in TAILQs in the parent
process and both carry some used for setting up imsg event channels.
Zero all these things before send to be safe and not leak deatils
on the parent's address space.

Issue raised by Systopia Team.

ok hshoexer@
2026-04-14 14:15:10 +00:00
nicm
82afeac7db Do not leak old time format if it is replaced in same format. 2026-04-14 11:25:41 +00:00
nicm
06178a3283 If job_run fails, do not crash but instead free the popup. 2026-04-14 08:39:10 +00:00
nicm
8faa725573 Another check for partially initialized control client, from Matt
Koscica in GitHub issue 5004.
2026-04-14 08:32:30 +00:00
nicm
84c70f1e56 Add detach to default session menu, suggested by Przemyslaw Sztoch. 2026-04-14 07:35:17 +00:00
nicm
54b22d0328 Fix key binding conflict in session menu, from Dane Jensen. 2026-04-14 07:28:57 +00:00
nicm
65ef24d9d6 Include window bits for pane notifications, GitHub issue 5007 from Saul
Nogueras.
2026-04-14 07:26:45 +00:00
nicm
f981cde1c8 Limit precision to 100 to stop silly formats from running out of memory,
reported by z1281552865 at gmail dot com.
2026-04-14 07:24:23 +00:00
nicm
5ce6ac7c76 Add WAYLAND_DISPLAY to default update-environment, GitHub issue 4965 from
wgh at torlan dot ru.
2026-04-14 07:16:02 +00:00
deraadt
489fa13373 sync 2026-04-13 19:13:59 +00:00
deraadt
bb890fd247 move out of -beta 2026-04-13 17:22:23 +00:00
beck
0486237ef5 Prior to this we substring matched and allowed a leading .
on a SAN DNSname constraint. This is not correct, as with
a DNSname constraint, it may exacly match or match zero or
more additional components on the front of the candidte to
match.

Spotted by Haruto Kimura <hkimura2026@gmail.com>

ok tb@ kenjiro@
2026-04-13 17:04:23 +00:00
tb
a0d7485e83 Document RETURN value for timegm(3)
APIs with in-band errors that conflate the error with a legitimate return
value are about the worst you can get. Near and dear to my heart is the API
aptly described as "gibbering eidritch horror" by beck: ASN1_INTEGER_get(3).
Adapt the wording of its RETURN VALUES to timegm() and mktime(), for which
Dec 31, 1969 at 23:59:59 will yield the error return -1 and thereby errata.

Missing docs pointed out by claudio a while back and yesterday by deraadt

ok deraadt millert
2026-04-13 16:01:54 +00:00
kettenis
b09aaa95e2 The fault handling code that deals with getting back from swap for an
anon does not expect failures because we are short on memory.  These
are synchronous operations so we're expected to wait on memory to
become available.  This got broken in rev 1.178 (Back out the
pagedaemon "oom" reserve and sleeping point).  Bring back the code to
allocate bounce memory using uvm_pglistalloc(9) but only use it for
the !async case (which will never be use by the pagedaemon).

This fixes random segfaults when under memory pressure and init dying
with SIGILL because it can't copy out a signal frame to the stack when
it happens to trigger such a segfault.

With deraadt@, who wrote the code to consolidate the allocation of
bounce memory.

ok deraadt@
2026-04-13 15:23:57 +00:00
deraadt
ad5d1521b3 decrease the agressiveness of inactive growth from the previous commit.
A small increase is enough; if not enough free is created in one round,
it will be created the next time.
long discussions with kirill
2026-04-13 14:56:46 +00:00
kettenis
b62e31ea2a smte(4) 2026-04-13 12:20:13 +00:00
kettenis
6d57bcee83 Add smte(4), a driver for the ethernet interfaces of the SpacemiT K1 SoC.
ok jsing@
2026-04-13 12:03:19 +00:00
kettenis
d6aa72a3f7 Add clocks for pinctrl and ethernet. 2026-04-13 12:02:19 +00:00
nicm
8030d57a83 Do not notify clients if not fully initialized, from Ben Maurer in
GitHub issue 4980.
2026-04-13 09:35:20 +00:00
nicm
60b5b83d4a Add -C flag to command-prompt to match display-message -C (do not freeze
panes). From Barrett Ruth in GitHub issue 4978.
2026-04-13 09:33:09 +00:00
jsg
3819564587 add smtpinctrl(4); ok kettenis@ 2026-04-13 09:25:26 +00:00
job
2f26fa0b01 Fix CCR ROAIPAddressFamily sort order
RFC 9582 section 4.3.3 defines the canonical form of ipAddrBlocks.

Thanks to Bart Bakker from RIPE NCC for reporting.

OK tb@
2026-04-13 09:22:46 +00:00
kettenis
5118a09c2e When we detect stale TSB entries during a context switch, don't enter DDB
but invalidate the stale entries and print a warning.

ok claudio@, deraadt@
2026-04-13 09:10:14 +00:00
job
7a7df3e9b7 Also show the duration of the current session through the ~I escape
OK dtucker@
2026-04-13 08:18:33 +00:00
tb
ef90b149a7 rpki-client: fix incorrect error exit in x509_get_time()
A UTCTime represents a time between Jan 1, 1950 and Dec 31, 2049. This
includes Dec 31, 1969, 23:59:59 UTC, which translates to epoch -1 when
converted as a time_t. timegm()'s in-band error conflates this time with
its error return, so a hard error for this creates a DoS.

Instead, return an error for ASN.1 times that translate to negative time_t
and bubble up the error to reject the RPKI product as malformed. Real life
notBefore (or equivalent) are in the ongoing millenium, although strictly
speaking this is not guaranteed since Validity windows need not nest.

Thanks to Yuheng Zhang, Qi Wang, Jianjun Chen from Tsinghua University,
and Teatime Lab for reporting.

ok claudio job
2026-04-13 03:36:10 +00:00
tb
380397a6e9 rpki-client: ignore malformed revocationDate in CRLs
Do not treat x509_get_time() failure as a hard error in file mode.
Just skip the entry we can't format and emit a warning.

ok claudio
2026-04-13 03:14:28 +00:00
dlg
284b3d32c6 check the prefix (cidr) len for an allowedip is valid.
ie, don't allow prefixes greater than 32 or 128 bits for ipv4 and
ipv6 respectively.

found by Daniel Wade (danjwade95 at gmail dot com), who also suggested
the fix.
ok deraadt@ jmatthew@
2026-04-13 01:10:39 +00:00
jsg
075934f685 mention inthid(4) and ispi(4) 2026-04-13 01:09:07 +00:00
jsg
63e9ba80cc add ispi(4) 2026-04-13 01:05:49 +00:00
deraadt
086c5738bc These programs spin if they receive a RA from the local network with
ND option with length 0.  from Daniel Wade
ok florian
this will be errata 7.7/036_v6daemons.patch and 7.8/030_v6daemons.patch
2026-04-12 23:57:27 +00:00
jsg
ccd7c26414 drm/amd/display: Fix DCE LVDS handling
From Alex Deucher
24ce568f7553a55404cddf8f0fca2a7c0ea9451c in linux-6.18.y/6.18.22
90d239cc53723c1a3f89ce08eac17bf3a9e9f2d4 in mainline linux
2026-04-12 23:27:43 +00:00
jsg
6bc9155911 drm/amd/pm: disable OD_FAN_CURVE if temp or pwm range invalid for smu v13
From Yang Wang
ba9be472a438ea348f0fffaaebf541960ee643db in linux-6.18.y/6.18.22
3e6dd28a11083e83e11a284d99fcc9eb748c321c in mainline linux
2026-04-12 23:23:52 +00:00
jsg
5fabc9c165 drm/amdgpu/pm: drop SMU driver if version not matched messages
From Alex Deucher
2b8ae82d85d75347984297ed60d5005622992f6b in linux-6.18.y/6.18.22
a3ffaa5b397f4df9d6ac16b10583e9df8e6fa471 in mainline linux
2026-04-12 23:21:02 +00:00
jsg
6d5bacc117 drm/amdgpu: Change AMDGPU_VA_RESERVED_TRAP_SIZE to 64KB
From Donet Tom
77c918eaa4c916751769242567407f61c6af142a in linux-6.18.y/6.18.22
4487571ef17a30d274600b3bd6965f497a881299 in mainline linux
2026-04-12 23:17:56 +00:00
jsg
a2c2f33e08 drm/amdgpu: validate doorbell_offset in user queue creation
From Junrui Luo
3543005a42d7e8e12b21897ef6798541bf7cbcd3 in linux-6.18.y/6.18.22
a018d1819f158991b7308e4f74609c6c029b670c in mainline linux
2026-04-12 23:14:28 +00:00
jsg
a8b9b58f9a drm/amdgpu: Fix wait after reset sequence in S4
From Lijo Lazar
1e130cf9cd172c684ff471d9cd8bccf06db64d88 in linux-6.18.y/6.18.22
daf470b8882b6f7f53cbfe9ec2b93a1b21528cdc in mainline linux
2026-04-12 23:12:22 +00:00
jsg
bc80c61d81 drm/i915/dp: Use crtc_state->enhanced_framing properly on ivb/hsw CPU eDP
From Ville Syrjala
d0fd0bea847526dbe3d862c01e98a1617538565d in linux-6.18.y/6.18.22
9c9a57e4e337f94e23ddf69263fd0685c91155fb in mainline linux
2026-04-12 23:10:19 +00:00
jsg
464bd0571b drm/i915/dsi: Don't do DSC horizontal timing adjustments in command mode
From Ville Syrjala
86e926b108880c0109b8635e459450447156aeb7 in linux-6.18.y/6.18.22
4dfce79e098915d8e5fc2b9e1d980bc3251dd32c in mainline linux
2026-04-12 23:08:00 +00:00
jsg
a97508759c drm/amd/display: Fix NULL pointer dereference in dcn401_init_hw()
From Srinivasan Shanmugam
10c13c111d0d7f8e101c742feff264fc98e3f9f7 in linux-6.18.y/6.18.22
e927b36ae18b66b49219eaa9f46edc7b4fdbb25e in mainline linux
2026-04-12 23:05:35 +00:00
jsg
3e4da3a243 drm/ioc32: stop speculation on the drm_compat_ioctl path
From Greg Kroah-Hartman
f0e441be08a2eab10b2d06fccfa267ee599dd6b3 in linux-6.18.y/6.18.22
f8995c2df519f382525ca4bc90553ad2ec611067 in mainline linux
2026-04-12 23:02:30 +00:00
jsg
dedd674940 Revert "drm: Fix use-after-free on framebuffers and property blobs when calling drm_dev_unplug"
From Maarten Lankhorst
89c3a4ba60309cc6333a8f3940a1866fc21a9000 in linux-6.18.y/6.18.22
45ebe43ea00d6b9f5b3e0db9c35b8ca2a96b7e70 in mainline linux
2026-04-12 23:00:13 +00:00
sashan
8e156a5ebe pfr_pool_get() in call to pfr_prepare_network()must use af
instead of hardcoded AF_INET

Issues reported and patch submitted by:
    Renaud Allard <renaud () allard ! it>

OK sashan@
2026-04-12 22:42:08 +00:00
sashan
747740863c pf_frag_compare() should not be using subtraction to compare
fragment IDs

Issues reported and patch submitted by:
    Renaud Allard <renaud () allard ! it>

OK sashan@
2026-04-12 22:34:19 +00:00
sashan
32063577ec Fix error handling in pf_sourcelim_add()
There are two issues in pf_sourcelim_add() error path:
  - stale pointers are left in pf_sourcelim_id_tree_inactive when
    duplicate source limiter instance is found in pf_sourcelim_nm_tree

  - overload table may leak when insertion of new source limiter instance
    fails.

Both issues reported and patch submitted by:
    Renaud Allard <renaud () allard ! it>

OK sashan@
2026-04-12 22:29:15 +00:00
kirill
6f139a5bd7 sys/qwz: fixed some missmatched against ATH12k
It fully parse SERVICE_READY_EXT2 peer-metadata capability and fill
wmi_resource_config's tail.

It also fixes a crash/free of null, and adjusted buffer and timeouts to
match Linux to actually get full RDDM.

It uses world regulatory domain.

Plus a few small typos.

qwz now loads, but firmware crashes on scan.

OK: mglocker@
2026-04-12 19:52:23 +00:00
job
2405f80201 Prepare for rpki-client 9.8 2026-04-12 18:31:16 +00:00
deraadt
4ec71eecce Fix a memory leak on configuration reload, and incorrect termination
when a sensor fails to read.
From James J. Lippard
ok tb
2026-04-12 13:29:46 +00:00