CVS: cvs.openbsd.org: src

2024-06-16 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/16 23:39:26

Modified files:
sys/dev/pci/drm/include/generated: autoconf.h 

Log message:
define CONFIG_PM_SLEEP to 1 for IS_ENABLED()



CVS: cvs.openbsd.org: src

2024-06-16 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/16 23:38:08

Modified files:
lib/libcrypto/x509: x509_lib.c 

Log message:
Replace x with x509_exts in X509V3_add1_i2d() and X509V3_get_d2i()

requested by jsing on review



CVS: cvs.openbsd.org: src

2024-06-16 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/16 23:31:26

Modified files:
lib/libcrypto/x509: x509_lib.c 

Log message:
Rewrite X509V3_get_d2i()

This API is wrapped by nine *_get{,1}_ext_d2i() functions and they all
have the same defect: if an idx variable is passed in, multiple extensions
are handled incorrectly.

Clean up the mess that was the current implementation by replacing the
reimplementation of X509v3_get_ext_by_NID() with extra twists by actual
calls to the real thing. This way the madness is implemented explicitly
and can be explained in comments. The code still gets shorter.

In brief: always call this API with a known nid, pass crit, and a NULL idx.
If NULL is returned, crit != -1 is an error (malformed cert or allocation
failure).

ok jsing



CVS: cvs.openbsd.org: src

2024-06-16 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/16 23:04:54

Modified files:
regress/lib/libcrypto/x509: x509_extensions_test.c 

Log message:
Add regress coverage for X509V3_get_d2i()



CVS: cvs.openbsd.org: src

2024-06-16 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/16 12:33:56

Modified files:
usr.bin/timeout: timeout.1 

Log message:
Add note about timeout(1)'s standards compliance

OK jmc@



CVS: cvs.openbsd.org: src

2024-06-16 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/16 12:33:06

Modified files:
usr.bin/mandoc : st.c 

Log message:
Add new argument for IEEE 1003.1-2024 aka POSIX.1

OK jmc@ schwarze@



CVS: cvs.openbsd.org: src

2024-06-16 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2024/06/16 12:00:08

Modified files:
sys/dev/pci: ahci_pci.c 

Log message:
Disable MSI on Zhaoxin ZX-100/ZX-200/ZX-E StorX to unhang SSD

The Unchartevice 6640MA's BIOS forces one of three SATA speeds:
- Gen1/2: bsd.rd reaches installer, but SSD does not attach
- Gen3:   bsd.rd attaches SSD but hangs

MSI works for iwm(4) and and xhci(4), only ahci(4) bugs out, so add a quirk
for this controller as done for a few other devices already:

ahci0 at pci0 dev 15 function 0 "Zhaoxin StorX AHCI" rev 0x01: apic 9 int 21, 
AHCI 1.3.1
-ahci0: device not communicating on port 0
+ahci0: port 0: 6.0Gb/s
scsibus0 at ahci0: 32 targets
+sd0 at scsibus0 targ 0 lun 0:  naa.5000
+sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin

OK kettenis



CVS: cvs.openbsd.org: src

2024-06-16 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/16 11:57:08

Modified files:
regress/lib/libcrypto/x509: Makefile 

Log message:
zap a stray space



CVS: cvs.openbsd.org: src

2024-06-16 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2024/06/16 10:21:39

Modified files:
sys/dev/pci: pcidevs.h pcidevs_data.h 

Log message:
regen



CVS: cvs.openbsd.org: src

2024-06-16 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2024/06/16 10:20:51

Modified files:
sys/dev/pci: pcidevs 

Log message:
Add Zhaoxin vendor and AHCI product found in Unchartevice 6640MA notebook

https://www.devicekb.com/hardware/pci-vendors/ven_1d17 shows
"ZX-100/ZX-200/ZX-E StorX AHCI Controller" and the notebook has a bunch of
other devices, but only this one needs fixing so far.

Feedback jsg
OK deraadt



CVS: cvs.openbsd.org: src

2024-06-16 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2024/06/16 08:01:26

Modified files:
sys/arch/amd64/amd64: identcpu.c 

Log message:
Make GENERIC boot on ZHAOXIN KaiXian KX-6640MA

The Unchartevice 6640MA notebook comes with such a CentaurHauls CPU,
installs via RAMDISK_CD (with AHCI fix), but GENERIC would hang after
cpu0: 4MB 64b/line 16-way L2 cache

Pretty sure Intel TPM sensor code should run on Intel CPUs, anyway.

Idea from brynet
OK deraadt brynet



CVS: cvs.openbsd.org: src

2024-06-16 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/16 05:54:49

Modified files:
regress/usr.bin/ssh: penalty-expire.sh 

Log message:
same treatment for this test



CVS: cvs.openbsd.org: src

2024-06-16 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/16 02:18:06

Modified files:
regress/usr.bin/ssh: penalty.sh 

Log message:
penalty test is still a bit racy



CVS: cvs.openbsd.org: src

2024-06-15 Thread Marcus Glocker
CVSROOT:/cvs
Module name:src
Changes by: mgloc...@cvs.openbsd.org2024/06/15 12:26:25

Modified files:
sys/dev/ic : ufshci.c ufshcireg.h 

Log message:
To my current knowledge, UFSHCI has a single target design.  Reflect this
in the code, and remove some XXXs by that.  No functional changes.



CVS: cvs.openbsd.org: src

2024-06-15 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/06/15 12:01:44

Modified files:
sys/arch/amd64/amd64: intr.c 

