openbsd
14 months agoClarify how the EVP IV is used with ChaCha
tb [Thu, 24 Aug 2023 04:20:57 +0000 (04:20 +0000)]
Clarify how the EVP IV is used with ChaCha

EVP_chacha20() was aligned to follow OpenSSL's nonconformant implementation
during a2k20 by djm and myself in an effort to allow OpenSSH to use the
OpenSSL 1.1 API. Some corresponding OpenSSL 1.1 documentation was imported
at the same time. A comment attempted to translate between implementation
and the incorrect documentation, which was necessarily gibberish. Improve
the situation by rephrasing and dropping nonsensical bits.

Prompted by a question of schwarze

14 months agoMention key and nonce lengths of AEAD ciphers.
schwarze [Wed, 23 Aug 2023 13:46:42 +0000 (13:46 +0000)]
Mention key and nonce lengths of AEAD ciphers.
Mention portability considerations regarding the EVP_AEAD API.
Avoid confusing words like "older" and "native" API, be specific.
Mention RFC 7905.
Move publications we don't implement from STANDARDS to CAVEATS.

Based on input from jsing@ and tb@, OK tb@.

14 months agoAdd -c to run-shell to set working directory, from someone in GitHub
nicm [Wed, 23 Aug 2023 08:40:25 +0000 (08:40 +0000)]
Add -c to run-shell to set working directory, from someone in GitHub
issue 3661.

14 months agoLog what input_dcs_dispatch does with the input data.
nicm [Wed, 23 Aug 2023 08:30:07 +0000 (08:30 +0000)]
Log what input_dcs_dispatch does with the input data.

14 months agoall platforms: separate cpu_initclocks() from cpu_startclock()
cheloha [Wed, 23 Aug 2023 01:55:45 +0000 (01:55 +0000)]
all platforms: separate cpu_initclocks() from cpu_startclock()

To give the primary CPU an opportunity to perform clock interrupt
preparation in a machine-independent manner we need to separate the
"initialization" parts of cpu_initclocks() from the "start the clock
interrupt" parts.  Currently, cpu_initclocks() does everything all at
once, so there is no space for this MI setup.

Many platforms have more-or-less already done this separation by
implementing a separate routine named "cpu_startclock()".  This patch
promotes cpu_startclock() from de facto standard to mandatory API.

- Prototype cpu_startclock() in sys/systm.h alongside cpu_initclocks().
  The separation of responsibility between the two routines is a bit
  fuzzy but the basic guidelines are as follows:

  + cpu_initclocks() must initialize hz, stathz, and profhz, and call
    clockintr_init().

  + cpu_startclock() must call clockintr_cpu_init() and start the clock
    interrupt cycle on the calling CPU.

  These guidelines will shift in the future, but that's the way things
  stand as of *this* commit.

- In initclocks(): first call cpu_initclocks(), then do MI setup, and
  last call cpu_startclock().

- On platforms where cpu_startclock() already exists: don't call
  cpu_startclock() from cpu_initclocks() anymore.

- On platforms where cpu_startclock() doesn't yet exist: implement it.
  Usually this is as simple as dividing cpu_initclocks() in two.

Tested on amd64 (i8254, lapic), arm64, i386 (i8254, lapic), macppc,
mips64/octeon, and sparc64.  Tested on arm/armv7 (agtimer(4)) by
phessler@ and jmatthew@.  Tested on m88k/luna88k by aoyama@.  Tested
on powerpc64 by gkoehler@ and mlarkin@.  Tested on riscv64 by
jmatthew@.

Thread: https://marc.info/?l=openbsd-tech&m=169195251322149&w=2

14 months agoi386: i8254_initclocks: set IPL_MPSAFE for clock/rtc IRQs
cheloha [Tue, 22 Aug 2023 17:13:22 +0000 (17:13 +0000)]
i386: i8254_initclocks: set IPL_MPSAFE for clock/rtc IRQs

Setting IPL_MPSAFE for the i8254/mc146818 IRQs appeases a KASSERT in
apic_intr_establish() and allows the system to boot via the i8254
path.  This makes testing changes to the i8254/mc146818 code much
easier on modern hardware without mucking with the GENERIC config.  We
already set IPL_MPSAFE for these IRQs in the equivalent amd64 code.

