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

241370 Commits

Author SHA1 Message Date
schwarze
08b90dfd30 Fix incorrent escaping of a backslash; found with mandoc -T lint.
While here, remove needless quoting of one .Sq argument, and quote
another .Sq argument, where quoting is indeed needed, in a less unusual way.
2025-09-22 17:18:40 +00:00
hshoexer
d8b9fe87b4 In wbinvd_on_all_cpus_acked() only request wbinvd from CPUs that
are actually running, i.e. CPUF_RUNNING is set.

Noted by deraadt@

ok claudio@ bluhm@
2025-09-22 13:19:03 +00:00
tb
f8c54f06bd libexpat: fix version line in expat.pc
The last expat update introduced whitespace between # and define, which
resulted in a bogus 'Version: ..' line in expat.pc. Teach the regex about
such whitespace. Unbreaks the build of graphics/rawtherapee.

ok matthieu
2025-09-22 08:24:53 +00:00
sashan
adfd21e9d9 Teach btrace(8) how to resolve addresses in callstacks to symbols.
Overall design comes from deraadt@. The calculation method of DSO
address in traced process virtual address space was suggested by
kettenis@.  Many others provided their feedback and ideas in earlier
versions of this change.

OK claudio@
2025-09-22 07:49:43 +00:00
job
ba3af0f64a For consistency, change a few err() -> errx()
OK tb@
2025-09-22 07:37:28 +00:00
jsg
d40a33f7df enable GuC submission on Meteor/Arrow Lake
GuC submission was disabled as it sometimes failed to initialise
on my Alder Lake machine (T14 Gen 3 Intel).  This continues to happen
on some boots.

However, not using GuC submission results in warnings and graphical
glitches on Meteor Lake (T14 Gen 5 Intel).  So instead of disabling
GuC submission for all platforms, disable it just for Alder Lake-P/N.
2025-09-22 07:00:01 +00:00
jsg
0485bf3761 change the ida_alloc_range() call in new_guc_id() from GFP_KERNEL to
GFP_ATOMIC so pool_get() will be called with PR_NOWAIT

Avoids 'non-zero mutex count: 1' panic when GuC submission is enabled
on gen 12 (Alder Lake, Meteor Lake).

assertwaitok
pool_get
idr_alloc
ida_alloc_range
new_guc_id
assign_guc_id
pin_guc_id (takes submission_state.lock)
2025-09-22 06:25:43 +00:00
jsg
1f893436b6 drm/amdgpu: fix a memory leak in fence cleanup when unloading
From Alex Deucher
5539bc82cedadea42878025ff86117762f098a81 in linux-6.12.y/6.12.48
7838fb5f119191403560eca2e23613380c0e425e in mainline linux
2025-09-22 03:53:32 +00:00
jsg
76aa478937 drm/i915/power: fix size for for_each_set_bit() in abox iteration
From Jani Nikula
215ea32e1fba22e67e7e37add57fd2b94886dba1 in linux-6.12.y/6.12.48
cfa7b7659757f8d0fc4914429efa90d0d2577dd7 in mainline linux
2025-09-22 03:51:47 +00:00
jsg
01779fba6a drm/amd/display: use udelay rather than fsleep
From Alex Deucher
03653847b6ef6229ae6296c217b0f914f8b351a6 in linux-6.12.y/6.12.48
1d66c3f2b8c0b5c51f3f4fe29b362c9851190c5a in mainline linux
2025-09-22 03:50:05 +00:00
jsg
43a8fc1994 drm/amdgpu/vcn4: Fix IB parsing with multiple engine info packages
From David Rosca
6dc4eddeb7e6cca7e1ab32cafbda79d06e652d84 in linux-6.12.y/6.12.48
2b10cb58d7a3fd621ec9b2ba765a092e562ef998 in mainline linux
2025-09-22 03:48:40 +00:00
jsg
3b5f9ba2c1 drm/amdgpu/vcn: Allow limiting ctx to instance 0 for AV1 at any time
From David Rosca
c53a6447d1ab3f89f5e4e989ee79fcddb98782be in linux-6.12.y/6.12.48
3318f2d20ce48849855df5e190813826d0bc3653 in mainline linux
2025-09-22 03:45:30 +00:00
jsg
2505ec04ec drm/amdgpu: Add back JPEG to video caps for carrizo and newer
From David Rosca
8d7cc147124e5dc2bcf881436a2976e94c0fbe86 in linux-6.12.y/6.12.48
2036be31741b00f030530381643a8b35a5a42b5c in mainline linux
2025-09-22 03:43:38 +00:00
jsg
3582473378 Revert "drm/amd/display: Optimize cursor position updates"
From Aurabindo Pillai
86c7bcb6993ce81ecb322d164ba76d3dab29a62b in linux-6.12.y/6.12.48
a5d258a00b41143d9c64880eed35799d093c4782 in mainline linux
2025-09-22 03:42:05 +00:00
jsg
72cfc76821 drm/amd/display: Fix error pointers in amdgpu_dm_crtc_mem_type_changed
From Srinivasan Shanmugam
278d96bd0b4812e07eac8d82b1871d84bbd15e03 in linux-6.12.y/6.12.48
da29abe71e164f10917ea6da02f5d9c192ccdeb7 in mainline linux
2025-09-22 03:39:51 +00:00
jsg
b8f7c0a2d1 drm/i915/pmu: Fix zero delta busyness issue
From Umesh Nerlige Ramappa
996ab5ee7d72d53029f88ac55d6813e83efa405f in linux-6.12.y/6.12.48
cb5fab2afd906307876d79537ef0329033c40dd3 in mainline linux
2025-09-22 03:36:56 +00:00
kettenis
af74cd1213 Add a little bit of code to report the wakeup GPIO that triggered a resume.
ok stsp@, phessler@
2025-09-20 17:43:28 +00:00
helg
623648cde2 This patch addresses incompatibilities in the way that FUSE handles
terminating a FUSE session.

