1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-28 08:07:03 +00:00
Commit Graph

243536 Commits

Author SHA1 Message Date
sthen
33c7e43e4e tweak MODPY_PYBUILD section, avoid some duplication, give a hint about
setting MODCARGO_CARGOTOML for maturin ports
2026-03-22 13:56:06 +00:00
deraadt
b62a05dc00 Found another deeply hidden open /dev/null O_RDWR which was happening
in awk -safe mode.  Reproducer is awk -safe '{ close("/dev/stdin"); }
Rerrange the pledges and unveils to make it work.
ok millert dgl
2026-03-22 05:07:06 +00:00
sthen
906998b9b3 merge nsd 4.14.2 2026-03-21 21:36:36 +00:00
sthen
96b824a918 import nsd 4.14.2 2026-03-21 21:34:31 +00:00
daniel
67e6794a9e SIGWINCH is now part of POSIX.1-2024
From Lennart Jablonka; ok guenther@, deraadt@
2026-03-21 01:56:51 +00:00
deraadt
8aa14d77a9 The percentage heuristic has failed for me on 40% of the machines
I run, so it is clear it is going to fail for many more people when
the next release comes out.  It is wrong, back it out.
2026-03-21 01:34:25 +00:00
bluhm
0e8206e596 Ignore TCP SACK packets with invalid sequence numbers.
Due to an integer overflow, sequence numbers in selective ACK packets
were accepted.  Such packets caused a NULL pointer dereference in
the TCP stack, resulting in a kernel crash.

Reported by Nicholas Carlini at anthropic dot com
with deraadt@; OK markus@
2026-03-20 19:44:48 +00:00
jsg
a71bcab410 sync dma-resv with linux 6.18 2026-03-20 10:15:56 +00:00
sthen
65032adb49 Fix display of bandwidth >=1000G. Found by Crystal Kolipe, ok sashan@ 2026-03-20 09:37:23 +00:00
stsp
e1a9c1b938 switch iwx(4) MA devices to -89 firmware images
Also fix the firmware filename for MA HR devices, and do not try to
load a non-existent .pnvm file for these devices.

