openbsd
20 months agoregen
kettenis [Mon, 13 Feb 2023 08:03:05 +0000 (08:03 +0000)]
regen

20 months agoAdd Rockchip RK3566 and shorten the name for the RK3399.
kettenis [Mon, 13 Feb 2023 08:01:52 +0000 (08:01 +0000)]
Add Rockchip RK3566 and shorten the name for the RK3399.

ok jsg@

20 months agoRevise for negative zero changes.
jsing [Mon, 13 Feb 2023 04:26:32 +0000 (04:26 +0000)]
Revise for negative zero changes.

20 months agoAvoid negative zero.
jsing [Mon, 13 Feb 2023 04:25:37 +0000 (04:25 +0000)]
Avoid negative zero.

Whenever setting negative to one (or when it could potentially be one),
always use BN_set_negative() since it checks for a zero valued bignum and
will not permit negative to be set in this case. Since BN_is_zero()
currently relies on top == 0, call BN_set_negative() after top has been
set (or bn_correct_top() has been called).

This fixes a long standing issue where -0 and +0 have been permitted,
however multiple code paths (such as BN_cmp()) fail to treat these as
equivalent.

Prompted by Guido Vranken who is adding negative zero fuzzing to oss-fuzz.

ok tb@

20 months agoSimplify BN_set_negative().
jsing [Mon, 13 Feb 2023 04:03:38 +0000 (04:03 +0000)]
Simplify BN_set_negative().

ok tb@

20 months agoAdd currently failing negative zero check to BN_rshift() regress.
jsing [Mon, 13 Feb 2023 04:00:39 +0000 (04:00 +0000)]
Add currently failing negative zero check to BN_rshift() regress.

20 months agosync
deraadt [Sun, 12 Feb 2023 17:42:41 +0000 (17:42 +0000)]
sync

20 months agobump major after syscall removal
tb [Sun, 12 Feb 2023 17:41:46 +0000 (17:41 +0000)]
bump major after syscall removal

20 months agoRename pipeselwakeup() to pipe_wakeup(). It doesn't call selwakeup()
mvs [Sun, 12 Feb 2023 10:41:00 +0000 (10:41 +0000)]
Rename pipeselwakeup() to pipe_wakeup(). It doesn't call selwakeup()
anymore, so do it to be consistent with similar *wakeup() functions.

No functional changes.

ok visa@

20 months agoregen
mvs [Sun, 12 Feb 2023 10:40:05 +0000 (10:40 +0000)]
regen

20 months agoAdd "Micron Technology" vendor and MTFDKBA512QFM NVMe storage
mvs [Sun, 12 Feb 2023 10:39:16 +0000 (10:39 +0000)]
Add "Micron Technology" vendor and MTFDKBA512QFM NVMe storage

ok deraadt@

20 months agom88k also needs to define PMAP_CHECK_COPYIN as 1.
aoyama [Sun, 12 Feb 2023 07:02:43 +0000 (07:02 +0000)]
m88k also needs to define PMAP_CHECK_COPYIN as 1.

"this makes sense" miod@

20 months agonon-padded 64-bit system calls arrived 2021/12/23, over a year ago.
deraadt [Sat, 11 Feb 2023 23:22:17 +0000 (23:22 +0000)]
non-padded 64-bit system calls arrived 2021/12/23, over a year ago.
time to delete the backwards compat padded functions in the kernel.

20 months agosync
deraadt [Sat, 11 Feb 2023 23:21:58 +0000 (23:21 +0000)]
sync

20 months agonon-padded 64-bit system calls arrived 2021/12/23, over a year ago.
deraadt [Sat, 11 Feb 2023 23:21:22 +0000 (23:21 +0000)]
non-padded 64-bit system calls arrived 2021/12/23, over a year ago.
time to delete the backwards compat padded functions in the kernel.

20 months agosync for __syscall removal
deraadt [Sat, 11 Feb 2023 23:10:24 +0000 (23:10 +0000)]
sync for __syscall removal

