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

242758 Commits

Author SHA1 Message Date
tb
8b200efe29 rpki-client: check purpose for .cer files in Manifests
Only intermediate CAs and BGPsec certificates are allowed in a Manifest
fileList. Check this is the case, otherwise stop processing the cert.

Missing check reported by Xie Yifan
ok claudio job
2026-01-12 10:48:20 +00:00
sthen
297fb1baf7 sync 2026-01-12 10:44:42 +00:00
cludwig
0a104ad97e regress/xstate: Dynamic xstate buffer size
The current implementation leads to an "xstate buffer too small" error
on newer machines with an xstate area bigger than 1KiB. Allocate the
buffer dynamically from PT_GETXSTATE_INFO kernel info.

ok anton@
2026-01-12 08:23:06 +00:00
nicm
0ebd900b28 Correctly draw indicators when pane-border-indicators is set to both.
Reported by Ilya Grigoriev in GitHub issue 4780.
2026-01-12 07:50:16 +00:00
nicm
18831f0a17 Remember last pane or type of location for double and triple clicks and
correctly handle it changes between first and second or second and
third. GitHub issue 4795 from Shaobo Song.
2026-01-12 07:48:36 +00:00
dlg
cfbde9ac9b remove lacp support from trunk(4)
lacp is better supported by aggr(4). users of lacp in trunk(4)
should migrate to aggr(4).

trunk(4) and the lacp support inside it is one of the last chunks
of code that still requires the netlock in the ethernet stack. the
last time i tried to fix this i ended up writing aggr(4), and nothing
about this code has improved since then. the other protos such as
failover and loadbalance are trivial in comparison and will be easy
to improve in the future.

discussed with and no objections from many
2026-01-12 04:38:15 +00:00
kettenis
01b5bc711c Add support for the ASUS Zenbook A14. There are two different models
(UX3407QA and UX3407RA) that need different device trees.  This means
the letters at the end of the model number are meaningful so adjust the
entry for the ASUS Vivobook S 15 as well.

ok tobhe@
2026-01-11 13:34:19 +00:00
kettenis
527652508a Drop the "apple,nvme-m1" compatible; this was only used during early
bringup.

ok tobhe@, miod@
2026-01-11 12:47:48 +00:00
nicm
06b32666f5 Add paste to the default pane menu, GitHub issue 4763. 2026-01-11 11:48:46 +00:00
tb
ca90173725 More asn1t.h cleanup
This converts more macros to C99 initializers. Rename flags and tags
arguments by appending val because they collide with the field names.
The remainder are whitespace changes.

ok kenjiro
2026-01-11 07:52:34 +00:00
afresh1
50ae83fbdd Apply upstream patch to fix segfault with multi-arg for loops
This is documented upstream https://github.com/perl/perl5/issues/23405

A simple trigger is

  perl -c -wE 'for my ($x, $y) (Bar->foo) {}'

Suggested by James Cook <falsifian () falsifian ! org>
Tested and OK gkoehler@
2026-01-10 23:20:43 +00:00
afresh1
bb2c65927d Delete unused syscall_emulator.c
This file is generated in the obj directory during build,
so this outdated copy should never be used.

Noticed by miod@
2026-01-10 23:16:23 +00:00
kettenis
294bdc40ca acpihid(4) 2026-01-10 16:20:42 +00:00
kettenis
d18576d0fc Add acpihid(4), a driver for the Generic Buttons Device defined by the
ACPI specification.  For now only the power button is supported.

ok mlarkin@
2026-01-10 16:12:36 +00:00
kettenis
379464ea29 Reset NHI before we initialize it. Fixes suspend/resume after hibernation.
ok stsp@, mlarkin@
2026-01-10 12:36:13 +00:00
job
7ae91379da Report the inodes statistics in 'df -hi' in a scaled manner
This improves readability and column alignment for large file systems,
leaving more space for displaying the mountpoint on the same line.