Now, setting IPL_MPSAFE is a lie: the i8254 and mc146818 IRQs are not
MP-safe.  However, the lie is harmless because we only reach
i8254_initclocks() if (a) there is no APIC at all, or (b) we fail to
calibrate the local APIC timer.

Thread: https://marc.info/?l=openbsd-tech&m=169258915227321&w=2

ok mlarkin@

14 months agoavoid an ifdef in hardclock()
jsg [Tue, 22 Aug 2023 13:46:20 +0000 (13:46 +0000)]
avoid an ifdef in hardclock()
ok miod@ cheloha@

14 months agoDon't fail in ober_scanf_elements() when encountering empty sequences.
gerhard [Tue, 22 Aug 2023 12:50:27 +0000 (12:50 +0000)]
Don't fail in ober_scanf_elements() when encountering empty sequences.

Ok martijn@

14 months agoPull the NULL check for cmsbio into the switch
tb [Tue, 22 Aug 2023 08:59:44 +0000 (08:59 +0000)]
Pull the NULL check for cmsbio into the switch

ok jsing

14 months agoPlug a leak of cont in CMS_dataInit()
tb [Tue, 22 Aug 2023 08:44:15 +0000 (08:44 +0000)]
Plug a leak of cont in CMS_dataInit()

This and ts/ts_rsp_sign.c r1.32 were part of OpenSSL 309e73df.

ok jsing

14 months agoPlug a leak of ASN1_INTEGR in def_serial_cb()
tb [Tue, 22 Aug 2023 08:09:36 +0000 (08:09 +0000)]
Plug a leak of ASN1_INTEGR in def_serial_cb()

ok jsing

14 months agoSUPDISFILES -> SUPDISTFILES
jsg [Tue, 22 Aug 2023 03:51:45 +0000 (03:51 +0000)]
SUPDISFILES -> SUPDISTFILES

14 months agoFix receiving VLAN packets if LRO is enabled on ix(4).
bluhm [Mon, 21 Aug 2023 21:45:18 +0000 (21:45 +0000)]
Fix receiving VLAN packets if LRO is enabled on ix(4).

The vlan packet bit is only valid for the last descriptor's receive
status.  When receiving just one buffer per packet, it makes no
difference, but with LRO there are multiple descriptors.  Checking
only the first one resulted in VLAN headers being stripped and large
packets appear as regular on ix interface.  Move the code setting
vlan tag from first to last descriptor.

bug reported and fix tested by Hrvoje Popovski
OK jan@

14 months agoLog errors in kex_exchange_identification() with level verbose instead
tobhe [Mon, 21 Aug 2023 21:16:18 +0000 (21:16 +0000)]
Log errors in kex_exchange_identification() with level verbose instead
of error to reduce preauth log spam. All of those get logged with a more
generic error message by sshpkt_fatal().

feedback from sthen@
ok djm@

14 months agoRemove dead code.
miod [Mon, 21 Aug 2023 20:17:30 +0000 (20:17 +0000)]
Remove dead code.

14 months agocover force recreation (with smallest non-default number of rounds)
kn [Mon, 21 Aug 2023 18:56:06 +0000 (18:56 +0000)]
cover force recreation (with smallest non-default number of rounds)

The idea is for a later diff to inspect -v output wrt. chosen number of
rounds in order to a) test -r behaviour and b) confirm that '-Cforce -rN'
that a value has been recreated (output is identical for attach an create).

14 months agorename target to reflect reality
kn [Mon, 21 Aug 2023 17:55:51 +0000 (17:55 +0000)]
rename target to reflect reality

Volumes can be recreated, but the same chunk cannot be used twice.
This is what '-C force' is for.

14 months agoclockintr: remove support for independent schedclock()
cheloha [Mon, 21 Aug 2023 17:22:04 +0000 (17:22 +0000)]
clockintr: remove support for independent schedclock()

Remove the scaffolding for an independent schedclock().  With the
removal of the independent schedclock() from alpha, schedhz is zero on
all platforms and this schedclock-specific code is now unused.

It is possible that schedclock() will repurposed for use in the
future.  Even if this happens, the schedclock handle will not live in
struct clockintr_queue.

