1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

229670 Commits

Author SHA1 Message Date
stsp
243d6ddeb6 fix 40 MHz channel validation checks for the 2.4 GHz channel range
Just like the 5 GHz channels, 2.4 GHz channels are spaced 5 MHz apart.
40 MHz wide channels hence span channels [N, N + 4] not [N, N + 1].
Adjust our secondary channel range checks accordingly.
2023-10-22 12:01:36 +00:00
schwarze
918cd63c4b regression test for roff.c rev. 1.269:
recursive delayed expansion of escape sequences in macro arguments
2023-10-21 17:28:01 +00:00
schwarze
7bda13b189 When parsing a macro argument results in delayed escape sequence
expansion, re-check for all contained escape sequences whether they
need delayed expansion, not just for the particular escape sequences
that triggered delayed expansion in the first place.  This is needed
because delayed expansion can result in strings containing nested
escape sequences recursively needing delayed expansion, too.

This fixes an assertion failure in krb5_openlog(3), see:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266882

Thanks to Wolfram Schneider <wosch at FreeBSD> for reporting the bug
and to Baptiste Daroussin <bapt at FreeBSD> for forwarding the report.
2023-10-21 17:10:12 +00:00
deraadt
34570e4bae delete whitespaces that end up in output files 2023-10-21 14:09:15 +00:00
tb
7890bd76d9 Remove mention of alg_section. This never worked in LibreSSL. 2023-10-21 14:05:49 +00:00
schwarze
1687aac2ca style tweak: avoid double conjunction to make it read better
OK tb@
2023-10-21 13:53:43 +00:00
stsp
c484bc8249 ignore wide channel configs that do not appear in the 802.11ac spec
Wide channel configurations not listed in operating class tables of
the 802.11ac spec can trigger regulatory assertion failures in iwm(4)
firmware, and potentially other device firmware.
Ignore non-standard channels configs such that we downgrade to 40MHz
or even 20MHz to make such APs usable, albeit at lower speed.

Found by dlg@ with a mikrotik AP advertising channel configs that do
not appear as such in the spec:
  80 MHz: |104|108|112|116|
  40 MHz: |primary: 112|secondary above: 116|
Either of these triggered iwm0: 0x000014FD | ADVANCED_SYSASSERT

Fix tested by myself on iwx(4) AX200 and dlg@ on iwm(4) 7260.
Johannes Berg helped with deciphering the error code, thanks!
2023-10-21 06:47:23 +00:00
stsp
e6d46cd954 ensure that iwm(4) uses the 80Mhz primary channel index announced in beacons
same fix was applied to iwx(4) some time ago
2023-10-21 06:41:26 +00:00
kn
3f0bb8e92b Adopt MI re-upgrade prevention
In comparison to MI boot which only cares about /bsd.upgrade's x bit,
powerpc64 rdboot just wants a regular file.

Require and strip u+x before execution to prevent sysupgrade(8) loops.

OK kettenis
2023-10-20 19:58:16 +00:00
kn
d807f41cc3 Adopt MI re-upgrade prevention
In comparison to MI boot which only cares about /bsd.upgrade's x bit,
octeon rdboot just wants a regular file.

Require and strip u+x before execution to prevent sysupgrade(8) loops.

OK kettenis
2023-10-20 19:55:49 +00:00
kettenis
8a9ff49d78 Avoid forcible mounting a dirty filessystem. Mount such filesystems
read-only instead.  This means that writing to the filesystem will fail.
As a consequence chmod'ing of files in the bootloader will fail, but that
will fix itself on the next clean boot.

Same change as I committed to powerpc64 a few days ago.

ok kn@, deraadt@
2023-10-20 18:53:12 +00:00
schwarze
1e99d3034a Improve markup in some cases where .Li was abused.
Triggered by a smaller diff from jan@.
OK jmc@ jan@
2023-10-20 18:51:09 +00:00
bluhm
7b4d35e0a6 Avoid assertion failure when splitting mbuf cluster.
m_split() calls m_align() to initialize the data pointer of newly
allocated mbuf.  If the new mbuf will be converted to a cluster,
this is not necessary.  If additionally the new mbuf is larger than
MLEN, this can lead to a panic.
Only call m_align() when a valid m_data is needed.  This is the
case if we do not refecence the existing cluster, but memcpy() the
data into the new mbuf.

