CVS: cvs.openbsd.org: src

2021-09-08 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 22:09:41

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

Log message:
drm: Copy drm_wait_vblank to user before returning

>From Mark Yacoub
6fd6e20520ccd05a1ac3321404dd498cc28576cb in linux 5.10.y/5.10.62
fa0b1ef5f7a694f48e00804a391245f3471aa155 in mainline linux



CVS: cvs.openbsd.org: src

2021-09-08 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 22:06:55

Modified files:
sys/dev/pci/drm/amd/pm/powerplay/hwmgr: vega10_hwmgr.c 

Log message:
drm/amd/pm: change the workload type for some cards

>From Kenneth Feng
b00ca567579a4c2f9a4cd6f9a63946f793e8b506 in linux 5.10.y/5.10.62
93c5701b00d50d192ce2247cb10d6c0b3fe25cd8 in mainline linux



CVS: cvs.openbsd.org: src

2021-09-08 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 22:04:45

Modified files:
sys/dev/pci/drm/amd/pm/powerplay/hwmgr: vega10_hwmgr.c 

Log message:
Revert "drm/amd/pm: fix workload mismatch on vega10"

>From Kenneth Feng
3c37ec4350220a548ffc6753646913899e86b1c7 in linux 5.10.y/5.10.62
2fd31689f9e44af949f60ff4f8aca013e628ab81 in mainline linux



CVS: cvs.openbsd.org: src

2021-09-08 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 22:02:53

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

Log message:
drm/i915: Fix syncmap memory leak

>From Matthew Brost
257ea8a5edc04d5199db83137fbaa24e1de98e9e in linux 5.10.y/5.10.62
a63bcf08f0efb5348105bb8e0e1e8c6671077753 in mainline linux



CVS: cvs.openbsd.org: src

2021-09-08 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 22:01:05

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

Log message:
drm/amdgpu: Cancel delayed work when GFXOFF is disabled

>From Michel Daenzer
da3067eadcc156b742657c0694beae0a7c49d157 in linux 5.10.y/5.10.62
32bc8f8373d2d6a681c96e4b25dca60d4d1c6016 in mainline linux



CVS: cvs.openbsd.org: src

2021-09-08 Thread joshua stein
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 20:23:14

Modified files:
sys/dev/pci/drm/i915/display: intel_csr.c 
sys/dev/pci/drm/i915/gt/uc: intel_uc_fw.c 

Log message:
Don't print references to Intel's website for downloading firmware
when loading fails, it will just confuse people

ok jsg



CVS: cvs.openbsd.org: src

2021-09-08 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2021/09/08 17:31:39

Modified files:
usr.bin/ssh: scp.1 scp.c 

Log message:
Use the SFTP protocol by default. The original scp/rcp protocol remains
available via the -O flag.

Note that ~user/ prefixed paths in SFTP mode require a protocol extension
that was first shipped in OpenSSH 8.7.

ok deraadt, after baking in snaps for a while without incident



CVS: cvs.openbsd.org: src

2021-09-08 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 14:33:42

Modified files:
share/man/man4 : pci.4 rge.4 

Log message:
update rge: can do 10/100/1Gb/2.5Gb according to chris



CVS: cvs.openbsd.org: src

2021-09-08 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 14:29:21

Modified files:
share/man/man4 : acpi.4 age.4 alc.4 ale.4 aq.4 atphy.4 axe.4 
 axen.4 bge.4 bnx.4 bnxt.4 brgphy.4 bse.4 cad.4 
 cardbus.4 cas.4 ciphy.4 dwge.4 dwxe.4 em.4 et.4 
 gem.4 ipgphy.4 jme.4 jmphy.4 lge.4 msk.4 mtd.4 
 mue.4 nfe.4 nge.4 nsgphy.4 pci.4 re.4 rgephy.4 
 sbus.4 se.4 sk.4 stge.4 ti.4 uaq.4 ure.4 usb.4 
 vge.4 