20 months agosync
deraadt [Sat, 11 Feb 2023 23:08:14 +0000 (23:08 +0000)]
sync

20 months agocrank major because __syscall is gone
deraadt [Sat, 11 Feb 2023 23:07:51 +0000 (23:07 +0000)]
crank major because __syscall is gone

20 months ago__syscall() is no longer neccessary since the system calls which needed
deraadt [Sat, 11 Feb 2023 23:07:23 +0000 (23:07 +0000)]
__syscall() is no longer neccessary since the system calls which needed
it are now unpadded
ok kettenis guenther

20 months agosprinkle some Xr; from josiah frentsos
jmc [Sat, 11 Feb 2023 21:13:56 +0000 (21:13 +0000)]
sprinkle some Xr; from josiah frentsos

20 months agoI forgot to copy the msyscall interlock flag to forked processes, so
deraadt [Sat, 11 Feb 2023 21:11:37 +0000 (21:11 +0000)]
I forgot to copy the msyscall interlock flag to forked processes, so
only freshly executed processes were actually locked.  (This happened
because I didn't realize how the uvm_map's contents are copied entry
by entry, and other parts are not)
ok kettenis

20 months agoRemove bn_exp2.c, which is now empty.
jsing [Sat, 11 Feb 2023 12:17:57 +0000 (12:17 +0000)]
Remove bn_exp2.c, which is now empty.

20 months agoBye bye x86_64-gcc.c.
jsing [Sat, 11 Feb 2023 12:15:02 +0000 (12:15 +0000)]
Bye bye x86_64-gcc.c.

This is no longer used, since we're now using s2n-bignum functions instead.

20 months agoRefactor common code of the 3 up_generate functions into up_process_prefix()
claudio [Sat, 11 Feb 2023 08:50:43 +0000 (08:50 +0000)]
Refactor common code of the 3 up_generate functions into up_process_prefix()
Simplifies up_generate_updates(), up_generate_addpath() and
up_generate_addpath_all() a fair bit.
OK tb@

20 months agoUse a consistent comment to explain why 32bit archs set their second
guenther [Sat, 11 Feb 2023 06:10:39 +0000 (06:10 +0000)]
Use a consistent comment to explain why 32bit archs set their second
return register to -1 in the syscall error path ("for lseek").

removal of the misleading __syscall() mention requested by deraadt@
ok deraadt@

20 months agoMake 'ls' command in bootloader work correctly on luna88k.
aoyama [Sat, 11 Feb 2023 04:35:34 +0000 (04:35 +0000)]
Make 'ls' command in bootloader work correctly on luna88k.

Now 'ls' against directory works fine.

Tested on LUNA-88K2 and nono emulator by me.

20 months agoAdd support for configuring multiple name servers as roadwarrior
tobhe [Fri, 10 Feb 2023 19:51:08 +0000 (19:51 +0000)]
Add support for configuring multiple name servers as roadwarrior
client.  This allows us to have a fallback in case one connection
fails.

Tested by Ryan Kavanagh
ok patrick@

20 months agoUse "echo '/ *' | disklabel -wAT-" to put all free space into the
krw [Fri, 10 Feb 2023 15:54:33 +0000 (15:54 +0000)]
Use "echo '/ *' | disklabel -wAT-" to put all free space into the
root partition.

Identical behaviour as but more readable than the "echo 'a
a\n\n\n\nw\nq\n'| disklabel -E" it replaces.

It also eliminates the extraneous output of -E that required
">/dev/null".

ok kn@

20 months agodrm/amdgpu: update wave data type to 3 for gfx11
jsg [Fri, 10 Feb 2023 14:46:26 +0000 (14:46 +0000)]
drm/amdgpu: update wave data type to 3 for gfx11

From Graham Sider
86dbbc8f6ba705b82c0e6daf5c2fed993665dc1a in linux-6.1.y/6.1.11
ed8e793c65e4c6633e8577e40d574da8a56d2e0f in mainline linux