The primary change is:

The Linux libfuse implementation of fuse_loop(3) terminates either when
the kernel sends FUSE_DESTROY or, if fuse_set_signal_handlers(3) has
been called, when it catches one of SIGINT, SIGHUP, or SIGTERM.

The OpenBSD implementation behaves similarly when the file system is
unmounted with umount(8). However, it tries to unmount the file system
automatically when one of the above signals is caught. It should
instead just terminate and rely on fuse_unmount(3) being called later by
the FUSE file system daemon as part of its termination.

Additional changes:

- The FUSE file system daemon's destroy handler is the last operation
  called after the file system is unmounted. Before, it was incorrectly
  being called when FBT_DESTROY is received by fuse_loop(3). The destroy
  handler is now called in fuse_destroy(3).

- The file system is no longer unmounted when the device is closed.
  fuse_unmount(3) now closes the FUSE device before unmount(2) is called to
  prevent deadlocks due to the kernel trying to send FBT_DESTROY when
  fuse_loop(3) is no longer active and there listening for messages from
  the kernel.

  The side effect of this change is that if a FUSE file system daemon
  crashes, the FUSE device is automatically closed but the file system is not
  unmounted. It must be unmounted manually with umount(8).

- Man page updates to reflect this change and correct a few other minor
  errors.


OK claudio@
2025-09-20 15:01:23 +00:00
mpi
c7c71395f5 NULLVP is now spelled NULL. 2025-09-20 13:56:15 +00:00
mpi
ac6462867e Retire NULLVP, use NULL for coherency.
ok semarie@, bluhm@
2025-09-20 13:53:36 +00:00
mpi
7c2cd24540 Use bus_dmamem_alloc_range(9) instead of uvm_km_kmemalloc_pla(9).
tested by and ok ratchov@
2025-09-20 13:50:33 +00:00
tb
9c6bdecb44 rpki-client: work around OpenSSL 1.1 not having NID_signedObject
Call x509_init_oid() from serialize_ccr_content(). Create the signedobj_oid
and ccr_oid with OBJ_dup(). This way we don't need the NID to be built into
libcrypto and can prolong OpenSSL 1.1 support a little.

ok job
2025-09-20 11:05:58 +00:00
tb
e95dccdb56 revert previous: x509_init_oid() isn't called in the main process 2025-09-20 05:04:54 +00:00
tb
855190e675 Create the signedObject OID via OBJ_dup(signedobj_oid)
This is needed for compatibility with OpenSSL 1.1 which we nominally still
support.

Found and tested by benno
2025-09-19 21:12:56 +00:00
sthen
b934710c69 add an entry for James Baker (ReKaB), very talented electronic music
producer and dj who passed at the end of August in Dorset

rest in peace James
2025-09-19 17:16:28 +00:00
krw
fec3b0351a nitems(d_partitions) and MAXPARTITIONS will eventually diverge.
Use MAXPARTITIONS as the maximum number of partitions to recognize.

ok deraadt@
2025-09-19 12:51:02 +00:00
job
72068b4b0a Align error message with the function being called
OK tb@
2025-09-19 11:52:20 +00:00
jsg
aa8d507d49 When copying, use the size of the buffer not size of a pointer.
In this case the buffer was a uintptr_t, so no functional change.