Log message:
attempt to standardise the way we specify speeds in our name description (Nd)
lines;

sthen and deraadt argued for unit suffixes for speeds 1Gb+
deraadt also requested Gigabit be standardised to 1Gb

ok sthen deraadt ian benno



CVS: cvs.openbsd.org: src

2021-09-08 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/09/08 11:29:21

Modified files:
lib/libcrypto/ec: ec.h ec2_smpl.c ec_lcl.h ec_lib.c ecp_mont.c 
  ecp_nist.c ecp_nistp224.c ecp_nistp256.c 
  ecp_nistp521.c ecp_nistz256.c ecp_smpl.c 

Log message:
Prepare to provide EC_GROUP_order_bits()

ok jsing



CVS: cvs.openbsd.org: src

2021-09-08 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/09/08 11:27:33

Modified files:
lib/libssl : ssl.h ssl_lib.c ssl_sess.c 

Log message:
Provide SSL_SESSION_is_resumable and SSL_set_psk_use_session_callback stubs

ok jsing



CVS: cvs.openbsd.org: src

2021-09-08 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/09/08 11:24:23

Modified files:
lib/libssl : ssl.h ssl_lib.c 

Log message:
Prepare to provide API stubs for PHA

ok bcook jsing



CVS: cvs.openbsd.org: src

2021-09-08 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2021/09/08 10:37:20

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

Log message:
The number of elements being processed is known upfront. So allocate the
storage needed outside of the loop. This reduces the number of recallocarray
calls.
OK tb@



CVS: cvs.openbsd.org: src

2021-09-08 Thread Jeremie Courreges-Anglas
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 09:57:27

Modified files:
lib/libc/stdio : vfprintf.c vfwprintf.c 

Log message:
Zap _THIS_PORT helper for printf("%n") tracking in ports land

This hack isn't very useful now that libc aborts on printf("%n") calls,
it's expected that the resulting error would lead to a build
failure, and that the coredump along with the syslog message should be
enough to find the culprit.

Hinted by naddy@ and prodded by deraadt@



CVS: cvs.openbsd.org: src

2021-09-08 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2021/09/08 09:34:01

Modified files:
usr.sbin/btrace: bt_parse.y 

Log message:
Revert a chunk committed by inadvertence in my last fix.



CVS: cvs.openbsd.org: src

2021-09-08 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/09/08 08:33:02

Modified files:
lib/libcrypto/cms: cms_env.c 

Log message:
Fix leak in cms_RecipientInfo_kekri_decrypt()

Free ec->key before reassigning it.

>From OpenSSL 1.1.1, 58e1e397

ok inoguchi



CVS: cvs.openbsd.org: src

2021-09-08 Thread Dave Voutila
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2021/09/08 07:29:51

Modified files:
usr.sbin/btrace: TODO bt_parse.y bt_parser.h btrace.8 btrace.c 
Added files:
regress/usr.sbin/btrace: staticv.args staticv.bt staticv.ok 

Log message:
btrace(8): add initial support for cli arguments

This adds initial support for passing cli args to btrace(8) for use
in bt(5) scripts. Similar to bpftrace, they are referenced via $1,
$2, etc. with $# being the number of command line arguments provided.

Adds an initial regress test and a Makefile change to allow providing
arguments to regress tests in a .args file.

Currently no limit is imposed on the number of arguments, keeping
a similar approach as observed in bpftrace. References to undefined
arguments result in a new "nil" type that contextually acts as a
zero or empty string. More work can be done here to improve bpftrace
compatibility.

ok mpi@, jasper@



CVS: cvs.openbsd.org: src

2021-09-08 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2021/09/08 07:16:53

Modified files:
distrib/miniroot: dot.profile install.sub 

Log message:
Backout "Merge sysupgrade watchdog and prompt timeout code"
(commitid 0SH0ijktpPPcSctj)