OK asou@ sthen@
2026-01-09 19:54:57 +00:00
deraadt
ee14140d05 sync 2026-01-09 15:29:53 +00:00
sthen
e310dc7ad5 document MODPY_PYBUILD=scikit-build-core 2026-01-09 15:13:07 +00:00
nicm
1999f3ad8d Removing padding needs to go through screen_write_collect_trim or there
may end up multiple items covering the same region.
2026-01-09 15:04:00 +00:00
tb
ce6dd5f928 asn1t.h: add C99 initializers for some ASN.1 templates
This is a first pass at tidying up the unsightly mess that is asn1t.h.

For better or worse, we have expanded the macros internally, and in base
only rpki-client uses the templates. They are generally rarely used.
Fortunately.

Having C99 initializers helps a lot with debugging templated ASN.1 by
combining cc -E with clang-format. They make the macros more readable,
look tidier and help with grep.

ok kenjiro
2026-01-09 03:46:44 +00:00
tb
2bce6ca4aa asn1t.h: whitespace nit 2026-01-09 03:34:30 +00:00
nicm
d8fee5459e Do not set manual size if no window. 2026-01-08 12:05:02 +00:00
nicm
0f50c032e9 Copy palette responses before processing them since they are not strings. 2026-01-08 07:54:23 +00:00
nicm
b9d9e3fc96 Reduce request timeout to 500 milliseconds to match the extended
escape-time, and discard palette requests if receiving a reply for a
different index.
2026-01-07 20:16:32 +00:00
nicm
d77c41cf8f Extend escape timeout if there are active forwarded requests not just
tmux's own requests. GitHub issue 4793.
2026-01-07 20:03:34 +00:00
nicm
2950515c2e Correct redrawing of wide characters when overwritten. Reported by Jake
Stewart in GitHub issue 4737.
2026-01-07 18:29:15 +00:00
kettenis
06109396e5 Fix the hw.cpuspeed implementation and make sure frequency calculations
don't end up triggering a divide by zero.

ok patrick@
2026-01-07 17:02:12 +00:00
sashan
04394254d9 This change extends pf(4) limiters so administrator
can specify action the rule executes when limit is
reached. By default when limit is reached the limiter
overrides action specified by rule to no-match.
If administrator wants to block packet instead then
rule with limiter should be changed to:

   pass in from any to any state limiter test (block)

OK dlg@
2026-01-07 13:50:05 +00:00
tb
33bd6bfbd4 Fix ASN1_ADB_END macro, make it compatible with OpenSSL
In asn1t.h r1.18 (commit 9b72422d) I removed the app_items member from
ASN1_ADB and failed to fix up the ASN1_ADB_END() macro that populates
the ASN1_ADB. This means ASN1_ADB_END() tried to initialize one member
too many and would thus cause a compilation failure, so nobody uses this
with LibreSSL. Internally, we have expanded all its uses.

We could leave it broken or fix it up. Take the opportunity to add an
unused adb_cb() argument instead, making the macro invocation compatible
with OpenSSL.

ok jsing kenjiro
2026-01-07 10:18:35 +00:00
schwarze
b6bc6e61f2 test resetting of line length before the page footer;
related to man_term.c rev. 1.202 and mdoc_term.c rev. 1.287
2026-01-07 08:30:51 +00:00
schwarze
2638ce936e Fix a bug in .ll handling:
When formatting two input files in a row, a line length set with .ll
in the first file leaked to the second file.
Also, mandoc used the changed line length for the page footer,
whereas groff resets .ll before the page footer.

Fix this as follows:
1. Set defrmargin only at program startup, based on -O width / paper.
2. Copy defrmargin to maxrmargin whenever starting an input file or footer.
3. Let .ll / setwidth() only change maxrmargin, not defrmargin.
2026-01-07 08:22:24 +00:00
nicm
b172963606 Work out the default command from the queue in case it has been set from
the config file, GitHub issue 4791.
2026-01-07 08:16:20 +00:00
martijn
df9bd0ec77 Remove "support" for the WIZ command. This used to be a command to
execute commands on the smtp server in old sendmail implementations.

This was obviously added as a joke, probably added for testing Enhanced
Status Code, and basically only changes the text of the 500 error
message, but with it came a lot of exta plumbing. While I appreciate the
joke, it's very obscure and especially the filter plumbing takes up
unneeded space.

OK millert@, chris@
No objection from kirill@
2026-01-07 07:54:57 +00:00
martijn
465d59d2d0 According to RFC5321 section 4.5.3.1.10 the correct return code for too
many recipients is 452, not 451.