ok miod@ tb@ bluhm@
2025-09-19 11:27:51 +00:00
jsg
7ff36aae07 mention non-XT 7700
747e rev db is Radeon RX 7700
found in AMD Software: Adrenalin Edition 25.9.2
2025-09-19 09:21:31 +00:00
mglocker
9162b2da63 Fix typo in d0 pin mapping table.
ok kettenis@
2025-09-19 08:36:19 +00:00
sf
084ff4a3f0 SEV-ES: Only attach first CPU for now
We don't suport multiprocessor with SEV-ES, yet. We lack per-cpu GHCBs
and custom cpu startup functions.  Until then, prevent the application
processors from attaching, to avoid delays or hangs during boot.

ok mlarkin@
2025-09-19 07:00:32 +00:00
djm
7402ce006e log at level INFO when PerSourcePenalties actually blocks access
to a source address range. Previously this was logged at level
VERBOSE, which hid enforcement actions under default config
settings.

ok dtucker, markus
2025-09-19 01:32:45 +00:00
kevlo
07f8e0da7a Update for RTL8127 support.
ok deraadt@
2025-09-19 00:42:06 +00:00
kevlo
8085219ea9 Add preliminary support for RTL8127 Ethernet controller.
ok deraadt@
2025-09-19 00:41:14 +00:00
kevlo
8ace7288bd regen 2025-09-19 00:40:34 +00:00
kevlo
4bbd7ade92 Add PCI id for RTL8127.
ok deraadt@
2025-09-19 00:39:59 +00:00
claudio
10d450b098 Abort transfers from servers that send excessive data.
When a regular HTTP transfer with content-length is finished check that
the buffer is actually empty. It seems some proxies violate this and
then rpki-client runs into an assert in http_done(). Instead fail the
transfer and let the state machine figure out how to fall back.

Reported by and OK job@
2025-09-18 15:40:22 +00:00
kettenis
fc944ec11b Write out the user windows before we start tearing down userland mappings.
At least in theory we could still have dirty user windows that haven't been
written out yet when we call uvm_purge() which would result in a page fault
if we have removed the mappings for the stack from the pmap.

ok deraadt@, claudio@
2025-09-18 14:54:33 +00:00
sthen
8785049c19 document changes to renewal timers, ok florian tb 2025-09-18 14:13:27 +00:00
florian
73ea382213 Adapt renewal calculation for shortlived certificates.
If the lifetime is more than 10 days renew if less than 1/3 of the
lifetime is left. Otherwise renew after 1/2 of the remaining lifetime.

Since we suggest to run the cronjob daily, this is capped at 3 days
remaining lifetime to have the opportunity to run the cronjob at least
twice.

Input & OK tb, sthen

Putting it in now because it gives buypass users 60 days of warnings
instead of 30 that their certificate can't be renewed (pointed out by
sthen).
2025-09-18 13:22:36 +00:00
stsp
3c6de0e26d regen 2025-09-18 13:16:11 +00:00
stsp
bc463dbe88 Add PCI IDs of AMD 19/4x USB4 devices found in the Thinkpad Z13.
ok kettenis@
2025-09-18 13:15:45 +00:00
krw
9f144089d0 Variables set by DL_PARTNAME2NUM() should be signed.
ok deraadt@
2025-09-18 13:05:24 +00:00
florian
a61a645359 Install reject route for prefix delegation.
This prevents routing loops in case only parts of the delegated prefix
are configured on interfaces.

Pointed out by phessler some time ago.

Fix a double whitespace while here; pointed out by tb

OK tb
2025-09-18 11:49:23 +00:00
florian
d723c5b994 Reduce if_indextoname(3) usage.
There is no need to constantly ask the kernel for the interface name,
it is not going to change.

We pass the interface name from the frontend to the engine because
it is a fixed length string that is only used to find the
configuration for the interface and debugging output.

We do *not* pass the name to the main process because that would allow
the frontend to create arbitrary files inside of /var/db/dhcpleased/,
send arbitrary data to the SIOCAIFADDR et. al. ioctls, and mess with
the bpf socket.

OK tb
2025-09-18 11:37:01 +00:00
jsg
e42e9c0af1 Rasperry -> Raspberry 2025-09-18 02:03:04 +00:00
bluhm
611e730811 Test that TCP keepalive packets are sent. Set very short intervals
and use scapy to analyse ACK and RST from TCP stack.
2025-09-17 22:50:08 +00:00
sthen
6d22a4a711 mention uv_build, pointed out by tb@ 2025-09-17 22:11:55 +00:00
deraadt
44b8197807 struct disklabel is going to grow, so we moved them off the stack and
allocated them.  However, memory allocation in sr_hibernate_io() is
pretty difficult.  So we are going to try to do it as a static struct
in bss.
ok mlarkin kettenis
2025-09-17 22:05:34 +00:00
deraadt
3218edb3ce apply the DL_PARTNUM2NAME / DL_PARTNAME2NUM hammer 2025-09-17 20:23:58 +00:00