1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-27 15:46:02 +00:00
Commit Graph

243122 Commits

Author SHA1 Message Date
deraadt
cd7feeec72 This is using pledge "tmppath" with "rpath wpath cpath".
The "tmppath" is not needed.
ok semarie and others
2026-02-18 15:23:36 +00:00
nicm
8b8eaf56ff Pass which clipboard is set through to the terminal, from Axel Lindskog
in GitHub issue 4858.
2026-02-18 09:10:31 +00:00
deraadt
74811a55db These programs are using pledge "tmppath" with "rpath wpath cpath".
The "tmppath" is not needed.
ok semarie and others
2026-02-18 08:54:46 +00:00
jsg
c9a87b7d52 correct bounds check on number of memory segments
found with smatch, ok patrick@
2026-02-18 03:10:57 +00:00
djm
2312e0c0c9 same treatment for remote/remote copies (i.e. scp -3): adjust
permissions on destination directory only if we created it or -p
was requested. bz3925
2026-02-18 03:04:12 +00:00
djm
5f549511a7 when uploading a directory using sftp/sftp (e.g. during a recursive
transfer), don't clobber the remote directory permissions unless
either we created the directory during the transfer or the -p flag
was set. bz3925 ok dtucker@
2026-02-18 02:59:27 +00:00
djm
3b30660089 make IPQoS first-match-wins in sshd_config as it's intended to be
bz3924
2026-02-17 21:45:07 +00:00
kettenis
3843580086 Sprinkle some BUS_DMA_64BIT; this hardware has no issues handling full
64-bit addresses.

ok stsp@
2026-02-17 20:02:43 +00:00
claudio
69f8c3e7db Call timer_remove_all with the right object.
Copy-paste bug which was introduced with rev 1.128.
Causes the parent to SIGSEGV on config reloads when mrt dumps are used.
2026-02-17 14:06:44 +00:00
job
60b112c3d8 sync 2026-02-17 13:54:42 +00:00
claudio
ead6ce3145 Call rde_filterstate_init() early since goto badflow will call
rde_filterstate_clean() and so the state must be initalized.

Fix for CID 501585
2026-02-17 10:51:43 +00:00
nicm
94e06bebbd Reuse extended entry when clearing RGB cell, to prevent memory growth
when cells are repeatedly cleared (they are only compacted when scrolled
off screen). From Michael K Darling in GitHub issue 4862.
2026-02-17 07:42:58 +00:00
asou
8cf928b454 Always close the device.
ok yasuoka
2026-02-17 04:51:47 +00:00
deraadt
149bd82838 Reuse an unused field in uvmexp, and introduce swpskip. In the near
future, this will count how many times pages are not sent to swap
because the pagedaemon detects the swap system won't be able to deliver
results (and toss the cluster of pages back)
ok beck
2026-02-17 03:28:41 +00:00
deraadt
d0df355ed7 The uvm display abuses the FLD subsystem with a set of empty labels,
which results in an extra blank line. Work around this by noticing all
the labels are empty and not doing a newline.
2026-02-17 03:26:41 +00:00
jsg
5bc91341cd remove duplicate includes; ok dtucker@ 2026-02-16 23:47:06 +00:00
jsg
fc1dd2110f correct bounds check on number of memory segments
found with smatch, feedback and ok stsp@
2026-02-16 23:37:44 +00:00
jsg
234c4baffa update extern for renamed variable
EncapContentInfo_it was renamed to ContentInfo_it in ccr.c rev 1.31
ok claudio@
2026-02-16 23:23:50 +00:00
hshoexer
881362e4e1 Handle VMMCALL in vctrap()
When SEV guest userland issues a vmmcall instruction, a #VC exception
with code SVM_VMEXIT_VMMCALL will be raised in the guest kernel.
For now we do not allow vmmcalls from guest userland, thus terminate
the userland process with SIGILL.

This is similar to the non-SEV case.

ok mlarkin@
2026-02-16 15:10:39 +00:00
hshoexer
c1737a4202 vmm(4): Ignore VMGEXIT request and inject #UD
SEV guest userland processes are allowed to issue the vmgexit
instruction.  However, guest userland has no access to the GHCB.

VMEXITs with exit reason SVM_VMEXIT_VMGEXIT initiated by the guest
kernel will always provide a valid GHCB request.

Moreover, as the guest kernel makes sure, that the GHCB contains
no request when guest userland is running, a rouge guest userland
process can only force repeated VMEXITs with an empty GHCB.

Therefore, in vmm(4)'s vmgexit handler inject #UD when the exit
reason is not updated with data from the GHCB and stays on
SVM_VMEXIT_VMGEXIT.

ok mlarkin@
2026-02-16 15:08:41 +00:00
hshoexer
a9055c1d86 vmm(4): Check for and allow empty GHCB; only clear valid bitmap
The GHCB valid bitmap indicates wether the GHCB contains a request
or not.  When no bits are set, ignore the GHCB and do not sync with
vCPU state.

To clear/invalidate the GHCB just zero out the valid bitmap instead
of the full GHCB.

ok mlarkin@
2026-02-16 15:06:03 +00:00
claudio
2b785c3094 Make sure that the filterset passed along with other objects is present.
For communication with the parent the missing presence of a filter_set
is cause for a panic. This should just never happen. For messages from
bgpctl that are forwarded by the session engine things are more complex.
Make sure the filter_set was sent and only execute the command that
wraps this filter_set is present. If it is not there it may have been
filtered out because it is invalid and then the command depending on
this data should not be executed.

