CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 23:31:28

Modified files:
lib/libcrypto/man: CMS_get0_type.3 

Log message:
Fix typo



CVS: cvs.openbsd.org: src

2023-07-26 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2023/07/26 19:51:35

Modified files:
sys/arch/amd64/include: specialreg.h 
sys/arch/amd64/amd64: identcpu.c 

Log message:
Report speculation control bits in dmesg cpu lines.

ok mlarkin@



CVS: cvs.openbsd.org: src

2023-07-26 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2023/07/26 18:30:07

Modified files:
sys/arch/amd64/include: frameasm.h 
sys/arch/amd64/amd64: spl.S vector.S 

Log message:
The interrupt resume (Xdoreti) and recurse (Xspllower) paths are
invoked using indirect branches and should have endbr64's.

ok deraadt@



CVS: cvs.openbsd.org: src

2023-07-26 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2023/07/26 18:28:25

Modified files:
sys/arch/amd64/include: cpu.h 
sys/arch/amd64/amd64: locore.S machdep.c 

Log message:
Follow the lead of mips64 and make cpu_idle_cycle() just call the
indirect pointer itself and provide an initializer for that going
to the default "just enable interrupts and halt" path.

ok kettenis@



CVS: cvs.openbsd.org: src

2023-07-26 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/07/26 17:06:00

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

Log message:
make ssh -f (fork after authentication) work properly in multiplexed
cases (inc. ControlPersist). bz3589 bz3589
Based on patches by Peter Chubb; ok dtucker@



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 16:51:01

Modified files:
regress/lib/libcrypto/free: freenull.c.head 

Log message:
Prepare this test for the upcoming bump



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 16:46:06

Modified files:
regress/lib/libcrypto/ec: ectest.c 

Log message:
Remove comment containing an outdated path



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 14:23:22

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

Log message:
revert previous: dlg tells me it's incorrect



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 14:15:51

Modified files:
lib/libcrypto/man: ERR.3 

Log message:
Remove ERR_get_{err_state,string}_table documentation



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 14:12:45

Modified files:
lib/libcrypto/man: BUF_MEM_new.3 

Log message:
Remove BUF_reverse and BUF_strdup documentation



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 14:09:25

Modified files:
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 14:08:59

Modified files:
lib/libcrypto/man: BN_new.3 Makefile RSA_blinding_on.3 
Removed files:
lib/libcrypto/man: BN_BLINDING_new.3 

Log message:
BN_BLINDING will be made internal-only. Remove its documentation



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 14:01:51

Modified files:
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 14:01:04

Modified files:
lib/libcrypto/man: BIO_ctrl.3 BIO_find_type.3 BIO_new.3 Makefile 
Removed files:
lib/libcrypto/man: BIO_f_asn1.3 

Log message:
BIO_f_asn1 and the prefix/suffix API will be removed

Remove their documentation and mark some associated constants as
intentionally undocumented until they will be removed from public
headers.



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 13:30:43

Modified files:
lib/libcrypto/man: CMS_get0_SignerInfos.3 CMS_get0_type.3 

Log message:
Document CMS_SignerInfos_get_version and CMS_get_version which will
be added in the upcoming bump.



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 11:15:25

Modified files:
lib/libcrypto/ec: ecp_smpl.c 

Log message:
Tweak EC_GROUP_check_discriminant()

Make the logic and control flow a bit more explicit and use a single
extra variable for computing the discriminant. Call it discriminant,
not tmp, tmp_1 or tmp_2.

ok jsing



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 06:26:49

Modified files:
lib/libcrypto/ec: ecp_smpl.c 

Log message:
Unindent a big block in EC_GROUP_get_affine_coordinates()



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 06:24:28

Modified files:
lib/libcrypto/ec: ecp_smpl.c 

Log message:
Introduce and use ec_encode_scalar()

This introduces two "inverses" of the ec_decode_scalar() function that take
a BIGNUM, reduce it modulo p and then encodes it into the curve's field
representation. For setting projective coordinates, we need a specialized
helper that deals with the Z_is_one optimization that is used to optimize
for calculations in standard affine coordinates of the projective plane.
This is used for simplifying EC_POINT_set_Jprojective_coordinates() and
for cleaning up and streamlining EC_GROUP_set_curve().

ok jsing



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 06:16:55

Modified files:
lib/libcrypto/ec: ecp_smpl.c 

Log message:
Garbage collect the unused order in check_discriminant()

ok jsing



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 06:16:13

Modified files:
lib/libcrypto/ec: ecp_smpl.c 

Log message:
Streamline check_discriminant()

Instead of inlining EC_GROUP_get_curve(), we can simply call it...

ok jsing



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 06:12:13

Modified files:
lib/libcrypto/ec: ecp_smpl.c 