14 months ago= ought to be += in previous
kn [Mon, 21 Aug 2023 16:58:14 +0000 (16:58 +0000)]
= ought to be += in previous

14 months agocover expected failures for volume recreation and the empty passphrase
kn [Mon, 21 Aug 2023 15:59:38 +0000 (15:59 +0000)]
cover expected failures for volume recreation and the empty passphrase

14 months agoalpha: stop running an independent schedclock()
cheloha [Mon, 21 Aug 2023 15:19:09 +0000 (15:19 +0000)]
alpha: stop running an independent schedclock()

alpha is the only platform still running an independent schedclock().
Disabling it brings alpha's scheduling behavior into line with that of
every other platform.

With this patch, all platforms call schedclock() from statclock() at
an effective schedhz of ~12.5.

14 months agoNo need to make_dev() existing root device in disk crypto question
kn [Mon, 21 Aug 2023 14:33:55 +0000 (14:33 +0000)]
No need to make_dev() existing root device in disk crypto question

Since r1.1245 encrypt_root() happens immediately after get_rootinfo().
the latter creates device files for the root disk (and aborts if make_dev()
fails), so encrypt_root()'s call on the softraid chunk is purely redundant.

Hoist _chunk definition into declaration while here.

14 months agomost tests need root, add targets using ${SUDO} to REGRESS_ROOT_TARGETS
kn [Mon, 21 Aug 2023 14:25:22 +0000 (14:25 +0000)]
most tests need root, add targets using ${SUDO} to REGRESS_ROOT_TARGETS

14 months agomore relevant instance of port with SUPDISTFILES, bootstrap stuff
espie [Mon, 21 Aug 2023 12:54:04 +0000 (12:54 +0000)]
more relevant instance of port with SUPDISTFILES, bootstrap stuff
on various architectures is often a good candidate

14 months agoa whois command appeared in 4.1c before 4.3
jsg [Mon, 21 Aug 2023 11:12:28 +0000 (11:12 +0000)]
a whois command appeared in 4.1c before 4.3

14 months agodocument the new DISTFILES.sufx infrastructure
espie [Mon, 21 Aug 2023 10:12:23 +0000 (10:12 +0000)]
document the new DISTFILES.sufx infrastructure

14 months agoec_ameth: clean up eckey_{pub,priv}_encode()
tb [Mon, 21 Aug 2023 09:52:30 +0000 (09:52 +0000)]
ec_ameth: clean up eckey_{pub,priv}_encode()

Factor eckey_param_free() out of eckey_pub_encode(). ASN1_OBJECT_free()
is not actually needed. This will be addressed later.

i2o_ECPublicKey() allocates internally if *out == NULL, so no need to do
the two-call dance. Its return value is documented to be <= 0 on error,
which is wrong in the sense that only 0 is returned. Keep using the same
check for <= 0 as everywhere else.

Set of EC_PKEY_NO_PARAMETERS after the poorly named eckey_param2type() to
avoid potential underhanded side effects.

In eckey_priv_encode(), error exits would leak pval was leaked a few times.
Avoid this and simplify using i2d's internal allocation. Reinstate the
flags in a single error path.

ok jsing

14 months agoRemove retry loop crutch around disk passphrase prompt
kn [Mon, 21 Aug 2023 08:59:18 +0000 (08:59 +0000)]
Remove retry loop crutch around disk passphrase prompt

bioctl(8) now retries itself on mismatch so the installer continues until
the passphrase is confirmed correctly (like for the root password) instead
of bailing out after three failed attempts.

14 months agoRetry passphrase on mismatch by default
kn [Mon, 21 Aug 2023 08:33:11 +0000 (08:33 +0000)]
Retry passphrase on mismatch by default

Gracefully prompt again during interactive creation and passphrase change on
CRYPTO/1C volumes when confirmation fails instead of exiting, so bioctl(8)
behaves more like passwd(1) in this regard.

Use -s aka. non-interactive scripting mode to try just once.

Input OK jsing op

14 months agoPrint softraid(4) errors on standard error
kn [Mon, 21 Aug 2023 08:13:37 +0000 (08:13 +0000)]
Print softraid(4) errors on standard error