tested by + ok kettenis@
2026-03-20 08:38:21 +00:00
jsg
a9b792a8dc drm/amd: Fix a few more NULL pointer dereference in device cleanup
From Mario Limonciello
38f1640db7f8bf57b9e09c5b0b8b205a598f1b3e in linux-6.18.y/6.18.19
72ecb1dae72775fa9fea0159d8445d620a0a2295 in mainline linux
2026-03-20 00:35:31 +00:00
jsg
97062d1108 drm/i915/psr: Repeat Selective Update area alignment
From Jouni Hogander
0189bf176dbe6e07cde08a6121108eda3bd18b06 in linux-6.18.y/6.18.19
1be2fca84f520105413d0d89ed04bb0ff742ab16 in mainline linux
2026-03-20 00:32:26 +00:00
jsg
2c4ecfc8b1 drm/i915: Fix potential overflow of shmem scatterlist length
From Janusz Krzysztofik
eae4bf4107571283031db96ce132e951615e2ae4 in linux-6.18.y/6.18.19
029ae067431ab9d0fca479bdabe780fa436706ea in mainline linux
2026-03-20 00:30:08 +00:00
jsg
b3f1d4030f drm/amd: Fix NULL pointer dereference in device cleanup
From Mario Limonciello
43025c941aced9a9009f9ff20eea4eb78c61deb8 in linux-6.18.y/6.18.19
062ea905fff7756b2e87143ffccaece5cdb44267 in mainline linux
2026-03-20 00:27:58 +00:00
jsg
a72d42b017 drm/amd: Set num IP blocks to 0 if discovery fails
From Mario Limonciello
57579312e0e87dffa2aeca9acd4ba2ec25da999d in linux-6.18.y/6.18.19
3646ff28780b4c52c5b5081443199e7a430110e5 in mainline linux
2026-03-20 00:25:56 +00:00
jsg
058345d356 drm/amdgpu: Fix use-after-free race in VM acquire
From Alysa Liu
7885eb335d8f9e9942925d57e300a85e3f82ded4 in linux-6.18.y/6.18.19
2c1030f2e84885cc58bffef6af67d5b9d2e7098f in mainline linux
2026-03-20 00:19:58 +00:00
jsg
495d758465 drm/amd/pm: remove invalid gpu_metrics.energy_accumulator on smu v13.0.x
From Yang Wang
33c3a4db31719d414f0622659ca086b708270c9f in linux-6.18.y/6.18.19
68785c5e79e0fc1eacf63026fbba32be3867f410 in mainline linux
2026-03-20 00:17:43 +00:00
jsg
02a30f831b drm/amd/display: Fallback to boot snapshot for dispclk
From Dillon Varone
1a34999922ba6c95df6e3ba5c82624f61323f82b in linux-6.18.y/6.18.19
30d937f63bd19bbcaafa4b892eb251f8bbbf04ef in mainline linux
2026-03-20 00:15:43 +00:00
jsg
49462b4032 drm/i915/alpm: ALPM disable fixes
From Jouni Hogander
32cca65189823f93ba89677a96b106e902b2dc9b in linux-6.18.y/6.18.19
eb4a7139e97374f42b7242cc754e77f1623fbcd5 in mainline linux
2026-03-20 00:13:59 +00:00
jsg
aa414d5064 drm/amd: Disable MES LR compute W/A
From Mario Limonciello
06ef2ba582c68daa6bdaaef82827734d9f07b8fd in linux-6.18.y/6.18.19
6b0d812971370c64b837a2db4275410f478272fe in mainline linux
2026-03-20 00:11:51 +00:00
jsg
146ab64e54 drm/amdgpu: add upper bound check on user inputs in wait ioctl
From Sunil Khatri
b1d10508da559da2e0ca9cca6505094a7df948e1 in linux-6.18.y/6.18.19
64ac7c09fc44985ec9bb6a9db740899fa40ca613 in mainline linux
2026-03-20 00:07:44 +00:00
jsg
cb74c4842c drm/amdgpu/userq: Fix reference leak in amdgpu_userq_wait_ioctl
From Tvrtko Ursulin
762f47e2b824383d5be65eee2c40a1269b7d50c8 in linux-6.18.y/6.18.19
49abfa812617a7f2d0132c70d23ac98b389c6ec1 in mainline linux
2026-03-20 00:05:14 +00:00
jsg
04c9db8ff7 drm/amdgpu: add upper bound check on user inputs in signal ioctl
From Sunil Khatri
6fff5204d8aa26b1be50b6427f833bd3e8899c4f in linux-6.18.y/6.18.19
ea78f8c68f4f6211c557df49174c54d167821962 in mainline linux
2026-03-20 00:02:55 +00:00
jsg
78e474a414 drm/amdgpu: ensure no_hw_access is visible before MMIO
From Perry Yuan
1051eb2f53886ec7e36896dfa356884d7212443a in linux-6.18.y/6.18.19
31b153315b8702d0249aa44d83d9fbf42c5c7a79 in mainline linux
2026-03-20 00:00:26 +00:00
jsg
e49acf7420 drm/amdkfd: Unreserve bo if queue update failed
From Philip Yang
529c985da1b277b36dc99aad660f96dc70f3c467 in linux-6.18.y/6.18.19
2ce75a0b7e1bfddbcb9bc8aeb2e5e7fa99971acf in mainline linux
2026-03-19 23:58:27 +00:00
jsg
c10417f7a0 drm/amd/pm: add missing od setting PP_OD_FEATURE_ZERO_FAN_BIT for smu v14
From Yang Wang
2ee3645e0f3f4343ccdec769d584c85359537c12 in linux-6.18.y/6.18.19
9d4837a26149355ffe3a1f80de80531eafdd3353 in mainline linux
2026-03-19 23:56:57 +00:00
jsg
79f193fabd drm/amd/pm: add missing od setting PP_OD_FEATURE_ZERO_FAN_BIT for smu v13
From Yang Wang
4c32155265b67a876a5ab0e36819f17659e7b8a5 in linux-6.18.y/6.18.19
cb47c882c31334aadc13ace80781728ed22a05ee in mainline linux
2026-03-19 23:55:07 +00:00
jsg
a2e59b3e19 drm/amdgpu/vcn5: Add SMU dpm interface type
From sguttula
31e6595fd1a0517cdcdc74740ac96e76f25ad312 in linux-6.18.y/6.18.19
a5fe1a54513196e4bc8f9170006057dc31e7155e in mainline linux
2026-03-19 23:52:21 +00:00
jsg
b6ce65a7bb Call freeze and restore functions for hibernate. These call the
equivalent suspend and resume functions so no functional change.
Closer matches the amdgpu activate function.

ok kettenis@
2026-03-19 23:04:02 +00:00
kn
4895821bf0 regen 2026-03-19 22:32:31 +00:00
kn
38d2c2d3e1 Add Cadence PCIe Root and Crucial P310 NVMe found on MINISFORUM MS-R1
Feedback OK kettenis
2026-03-19 22:31:02 +00:00
kirill
1e53cfe3c7 sys/cd9660: fix altname underflow and validate RRIP entry lengths
Underflow was reported by Adam Crosser <adam.crosser@praetorian.com>

OK: kn@
2026-03-19 22:26:50 +00:00
tb
e289c8a40f openssl speed: whitespace tweak 2026-03-19 20:28:46 +00:00
chris
f53d362946 add basic 802.11ax support to net80211
also remove VHT from 2ghz channels

ok stsp@
2026-03-19 16:50:32 +00:00
claudio
3c3ccd7979 You can not use ibuf_add_n32 for an signed 32bit type.
ibuf_add_nXY() and ibuf_add_hXY() pass values as uint64_t so the sign
extension of a negative 32bit value will cause an overflow check to trigger.
The relative metric field can be negative and so this will trigger this
error. Use ibuf_add() instead, which is more what this should use anyway.