Log message:
Introduce ec_decode_scalar()

This is a helper that decodes a scalar from field-internal representation
to a representation as a BIGNUM in the interval [0, p). This simplifies
EC_GROUP_get_curve() and EC_POINT_get_Jprojective_coordinates() to a few
obvious lines and prepares cleanup in EC_POINT_get_affine_coordinates().

ok jsing



CVS: cvs.openbsd.org: www

2023-07-26 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2023/07/26 06:08:11

Modified files:
faq: current.html 

Log message:
add pfsync upgrade note: if you use hostname.pfsyncX, make sure you have
set interface options (particularly syncdev) before bringing the interface
'up'.  ok dlg



CVS: cvs.openbsd.org: src

2023-07-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/07/26 05:58:34

Modified files:
lib/libcrypto/ec: ecp_smpl.c 

Log message:
Use EC_POINT_set_to_infinity() rather than inlining it



CVS: cvs.openbsd.org: src

2023-07-26 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2023/07/26 05:09:24

Modified files:
sys/arch/arm64/dev: apldma.c aplmca.c 

Log message:
Shutd down the power domains suring suspend.

ok patrick@, tobhe@



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 05:06:51

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

Log message:
drm/atomic: Fix potential use-after-free in nonblocking commits

>From Daniel Vetter
e4a0e09b79bd2c0895c508cdc5e0265a083cc05d in linux-6.1.y/6.1.40
4e076c73e4f6e90816b30fcd4a0d7ab365087255 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 05:04:07

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

Log message:
call kref_init() in drm_attach() matching the call in drm_dev_init()



CVS: cvs.openbsd.org: src

2023-07-26 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2023/07/26 03:57:34

Modified files:
lib/libcrypto/arch/aarch64: arm64cap.c 
lib/libcrypto/arch/arm: armcap.c 

Log message:
Remove constructor attribute for OPENSSL_cpuid_setup() on arm/aarch64.

OPENSSL_cpuid_setup() is invoked via OPENSSL_init_crypto(), whihc is
triggered by various entry points to the library. As such, we do not need
to invoke it as a constructor.

ok tb@



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:45:30

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

Log message:
drm/amd/pm: conditionally disable pcie lane/speed switching for SMU13

>From Mario Limonciello
bd8cd38d3ac6b6410ac4e7401ef3dca057a9b285 in linux-6.1.y/6.1.40
31c7a3b378a136adc63296a2ff17645896fcf303 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:43:00

Modified files:
sys/dev/pci/drm/amd/pm/swsmu/inc: smu_v13_0.h 
sys/dev/pci/drm/amd/pm/swsmu/smu13: smu_v13_0.c 
smu_v13_0_0_ppt.c 
smu_v13_0_7_ppt.c 

Log message:
drm/amd/pm: share the code around SMU13 pcie parameters update

>From Evan Quan
11dc77a645b78b2fa8e730232f530778af4f710d in linux-6.1.y/6.1.40
dcb489bae65d92cfd26da22c7a0d6665b06ecc63 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:40:47

Modified files:
sys/dev/pci/drm/ttm: ttm_bo.c 

Log message:
drm/ttm: Don't leak a resource on swapout move error

>From Thomas Hellstrom
f037f6038736bd038ddb9c72de979a08cc1ee3b5 in linux-6.1.y/6.1.40
a590f03d8de7c4cb7ce4916dc7f2fd10711faabe in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:39:07

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

Log message:
drm/amdgpu: avoid restore process run into dead loop.

>From gaba
fe26d0fa9408896e821d1c8dd2ab52171da03ed9 in linux-6.1.y/6.1.40
8a774fe912ff09e39c2d3a3589c729330113f388 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:37:05

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

Log message:
drm/amd/display: Add monitor specific edid quirk

>From Aurabindo Pillai
8404d0e274ac1f780e29fa6380ad4e2f9c4bd3da in linux-6.1.y/6.1.40
613a7956deb3b1ffa2810c6d4c90ee9c3d743dbb in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:35:39

Modified files:
sys/dev/pci/drm/amd/display/dmub: dmub_srv.h 

Log message:
drm/amd/display: Correct `DMUB_FW_VERSION` macro

>From Mario Limonciello
7ad40467fdfb57bdd8540a4a08cbb448f323c275 in linux-6.1.y/6.1.40
274d205cb59f43815542e04b42a9e6d0b9b95eff in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:33:09

Modified files:
sys/dev/pci/drm/amd/display/dc/dce112: dce112_resource.c 

Log message:
drm/amd/display: add a NULL pointer check

>From Sung-huai Wang
ad85fc99d6389bde08dc1dec55a2443514feba6e in linux-6.1.y/6.1.40
0f48a4b83610cb0e4e0bc487800ab69f51b4aca6 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:31:06

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