Log message:
We should block non-wakeup interrupts until we're in the resume path and
have disabled interrupts at the CPU level again.  So instead of
cpu_suspended use a new intr_suspended variable that is set and cleared in
intr_enable_wakeup() and intr_disable_wakeup().

ok mglocker@, mlarkin@



CVS: cvs.openbsd.org: src

2024-06-15 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/06/15 09:05:15

Modified files:
distrib/miniroot: install.sub 

Log message:
Install BUILDINFO if available.

We already keep /var/db/installed.SHA256 for sysupgrade(8) as a cheap
check to not install the same snapshot over and over again. With
/mnt/var/db/installed.BUILDINFO we can ensure that we are not
installing an older snapshot over a newer snapshot.

Intentionally not yet committing the sysupgrade(8) bits so that we
exercise the sysupgrade(8) / install.sub interaction as it will happen
during the 7.5 -> 7.6 transition. I.e. a newer install.sub getting
installed by an older sysupgrade(8).

deraadt@ likes it.



CVS: cvs.openbsd.org: src

2024-06-15 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/15 02:39:47

Modified files:
regress/lib/libssl/openssl-ruby: Makefile 

Log message:
openssl-ruby: prepare test for default ruby switch



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:27:37

Modified files:
sys/dev/pci/drm/i915/gt: intel_engine_cs.c intel_gt_ccs_mode.c 
 intel_gt_types.h 

Log message:
drm/i915/gt: Fix CCS id's calculation for CCS mode setting

>From Andi Shyti
0b01a41e2ce40fda06dd46d9baf8523b95080ac8 in linux-6.6.y/6.6.33
ee01b6a386eaf9984b58a2476e8f531149679da9 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:23:20

Modified files:
sys/dev/pci/drm/amd/display/amdgpu_dm: amdgpu_dm_mst_types.c 

Log message:
drm/amd/display: Enable colorspace property for MST connectors

>From Mario Limonciello
dedc1dfaa6df872c4a89fa0f6affe90d0320f644 in linux-6.6.y/6.6.33
8195979d2dd995d60c2663adf54c69c1bf4eadd1 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:20:16

Modified files:
sys/dev/pci/drm/amd/amdgpu: gfx_v9_4_3.c 

Log message:
drm/amdgpu: Fix buffer size in gfx_v9_4_3_init_ cp_compute_microcode() and 
rlc_microcode()

>From Srinivasan Shanmugam
19bd9537b6bc1c882df25206c15917214d8e9460 in linux-6.6.y/6.6.33
acce6479e30f73ab0872e93a75aed1fb791d04ec in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:18:24

Modified files:
sys/dev/pci/drm/amd/amdgpu: gfx_v9_4_3.c 

Log message:
drm/amdgpu: init microcode chip name from ip versions

>From Le Ma
bdd5bbe967827cd699f6293b70650f9a40a2dd4e in linux-6.6.y/6.6.33
92ed1e9cd5f6cc4f8c9a9ba6c4d2d2bbc6221296 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:16:39

Modified files:
sys/dev/pci/drm/i915/display: intel_backlight.c 

Log message:
pwm: Rename pwm_apply_state() to pwm_apply_might_sleep()

>From Sean Young
a10c3d5ff9a343c0b898215253750fedc38ac765 in linux-6.6.y/6.6.33
c748a6d77c06a78651030e17da6beb278a1c9470 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:14:54

Modified files:
sys/dev/pci/drm/i915/gvt: interrupt.c 

Log message:
i915: make inject_virtual_interrupt() void

>From Christian Brauner
e642622550c88c77c2134409351c237c59f9191e in linux-6.6.y/6.6.33
85884871921000b9bca2184077b1159771e50047 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:13:19

Modified files:
sys/dev/pci/drm: drm_edid.c 
sys/dev/pci/drm/include/drm: drm_displayid.h 

Log message:
drm/edid: Parse topology block for all DispID structure v1.x

>From Ville Syrjala
6040fcea46055159c5cafc95cd6f63e06028086b in linux-6.6.y/6.6.33
e0a200ab4b72afd581bd6f82fc1ef510a4fb5478 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:10:49

Modified files:
sys/dev/pci/drm: drm_mipi_dsi.c 
sys/dev/pci/drm/include/drm: drm_mipi_dsi.h 

Log message:
drm/mipi-dsi: use correct return type for the DSC functions

>From Dmitry Baryshkov
dda6efae161dc200b449d9099d0dfadfa75275c9 in linux-6.6.y/6.6.33
de1c705c50326acaceaf1f02bc5bf6f267c572bd in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:07:53

Modified files:
sys/dev/pci/drm/amd/display/dc/dcn10: dcn10_cm_common.c 

Log message:
drm/amd/display: Fix potential index out of bounds in color transformation 
function

>From Srinivasan Shanmugam
4e8c8b37ee84b3b19c448d2b8e4c916d2f5b9c86 in linux-6.6.y/6.6.33
63ae548f1054a0b71678d0349c7dc9628ddd42ca in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:05:42

Modified files:
sys/dev/pci/drm/display: drm_dp_helper.c 
sys/dev/pci/drm/include/drm/display: drm_dp_helper.h 

Log message:
drm/dp: Don't attempt AUX transfers when eDP panels are not powered

>From Douglas Anderson
9429b12dfcbd7eca89795730305cd1400bf97ec9 in linux-6.6.y/6.6.33
8df1ddb5bf11ab820ad991e164dab82c0960add9 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 22:01:36

Modified files:
sys/dev/pci/drm: drm_bridge.c 