20 months agodrm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11
jsg [Fri, 10 Feb 2023 14:43:15 +0000 (14:43 +0000)]
drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11

From Tim Huang
91ef43f6b65b5aea03e71d70bb510efc61637ff6 in linux-6.1.y/6.1.11
1538709c9f1c207d30afd95ea41b3aeb973f67e7 in mainline linux

20 months agodrm/amd: Fix initialization for nbio 4.3.0
jsg [Fri, 10 Feb 2023 14:40:59 +0000 (14:40 +0000)]
drm/amd: Fix initialization for nbio 4.3.0

From Mario Limonciello
814d83a710e8309d989fafc163656a68f2acaef4 in linux-6.1.y/6.1.11
5048fa1ebf89d03cf0ceca13fab8f800399e9ee3 in mainline linux

20 months agoMake tun(4) and tap(4) event filters MP-safe.
visa [Fri, 10 Feb 2023 14:39:18 +0000 (14:39 +0000)]
Make tun(4) and tap(4) event filters MP-safe.

OK mvs@

20 months agodrm/i915: Fix potential bit_17 double-free
jsg [Fri, 10 Feb 2023 14:39:13 +0000 (14:39 +0000)]
drm/i915: Fix potential bit_17 double-free

From Rob Clark
0769f997a7b6d5cb8336db0b4ec3d2d311b8097c in linux-6.1.y/6.1.11
7057a8f126f14f14b040faecfa220fd27c6c2f85 in mainline linux

20 months agodrm/i915: Avoid potential vm use-after-free
jsg [Fri, 10 Feb 2023 14:37:16 +0000 (14:37 +0000)]
drm/i915: Avoid potential vm use-after-free

From Rob Clark
764accc2c1b8fd1507be2e7f436c94cdce887a00 in linux-6.1.y/6.1.11
41d419382ec7e257e54b7b6ff0d3623aafb1316d in mainline linux

20 months agodrm/amd/display: Fix timing not changning when freesync video is enabled
jsg [Fri, 10 Feb 2023 14:35:37 +0000 (14:35 +0000)]
drm/amd/display: Fix timing not changning when freesync video is enabled

From Aurabindo Pillai
f3056978934cf809c0ae70a22ac3af2a857e1a93 in linux-6.1.y/6.1.11
4b069553246f993c4221e382d0d0ae34f5ba730e in mainline linux

20 months agoAdjust knote(9) API
visa [Fri, 10 Feb 2023 14:34:16 +0000 (14:34 +0000)]
Adjust knote(9) API

Make knote(9) lock the knote list internally, and add knote_locked(9)
for the typical situation where the list is already locked.

Remove the KNOTE(9) macro to simplify the API.

Manual page OK jmc@
OK mpi@ mvs@

20 months agodrm/i915/adlp: Fix typo for reference clock
jsg [Fri, 10 Feb 2023 14:33:29 +0000 (14:33 +0000)]
drm/i915/adlp: Fix typo for reference clock

From Chaitanya Kumar Borah
7a435fe0b6bbf4ab5ede23e25658f3735caa2a65 in linux-6.1.y/6.1.11
47a2bd9d985bfdb55900f313603619fc9234f317 in mainline linux

20 months agodrm/i915: Fix up locking around dumping requests lists
jsg [Fri, 10 Feb 2023 14:32:03 +0000 (14:32 +0000)]
drm/i915: Fix up locking around dumping requests lists

From John Harrison
04dcff26490cc8dedbfcf44cfb3e3e7a08622fd0 in linux-6.1.y/6.1.11
5bc4b43d5c6c9692ddc7b96116650cdf9406f3da in mainline linux

20 months agodrm/i915: Fix request ref counting during error capture & debugfs dump
jsg [Fri, 10 Feb 2023 14:29:34 +0000 (14:29 +0000)]
drm/i915: Fix request ref counting during error capture & debugfs dump