Log message:
drm/amdgpu: fix clearing mappings for BOs that are always valid in VM

>From Samuel Pitoiset
91e69e67d401eb67178ce5992ddc9b1046b39ee7 in linux-6.1.y/6.1.40
ea2c3c08554601b051d91403a241266e1cf490a5 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:29:09

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

Log message:
drm/amd/display: disable seamless boot if force_odm_combine is enabled

>From Leo Chen
3546f76c7ad87d0ade575a5c4acad5e4704d927c in linux-6.1.y/6.1.40
26518b39181876064850209ecdab48c0ee5924b1 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:27:30

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

Log message:
drm/amd/display: Remove Phantom Pipe Check When Calculating K1 and K2

>From Austin Zheng
a2ef3163c3604788abdc060cab74c95ed44fec1a in linux-6.1.y/6.1.40
1966bbfdfe476d271b338336254854c5edd5a907 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:26:05

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

Log message:
drm/amd/display: edp do not add non-edid timings

>From Hersen Wu
c4629c757528f87ee22ea8fe16c645e471b9cbf6 in linux-6.1.y/6.1.40
7a0e005c7957931689a327b2a4e7333a19f13f95 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:24:24

Modified files:
sys/dev/pci/drm/amd/display/dc/dcn20: dcn20_hwseq.c 
sys/dev/pci/drm/amd/display/dc/dcn32: dcn32_optc.c dcn32_optc.h 

Log message:
drm/amd/display: fix seamless odm transitions

>From Dmytro Laktyushkin
31fb25ecbba6ebe11dc497952310b986e05dd3a0 in linux-6.1.y/6.1.40
75c2b7ed080d7421157c03064be82275364136e7 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:22:43

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

Log message:
drm/atomic: Allow vblank-enabled + self-refresh "disable"

>From Brian Norris
db0a9a29912cdc1834214fe35101a4917f8b9907 in linux-6.1.y/6.1.40
9d0e3cac3517942a6e00eeecfe583a98715edb16 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:20:51

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

Log message:
drm/amd/pm: add abnormal fan detection for smu 13.0.0

>From Kenneth Feng
13e8af958cfa97d93d9824b863208c0bb0977361 in linux-6.1.y/6.1.40
2da0036ea99bccb27f7fe3cf2aa2900860e9be46 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:19:34

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

Log message:
drm/amdgpu: Fix minmax warning

>From Luben Tuikov
e8b6b7b8132500ecb241f7f685398028017ec0d3 in linux-6.1.y/6.1.40
abd51738fe754a684ec44b7a9eca1981e1704ad9 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:17:53

Modified files:
sys/dev/pci/drm/amd/pm/swsmu/inc: amdgpu_smu.h 
sys/dev/pci/drm/amd/pm/swsmu/smu13: smu_v13_0.c 
smu_v13_0_7_ppt.c 

Log message:
drm/amdgpu: add the fan abnormal detection feature

>From lyndonli
d7d53c669da90181827e42583582192646a4d933 in linux-6.1.y/6.1.40
ef5fca9f7294509ee5013af9e879edc5837c1d6c in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:16:19

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

Log message:
drm/amd/pm: revise the ASPM settings for thunderbolt attached scenario

>From Evan Quan
c8c703befd2fb2ebbcc9cedbdc98953b52453a35 in linux-6.1.y/6.1.40
fd21987274463a439c074b8f3c93d3b132e4c031 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:14:40

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

Log message:
drm/amdgpu/sdma4: set align mask to 255

>From Alex Deucher
4596c812916a582e16aedfb243aaee8d010c6220 in linux-6.1.y/6.1.40
e5df16d9428f5c6d2d0b1eff244d6c330ba9ef3a in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:13:01

Modified files:
sys/dev/pci/drm: drm_client.c drm_fb_helper.c 

Log message:
drm/client: Send hotplug event after registering a client

>From Thomas Zimmermann
7c880188c71066449a76de71de772198a0c30a7c in linux-6.1.y/6.1.40
27655b9bb9f0d9c32b8de8bec649b676898c52d5 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:10:51

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

Log message:
drm/i915: Fix one wrong caching mode enum usage

>From Tvrtko Ursulin
5a9aecb6651c6e1ef8198c162340ebe172b7a551 in linux-6.1.y/6.1.40
113899c2669dff148b2a5bea4780123811aecc13 in mainline linux



CVS: cvs.openbsd.org: src

2023-07-26 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/07/26 00:09:12

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

Log message:
drm/i915: Don't preserve dpll_hw_state for slave crtc in Bigjoiner

>From Stanislav Lisovskiy
f1e746aedd7dfbdea84b690c56154a11b68dc4de in linux-6.1.y/6.1.40
5c413188c68da0e4bffc93de1c80257e20741e69 in mainline linux