1
0
mirror of https://github.com/openbsd/src.git synced 2026-05-01 17:46:35 +00:00
Commit Graph

243524 Commits

Author SHA1 Message Date
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
bluhm
b73ef35b3f Update libexpat to version 2.7.5.
Relevant for OpenBSD are security fixes #1158 #1161 #1162 #1163,
other changes #1156 #1153.  Library bump is not necessary.
CVE-2026-32776 CVE-2026-32777 CVE-2026-32778

tested and OK tb@
2026-03-18 11:50:19 +00:00
nicm
5290485239 Copy hyperlinks when redrawing popup so they do not vanish, from Antoine
Gaudreau Simard in GitHub issue 4925.
2026-03-18 08:49:27 +00:00
nicm
6b0793db8c Fix buffer to both for get-clipboard, from Seth Girvan. 2026-03-18 08:41:20 +00:00
nicm
7a6e39fb68 Allow codepoint-widths to accept ranges, from san65384 at gmail dot com
in GitHub issue 4930.
2026-03-18 08:38:54 +00:00
tb
011d0beef8 libcrypto: prefix EC_KEY methods with ec_key_
We received reports that the too generic internal ecdsa_{sign,verify}()
symbol names clash in some static links. The naming here is annoying
because the EC_KEY_METHOD amalgamated the no longer existing ECDH and
ECDSA methods which themselves had poorly chosen method names, still
reflected in public API.

There are various messes here. The ECDSA verify methods are declared
in ec_local.h, whereas the ECDSA sign methods are in ecdsa_local.h
(which is itself pretty useless and really only about EC_KEY_METHOD).
I therefore merged the ECDSA method declarations into ec_local.h and
deleted ecdsa_local.h since I see no real benefit to the latter.
ecdsa.c needs ec_local.h anyway. Having the method declarations next
to EC_KEY_METHOD seems sensible. I left the order as it was, matching
ecdsa.c. The eckey_compute_pubkey() prototype should probably be moved
down.

With one exception I just added an ec_key_ prefix. This leads to a
a repetition of 'key' in ec_key_ecdh_compute_key() which I chose to
live with because it matches the public ECDH_compute_key() (mostly
used by SSH implementations). The exception is ec_key_generate_key()
where I expanded the gen() leading to another _key repetition but
this then matches EC_KEY_generate_key().

Thanks to Rosen Penev for reporting and sending an initial diff.
See also https://github.com/gsliepen/tinc/issues/478

ok jsing
2026-03-18 08:02:40 +00:00
robert
5631923097 rework the way we reconsturct the object file order for syspatches
this change drops the exclude regex and just simply checks if the
object files are actually available and then constucts a response
file which we pass for linking and this seems to be good enough
to have reproducible make build output (which is what we want here)

ok tb@
2026-03-17 17:07:58 +00:00
claudio
561bf2d229 Do not include log.h here since this file is shared with bgpctl and
therefor unable to use these functions.
OK tb@
2026-03-17 15:15:16 +00:00
claudio
83e02d30b3 bgpctl does not send IMSG_CTL_SHOW_TIMER messages, so remove them from the
restricted socket filter.
OK tb@
2026-03-17 15:12:05 +00:00
robert
da63d7b552 add support for building specified subdirs instead of a full build; ok tb@ 2026-03-17 14:38:17 +00:00
sthen
dc53c6556c ospf6d doesn't do reload, so don't allow rcctl reload to be accepted
ok phessler
2026-03-17 14:27:25 +00:00
tb
276113fdf4 chash: zap two trailing blanks in comments 2026-03-17 10:31:03 +00:00
claudio
7b59c65f54 Show CH hash memory usage in 'show rib mem' output.
OK tb@
2026-03-17 09:30:11 +00:00