INFO messages remain on stdin, WARN/ERROR go to stderr as usual to make
silencing and scripting bioctl(8) easier.

OK op jsing

14 months agobioctl tests needs root
anton [Mon, 21 Aug 2023 05:10:25 +0000 (05:10 +0000)]
bioctl tests needs root

14 months agocorrect math for ClientAliveInterval that caused the probes to be
djm [Mon, 21 Aug 2023 04:59:54 +0000 (04:59 +0000)]
correct math for ClientAliveInterval that caused the probes to be
sent less frequently than configured; from Dawid Majchrzak

14 months agowant stdlib.h for free(3)
djm [Mon, 21 Aug 2023 04:36:46 +0000 (04:36 +0000)]
want stdlib.h for free(3)

14 months agospelling
jsg [Mon, 21 Aug 2023 03:26:42 +0000 (03:26 +0000)]
spelling

14 months agoMake kdump show kqueue1(2) flags.
visa [Mon, 21 Aug 2023 01:37:56 +0000 (01:37 +0000)]
Make kdump show kqueue1(2) flags.

OK guenther@

14 months agocpu_idle_{enter,leave}() are no-ops in ASM; replace them
guenther [Mon, 21 Aug 2023 01:35:43 +0000 (01:35 +0000)]
cpu_idle_{enter,leave}() are no-ops in ASM; replace them
with no-op macros.

ok gkoehler@

14 months agoFirst tests for bioctl(8), start with scripted creation + passphrase change
kn [Sun, 20 Aug 2023 23:19:00 +0000 (23:19 +0000)]
First tests for bioctl(8), start with scripted creation + passphrase change

These are meant for CLI bits like passphrase hashing, error handling and
interactive vs. scripted behaviour.

regress/sys/dev/softraid/ and stuff like regress/usr.sbin/installboot/
already test specific softraid(4) disciplines and disk handling.

14 months agostricter devname match on bioctl(8) output avoids false positives on failure
kn [Sun, 20 Aug 2023 22:38:49 +0000 (22:38 +0000)]
stricter devname match on bioctl(8) output avoids false positives on failure

14 months agoMake some global variables const
tb [Sun, 20 Aug 2023 22:35:52 +0000 (22:35 +0000)]
Make some global variables const

14 months agoBye bye to all people out there
tb [Sun, 20 Aug 2023 22:32:15 +0000 (22:32 +0000)]
Bye bye to all people out there

14 months agoAdd some spaces after comma
tb [Sun, 20 Aug 2023 22:30:55 +0000 (22:30 +0000)]
Add some spaces after comma

14 months agounifdef -D FULL_TEST
tb [Sun, 20 Aug 2023 22:27:52 +0000 (22:27 +0000)]
unifdef -D FULL_TEST

14 months agoknfmt(1) to the rescue
tb [Sun, 20 Aug 2023 22:26:24 +0000 (22:26 +0000)]
knfmt(1) to the rescue

14 months agoAnother OPENSSL_NO_DEPRECATED hits the bit bucket
tb [Sun, 20 Aug 2023 22:22:55 +0000 (22:22 +0000)]
Another OPENSSL_NO_DEPRECATED hits the bit bucket

14 months agoDrop unnecessary OPENSSL_NO_DEPRECATED dance
tb [Sun, 20 Aug 2023 22:21:00 +0000 (22:21 +0000)]
Drop unnecessary OPENSSL_NO_DEPRECATED dance

14 months agoUse a separate flags variable for the error flags in DH_check()
tb [Sun, 20 Aug 2023 22:20:12 +0000 (22:20 +0000)]
Use a separate flags variable for the error flags in DH_check()

14 months agoremove "flag" from the Dv line;
jmc [Sun, 20 Aug 2023 19:52:40 +0000 (19:52 +0000)]
remove "flag" from the Dv line;

14 months agosync
visa [Sun, 20 Aug 2023 16:48:04 +0000 (16:48 +0000)]
sync

14 months agoSync zlib 1.3 with userland
tb [Sun, 20 Aug 2023 16:25:48 +0000 (16:25 +0000)]
Sync zlib 1.3 with userland

14 months agoBump zlib version to 1.3
tb [Sun, 20 Aug 2023 16:25:09 +0000 (16:25 +0000)]
Bump zlib version to 1.3