Log message:
drm/bridge: Fix improper bridge init order with pre_enable_prev_first

>From Jagan Teki
45755ef11f0337110105d4a6a2cd6bdc278dffa0 in linux-6.6.y/6.6.33
e18aeeda0b6905c333df5a0566b99f5c84426098 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/14 21:59:10

Modified files:
regress/usr.bin/ssh: penalty.sh 

Log message:
crank up penalty timeouts so this should work on even the slowest of
test builders



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:57:38

Modified files:
sys/dev/pci/drm/amd/display/dc/core: amdgpu_dc.c 

Log message:
drm/amd/display: Disable seamless boot on 128b/132b encoding

>From Sung Joon Kim
de23d906b265266c7de46fd330891122b015176b in linux-6.6.y/6.6.33
6f0c228ed9184287031a66b46a79e5a3d2e73a86 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:55:23

Modified files:
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn32: dcn32_clk_mgr.c 

Log message:
drm/amd/display: Fix DC mode screen flickering on DCN321

>From Leo Ma
fefcd1c75bafa7c5d34e0a517de29f33688abf62 in linux-6.6.y/6.6.33
ce649bd2d834db83ecc2756a362c9a1ec61658a5 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:53:11

Modified files:
sys/dev/pci/drm/amd/display/dc/dml/dcn31: dcn31_fpu.c 

Log message:
drm/amd/display: Add VCO speed parameter for DCN31 FPU

>From Rodrigo Siqueira
b6fab47b64f68e845a40af5f1497d1131cc004bb in linux-6.6.y/6.6.33
0e62103bdcbc88281e16add299a946fb3bd02fbe in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:49:31

Modified files:
sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn315: dcn315_clk_mgr.c 

Log message:
drm/amd/display: Add dtbclk access to dcn315

>From Swapnil Patel
e0760e38474c086facba33b030e0b93d365fff29 in linux-6.6.y/6.6.33
a01b64f31d65bdc917d1afb4cec9915beb6931be in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:47:56

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_amdkfd_gpuvm.c 

Log message:
drm/amdgpu: Fix VRAM memory accounting

>From Mukul Joshi
422f3259ac6508e7289232fd7cb915914a527c70 in linux-6.6.y/6.6.33
f06446ef23216090d1ee8ede1a7d7ae430c22dcc in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:46:43

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_mes.c 

Log message:
drm/amdgpu/mes: fix use-after-free issue

>From Jack Xiao
39cfce75168c11421d70b8c0c65f6133edccb82a in linux-6.6.y/6.6.33
948255282074d9367e01908b3f5dcf8c10fc9c3d in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:45:20

Modified files:
sys/dev/pci/drm/amd/amdgpu: gfx_v10_0.c gfx_v11_0.c gfx_v9_0.c 

Log message:
drm/amdgpu: Fix the ring buffer size for queue VM flush

>From Prike Liang
67aa2a7b83be2ecd71537f31d2203d32f4567867 in linux-6.6.y/6.6.33
fe93b0927bc58cb1d64230f45744e527d9d8482c in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:42:34

Modified files:
sys/dev/pci/drm/amd/pm/swsmu/smu13: smu_v13_0_6_ppt.c 

Log message:
drm/amd/pm: Restore config space after reset

>From Lijo Lazar
7e12479958532fb7f9ce5160dc7bb08513eef807 in linux-6.6.y/6.6.33
30d1cda8ce31ab49051ff7159280c542a738b23d in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:40:23

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_object.c 

Log message:
drm/amdgpu: Update BO eviction priorities

>From Felix Kuehling
04cf241fe5e525020a512c5392f37a4541aa5e7c in linux-6.6.y/6.6.33
b0b13d532105e0e682d95214933bb8483a063184 in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:38:25

Modified files:
sys/dev/pci/drm/amd/display/amdgpu_dm: amdgpu_dm.c 

Log message:
drm/amd/display: Set color_mgmt_changed to true on unsuspend

>From Joshua Ashton
17f689f10fc0095df305c7ee6291dbd9cb30330b in linux-6.6.y/6.6.33
2eb9dd497a698dc384c0dd3e0311d541eb2e13dd in mainline linux



CVS: cvs.openbsd.org: src

2024-06-14 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/14 21:30:19

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_devlist.h 

Log message:
add a GC 12.0 placeholder



CVS: cvs.openbsd.org: src

2024-06-14 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/06/14 14:00:32

Modified files:
sys/dev/ofw: ofw_regulator.c ofw_regulator.h 

Log message:
Disallow setting the voltage of coupled regulators for now.  Some RK3588
boards use different regulators for CPU core voltage and memory interface
voltage.  But the two have to be kept synchronized.  So the devicetree for
these boards marks these regulators as coupled.  We have no support for
coupled regulators yet and letting the DVFS code set just the CPU core
voltage would probably lead to strange crashes.

ok mlarkin@



CVS: cvs.openbsd.org: src

2024-06-14 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/06/14 13:49:17

Modified files:
sys/arch/arm64/stand/efiboot: conf.c efiboot.c 
Added files:
sys/arch/arm64/stand/efiboot: efidt.h 

Log message:
When loading a device tree using the "mach dtb" command, give firmware
a chance to make modifications (such as applying memory reservations)
by using the EFI devicetree fixup protocol.

ok patrick@, jca@



CVS: cvs.openbsd.org: src

2024-06-14 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2024/06/14 09:12:57

Modified files:
regress/sys/kern/sosplice: funcs.pl 
regress/usr.sbin/relayd: funcs.pl 
regress/usr.sbin/httpd/tests: funcs.pl 
regress/usr.sbin/syslogd: funcs.pl 