Reported-by: syzbot+0e6817f5877926f0e96a@syzkaller.appspotmail.com
OK claudio@ deraadt@
2023-10-20 16:25:15 +00:00
jan
dc62a2d583 Add missing tcps_outpkttso counter to ixl(4) TSO setup.
ok bluhm@
2023-10-20 13:21:15 +00:00
dtucker
1578c44b5f Allow overriding the locations of the Dropbear binaries similar to what
we do for the PuTTY ones.
2023-10-20 07:37:07 +00:00
jan
936f91c62f Improve bad comment.
pointed out by kn@

ok kn@
2023-10-20 07:31:12 +00:00
dtucker
77568e37ae Add interop test with Dropbear. Right now this is only dbclient not the
Dropbear server since it won't currently run as a ProxyCommand.
2023-10-20 06:56:45 +00:00
jsg
d156b7d56e dma-buf: add dma_fence_timestamp helper
From Christian Koenig
d67b5a2b97b6e8959117ff71fc2daa30e66c8290 in linux-6.1.y/6.1.59
b83ce9cb4a465b8f9a3fa45561b721a9551f60e3 in mainline linux
2023-10-20 03:49:31 +00:00
jsg
946b22943e drm/amd/display: Don't set dpms_off for seamless boot
From Daniel Miess
f0410917561cb56f93ac8c502eb0ec94f25cafe9 in linux-6.1.y/6.1.59
23645bca98304a2772f0de96f97370dd567d0ae6 in mainline linux
2023-10-20 03:46:56 +00:00
jsg
3516e1ba8b drm/amdgpu: add missing NULL check
From Christian Koenig
a61d905a86879427e330a5a66cba8b2330dac4d1 in linux-6.1.y/6.1.59
ff89f064dca38e2203790bf876cc7756b8ab2961 in mainline linux
2023-10-20 03:45:42 +00:00
jsg
dd23e57cae drm/atomic-helper: relax unregistered connector check
From Simon Ser
0fb82afee55fc6e12f3581e87d47fd1beae36a98 in linux-6.1.y/6.1.59
2b7947bd32e243c52870d54141d3b4ea6775e63d in mainline linux
2023-10-20 03:43:33 +00:00
jsg
42b1e46fc5 drm/i915: Don't set PIPE_CONTROL_FLUSH_L3 for aux inval
From Nirmoy Das
f175665385fe9fdd996080806aa67e666475d3d8 in linux-6.1.y/6.1.59
128c20eda73bd3e78505c574fb17adb46195c98b in mainline linux
2023-10-20 03:41:56 +00:00
jsg
5158102c42 add dma_fence_timestamp() for 6.1.59 drm 2023-10-20 03:38:58 +00:00
bluhm
b7a9a499f9 Add test for dropped messages to UDP loghost. 2023-10-19 22:19:16 +00:00
bluhm
fdcc316afe syslogd(8) counts dropped UDP packets.
Now that syslogd handles delayed DNS lookups, also count dropped
packets to UDP loghosts.  Although not every outgoing UDP packet
dropped along the path can be detected, the message makes the admin
aware that there is a local blind spot during startup.
Improve debug and log messages, especially if UDP logging is shut
down permanently.  Also do not print 'last message repeated' if the
message was dropped.

OK deraadt@
2023-10-19 22:16:10 +00:00
tb
09d458bcdb Rename the modulus from n into m
This matches what other pages use. Also rewrite the definition of the
modular inverse to be less ugly.
2023-10-19 19:17:46 +00:00
kn
f2babcd2b2 root disk can be enrypted with a key disk now 2023-10-19 18:39:46 +00:00
anton
427e22f8e7 Add missing removal of network interfaces in regress cleanup targets.
Reducing the risk tests conflicting with each other.

ok bluhm@
2023-10-19 18:36:40 +00:00
deraadt
7ac3354a92 sync 2023-10-19 18:04:44 +00:00
job
ec1cc732ee Add experimental support for secp256r1 aka P-256 aka prime256v1
ECDSA signatures are much smaller than RSA signatures while offering
similar security. Adding support for P-256 now allows CA developers
to test their implementations, and paving the way for signers in the
production environment in the future to take advantage of ECDSA.

OK tb@
2023-10-19 17:05:54 +00:00
jan
f77c9c95a2 Enable TCP Segmentation Offloading for ixl(4)
Tested on amd64 and sparc64.
Also tested by bluhm@.