OK tb@
2026-02-16 14:27:40 +00:00
claudio
bbcaa1cefe Make sure rde_filterset_unref() can be called with a NULL pointer.
OK tb@
2026-02-16 14:23:56 +00:00
sthen
72979b9de6 Make sure that internal counters do not go out of bounds if the '-n' or
'-A' options are specified more than once. From Petre Rodan, ok florian@
2026-02-16 13:54:47 +00:00
hshoexer
dac3ac0915 regress: Test vmmcall raises #UD
On AMD/SVM the hypervisor will inject #UD when userland tries to
execute the vmmcall instruction.  Same holds for vmgexit which is
encode as "rep vmmcall".

On Intel/VMX vmmcall and vmgexit are invalid instructions, so the
CPU will raise #UD.

ok mlarkin@
2026-02-16 13:08:57 +00:00
hshoexer
c7faaa76b4 regress: Test vmcall raises #UD
On Intel/VMX the hypervisor will inject #UD when userland tries to
execute the vmcall instruction.

On AMD/SVM vmcall is an invalid instruction, so the CPU will raise

ok mlarkin@
2026-02-16 13:05:14 +00:00
hshoexer
cf1866c0c5 vmm(4): inject #UD for VMs running on SVM/VMX
While there fix typo in a debug printf.

ok mlarkin@
2026-02-16 12:43:58 +00:00
hshoexer
a922f547fd psp(4): add another firmware file
ok mlarkin@
2026-02-16 12:39:53 +00:00
jmatthew
a36cd2d0aa On newer hardware generations, no async events are enabled by default,
so explicitly enable the ones we're interested in.

tested by stsp@ as part of a larger diff
ok dlg@
2026-02-16 10:46:04 +00:00
nicm
4a37cffd3f Format layout change string once per window in control notify, from
Conor Taylor in GitHub issue 4848.
2026-02-16 08:45:38 +00:00
nicm
a585d4ea6e Pull format allocation outside of loop for control subs, from Conor
Taylor in GitHub issue 4848.
2026-02-16 08:42:57 +00:00
jsg
82e27a9cde remove prototype for removed prefix_add_eor() 2026-02-16 08:42:00 +00:00
nicm
ea5644ce6a grid_peek_cell can return NULL, so check for it. From Conor Taylor in
GitHub issue 4848.
2026-02-16 08:02:04 +00:00
dtucker
0fa70da6be Reorder headers to match KNF and Portable. Removes 3 diffs. 2026-02-16 00:45:41 +00:00
dtucker
bbb9429417 Add basic test for keyboard-interactive auth. Not enabled by default
since it requires some setup on the host.
2026-02-15 22:29:30 +00:00
jcs
595f5f025d add AlphaSmart Dana as a PALM4 device
ok jsg
2026-02-15 19:10:15 +00:00
jcs
8efe1c7a60 regen 2026-02-15 19:09:49 +00:00
jcs
a4ff0b97e8 add AlphaSmart Dana 2026-02-15 19:09:27 +00:00
job
5720d63d98 Avoid leak in proc_parser_file() gzip path
Release the old object before overwriting the buf pointer.

CID 643464

OK claudio@
2026-02-15 17:55:14 +00:00
nicm
d67f8546f2 Initialize bufname, reported by Mark Kelly. 2026-02-15 17:43:26 +00:00
jsg
dd4215a712 remove unneeded includes; ok dtucker@ 2026-02-14 00:18:34 +00:00
dtucker
dca435757b Replace <sys/mount.h> with <limits.h> The former is a portability
hassle, but it turns out the only thing we need from it is PATH_MAX
which we can get directly from limits.h.
2026-02-13 19:06:18 +00:00
claudio
18e293310f Add rde filter stats for the new out filters.
OK tb@
2026-02-13 18:27:40 +00:00
bluhm
33ce5ea30d Move atomic_load_sint() under #ifdef _KERNEL in uvmexp.h.
This new inline function should not pollute userland name space.
ports/devel/nspr did not compile due to inline in ansi mode.

reported and fix confirmed sthen@
2026-02-13 18:08:06 +00:00
claudio
ce1a0b308c Optimise the out filters rule evaluation by being more cache friendly.
Similar to filter_sets convert the filter_rule tail queue into an array
of smaller filter_match elements. On top of this deduplicate these rules
via hash table and refcounts. As a result the data is now more cache
friendly and the CPU spends less time waiting for data.

The initial loading time of my test IXP RS setup drops from 25min down
to around 18min. So this change produces a significant speedup on large
BGP setups.

OK tb@
2026-02-13 12:47:36 +00:00
jsg
002f3ac182 remove unneeded forward struct declaration
ok djm@
2026-02-13 01:04:47 +00:00
hshoexer
7d8bc7d2b6 psp(4): Add support for the PSP found on the AMD EPYC 9005 2026-02-12 14:24:53 +00:00
hshoexer
e8429abcf7 regen 2026-02-12 14:20:31 +00:00
hshoexer
0e56baa147 Add PSP of the AMD EPYC 9005
ok mlarkin@
2026-02-12 14:19:23 +00:00
djm
829f23bb15 very basic testing of multiple files in RevokedKeys and RevokedHostkeys 2026-02-11 22:58:23 +00:00