Log message:
Replace deprecated given/when and smartmatch operator in Perl scripts.



CVS: cvs.openbsd.org: src

2024-06-14 Thread Omar Polo
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2024/06/14 07:59:26

Modified files:
usr.bin/mg : tags.c 

Log message:
support (ignore) universal ctags extended metadata in tagaddress

universal ctags "abuses" the tagaddress, which can be an arbitrary
vi command even if mg assumes it's just a search pattern, to store
metadata after a "vi comment".

While it could be worthwile to support the uctags annotations this
just ignores them so the search patterns work again.

The diff is from Joachim Wiberg "troglobit" mg.

ok tb@



CVS: cvs.openbsd.org: src

2024-06-14 Thread Marcus Glocker
CVSROOT:/cvs
Module name:src
Changes by: mgloc...@cvs.openbsd.org2024/06/14 07:38:15

Modified files:
sys/dev/ic : ufshci.c 

Log message:
Improve return value handling of functions.

no objections from deraadt@



CVS: cvs.openbsd.org: src

2024-06-14 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2024/06/14 04:17:05

Modified files:
sys/dev: rnd.c 

Log message:
Make arc4random() depend on less subsystems by decoupling extract_entropy()
from the enqueue_randomness() logic.

Add add_event_data() which just enqueues some data into the event buffer
which can be used by extract_entropy(). On top of this remove the
timeout_del() call in dequeue_randomness() it does serve any meaningful
reason.
OK kettenis@ deraadt@ mpi@



CVS: cvs.openbsd.org: src

2024-06-14 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/06/14 02:32:22

Modified files:
sys/kern   : uipc_socket.c 
sys/net: rtsock.c 

Log message:
Switch AF_ROUTE sockets to the new locking scheme.

At sockets layer only mark buffers as SB_MTXLOCK. At PCB layer only
protect `so_rcv' with corresponding `sb_mtx' mutex(9).