OK kirill@
2026-01-07 07:44:31 +00:00
deraadt
27cd12ce0c chunk forgotten for previous commit by chris:
KVA TLB entries can exist under PCID_TEMP after pmap_map_ptes() + interrupts
so KVA shootdowns must invalidate PCID_TEMP too

ok deraadt, mlarkin discussion and approval guenther
2026-01-07 03:25:44 +00:00
chris
98c4f5a1b7 KVA TLB entries can exist under PCID_TEMP after pmap_map_ptes() + interrupts
so KVA shootdowns must invalidate PCID_TEMP too

ok deraadt, mlarkin discussion and approval guenther
2026-01-07 02:21:04 +00:00
jca
0ff6482635 Install arm_neon_sve_bridge.h on aarch64
From Brad, similar diff proposed recently by jsg@, ok kettenis@
2026-01-06 22:27:48 +00:00
jca
5597866b8b Backport aarch64 SVE compile fix from upstream
From Brad, ok kettenis@
2026-01-06 22:24:03 +00:00
schwarze
c7117ed52e test multiple signs in .ll arguments; related to term.c rev. 1.155 2026-01-06 21:28:45 +00:00
schwarze
121913d65d Strangely, groff accepts .ll arguments with multiple signs. For odd numbers
of minus signs, the intended behaviour is decreasing the line length, for
even numbers, increasing it.  The code in term_setwidth() resulted in
incorrect behaviour in two cases: for more than two signs, the line length
wasn't changed at all because a2roffsu() was called incorrectly and failed,
and if the second sign was negative, a negative width was passed to the
setwidth() callbacks, which they aren't prepared to handle.

Fix this by iterating over all signs to find the correct iop operation
code (0=absolute, 1=increase, -1=decrease).  Also improve code clarity
by making the width argument of the setwidth() callbacks unsigned and
removing some ugly casts in these callbacks.
2026-01-06 21:16:12 +00:00
nicm
bee4f3864e If cannot find a terminator for palette responses, treat as a partial
key not complete. GitHub issue 4749.
2026-01-06 20:09:42 +00:00
nicm
96cccda62f Do not send theme unless it has changed, and do not send immediately
when updates are enabled. GitHub issue 5787.
2026-01-06 20:05:57 +00:00
helg
0e3c9ca4be regen 2026-01-06 18:52:40 +00:00
helg
e713a86aef This patch adds an apple variant to the de keyboard encoding for
wskdb. It doesn't attempt to map all additional keysyms, only those that
are required in the shell and for programming.

It is similar to the applealu_iso variant that can be specified in X11
with setxkbmap.

ok miod@
2026-01-06 18:42:18 +00:00
nicm
da4185c58f Clear trimmed lines after moving, from Antony Raj in GitHub issue 4790. 2026-01-06 14:33:05 +00:00
sthen
ecac0bc41b improved cmake MODULES docs, from rsadowski, rebased on top of my previous
commits by me
2026-01-06 13:50:26 +00:00
patrick
092cec3cd5 Request 64k-aligned IOVA blocks. It's a bit unfortunate the alignment
requirements only diffuse through to the bus dma API when we allocate
memory; at that point we already have IOVA allocated, so it's hard to
apply the right alignment.  The good thing is that we basically cannot
run out of an IOMMU domain's IOVA (which for us is per device), so we
can easily bump the alignment of each DMA map.  This helps qwz(4) FW
come up on the Orion O6.
2026-01-06 11:57:33 +00:00
patrick
a4e0552e77 Advertise MSI multiple-vector support. This is assuming that in ACPI
mode we probably have a GIC with MSI support that should give us have
plenty of MSI vectors for us to use.  Improves qwz(4) behavior on the
Orion O6.

ok kettenis@
2026-01-06 11:51:33 +00:00
nicm
b2d621ebb4 Do not use ;;s in list-keys output as it is confusing and cannot be
parsed on input, from Patrick Motard in GitHub issue 4750.
2026-01-06 10:17:29 +00:00
nicm
4459f914e6 Do not log theme if pane is NULL. 2026-01-06 09:11:15 +00:00