"/autoinstall[2697]: start_timeout: not found" during non-interactive
upgrade, e.g. sysupgrade(8).

Reported by Joel Carnat , thanks.



CVS: cvs.openbsd.org: src

2021-09-08 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/09/08 07:06:53

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

Log message:
Add a missing call to iwx_ctxt_info_free_fw_img() in an error path
of iwx_ctxt_info_init() which should always free on error.

Also, free firmware paging DMA memory in case loading firmware has failed.
If we don't free paging on error we hit KASSERT(dram->paging == NULL)
in iwx_init_fw_sec() once we try to load firmware again.  I have hit
this while debugging firmware load failures during suspend/resume.

ok mpi@



CVS: cvs.openbsd.org: src

2021-09-08 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/09/08 07:06:23

Modified files:
sys/dev/pci: if_iwm.c if_iwx.c 

Log message:
Make iwm(4) and iwx(4) raise IPL to splnet() while loading firmware.

ok mpi@



CVS: cvs.openbsd.org: src

2021-09-08 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/09/08 06:56:14

Modified files:
lib/libssl : s3_lib.c ssl.h tls1.h 

Log message:
Prepare to provide SSL_get_tlsext_status_type()

Needed for nginx-lua to build with opaque SSL.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2021-09-08 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/09/08 06:32:07

Modified files:
lib/libssl : ssl_lib.c ssl.h 

Log message:
Prepare to provide SSL_set0_rbio()

This is needed for telephony/coturn and telephony/resiprocate to compile
without opaque SSL.

ok inoguchi jsing



CVS: cvs.openbsd.org: src

2021-09-08 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2021/09/08 06:19:17

Modified files:
lib/libcrypto/bn: bn.h bn_lib.c 

Log message:
Prepare to provide BN_bn2{,le}binpad() and BN_lebin2bn()

As found by jsg and patrick, this is needed for newer uboot and
will also be used in upcoming elliptic curve work.

This is from OpenSSL 1.1.1l with minor style tweaks.

ok beck inoguchi



CVS: cvs.openbsd.org: src

2021-09-08 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/09/08 05:40:30

Modified files:
sys/net80211   : ieee80211_output.c 

Log message:
Improve debug output when sending 802.11 action frames by showing the
action frame subtypes we care about (i.e. those related to 11n block ack).

ok mpi@



CVS: cvs.openbsd.org: src

2021-09-08 Thread Tobias Heider
CVSROOT:/cvs
Module name:src
Changes by: to...@cvs.openbsd.org   2021/09/08 05:38:39

Modified files:
usr.sbin/unwindctl: unwindctl.c 

Log message:
Print correct RTP_PROPOSAL types with 'unwindctl status autoconf'.

Feedback and ok florian@



CVS: cvs.openbsd.org: src

2021-09-08 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2021/09/08 05:35:08

Modified files:
sys/dev/pci: if_iwm.c if_iwx.c 

Log message:
Let iwm(4) and iwx(4) sleep for 1 second while loading firmware.

Sleeping for 1 second matches what iwn(4) does. Fixes issues where loading
firmware failed for bogus reasons. I could trigger this failure on AX200
with suspend/resume but it was not inherently specific to suspend/resume.

The previous code was looping over tsleep(9) in steps of 100msec.
This could lead to a race where the firmware's alive interrupt fired between
the endtsleep() timeout handler, which marks the sleep timeout as expired,
and sleep_finish(), which reschedules the sleeping thread. The driver would
see EWOULDBLOCK and report an error even though loading firmware did succeed.

ok mpi@



CVS: cvs.openbsd.org: src

2021-09-08 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 04:49:34

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

Log message:
Replace bare ; with continue;

OK tb@



CVS: cvs.openbsd.org: src

2021-09-08 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2021/09/08 03:49:24

Modified files:
lib/libcrypto/x509: x509_asid.c x509_addr.c 

Log message:
Fix indentation of comments and labels

OK tb@