We have been pulling in all actual changes over the past months, so this
is only a version number bump. The relevant entries of the ChangeLog are:

  * Building using K&R (pre-ANSI) function definitions is no longer supported.
  * Fixed a bug in deflateBound() for level 0 and memLevel 9.
  * Fixed a bug when gzungetc() is used immediately after gzopen().
  * Fixed a bug when using gzflush() with a very small buffer.
  * Fixed a crash when gzsetparams() is attempted for a transparent write.

ok deraadt miod millert

14 months agoAdd initial regress tests for kqueue1(2)
visa [Sun, 20 Aug 2023 15:19:34 +0000 (15:19 +0000)]
Add initial regress tests for kqueue1(2)

14 months agoAdd syscall stub for kqueue1(2)
visa [Sun, 20 Aug 2023 15:17:53 +0000 (15:17 +0000)]
Add syscall stub for kqueue1(2)

This rides previous libc minor bump.

Feedback and OK guenther@

14 months agoregen
visa [Sun, 20 Aug 2023 15:14:20 +0000 (15:14 +0000)]
regen

14 months agoAdd kqueue1() system call
visa [Sun, 20 Aug 2023 15:13:43 +0000 (15:13 +0000)]
Add kqueue1() system call

kqueue1() takes the flags argument. This lets the kqueue file descriptor
be opened with O_CLOEXEC. Adapted from NetBSD.

OK guenther@

14 months agoProvide C11 <uchar.h>.
schwarze [Sun, 20 Aug 2023 15:02:50 +0000 (15:02 +0000)]
Provide C11 <uchar.h>.
OK millert@.
Tested by naddy@ in a bulk and by matthieu@ in the new foot(1) port.
I originally wrote the code in 2022 at the prodding of espie@.
Using one improvement to a manual page from jmc@.

14 months agoRefetch the spc pointer after cpu_switchto() since the value is stale
claudio [Sat, 19 Aug 2023 11:14:11 +0000 (11:14 +0000)]
Refetch the spc pointer after cpu_switchto() since the value is stale
after the proc switch. With the value refetched the rest of the code
can be simplified.
Input guenther@, OK cheloha@, miod@

14 months agoCopy entire st_*tim structs at once, rather than copying
guenther [Sat, 19 Aug 2023 04:21:05 +0000 (04:21 +0000)]
Copy entire st_*tim structs at once, rather than copying
the st_*time and (obsolete) st_*timensec members separately.

ok millert@

14 months agoCheck for powerpc64 cores that fail to start
gkoehler [Sat, 19 Aug 2023 00:47:51 +0000 (00:47 +0000)]
Check for powerpc64 cores that fail to start

If the core failed to start (because opal_start_cpu didn't return
OPAL_SUCCESS), or failed to identify, then don't use the core.

Eduardo Pires told ppc@ in April 2023 about a machine that froze at
boot; cpu1 had failed to start with error -14 OPAL_WRONG_STATE.  See
https://marc.info/?l=openbsd-ppc&m=168106893329069&w=2

ok miod@

14 months agouse imperative tense consistently; OK jmc
kn [Fri, 18 Aug 2023 14:10:33 +0000 (14:10 +0000)]
use imperative tense consistently;  OK jmc

14 months agoMake -s read passphrases without prompts or confirmation
kn [Fri, 18 Aug 2023 14:09:19 +0000 (14:09 +0000)]
Make -s read passphrases without prompts or confirmation

-s for non-interactive usage disables prompts, but still silently expects
two inputs, which is neither intuitive nor ergonomic.

Fix this get sane scriptable behaviour and documentation.

Feedback OK jsing op

14 months agoMove the loadavg calculation to sched_bsd.c as update_loadav()
claudio [Fri, 18 Aug 2023 09:18:52 +0000 (09:18 +0000)]
Move the loadavg calculation to sched_bsd.c as update_loadav()

With this uvm_meter() is no more and update_loadav() uses a simple timeout
instead of getting called via schedcpu().

OK deraadt@ mpi@ cheloha@