Found the hard way by sthen@ who also debugged it.
OK tb@ sthen@
2026-03-19 15:36:44 +00:00
tb
701ad029ce libz: sync with userland, ok bluhm deraadt
Two new diffs to upstream in sys/:

1. Remove the new '#warning zlib not thread-safe': amd64 boot blocks
   are compiled with -Werror and this warning breaks the build. Since
   there are no threads in the boot blocks this warning (for ZLB-01-004)
   is irrelevant to OpenBSD.

2. In the kernel, compress.c is compiled without NULL in scope which
   breaks due to newly added NULL checks in compress2_z(), so I
   added an #include <sys/_null.h> under the existing #ifdef _KERNEL
   in zutil.h. Not sure if sys/param.h or something else is preferred.
2026-03-19 15:14:51 +00:00
tb
0c87a16b55 sync 2026-03-19 15:13:32 +00:00
deraadt
c0ed3b1305 sync 2026-03-19 15:12:06 +00:00
tb
5a2f8b7a99 Update documentation, loosely based on zlib.h 2026-03-19 15:11:47 +00:00
tb
5036cf84c0 Update to zlib 1.3.2
This is a minor library bump since it adds six *_z functions that take
size_t instead of uLong (this only really matters for Windows).

The non-blocking device support added quite a bit of churn and so did
the deck chair shuffling for ZLB-01-004, in particular moving the
BUILDFIXED tables around.

See the additions to the ChangeLog for more details.

ok bluhm deraadt
2026-03-19 15:10:55 +00:00
sthen
d9cc38a287 crank libc major to reduce issues if users update from 7.8 and then have
to backout (as I had to do and ran into this). discussed with tb@ deraadt@

If you move from 7.8 to -current and run into problems and need to go
back to 7.8, you'll still have a libc.so.102.2 using syscalls that
weren't available in a 7.8 kernel. If it's the same major and higher
minor it'll be used in preference by the 7.8 binaries so anything
using __pledge_open will fail, bad system call, until you figure it
out, boot single-user, remove the newer libc and reboot/ldconfig.

If libc is bumped, users that were on 7.8 or a snap before pledge
changes before they updated, who then need to backout, won't have that
problem.
2026-03-19 15:05:17 +00:00
sthen
e9d8102e90 switch PF queue bandwidths from u_int to uint64_t, from Andy Lemin
earlier version ok sashan@, changes since then: drop the change to the
manual, and reorder struct

ok tb@
2026-03-19 14:59:05 +00:00
claudio
771ee84d24 Forgot to remove the no longer used tconf in previous commit. 2026-03-19 13:36:50 +00:00
claudio
02f0ac9fa9 Implement imsg_send_config and imsg_recv_config which handle the
sending of bgpd_config.

struct bgpd_config includes various pointers and those should not be passed.
Instead use an zeroed stack object and copy_config() to ensure that all
pointers are NULL before passing the struct.
Also implement imsg_recv_config() which does the reverse.

Reported by Shibo, Shawn, Hugo, Systopia Team
OK tb@
2026-03-19 12:44:22 +00:00
dgl
0ef1d51c79 pledge(2): access() and open() are no longer special for pledge
Reflects kern_pledge.c r1.346 and r1.348.

Also in open(2): Document when __pledge_open appeared and add a missing word.

ok deraadt
2026-03-19 06:40:19 +00:00
djm
e3f28ea82b repair ssh-keysign after pledge changes;
spotted/tested by naddy@ ok deraadt@
2026-03-19 02:36:28 +00:00
kenjiro
00ff6e5230 openssl speed: add benchmarking support for ML-KEM
Add support for benchmarking ML-KEM key encapsulation mechanisms to
openssl speed.  The following operations are measured:

- key generation
- encapsulation
- decapsulation

Two parameter sets are supported:

  mlkem768
  mlkem1024

The benchmark can be invoked using the following options:

  mlkem       run all ML-KEM benchmarks
  mlkem768    run ML-KEM-768 benchmarks
  mlkem1024   run ML-KEM-1024 benchmarks

Results are reported similarly to other public key algorithms, showing
time per operation and operations per second.  Machine-readable output
(-mr) support is also added for ML-KEM.

ok tb
2026-03-18 21:50:24 +00:00
sthen
679f4ad7c9 sync with Mozilla root CA store, ok tb@
- remove CommScope CA (they requested it themselves;
https://bugzilla.mozilla.org/show_bug.cgi?id=1994866)

- add new cert:
/C=HU/L=Budapest/O=Microsec Ltd./2.5.4.97=VATHU-23584497/CN=e-Szigno TLS Root CA 2023
2026-03-18 21:50:06 +00:00
sthen
cf7d68fc25 remove extra spaces in logs, ok claudio 2026-03-18 15:16:29 +00:00
sthen
fd633fc079 typo: Extended Nexhop Encoding (Nexthop) 2026-03-18 15:00:20 +00:00