From John Harrison
9467397f417dd7b5d0db91452f0474e79716a527 in linux-6.1.y/6.1.11
86d8ddc74124c3fdfc139f246ba6da15e45e86e3 in mainline linux

20 months agodrm/i915/guc: Fix locking when searching for a hung request
jsg [Fri, 10 Feb 2023 14:27:01 +0000 (14:27 +0000)]
drm/i915/guc: Fix locking when searching for a hung request

From John Harrison
de997938a7a5da3cb3bd3b914456656963ca1d1c in linux-6.1.y/6.1.11
87b04e53daf806945c415e94de9f90943d434aed in mainline linux

20 months agoFix cursor position after zero width space, GitHub issue 3469.
nicm [Fri, 10 Feb 2023 14:01:43 +0000 (14:01 +0000)]
Fix cursor position after zero width space, GitHub issue 3469.

20 months agoDelete no-longer-used file.
aoyama [Fri, 10 Feb 2023 11:25:31 +0000 (11:25 +0000)]
Delete no-longer-used file.

20 months agoRemove explicit rejection of zero duid in disk_map() added in 1.262.
miod [Fri, 10 Feb 2023 07:00:12 +0000 (07:00 +0000)]
Remove explicit rejection of zero duid in disk_map() added in 1.262.
Spoofed labels have zero duid and there is no reason not to allow them to
work with duid notation.

ok kn@

20 months agospace between macro and punctuation;
jmc [Fri, 10 Feb 2023 06:41:53 +0000 (06:41 +0000)]
space between macro and punctuation;
sort usage();

20 months agospace between macro and punctuation;
jmc [Fri, 10 Feb 2023 06:40:48 +0000 (06:40 +0000)]
space between macro and punctuation;

20 months agosort SYNOPSIS;
jmc [Fri, 10 Feb 2023 06:39:27 +0000 (06:39 +0000)]
sort SYNOPSIS;

20 months agotest -Ohashalg=... and that the default output contains both
djm [Fri, 10 Feb 2023 05:06:03 +0000 (05:06 +0000)]
test -Ohashalg=... and that the default output contains both
specified hash algorithms; prompted by dtucker@

20 months agolet ssh-keygen and ssh-keyscan accept -Ohashalg=sha1|sha256 when
djm [Fri, 10 Feb 2023 04:56:30 +0000 (04:56 +0000)]
let ssh-keygen and ssh-keyscan accept -Ohashalg=sha1|sha256 when
outputting SSHFP fingerprints to allow algorithm selection.
bz3493 ok dtucker@

20 months agoadd a `sshd -G` option that parses and prints the effective
djm [Fri, 10 Feb 2023 04:47:19 +0000 (04:47 +0000)]
add a `sshd -G` option that parses and prints the effective
configuration without attempting to load private keys and perform
other checks. This allows usage of the option before keys have been
generated.

bz3460 feedback/ok dtucker@

20 months agomake `ssh -Q CASignatureAlgorithms` work as the manpage says it should
djm [Fri, 10 Feb 2023 04:40:28 +0000 (04:40 +0000)]
make `ssh -Q CASignatureAlgorithms` work as the manpage says it should
bz3532

20 months agoExplicitly mark the text LOAD as FLAGS(5), meaning RX, with a comment.
deraadt [Fri, 10 Feb 2023 03:22:12 +0000 (03:22 +0000)]
Explicitly mark the text LOAD as FLAGS(5), meaning RX, with a comment.
This is the default value of the linker, but I really like placing the
comment "architecturally required data islands".

20 months agocorrect values for M2 Max
jsg [Thu, 9 Feb 2023 23:35:06 +0000 (23:35 +0000)]
correct values for M2 Max
ok kettenis@

20 months agoUse GEN_OTHERNAME instead of hardcoding 0
tb [Thu, 9 Feb 2023 22:50:07 +0000 (22:50 +0000)]
Use GEN_OTHERNAME instead of hardcoding 0