ok bluhm@
2023-10-19 16:28:02 +00:00
tb
24882d0aeb Add a few more test cases for mod_exp aliasing 2023-10-19 13:38:12 +00:00
claudio
a2488d3f14 While the ibuf_add calls should not fail the way they are used it
is still better to check for error.
OK tb@
2023-10-19 13:14:19 +00:00
claudio
de259131ae Convert rtr_proto.c to use new ibuf API.
More yak shaving required which will follow.
OK tb@
2023-10-19 11:12:10 +00:00
tb
71d2929225 Garbage collect weird /* 1 */ and /* 2 */ comments
If they ever had any meaning, that's long been lost.

Requested by jsing
2023-10-19 10:27:27 +00:00
tb
9455408dfb The bn_mod_exp test is no longer an expected failure 2023-10-19 10:23:38 +00:00
tb
0611586681 Fix aliasing of result and exponent in the internal BN_mod_exp_recp()
This is basically the same fix as the one applied in BN_mod_exp_simple().
2023-10-19 10:23:00 +00:00
tb
17c05c7500 Fix aliasing of result with exponent or modulus in BN_mod_exp_simple()
Reported and reminded by Guido Vranken in OpenSSL issue #21110

ok jsing
2023-10-19 10:17:52 +00:00
tb
7849ca552a Add test case checking aliasing of the result with other arguments
These are expected failures for BN_mod_exp_simple() and the internal
BN_mod_exp_recp(), which will be fixed shortly.
2023-10-19 10:17:24 +00:00
claudio
c58ea0be8d Convert the session engine to use the new ibuf API.
OK tb@
2023-10-19 07:02:45 +00:00
fcambus
5256cb4396 Add IBM encoded version of "Spleen 8x16".
The font is 2-Clause BSD licensed and is my original creation.

OK miod@
2023-10-19 06:47:36 +00:00
kn
60138eed7d Reduce unpractical package URL to usual package name; OK deraadt
This section about ports/packages really wants a revamp, though...
2023-10-19 02:43:58 +00:00
kn
5089422883 Support encrypting the root disk with a key disk
Extend the yes/no question to no/passphrase/keydisk and have users pick an
existing, preformated RAID partition;  no support (yet) for creating one.

OK tb afresh1
2023-10-19 02:39:06 +00:00
kettenis
1a98aacbe5 Avoid forcible mounting a dirty filessystem. Mount such filesystems
read-only instead.  This means that writing to the filesystem will fail.
As a consequence chmod'ing of files in the bootloader will fail, but that
will fix itself on the next clean boot.

ok kn@
2023-10-18 22:44:42 +00:00
anton
ee13018892 Make libssl interop server/client tests less flaky by ensuring the
server has terminated before examining the outcome.
2023-10-18 19:14:32 +00:00
anton
58a12351a6 adjust sgr0 escape sequence after ncurses update; ok nicm@ 2023-10-18 18:01:10 +00:00
tb
5e9af90780 Remove EVP_add_alg_module() prototype
This function was the unfortunate protagonist in a series of tragic merge
errors resulting in only a short stint of a year and nine months between
OpenSSL 0.9.8j and 1.0.0a actually present in OpenBSD. Then it said good
bye for good, but somehow a prototype came back with 1.0.1g, a famous
version released when there were slightly more pressing things to be
taken care of than a function supporting a config knob whose only purpose
was to turn off fips mode or to error.

from schwarze

PS: The mechanism that it was supposed to provide is still documented in
openssl.cnf(5). I am going remove the relevant bit at some point, but not
today.
2023-10-18 17:26:06 +00:00
schwarze
0f7f2ebbd1 Support the GNU-specific syntax ".IP \\[bu]" for bullet lists in man(7)
pages that Alejandro Colomar recommends in the "Lists" subsection of
https://man7.org/linux/man-pages/man7/man-pages.7.html#STYLE_GUIDE .

For example, this will improve HTML formatting of the first list in
the subsection "Feature test macros understood by glibc" on the page
https://manpages.debian.org/bookworm/manpages/ftm.7.en.html .

Issue reported by Alejandro Colomar <alx at kernel dot org>.
2023-10-18 16:11:29 +00:00
schwarze
b379b08b61 Better document the purpose and features of the file mandoc.css
and the purpose and limitations of the embedded stylesheet.

Triggered by a conversation with Alejandro Colomar <alx at kernel dot org>.
2023-10-18 14:47:22 +00:00
jan
d987d4292a Avoid segments greater than maxsegsz during map merging
Found with hints from kettenis@

Tested on Sun-Fire-V215.
Also tested on U2 and UltraBook IIe by miod@

ok miod@
2023-10-18 14:24:29 +00:00