14 months agoCheck X509_digest() return in x509v3_cache_extensions()
tb [Fri, 18 Aug 2023 08:42:41 +0000 (08:42 +0000)]
Check X509_digest() return in x509v3_cache_extensions()

On failure invalidate the cert with EXFLAG_INVALID. It's unlikely that
a cert would make it through to the end of this function without setting
the flag, but it's bad style anyway.

ok jsing

14 months agoMark up variables in Bl with Ev
tb [Fri, 18 Aug 2023 08:22:29 +0000 (08:22 +0000)]
Mark up variables in Bl with Ev

prompted by op

14 months agoDocument MODCARGO_WANTLIB
tb [Fri, 18 Aug 2023 08:20:27 +0000 (08:20 +0000)]
Document MODCARGO_WANTLIB

initial diff from Ashlen

14 months agoINITITIATION_COST -> INITIATION_COST
jsg [Fri, 18 Aug 2023 08:11:47 +0000 (08:11 +0000)]
INITITIATION_COST -> INITIATION_COST

14 months agomaximium -> maximum
jsg [Fri, 18 Aug 2023 08:10:16 +0000 (08:10 +0000)]
maximium -> maximum

14 months agoNBPFILTER not NBPF
jsg [Fri, 18 Aug 2023 08:03:57 +0000 (08:03 +0000)]
NBPFILTER not NBPF
ok dlg@

14 months agoTweak radiusd.conf example. input from an anonymous user.
yasuoka [Fri, 18 Aug 2023 06:45:15 +0000 (06:45 +0000)]
Tweak radiusd.conf example.  input from an anonymous user.

14 months agoFix the config parser to be able to have comment lines at middle of
yasuoka [Fri, 18 Aug 2023 06:37:20 +0000 (06:37 +0000)]
Fix the config parser to be able to have comment lines at middle of
"client" block.  Also fix a memory leak and improve the error messages
when parse errors.

14 months agoProperly terminate the arguments for execv() with NULL.
yasuoka [Fri, 18 Aug 2023 06:12:27 +0000 (06:12 +0000)]
Properly terminate the arguments for execv() with NULL.

14 months agosync with userland
tb [Fri, 18 Aug 2023 06:09:10 +0000 (06:09 +0000)]
sync with userland

14 months agosync with zlib.h
tb [Fri, 18 Aug 2023 06:08:19 +0000 (06:08 +0000)]
sync with zlib.h

"that's fine" jmc

14 months agoSync doc comment with upstream
tb [Fri, 18 Aug 2023 06:08:03 +0000 (06:08 +0000)]
Sync doc comment with upstream

14 months agofix regression in OpenSSH 9.4 (mux.c r1.99) that caused multiplexed
djm [Fri, 18 Aug 2023 01:37:41 +0000 (01:37 +0000)]
fix regression in OpenSSH 9.4 (mux.c r1.99) that caused multiplexed
sessions to ignore SIGINT under some circumstances. Reported by /
feedback naddy@, ok dtucker@

14 months agoAdd a session, pane and user mouse range types for the status line and
nicm [Thu, 17 Aug 2023 14:10:28 +0000 (14:10 +0000)]
Add a session, pane and user mouse range types for the status line and
add format variables for mouse_status_line and mouse_status_range so
they can be associated with different commands in the key bindings.
GitHub issue 3652.

14 months agoremove reference to old gcc3 module, spotted by Alexey Brovchenko
sthen [Thu, 17 Aug 2023 10:51:54 +0000 (10:51 +0000)]
remove reference to old gcc3 module, spotted by Alexey Brovchenko

14 months agoGarbage collect two commented abort()
tb [Thu, 17 Aug 2023 09:28:43 +0000 (09:28 +0000)]
Garbage collect two commented abort()

14 months agoMake the local ASN1_OBJECTs const
tb [Thu, 17 Aug 2023 09:27:43 +0000 (09:27 +0000)]
Make the local ASN1_OBJECTs const

ok jsing

14 months agoRemove some unnecessary else branches
tb [Thu, 17 Aug 2023 09:26:09 +0000 (09:26 +0000)]
Remove some unnecessary else branches

14 months agoRemove some parents from return statements
tb [Thu, 17 Aug 2023 09:24:50 +0000 (09:24 +0000)]
Remove some parents from return statements