discussed with job

20 months agoconsolidate mbuf header parsing on device driver layer
naddy [Thu, 9 Feb 2023 21:21:27 +0000 (21:21 +0000)]
consolidate mbuf header parsing on device driver layer

em(4) ok jan@, bluhm@
igc(4) tested by weerd@

20 months agoRecognize the cores on Apple's M2 Pro/Max SoCs.
kettenis [Thu, 9 Feb 2023 21:02:24 +0000 (21:02 +0000)]
Recognize the cores on Apple's M2 Pro/Max SoCs.

ok patrick@

20 months agoUse .section .rodata instead of a plain .rodata
tb [Thu, 9 Feb 2023 19:57:00 +0000 (19:57 +0000)]
Use .section .rodata instead of a plain .rodata

At least gcc 12 on Fedora is very unhappy about a plain .rodata and throws
Error: unknown pseudo-op: `.rodata'. So add a .section in front of it to
make it happy.

ok deraadt miod

20 months agoUnstub drm_gem_ttm_vmap/vunmap.
kettenis [Thu, 9 Feb 2023 17:19:25 +0000 (17:19 +0000)]
Unstub drm_gem_ttm_vmap/vunmap.

ok jsg@

20 months agoPin the default framebuffer. The Linux drm code no longer does this since
kettenis [Thu, 9 Feb 2023 17:18:21 +0000 (17:18 +0000)]
Pin the default framebuffer.  The Linux drm code no longer does this since
they switched to using a shadow framebuffer and only pin the hardware
framebuffer when flushing the shadow framebuffer.  But our wdisplay(4)
and rasops(9) code expects the hardware framebuffer to be always
accessible at the same address.

Fixes the regression introduced by amdgpu_object.c rev 1.12.

ok jsg@

20 months agoInstead of relaying struct peer from the SE to the RDE to fill out 10
claudio [Thu, 9 Feb 2023 13:43:23 +0000 (13:43 +0000)]
Instead of relaying struct peer from the SE to the RDE to fill out 10
stat numbers, just send the peerid and have the RDE response with the
stats. The control code will then merge these counters into the real
peer struct and send that to bgpctl. This reduces the number of bytes
sent around a fair bit.
OK tb@

20 months agouse newer, much easier disklabel template strings
kn [Thu, 9 Feb 2023 11:35:17 +0000 (11:35 +0000)]
use newer, much easier disklabel template strings

20 months agoDo not ask to initialize disks with softraid chunks
kn [Thu, 9 Feb 2023 10:38:41 +0000 (10:38 +0000)]
Do not ask to initialize disks with softraid chunks

Skip chunk devices in the 'Which disk do you wish to initialize?' question.
Touching sd0, e.g. after a root on softraid sd1 install on sd0, will fail.

get_dkdevs_uninitialized() is used once, in interactive installs, right
after root disk setup, iff multiple disks exist.

Tested as part of a bigger diff by a few
OK cheloha

20 months agoPull in bn_internal.h for the generic version of bn_umul_hilo()
jsing [Thu, 9 Feb 2023 09:58:53 +0000 (09:58 +0000)]
Pull in bn_internal.h for the generic version of bn_umul_hilo()

20 months agoTest adding terminating newline to known_hosts.
dtucker [Thu, 9 Feb 2023 09:55:33 +0000 (09:55 +0000)]
Test adding terminating newline to known_hosts.

20 months agoEnsure that there is a terminating newline when adding a new entry
dtucker [Thu, 9 Feb 2023 09:54:11 +0000 (09:54 +0000)]
Ensure that there is a terminating newline when adding a new entry
to known_hosts.  bz#3529, with git+openssh at limpsquid.nl,
ok deraadt@ markus@

20 months agoClean up bn_sqr_words()
jsing [Thu, 9 Feb 2023 09:16:26 +0000 (09:16 +0000)]
Clean up bn_sqr_words()

Currently there are two versions of bn_sqr_words(), which call the sqr or
sqr64 macro. Replace this with a single version that calls bn_umul_hilo()
and remove the various implementations of the sqr macro. The only slight
downside is that sqr64 does three multiplications instead of four, given
that the second and third terms are identical. However, this is a minimal
gain for the amount of duplication and entanglement it introduces.

ok tb@

20 months agoDelay setting the timestamp in the ktrace header until we've grabbed
guenther [Thu, 9 Feb 2023 08:00:31 +0000 (08:00 +0000)]
Delay setting the timestamp in the ktrace header until we've grabbed
the vnode, to eliminate misordering of ktrace records.

problem noted by jrick@
ok deraadt@

20 months agoi386: lapic_timer_trigger: disable interrupts around lapic_timer_oneshot()
cheloha [Thu, 9 Feb 2023 01:41:15 +0000 (01:41 +0000)]
i386: lapic_timer_trigger: disable interrupts around lapic_timer_oneshot()

lapic_timer_oneshot() is not atomic.  We need to disable interrupts
when calling it to ensure the timer reaches a valid state.

Link: https://marc.info/?l=openbsd-tech&m=167482851403841&w=2
ok mlarkin@

20 months agoiked: remove another unused variable
tb [Wed, 8 Feb 2023 20:10:34 +0000 (20:10 +0000)]
iked: remove another unused variable

It is not entirely obvious if some logic was forgotten or if that variable
was added for debug logging or... Be that as it may, as tobhe points out,
this variable has been unused since the initial import of iked. The logic
seems sound without it, so it has never served a purpose and can go.

ok tobhe

20 months agoiked: garbage collect an unused counter variable to make clang 15 happier
tb [Wed, 8 Feb 2023 19:59:10 +0000 (19:59 +0000)]
iked: garbage collect an unused counter variable to make clang 15 happier

ok tobhe

20 months agoOmit version in SMALL ksh builds
kn [Wed, 8 Feb 2023 17:22:10 +0000 (17:22 +0000)]
Omit version in SMALL ksh builds

No need for KSH_VERSION and its PS1 esacape sequences in installer shells.
Save some bits and clean up what(1) output on ramdisk kernels.

OK deraadt

20 months agoUse _nc_tparm_analyze() instead of trying to do it ourselves in process().
millert [Wed, 8 Feb 2023 15:56:32 +0000 (15:56 +0000)]
Use _nc_tparm_analyze() instead of trying to do it ourselves in process().
This fixes tput when used with a capability that uses push/pop.
OK gkoehler@

20 months agodump/fsck_ffs: convert two function definitions to ansi, missed
tb [Wed, 8 Feb 2023 08:25:44 +0000 (08:25 +0000)]
dump/fsck_ffs: convert two function definitions to ansi, missed
in previous passes some decades ago. Less noise from clang 15.

ok claudio

20 months agofinger/mail: two trivial functions were missed in earlier ansi passes
tb [Wed, 8 Feb 2023 08:24:29 +0000 (08:24 +0000)]
finger/mail: two trivial functions were missed in earlier ansi passes

20 months agotelnet: fix prototypes for two signal handlers to make clang 15 happy
tb [Wed, 8 Feb 2023 08:22:44 +0000 (08:22 +0000)]
telnet: fix prototypes for two signal handlers to make clang 15 happy

20 months agousr.sbin: missing void to appease clang 15's -Wstrict-prototype.
tb [Wed, 8 Feb 2023 08:20:53 +0000 (08:20 +0000)]
usr.sbin: missing void to appease clang 15's -Wstrict-prototype.

20 months agosed: add missing void to avoid -Wstrict-prototype with clang 15
tb [Wed, 8 Feb 2023 08:18:11 +0000 (08:18 +0000)]
sed: add missing void to avoid -Wstrict-prototype with clang 15

20 months agossh-agent doesn't actually take -v, so the recently-added ones will
dtucker [Wed, 8 Feb 2023 08:06:03 +0000 (08:06 +0000)]
ssh-agent doesn't actually take -v, so the recently-added ones will
result in the test not cleaning up after itself.  Patch from cjwatson
at debian.org vi bz#3536.

20 months agoisakmpd: add missing void to a function definition
tb [Wed, 8 Feb 2023 08:03:11 +0000 (08:03 +0000)]
isakmpd: add missing void to a function definition

Fixes -Wstrict-prototype warning seen with clang 15 on amd64 and arm64.

20 months agounwind: add two missing void to function definitions
tb [Wed, 8 Feb 2023 08:01:25 +0000 (08:01 +0000)]
unwind: add two missing void to function definitions

Silences -Wstrict-prototype warnings seen with clang 15 on amd64 and arm64.

ok florian

20 months agoopenssl(1) pkcs7 avoid crash on malformed files
tb [Wed, 8 Feb 2023 07:59:24 +0000 (07:59 +0000)]
openssl(1) pkcs7 avoid crash on malformed files

When printing certificates or CRLs, check signed and signedAndEnveloped
before dereferencing them. Prevents crash on inspecting malformed PKCS7
files.

ok jsing

20 months agointernal representation of icmp type/code in pfctl(8)/pf(4) does not
sashan [Tue, 7 Feb 2023 17:58:43 +0000 (17:58 +0000)]
internal representation of icmp type/code in pfctl(8)/pf(4) does not
fit into u_int8_t. Issue has been noticed and kindly reported by
amalinin _at_ bh0.amt.ru via bugs@.

OK bluhm@

20 months agohome.arpa is a special-use domain, internally answered by libunbound.
florian [Tue, 7 Feb 2023 17:44:02 +0000 (17:44 +0000)]
home.arpa is a special-use domain, internally answered by libunbound.

Let it through to forwarders like we do with AS112 domains because
home.arpa might be useful in the local network.
Issue reported by Ryan Kavanagh (rak at rak.ac), thanks!
Input & OK tb

20 months agoremove seatbelt
deraadt [Tue, 7 Feb 2023 17:34:10 +0000 (17:34 +0000)]
remove seatbelt

20 months agoRemove needless #ifdef INET6 from struct ether_extracted field in
bluhm [Tue, 7 Feb 2023 16:14:55 +0000 (16:14 +0000)]
Remove needless #ifdef INET6 from struct ether_extracted field in
public header file.  Makes debugging with special kernels easier.

20 months agoFix arbitrary memory read in GENERAL_NAME_cmp()
tb [Tue, 7 Feb 2023 15:46:58 +0000 (15:46 +0000)]
Fix arbitrary memory read in GENERAL_NAME_cmp()

The ASN.1 template for GENERAL_NAME and its corresponding C structure
disagree on the type of the x400Address member. This results in an ASN.1
string to be considered as an ASN.1 type, which allows an attacker to read
(essentially) arbitrary memory. Fix this by forcing comparison as strings.

While the underlying type confusion has been present since time immemorial,
this particular bug came with the EdiPartyName fix (6.8/008_asn1.patch.sig).

Reported by David Benjamin, fix suggested by jsing.

Release date for this was set to be January 31. Unilaterally pushed back to
February 7 by OpenSSL by way of announcement of many completely unrelated
embargoed issues, some of which they had been sitting on since July 2020.

ok beck jsing

20 months agoswitch to new simplified disklabel template format.
krw [Tue, 7 Feb 2023 15:33:22 +0000 (15:33 +0000)]
switch to new simplified disklabel template format.

ok kn@

20 months agoswitch to new simplified disklabel template format
kn [Tue, 7 Feb 2023 15:04:27 +0000 (15:04 +0000)]
switch to new simplified disklabel template format

20 months agoExtend template parsing to allow "[mount point] *" as the specification for
krw [Tue, 7 Feb 2023 14:30:48 +0000 (14:30 +0000)]
Extend template parsing to allow "[mount point] *" as the specification for
putting the maximum available free space into a partition.

Extend command line parsing to allow 'T-' as the specification to
read the template file from stdin.

Prompted by, feedback, testing and ok kn@

20 months agoSince we override CFLAGS here, don't forget to put -Oz in there so as to compile
miod [Tue, 7 Feb 2023 12:06:53 +0000 (12:06 +0000)]
Since we override CFLAGS here, don't forget to put -Oz in there so as to compile
with some form of optimization.

20 months agoRemove old buffer when renaming rather than complaining, GitHub issue
nicm [Tue, 7 Feb 2023 10:56:04 +0000 (10:56 +0000)]
Remove old buffer when renaming rather than complaining, GitHub issue
3467 from Jean-Philippe Paradis.

20 months agoAdd an L modifier like P, W, S to loop over clients. Also fix some long
nicm [Tue, 7 Feb 2023 10:21:01 +0000 (10:21 +0000)]
Add an L modifier like P, W, S to loop over clients. Also fix some long
lines in tmux(1).

20 months agolibcrypto/ec: another missing point-on-curve check
tb [Tue, 7 Feb 2023 09:00:48 +0000 (09:00 +0000)]
libcrypto/ec: another missing point-on-curve check

Unlike in the affine/compressed/... cases, when setting projective
coordinates of an elliptic curve point, there is no check whether
the point is actually on the curve.

Pointed out by Guido Vranken

ok beck miod

20 months agoregen
kevlo [Tue, 7 Feb 2023 07:11:14 +0000 (07:11 +0000)]
regen

20 months agoAdd ASMedia ASM2142 xhci
kevlo [Tue, 7 Feb 2023 07:10:43 +0000 (07:10 +0000)]
Add ASMedia ASM2142 xhci

ok deraadt@

20 months agomatch on another Elkhart Lake id
jsg [Mon, 6 Feb 2023 23:40:53 +0000 (23:40 +0000)]
match on another Elkhart Lake id
Noticed when looking at the datasheet.  Merged into drm-intel-next.

20 months agovmd(8): scan pci bus to determine bootorder strings.
dv [Mon, 6 Feb 2023 20:33:34 +0000 (20:33 +0000)]
vmd(8): scan pci bus to determine bootorder strings.

vmd's SeaBIOS bootorder strings had hardcoded pci device ids, so
if a user added a network interface the bootorder strings didn't
line up with reality. Using vmctl(8) to boot from a cdrom (-B cdrom)
would fail, for instance, if attaching both a nic and a disk as
well.

This change scans the pci devices and finds the first of each type
to construct viable bootorder strings.

ok jan@

20 months agoconsolidate mbuf header parsing on device driver layer
jan [Mon, 6 Feb 2023 20:27:44 +0000 (20:27 +0000)]
consolidate mbuf header parsing on device driver layer

with tweaks from mvs@, mpi@, dlg@, naddy@ and bluhm@

"go for it" deraadt@

ok naddy@, mvs@

21 months agosmtpd(8) could abort due to a connection from a local, scoped ipv6 address.
semarie [Mon, 6 Feb 2023 18:35:52 +0000 (18:35 +0000)]
smtpd(8) could abort due to a connection from a local, scoped ipv6 address.

avoid using inet_pton(3) which doesn't support scoped ipv6 address, and use
getaddrinfo(3) instead of.

ok millert@ florian@ kn@

21 months agoAccept netstat-style address.port syntax too.
millert [Mon, 6 Feb 2023 18:14:10 +0000 (18:14 +0000)]
Accept netstat-style address.port syntax too.
OK bluhm@ deraadt@ jmc@

21 months agoUnifdef -U _PMAP_MAY_USE_PROM_CONSOLE. This code hasn't been needed in years
miod [Mon, 6 Feb 2023 11:16:22 +0000 (11:16 +0000)]
Unifdef -U _PMAP_MAY_USE_PROM_CONSOLE. This code hasn't been needed in years
since the TC machines have switched to the MI zstty code.