SS_ISCONNECTED and SS_CANTRCVMORE bits are redundant for AF_ROUTE
sockets. Since SS_CANTRCVMORE modifications performed with both solock()
and `sb_mtx' held, the 'unlocked' SS_CANTRCVMORE check in
rtm_senddesync() is safe.

ok bluhm



CVS: cvs.openbsd.org: src

2024-06-14 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/06/14 01:45:44

Modified files:
sbin/unwind/libunbound: config.h 
sbin/unwind/libunbound/iterator: iter_fwd.c iter_fwd.h 
 iter_hints.c iter_hints.h 
 iter_utils.c iter_utils.h 
 iterator.c 
sbin/unwind/libunbound/libunbound: context.c libunbound.c 
   libworker.c 
sbin/unwind/libunbound/services: authzone.c listen_dnsport.c 
 listen_dnsport.h localzone.c 
 mesh.c mesh.h rpz.c rpz.h 
 view.h 
sbin/unwind/libunbound/services/cache: dns.c infra.c infra.h 
   rrset.c rrset.h 
sbin/unwind/libunbound/util: config_file.c config_file.h 
 configlexer.c configlexer.lex 
 configparser.h configparser.y 
 module.c module.h net_help.c 
 netevent.c netevent.h 
sbin/unwind/libunbound/util/data: msgparse.h msgreply.c 
sbin/unwind/libunbound/util/storage: lookup3.c lruhash.c 
 lruhash.h slabhash.c 
 slabhash.h 
sbin/unwind/libunbound/validator: val_utils.c validator.c 

Log message:
sync to unbound 1.20.0

heavy lifting by sthen



CVS: cvs.openbsd.org: src

2024-06-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/13 23:31:20

Modified files:
sys/dev/pci/drm/i915/gt: intel_workarounds.c 

Log message:
drm/i915/xelpg: Add workaround 14019877138

>From Tejas Upadhyay
c5b32a41946139b9f4f7a087fda2355a90f671cb in mainline linux



CVS: cvs.openbsd.org: src

2024-06-13 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/13 23:20:34

Modified files:
usr.bin/ssh: ssh-keyscan.1 

Log message:
sort -q in the options list;



CVS: cvs.openbsd.org: src

2024-06-13 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/13 23:01:22

Modified files:
usr.bin/ssh: ssh_config.5 sshd_config.5 

Log message:
clarify KEXAlgorithms supported vs available. Inspired by bz3701
from Colin Watson.



CVS: cvs.openbsd.org: src

2024-06-13 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/13 22:43:11

Modified files:
regress/usr.bin/ssh: Makefile penalty.sh 
Added files:
regress/usr.bin/ssh: penalty-expire.sh 

Log message:
split the PerSourcePenalties test in two: one tests penalty enforcement
but not penalty expiry, the other tests penalty expiry.

This lets us disable the expiry testing in certain CI test environments.



CVS: cvs.openbsd.org: src

2024-06-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/13 22:04:14

Modified files:
sys/dev/pci/drm/i915/gem: i915_gem_stolen.c 
sys/dev/pci/drm/i915/gt: intel_gt_regs.h 

Log message:
drm/i915/mtl: Add Wa_14019821291

>From Dnyaneshwar Bhadane
43dea469e99b10ecc967a3576e50a5d416daf13c in mainline linux



CVS: cvs.openbsd.org: src

2024-06-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/13 19:30:45

Modified files:
sys/dev/pci/drm/i915: i915_driver.c i915_drv.h 
sys/dev/pci/drm/i915/display: intel_display_device.c 

Log message:
unstub probe_gmdid_display()

There is a temporary mapping of the first pci bar as this occurs before
the runtime info is setup and a generation specific bar is mapped based
on that.



CVS: cvs.openbsd.org: src

2024-06-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/13 19:14:18

Modified files:
sys/dev/pci/drm/i915: intel_device_info.c 

Log message:
unstub ip_ver_read()



CVS: cvs.openbsd.org: src

2024-06-13 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/13 18:26:12

Modified files:
regress/usr.bin/ssh: penalty.sh 

Log message:
don't redirect stderr for ssh-keyscan we expect to succeed



CVS: cvs.openbsd.org: src

2024-06-13 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/13 18:25:25

Modified files:
usr.bin/ssh: ssh-keyscan.c 

Log message:
make host/banner comments go to stderr instead of stdout, so they
are useful as comments without extra shell redirection and so they
don't clutter actual errors on stderr.

Add a -q flag to shut them up.

ok dtucker@



CVS: cvs.openbsd.org: src

2024-06-13 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/06/13 12:05:54

Modified files:
sys/dev/pci/drm: drm_linux.c 
sys/dev/pci/drm/include/generated: autoconf.h 
sys/dev/pci/drm/include/linux: acpi.h 

Log message:
Implement acpi_target_system_state().

ok jsg@



CVS: cvs.openbsd.org: src

2024-06-13 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2024/06/13 11:59:08

Modified files:
sys/dev/ic : ccp.c ccpvar.h 
sys/dev/pci: ccp_pci.c 

Log message:
Avoid ccp error message if SEV-ES is missing.

PSP is optional to ccp(4).  Thus if PSP attachment fails (e.g.
interrupt can not be set up), do not unmap IO space.  It will still
be needed by ccp(4).  Nonetheless, disestablish interrupt handler
if PSP attachment fails.

Another tweak:  If PSP can not be initialized, there's no need to
actually flush caches (wbinvd) on all CPUs.

Cleanup dmesg output and make it more precise.

from hshoexer@; reported and tested by Hrvoje Popovski



CVS: cvs.openbsd.org: src

2024-06-13 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2024/06/13 08:30:28

Modified files:
usr.sbin/unbound: Makefile.in ax_pthread.m4 config.h.in 
  configure configure.ac 
usr.sbin/unbound/cachedb: cachedb.c cachedb.h 
usr.sbin/unbound/daemon: cachedump.c daemon.c remote.c unbound.c 
 worker.c 
usr.sbin/unbound/doc: Changelog README example.conf.in 
  libunbound.3.in unbound-anchor.8.in 
  unbound-checkconf.8.in 
  unbound-control.8.in unbound-host.1.in 
  unbound.8.in unbound.conf.5.in 
  unbound.doxygen 
usr.sbin/unbound/edns-subnet: subnetmod.c 
usr.sbin/unbound/iterator: iter_fwd.c iter_fwd.h iter_hints.c 
   iter_hints.h iter_utils.c 
   iter_utils.h iterator.c 
usr.sbin/unbound/libunbound: context.c libunbound.c libworker.c 
usr.sbin/unbound/services: authzone.c listen_dnsport.c 
   listen_dnsport.h localzone.c mesh.c 
   mesh.h view.h 
usr.sbin/unbound/services/cache: dns.c infra.c infra.h rrset.c 
 rrset.h 
usr.sbin/unbound/smallapp: unbound-anchor.c unbound-checkconf.c 
   unbound-control.c 
usr.sbin/unbound/util: config_file.c config_file.h 
   configlexer.lex configparser.y module.c 
   module.h net_help.c netevent.c netevent.h 
usr.sbin/unbound/util/data: msgparse.h msgreply.c 
usr.sbin/unbound/util/storage: lookup3.c lruhash.c lruhash.h 
   slabhash.c slabhash.h 
usr.sbin/unbound/validator: val_utils.c validator.c 

Log message:
merge unbound 1.20.0



CVS: cvs.openbsd.org: src

2024-06-13 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2024/06/13 09:06:33

Modified files:
usr.bin/ssh: sshd_config.5 

Log message:
separate keywords with comma



CVS: cvs.openbsd.org: src

2024-06-13 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2024/06/13 08:29:35

Log message:
import unbound 1.20.0, ok florian

Status:

Vendor Tag: NLNETLABS
Release Tags:   UNBOUND_1_20_0

U src/usr.sbin/unbound/config.guess
C src/usr.sbin/unbound/config.h.in
C src/usr.sbin/unbound/ax_pthread.m4
U src/usr.sbin/unbound/acx_python.m4
C src/usr.sbin/unbound/configure.ac
U src/usr.sbin/unbound/acx_nlnetlabs.m4
C src/usr.sbin/unbound/Makefile.in
C src/usr.sbin/unbound/configure
U src/usr.sbin/unbound/install-sh
U src/usr.sbin/unbound/SECURITY.md
U src/usr.sbin/unbound/README.md
N src/usr.sbin/unbound/ax_pkg_swig.m4
U src/usr.sbin/unbound/LICENSE
U src/usr.sbin/unbound/systemd.m4
U src/usr.sbin/unbound/README-Travis.md
U src/usr.sbin/unbound/config.sub
U src/usr.sbin/unbound/aclocal.m4
U src/usr.sbin/unbound/ltmain.sh
U src/usr.sbin/unbound/validator/val_nsec.c
U src/usr.sbin/unbound/validator/val_nsec3.h
U src/usr.sbin/unbound/validator/validator.h
U src/usr.sbin/unbound/validator/val_anchor.h
C src/usr.sbin/unbound/validator/val_utils.c
C src/usr.sbin/unbound/validator/validator.c
U src/usr.sbin/unbound/validator/val_neg.h
U src/usr.sbin/unbound/validator/autotrust.c
U src/usr.sbin/unbound/validator/val_kentry.h
U src/usr.sbin/unbound/validator/val_sigcrypt.c
U src/usr.sbin/unbound/validator/val_kcache.h
U src/usr.sbin/unbound/validator/val_nsec.h
U src/usr.sbin/unbound/validator/val_anchor.c
U src/usr.sbin/unbound/validator/val_utils.h
U src/usr.sbin/unbound/validator/val_secalgo.c
U src/usr.sbin/unbound/validator/val_kcache.c
U src/usr.sbin/unbound/validator/val_secalgo.h
U src/usr.sbin/unbound/validator/val_nsec3.c
U src/usr.sbin/unbound/validator/val_neg.c
U src/usr.sbin/unbound/validator/autotrust.h
U src/usr.sbin/unbound/validator/val_kentry.c
U src/usr.sbin/unbound/validator/val_sigcrypt.h
U src/usr.sbin/unbound/services/modstack.c
C src/usr.sbin/unbound/services/view.h
C src/usr.sbin/unbound/services/localzone.c
C src/usr.sbin/unbound/services/mesh.h
C src/usr.sbin/unbound/services/listen_dnsport.c
U src/usr.sbin/unbound/services/view.c
C src/usr.sbin/unbound/services/listen_dnsport.h
U src/usr.sbin/unbound/services/outside_network.c
C src/usr.sbin/unbound/services/authzone.c
U src/usr.sbin/unbound/services/rpz.h
U src/usr.sbin/unbound/services/modstack.h
U src/usr.sbin/unbound/services/outbound_list.c
U src/usr.sbin/unbound/services/outbound_list.h
U src/usr.sbin/unbound/services/outside_network.h
U src/usr.sbin/unbound/services/rpz.c
U src/usr.sbin/unbound/services/localzone.h
C src/usr.sbin/unbound/services/mesh.c
U src/usr.sbin/unbound/services/authzone.h
C src/usr.sbin/unbound/services/cache/infra.h
C src/usr.sbin/unbound/services/cache/dns.c
U src/usr.sbin/unbound/services/cache/dns.h
C src/usr.sbin/unbound/services/cache/rrset.c
C src/usr.sbin/unbound/services/cache/infra.c
C src/usr.sbin/unbound/services/cache/rrset.h
U src/usr.sbin/unbound/iterator/iter_resptype.h
C src/usr.sbin/unbound/iterator/iter_fwd.c
C src/usr.sbin/unbound/iterator/iter_utils.c
C src/usr.sbin/unbound/iterator/iterator.c
U src/usr.sbin/unbound/iterator/iter_scrub.h
U src/usr.sbin/unbound/iterator/iter_resptype.c
U src/usr.sbin/unbound/iterator/iter_delegpt.c
C src/usr.sbin/unbound/iterator/iter_fwd.h
C src/usr.sbin/unbound/iterator/iter_hints.h
U src/usr.sbin/unbound/iterator/iter_scrub.c
U src/usr.sbin/unbound/iterator/iter_donotq.h
U src/usr.sbin/unbound/iterator/iter_priv.c
C src/usr.sbin/unbound/iterator/iter_hints.c
U src/usr.sbin/unbound/iterator/iterator.h
U src/usr.sbin/unbound/iterator/iter_priv.h
U src/usr.sbin/unbound/iterator/iter_donotq.c
C src/usr.sbin/unbound/iterator/iter_utils.h
U src/usr.sbin/unbound/iterator/iter_delegpt.h
U src/usr.sbin/unbound/doc/requirements.txt
C src/usr.sbin/unbound/doc/unbound-checkconf.8.in
U src/usr.sbin/unbound/doc/FEATURES
C src/usr.sbin/unbound/doc/Changelog
U src/usr.sbin/unbound/doc/README.tests
C src/usr.sbin/unbound/doc/example.conf.in
C src/usr.sbin/unbound/doc/libunbound.3.in
C src/usr.sbin/unbound/doc/unbound.conf.5.in
U src/usr.sbin/unbound/doc/README.DNS64
U src/usr.sbin/unbound/doc/README.svn
U src/usr.sbin/unbound/doc/control_proto_spec.txt
U src/usr.sbin/unbound/doc/TODO
C src/usr.sbin/unbound/doc/unbound-host.1.in
C src/usr.sbin/unbound/doc/unbound.8.in
C src/usr.sbin/unbound/doc/unbound-anchor.8.in
U src/usr.sbin/unbound/doc/LICENSE
C src/usr.sbin/unbound/doc/README
C src/usr.sbin/unbound/doc/unbound.doxygen
U src/usr.sbin/unbound/doc/CREDITS
C src/usr.sbin/unbound/doc/unbound-control.8.in
U 

CVS: cvs.openbsd.org: src

2024-06-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/13 03:01:13

Modified files:
sys/dev/pci/drm/i915: i915_driver.c 

Log message:
sync uncore mmio sizes with intel_uncore_setup_mmio()



CVS: cvs.openbsd.org: src

2024-06-13 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2024/06/13 00:47:13

Modified files:
sys/arch/sparc64/include: cpu.h 

Log message:
Enable uvm percpu caches on sparc64.
OK kettenis@ jca@ mpi@



CVS: cvs.openbsd.org: src

2024-06-12 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2024/06/12 20:19:20

Modified files:
sys/arch/amd64/amd64: cacheinfo.c 

Log message:
Wrong variable used in indexing meant that when a CPU's cache setup
differed on the second or later cache, the generated dmesg didn't
report the earlier, identical cache levels correctly.

report, testing, and ok jsg@



CVS: cvs.openbsd.org: src

2024-06-12 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/12 16:36:00

Modified files:
usr.bin/ssh: servconf.c servconf.h srclimit.c sshd_config.5 

Log message:
split PerSourcePenalties address tracking. Previously it used one
shared table and overflow policy for IPv4 and IPv6 addresses, now
it will use separate tables and optionally different overflow
policies.

This prevents misbehaviour from IPv6 addresses (which are vastly easier
to obtain many of) from affecting IPv4 connections and may allow for
stricter overflow policies.

ok deraadt@



CVS: cvs.openbsd.org: src

2024-06-12 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2024/06/12 06:54:54

Modified files:
sys/arch/amd64/amd64: conf.c 
sys/conf   : files 
sys/dev/ic : ccp.c ccpvar.h 
sys/dev/pci: ccp_pci.c 

Log message:
Add support for the AMD Platform Security Processor (PSP) to ccp(4).

Several commands for basic platform initialization and launch of
SEV/SEV-ES enabled guests are implemented.  These can be used by
e.g. vmd(8) later.

from hshoexer@; OK mlarkin@



CVS: cvs.openbsd.org: src

2024-06-12 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/12 04:03:09

Modified files:
usr.sbin/rpki-client: cert.c crl.c filemode.c parser.c 
  validate.c 

Log message:
rpki-client: avoid hard error when hitting the maximum cert id

Instead, continue processing what we can but avoid lots of warning noise.
Error out at the end of the parser process to avoid loading a bad config
into bgpd. This isn't great as it is and can be refined in tree.

ok claudio



CVS: cvs.openbsd.org: src

2024-06-12 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/06/12 03:08:43

Modified files:
share/man/man4 : rktemp.4 

Log message:
Update



CVS: cvs.openbsd.org: src

2024-06-12 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/06/12 03:06:15

Modified files:
sys/dev/fdt: rktemp.c 

Log message:
Add RK3588 support.

ok mlarkin@, kurt@



CVS: cvs.openbsd.org: src

2024-06-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/11 22:25:00

Modified files:
usr.sbin/rpki-client: rpki-client.8 

Log message:
rpki-client: mention same-origin policy draft in STANDARDS

ok job



CVS: cvs.openbsd.org: src

2024-06-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/11 22:11:19

Modified files:
usr.sbin/rpki-client: version.h 

Log message:
rpki-client: bump version

It's been a few months with lots of changes. We should release soon-ish.

discussed with job



CVS: cvs.openbsd.org: src

2024-06-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/11 22:01:20

Modified files:
usr.sbin/rpki-client: cert.c 

Log message:
rpki-client: use better variable names for issuer and subject UID

piuid and psuid annoy me every time I see them.

no functional change



CVS: cvs.openbsd.org: src

2024-06-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/11 21:55:46

Modified files:
lib/libcrypto/x509: x509.h 

Log message:
piuid, psuid -> issuerUID, subjectUID



CVS: cvs.openbsd.org: src

2024-06-11 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/11 17:35:27

Modified files:
lib/libc/gen   : syslog.3 

Log message:
reentrant functions were not in 386BSD
spotted by and ok deraadt@



CVS: cvs.openbsd.org: src

2024-06-11 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/06/11 11:35:26

Modified files:
sys/dev/acpi   : acpi.c 

Log message:
Avoid powering down PCI devices if we're rebooting.  This makes some
machines (e.g. the t410) unhappy.

ok mglocker@



CVS: cvs.openbsd.org: src

2024-06-11 Thread Omar Polo
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2024/06/11 10:35:25

Modified files:
lib/libtls : tls_signer.c 

Log message:
sync includes in tls_signer.c

pthread -> mutex
stdint -> uint8_t
stdio.h -> asprintf
stdlib.h -> calloc
string.h -> memcpy

ecdsa -> ECDSA_METHOD leftover, remove
ec -> EC_KEY
evp -> EVP_PKEY
pem -> PEM_read_bio_X509
x509 -> X509

90% of the diff is from tb@, I only spotted the missing string.h :)

ok tb@



CVS: cvs.openbsd.org: src

2024-06-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/11 10:30:07

Modified files:
usr.sbin/smtpd : lka.c 

Log message:
smtpd: fix indent

ok op



CVS: cvs.openbsd.org: src

2024-06-11 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/06/11 09:44:55

Modified files:
sys/arch/arm/arm: cpu.c 
sys/arch/arm64/arm64: cpu.c 
sys/arch/riscv64/riscv64: cpu.c 

Log message:
Clamp CPU clock frequencies to [min, max] range when determining the
initial perflevel.

ok deraadt@, phessler@, patrick@, jca@



CVS: cvs.openbsd.org: src

2024-06-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/11 09:33:46

Modified files:
usr.sbin/rpki-client: crl.c 

Log message:
rpki-client: add link to rpki-rs PR that supposedly fixes this bug

https://github.com/NLnetLabs/rpki-rs/pull/295



CVS: cvs.openbsd.org: src

2024-06-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/11 04:38:40

Modified files:
usr.sbin/rpki-client: mft.c rsc.c 

Log message:
rpki-client: fix incorrect use of ASN1_tag2str()

This goes back to the initial import in mft.c and was then copied to rsc.c.
ASN1_tag2str() doesn't take a nid but rather an ASN.1 tag. Use nid2str()
instead.

ok claudio (who helped me use nid2str() correctly)



CVS: cvs.openbsd.org: src

2024-06-11 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2024/06/11 04:06:35

Modified files:
sys/dev/ic : qwx.c 
sys/dev/pci: if_qwx_pci.c 

Log message:
Make sure qwx(4) always calls refcnt_init() before other refcnt functions.

I recently enabled automatic recovery from firmware crashes. if loading
firmware at boot would fail with a firmware error then the init task would
call refcnt_finalize() via qwx_stop() before refcnt_init() was called and
trigger a KASSERT in the refcnt code.

ok patrick@, who also reported the problem to me and tested the fix



CVS: cvs.openbsd.org: src

2024-06-11 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/11 03:55:38

Modified files:
sys/arch/landisk/include: conf.h 

Log message:
remove prototypes and defines for drivers landisk doesn't use
build test and ok miod@



CVS: cvs.openbsd.org: src

2024-06-11 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/11 03:21:32

Modified files:
sys/arch/amd64/amd64: conf.c 
sys/arch/arm64/arm64: conf.c 
sys/arch/i386/i386: conf.c 
sys/arch/loongson/loongson: conf.c 
sys/arch/macppc/macppc: conf.c 
sys/arch/riscv64/riscv64: conf.c 
sys/arch/sparc64/sparc64: conf.c 

Log message:
remove drm prototypes duplicating those in sys/conf.h



CVS: cvs.openbsd.org: src

2024-06-11 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2024/06/11 03:15:33

Modified files:
sys/dev/fdt: rkclock.c rkclock_clocks.h 

Log message:
Add RK3588 TSADC clocks and resets.

ok patrick@, dlg@



CVS: cvs.openbsd.org: src

2024-06-11 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/06/11 01:27:14

Modified files:
usr.sbin/rpki-client: cert.c crl.c 

Log message:
rpki-client: simplify signature type checking for certs/CRLs

The OpenSSL 1.1 get_signature_nid() API is available for all libraries
that we support and it does exactly what we want. It is much simpler
than the unergonomic accessors we used previously. The ASN.1 templates
ensure that the relevant struct members aren't NULL after successful
deserialization, so the calls are safe.

ok claudio



CVS: cvs.openbsd.org: src

2024-06-11 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/11 00:11:50

Modified files:
sys/arch/macppc/macppc: conf.c 

Log message:
remove kbd/ms prototypes with no matching functions



CVS: cvs.openbsd.org: src

2024-06-10 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/10 23:24:39

Modified files:
usr.bin/ssh: sshd_config.5 

Log message:
do not mark up "(default: 20ms)";



CVS: cvs.openbsd.org: src

2024-06-10 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/10 21:28:42

Modified files:
sys/arch/i386/include: conf.h 
sys/arch/i386/i386: conf.c 
sys/arch/amd64/amd64: conf.c 

Log message:
remove prototypes for pre-wscons mouse drivers



CVS: cvs.openbsd.org: src

2024-06-10 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/10 20:54:51

Modified files:
usr.bin/ssh: monitor_wrap.c 

Log message:
reap preauth net child if it hangs up during privsep message send, not
just message receive



CVS: cvs.openbsd.org: src

2024-06-10 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/10 20:00:30

Modified files:
usr.bin/ssh: monitor_wrap.c 

Log message:
reap the pre-auth [net] child if it hangs up during privsep message
sending, not just receiving



CVS: cvs.openbsd.org: src

2024-06-10 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/10 19:58:27

Modified files:
regress/usr.bin/ssh: test-exec.sh 

Log message:
fix PIDFILE handling, broken for SUDO=doas in last commit here



CVS: cvs.openbsd.org: src

2024-06-10 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/06/10 19:49:17

Modified files:
sys/sys: conf.h 

Log message:
remove cdev_decl(ses), none of the prototypes have matching functions



CVS: cvs.openbsd.org: src

2024-06-10 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/10 19:23:25

Modified files:
usr.bin/ssh: srclimit.c 

Log message:
a little more RB_TREE paranoia



CVS: cvs.openbsd.org: src

2024-06-10 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/10 19:22:25

Modified files:
usr.bin/ssh: srclimit.c 

Log message:
fix off-by-one comparison for PerSourcePenalty overflow:deny-all mode



CVS: cvs.openbsd.org: src

2024-06-10 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/10 19:21:41

Modified files:
usr.bin/ssh: srclimit.c 

Log message:
move tree init before possible early return



CVS: cvs.openbsd.org: src

2024-06-10 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/10 19:07:35

Modified files:
usr.bin/ssh: sshd_config.5 

Log message:
update to mention that PerSourcePenalties default to being enabled
and document the default values for each parameter.



CVS: cvs.openbsd.org: src

2024-06-10 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/10 18:44:52

Modified files:
usr.bin/ssh: monitor_wrap.c 

Log message:
reap the [net] child if it hangs up while writing privsep message
payloads, not just the message header



CVS: cvs.openbsd.org: src

2024-06-10 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/10 18:40:21

Modified files:
usr.bin/ssh: monitor_wrap.c 

Log message:
log waitpid() status for abnormal exits



CVS: cvs.openbsd.org: src

2024-06-10 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/06/10 18:36:20

Modified files:
usr.bin/ssh: servconf.c 

Log message:
correct error message



  1   2   3   4   5   6   7   8   9   10   >