14 months agoUse cmp instead of i for the result of a comparison
tb [Thu, 17 Aug 2023 09:22:56 +0000 (09:22 +0000)]
Use cmp instead of i for the result of a comparison

ok jsing

14 months agoUse OBJ_cmp() instead of inlining two variants
tb [Thu, 17 Aug 2023 09:18:21 +0000 (09:18 +0000)]
Use OBJ_cmp() instead of inlining two variants

This also avoids more undefined behavior with memcmp().

ok jsing

PS: Unsolicited advice for no one in particular: there is this awesome tool
called grep. If someone reports an issue, you might want to use it to find
more instances.

14 months agoAvoid memcmp(NULL, x, 0) in OBJ_cmp()
tb [Thu, 17 Aug 2023 09:13:01 +0000 (09:13 +0000)]
Avoid memcmp(NULL, x, 0) in OBJ_cmp()

If a->length is 0, either a->data or b->data could be NULL and memcmp()
will rely on undefined behavior to compare them as equal. So avoid this
comparison in the first place.

ok jsing

14 months agouse "example.com" instead of "default" as server name in the various
op [Thu, 17 Aug 2023 07:25:57 +0000 (07:25 +0000)]
use "example.com" instead of "default" as server name in the various
examples: it matches the sample config and avoids tricking the user into
thinking that "default" as server name has a special meaning.

While here, document also that http uses the first server matching the
listening port when there's no match on the server name.
(was corrected on this by Crystal Kolipe, thanks)

ok kn on a previous version, improvements from sthen and jmc, ok sthen

14 months agoadd space needed in punctuation;
jmc [Thu, 17 Aug 2023 05:45:51 +0000 (05:45 +0000)]
add space needed in punctuation;
from josiah frentsos

14 months agoDocument MODCARGO_INSTALL_TARGET_PATH
tb [Thu, 17 Aug 2023 05:43:09 +0000 (05:43 +0000)]
Document MODCARGO_INSTALL_TARGET_PATH

14 months agodrm/amd/pm/smu7: move variables to where they are used
jsg [Thu, 17 Aug 2023 04:16:07 +0000 (04:16 +0000)]
drm/amd/pm/smu7: move variables to where they are used

From Alex Deucher
5525c289dbcf2b1adecc5e727e7d544ade9c7be1 in linux-6.1.y/6.1.46
63a9ab264a8c030482ab9e7e20b6c4c162299531 in mainline linux

14 months agodrm/amd/display: trigger timing sync only if TG is running
jsg [Thu, 17 Aug 2023 04:14:37 +0000 (04:14 +0000)]
drm/amd/display: trigger timing sync only if TG is running

From Aurabindo Pillai
b61a06eca15cc4fd6ff50540ba3bbdea76e52c6b in linux-6.1.y/6.1.46
6066aaf74f510fc171dbe9375153aee2d60d37aa in mainline linux

14 months agodrm/amd/display: fix the build when DRM_AMD_DC_DCN is not set
jsg [Thu, 17 Aug 2023 04:12:42 +0000 (04:12 +0000)]
drm/amd/display: fix the build when DRM_AMD_DC_DCN is not set

From Alex Deucher
07152d9e87ef7759955446989693bbf5e8e80b7c in linux-6.1.y/6.1.46
5ca9b33ece9aa048b6ec9411f054e1b781662327 in mainline linux

14 months agodrm/amd/display: Retain phantom plane/stream if validation fails
jsg [Thu, 17 Aug 2023 04:11:04 +0000 (04:11 +0000)]
drm/amd/display: Retain phantom plane/stream if validation fails

From Alvin Lee
647e12741e6d16eccb679d2fefa7ec71496b6337 in linux-6.1.y/6.1.46
9b216b7e38f5381bcc3ad21c5ac614aa577ab8f2 in mainline linux

14 months agodrm/amd/display: Disable phantom OTG after enable for plane disable
jsg [Thu, 17 Aug 2023 04:09:00 +0000 (04:09 +0000)]
drm/amd/display: Disable phantom OTG after enable for plane disable

From Alvin Lee
e61f0ad73668912feef345e35beeefcce5bbbd63 in linux-6.1.y/6.1.46
dc55b106ad477c67f969f3432d9070c6846fb557 in mainline linux

14 months agodrm/amd/display: Use update plane and stream routine for DCN32x
jsg [Thu, 17 Aug 2023 04:06:59 +0000 (04:06 +0000)]
drm/amd/display: Use update plane and stream routine for DCN32x

From Rodrigo Siqueira
9caac2a9f69f58bed2ba35845a13fa7039d2e1d2 in linux-6.1.y/6.1.46
dddde627807c22d6f15f4417eb395b13a1ca88f9 in mainline linux

14 months agodrm/amd/display: Avoid ABM when ODM combine is enabled for eDP
jsg [Thu, 17 Aug 2023 04:05:16 +0000 (04:05 +0000)]
drm/amd/display: Avoid ABM when ODM combine is enabled for eDP

From Rodrigo Siqueira
e93ae6e6b6605bfac458950920292311f7cf4a82 in linux-6.1.y/6.1.46
7fffb03b4045c862f904a88b852dc509c4e46406 in mainline linux

14 months agodrm/amd/display: Update OTG instance in the commit stream
jsg [Thu, 17 Aug 2023 04:03:16 +0000 (04:03 +0000)]
drm/amd/display: Update OTG instance in the commit stream

From Rodrigo Siqueira
4fe91c51aa936779edcae5943b1e621047fe2c2d in linux-6.1.y/6.1.46
eef019eabc3cd0fddcffefbf67806a4d8cca29bb in mainline linux

14 months agodrm/amd/display: Handle seamless boot stream
jsg [Thu, 17 Aug 2023 04:01:21 +0000 (04:01 +0000)]
drm/amd/display: Handle seamless boot stream

From Rodrigo Siqueira
b2415df0afba5a114cececdb556f74b3d7965aa8 in linux-6.1.y/6.1.46
170390e587a69b2a24abac39eb3ae6ec28a4d7f2 in mainline linux

14 months agodrm/amd/display: Add function for validate and update new stream
jsg [Thu, 17 Aug 2023 03:59:55 +0000 (03:59 +0000)]
drm/amd/display: Add function for validate and update new stream

From Rodrigo Siqueira
9b1a1f168c03787aa6a159f4f1dfbfa398f1d44e in linux-6.1.y/6.1.46
a5e39ae27c3a305c6aafc0e423b0cb2c677facde in mainline linux

14 months agodrm/amd/display: Handle virtual hardware detect
jsg [Thu, 17 Aug 2023 03:56:38 +0000 (03:56 +0000)]
drm/amd/display: Handle virtual hardware detect

From Rodrigo Siqueira
60334c0cba2f7741252960994b1e9b1d6b668d07 in linux-6.1.y/6.1.46
987b96eb860036ab79051fb271f7fbdc01c9daf5 in mainline linux

14 months agodrm/amd/pm: avoid unintentional shutdown due to temperature momentary fluctuation
jsg [Thu, 17 Aug 2023 03:55:03 +0000 (03:55 +0000)]
drm/amd/pm: avoid unintentional shutdown due to temperature momentary fluctuation

From Evan Quan
0f19195d639764d68f6f316dda363ba29821e5bc in linux-6.1.y/6.1.46
b75efe88b20c2be28b67e2821a794cc183e32374 in mainline linux

14 months agodrm/amd/pm: fulfill powerplay peak profiling mode shader/memory clock settings
jsg [Thu, 17 Aug 2023 03:52:37 +0000 (03:52 +0000)]
drm/amd/pm: fulfill powerplay peak profiling mode shader/memory clock settings

From Evan Quan
b064f9ccf11cb4008a1f0e3c96099041b121af80 in linux-6.1.y/6.1.46
b1a9557a7d00c758ed9e701fbb3445a13a49506f in mainline linux

14 months agodrm/amd/pm: expose swctf threshold setting for legacy powerplay
jsg [Thu, 17 Aug 2023 03:50:28 +0000 (03:50 +0000)]
drm/amd/pm: expose swctf threshold setting for legacy powerplay

From Evan Quan
b844033ea813cb028a1961514ef37010fef9f543 in linux-6.1.y/6.1.46
064329c595da56eff6d7a7e7760660c726433139 in mainline linux