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

From Evan Quan
2368afd60f647889d90fa4a42c7b27548f77dbd9 in linux-6.1.y/6.1.46
975b4b1d90ccf83da252907108f4090fb61b816e in mainline linux

14 months agodrm/amd/display: limit DPIA link rate to HBR3
jsg [Thu, 17 Aug 2023 03:45:49 +0000 (03:45 +0000)]
drm/amd/display: limit DPIA link rate to HBR3

From Peichen Huang
3d3fd58bfca151028859cc23757191fa2f65f679 in linux-6.1.y/6.1.46
0e69ef6ea82e8eece7d2b2b45a0da9670eaaefff in mainline linux

14 months agodrm/amd: Disable S/G for APUs when 64GB or more host memory
jsg [Thu, 17 Aug 2023 03:43:42 +0000 (03:43 +0000)]
drm/amd: Disable S/G for APUs when 64GB or more host memory

From Mario Limonciello
10347b115da1029f4a25b69129294b3854144d6a in linux-6.1.y/6.1.46
08fffa74d9772d9538338be3f304006c94dde6f0 in mainline linux

14 months agodrm/amdgpu: add S/G display parameter
jsg [Thu, 17 Aug 2023 03:41:15 +0000 (03:41 +0000)]
drm/amdgpu: add S/G display parameter

From Alex Deucher
f6166ca452b8687322e6c1f8bac2395abc456aa4 in linux-6.1.y/6.1.46
bf0207e1727031798f300afa17f9bbeceac6da87 in mainline linux

14 months agodrm/amd/display: check attr flag before set cursor degamma on DCN3+
jsg [Thu, 17 Aug 2023 03:39:20 +0000 (03:39 +0000)]
drm/amd/display: check attr flag before set cursor degamma on DCN3+

From Melissa Wen
c3d2d4b02e5e91b465ae85a19c05b00912f79620 in linux-6.1.y/6.1.46
96b020e2163fb2197266b2f71b1007495206e6bb in mainline linux

14 months agodrm/amdgpu: fix possible UAF in amdgpu_cs_pass1()
jsg [Thu, 17 Aug 2023 03:37:18 +0000 (03:37 +0000)]
drm/amdgpu: fix possible UAF in amdgpu_cs_pass1()

From Alex Deucher
9a2393af1f35d1975204fc00035c64a1c792b278 in linux-6.1.y/6.1.46
90e065677e0362a777b9db97ea21d43a39211399 in mainline linux

14 months agoIdentify Synaptics touchpads without multifinger support.
bru [Wed, 16 Aug 2023 20:53:47 +0000 (20:53 +0000)]
Identify Synaptics touchpads without multifinger support.

ok miod@

14 months agodefence-in-depth MaxAuthTries check in monitor; ok markus
djm [Wed, 16 Aug 2023 16:14:11 +0000 (16:14 +0000)]
defence-in-depth MaxAuthTries check in monitor; ok markus

14 months agoadd the missing entry for EVP_CIPHER_CTX_ctrl(3) to the RETURN VALUES section
schwarze [Wed, 16 Aug 2023 13:50:05 +0000 (13:50 +0000)]
add the missing entry for EVP_CIPHER_CTX_ctrl(3) to the RETURN VALUES section

14 months agoDescribe more precisely how these functions are supposed to be used,
schwarze [Wed, 16 Aug 2023 13:47:18 +0000 (13:47 +0000)]
Describe more precisely how these functions are supposed to be used,
document the control operations supported by EVP_chacha20_poly1305(3),
and add the missing STANDARDS and HISTORY sections.

This replaces all text written by Matt Caswell and all text Copyrighted
by OpenSSL in the year 2019.

14 months agoBackout changes for btrace(8) argN builtins.
dv [Wed, 16 Aug 2023 13:07:11 +0000 (13:07 +0000)]
Backout changes for btrace(8) argN builtins.

Talking with mpi@, going to rework this to be part of the parser.
Reverts commit 0iIzGtIFgBXVfbNa.

14 months agoCosmetic fix for copy-pasto
tb [Wed, 16 Aug 2023 10:38:33 +0000 (10:38 +0000)]
Cosmetic fix for copy-pasto

14 months agoavoid bios sign msr on intel family < 6
jsg [Wed, 16 Aug 2023 09:51:39 +0000 (09:51 +0000)]
avoid bios sign msr on intel family < 6
the pentium msr list in the sdm does not include it

14 months agoASPAs are AFI-agnostic
job [Wed, 16 Aug 2023 08:38:40 +0000 (08:38 +0000)]
ASPAs are AFI-agnostic

OK claudio@

14 months agoThe per-AFI madness in ASPA was removed. So adjust this test here.
claudio [Wed, 16 Aug 2023 08:29:41 +0000 (08:29 +0000)]
The per-AFI madness in ASPA was removed. So adjust this test here.

14 months agoPer-AFI ASPA provider was removed. Adjust expected result.
claudio [Wed, 16 Aug 2023 08:28:46 +0000 (08:28 +0000)]
Per-AFI ASPA provider was removed. Adjust expected result.

14 months agoRemove per-AFI ASPA handling in bgpd internals
claudio [Wed, 16 Aug 2023 08:26:35 +0000 (08:26 +0000)]
Remove per-AFI ASPA handling in bgpd internals

With draft-ietf-sidrops-aspa-profile-16 and
draft-ietf-sidrops-aspa-verification-15 the AFI dependence of ASPA
records was dropped. So remove this complication form the code.

This only removes the AFI handling internally in bgpd but still allows
the old syntax in aspa-set tables. The optional address family is just
ignored and records are merged together.

For RTR sessions draft-ietf-sidrops-8210bis has not yet been updated so
right now we still handle RTR sessions as specified there. The IPv4 and
IPv6 ASPA entries are handled in two trees and merged together into one
AFI independent tree. This is the best we can do for now until IETF
updates draft-ietf-sidrops-8210bis.

OK tb@ job@

14 months agoMove SCHED_LOCK after sleep_signal_check.
claudio [Wed, 16 Aug 2023 07:55:52 +0000 (07:55 +0000)]
Move SCHED_LOCK after sleep_signal_check.

sleep_signal_check() is there to look for pending signals / single thread
requests which were posted before sleep_setup() finished. Once p_stat
is set to SSLEEP the wakeup and delivery of signals is taken care of
by ptsignal and single_thread_set().

Moving the SCHED_LOCK further down allows to cleanup cursig() and to
remove a SCHED_LOCK recursion in single_thread_check().

OK mpi@

14 months agoavoid patch level msr on amd families < 0fh
jsg [Wed, 16 Aug 2023 07:26:05 +0000 (07:26 +0000)]
avoid patch level msr on amd families < 0fh

Paul de Weerd reported it isn't implemented on ALIX with
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 MHz, 05-0a-02

the earliest amd microcode update files I can find are for family 0fh (K8)

ok guenther@

14 months agoadd Intel ARCH_CAP_GDS bits
jsg [Wed, 16 Aug 2023 04:07:37 +0000 (04:07 +0000)]
add Intel ARCH_CAP_GDS bits

mentioned in
https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/gather-data-sampling.html

14 months agoAdd regress coverage for ASN1_STRING_cmp()
tb [Tue, 15 Aug 2023 21:05:44 +0000 (21:05 +0000)]
Add regress coverage for ASN1_STRING_cmp()

14 months agobtrace(8): fix out of bounds read using argN in BEGIN/END.
dv [Tue, 15 Aug 2023 20:51:45 +0000 (20:51 +0000)]
btrace(8): fix out of bounds read using argN in BEGIN/END.

The argN builtins aren't valid in BEGIN or END actions. The fake
probe number btrace uses to facilitate other valid builtins caused
an out of bound read of an array, producing a segfault.

Change the fake probe number to 0 as it's an unsigned int and check
for that condition.

Adds asserts near other probe array indexing to catch future issues.

ok kn@

14 months agoAdd some regress coverage for various ASN1_STRING types to codify some
tb [Tue, 15 Aug 2023 19:14:42 +0000 (19:14 +0000)]
Add some regress coverage for various ASN1_STRING types to codify some
quirks and invariants.

14 months agoZap extra parens
tb [Tue, 15 Aug 2023 18:05:15 +0000 (18:05 +0000)]
Zap extra parens

14 months agosync
sthen [Tue, 15 Aug 2023 17:52:23 +0000 (17:52 +0000)]
sync

14 months agoFix typo in previous
tb [Tue, 15 Aug 2023 17:40:06 +0000 (17:40 +0000)]
Fix typo in previous

14 months agoAvoid undefined behavior with memcmp(NULL, x, 0) in ASN1_STRING_cmp()
tb [Tue, 15 Aug 2023 17:38:00 +0000 (17:38 +0000)]
Avoid undefined behavior with memcmp(NULL, x, 0) in ASN1_STRING_cmp()

ok jsing miod

14 months agoNo MS-DOS filesystem support on amd64 floppy
jsg [Tue, 15 Aug 2023 14:37:26 +0000 (14:37 +0000)]
No MS-DOS filesystem support on amd64 floppy

14 months agoNo MS-DOS filesystem support on floppy anymore
miod [Tue, 15 Aug 2023 14:27:27 +0000 (14:27 +0000)]
No MS-DOS filesystem support on floppy anymore

14 months agodrop MSDOSFS from i386 floppy
jsg [Tue, 15 Aug 2023 14:24:53 +0000 (14:24 +0000)]
drop MSDOSFS from i386 floppy
sthen mentioned it is out of space. ok deraadt@

14 months agoldd can pledge "stdio rpath proc exec prot_exec". We can later bifurbicate
deraadt [Tue, 15 Aug 2023 13:50:53 +0000 (13:50 +0000)]
ldd can pledge "stdio rpath proc exec prot_exec".  We can later bifurbicate
at the dlopen vs execve split, dropping either "proc" or "prot_exec".
ok gnezdo

14 months agosync
sthen [Tue, 15 Aug 2023 12:37:58 +0000 (12:37 +0000)]
sync

14 months agoFix bug when using gzflush() with a very small buffer.
tb [Tue, 15 Aug 2023 12:18:46 +0000 (12:18 +0000)]
Fix bug when using gzflush() with a very small buffer.

from upstream

14 months agoSHA-3 is not a symmetric cipher.
schwarze [Tue, 15 Aug 2023 11:54:38 +0000 (11:54 +0000)]
SHA-3 is not a symmetric cipher.
Fix a copy and paste mistake that Ronald Tse introduced in 2017 even
though Richard Levitte and Bernd Edlinger reviewed his commit - and that
i unwittingly copied.  Even in the OpenSSL 3 main trunk, it wasn't fixed
until 2022, and in OpenSSL-1.1.1, it is still wrong.
Unfortunately, we need to be really careful before believing anything
the OpenSSL documentation says...

14 months agoImport the EVP_chacha20(3) manual page from the OpenSSL 1.1 branch,
schwarze [Tue, 15 Aug 2023 11:26:49 +0000 (11:26 +0000)]
Import the EVP_chacha20(3) manual page from the OpenSSL 1.1 branch,
which is still under a free license, to work on it in the tree.
The required content changes have not been done yet,
i only tweaked the markup and wording so far.

14 months agoAvoid memcmp() with NULL pointer and 0 length
tb [Tue, 15 Aug 2023 11:20:57 +0000 (11:20 +0000)]
Avoid memcmp() with NULL pointer and 0 length

14 months agoAdd meta bindings for status line menus as well as the existing pane one
nicm [Tue, 15 Aug 2023 09:51:48 +0000 (09:51 +0000)]
Add meta bindings for status line menus as well as the existing pane one
for terminals which steal the mouse menu button.

14 months agoscrub the mbuf flowid for packets going out a sec interface.
dlg [Tue, 15 Aug 2023 09:46:30 +0000 (09:46 +0000)]
scrub the mbuf flowid for packets going out a sec interface.

maybe ipsec should do this for all packets it encapsulates.

tested by hrvoje

14 months agoClean up alignment handling.
jsing [Tue, 15 Aug 2023 08:39:27 +0000 (08:39 +0000)]
Clean up alignment handling.

Instead of using HOST_{c2l,l2c} macros, provide and use
crypto_load_le32toh() and crypto_store_htole32(). In some cases just
use htole32() directly.

ok tb@

14 months agoUse MD5_LONG instead of unsigned int for consistency.
jsing [Tue, 15 Aug 2023 08:35:33 +0000 (08:35 +0000)]
Use MD5_LONG instead of unsigned int for consistency.

ok tb@

14 months agoCondition only on #ifdef MD5_ASM.
jsing [Tue, 15 Aug 2023 08:30:49 +0000 (08:30 +0000)]
Condition only on #ifdef MD5_ASM.

There are a bunch of unnecessary preprocessor directives - just condition
on MD5_ASM, the same as we do elsewhere.

ok tb@

14 months agoReplace a bunch of (1 << 31) with (1U << 31)
miod [Tue, 15 Aug 2023 08:27:29 +0000 (08:27 +0000)]
Replace a bunch of (1 << 31) with (1U << 31)

14 months agofix openssl11 regress compilation
tb [Tue, 15 Aug 2023 08:01:01 +0000 (08:01 +0000)]
fix openssl11 regress compilation

reminded by anton

14 months agoUse the proper ofw node in com_fdt_attach(), likely a cut'n'paste error
miod [Tue, 15 Aug 2023 07:56:27 +0000 (07:56 +0000)]
Use the proper ofw node in com_fdt_attach(), likely a cut'n'paste error
from com_fdt_init_cons().
ok patrick@

14 months agoAdd an option menu-selected-style to configure the currently selected
nicm [Tue, 15 Aug 2023 07:01:47 +0000 (07:01 +0000)]
Add an option menu-selected-style to configure the currently selected
menu item, from Alexis Hildebrandt.

14 months agoImprove handling of dlopen(RTLD_TRACE) aka ldd, of a library that
guenther [Tue, 15 Aug 2023 06:26:34 +0000 (06:26 +0000)]
Improve handling of dlopen(RTLD_TRACE) aka ldd, of a library that
is already loaded:
 * add a 'trace' argument to _dl_show_objects() and exit the
   walk-the-objects loop if you hit that traced object
 * in dlopen(), pass the trace object to _dl_show_objects()
 * also, invoke _dl_show_objects() + exit if the object was
   already opened
 * pass NULL to _dl_show_objects() for all the other calls
 * oh hey, _dl_tracelib is now superfluous: _dl_show_objects()
   should do the walk-the-objects loop only if trace is not NULL.

Problem noted by gnezdo@
ok millert@

14 months agoSkip the _dl_msyscall() invocation if tracing library loading.
guenther [Tue, 15 Aug 2023 06:23:31 +0000 (06:23 +0000)]
Skip the _dl_msyscall() invocation if tracing library loading.

Problem noted by gnezdo@
ok millert@

14 months agomake sure the end result is NULL if malloc failed
jsg [Tue, 15 Aug 2023 03:51:29 +0000 (03:51 +0000)]
make sure the end result is NULL if malloc failed

14 months agosec_start needs to show bpf the packets going out.
dlg [Tue, 15 Aug 2023 02:31:07 +0000 (02:31 +0000)]
sec_start needs to show bpf the packets going out.

from and ok goda@
requested by many

14 months agospacial -> spatial
jsg [Tue, 15 Aug 2023 00:43:00 +0000 (00:43 +0000)]
spacial -> spatial
ok stsp@

14 months agoPrepare tlsfuzzer.py for ports update
tb [Mon, 14 Aug 2023 18:10:42 +0000 (18:10 +0000)]
Prepare tlsfuzzer.py for ports update

14 months agoInline INIT_DATA_* defines.
jsing [Mon, 14 Aug 2023 15:48:16 +0000 (15:48 +0000)]
Inline INIT_DATA_* defines.

ok tb@

14 months agostyle(9)
jsing [Mon, 14 Aug 2023 15:26:01 +0000 (15:26 +0000)]
style(9)

14 months agoBelow SEE ALSO, point to all pages documenting the evp.h sub-library, and
schwarze [Mon, 14 Aug 2023 14:46:40 +0000 (14:46 +0000)]
Below SEE ALSO, point to all pages documenting the evp.h sub-library, and
also point to a selection of functions from other sub-libraries that rely
on evp.h objects, in particular on EVP_CIPHER, EVP_MD, and EVP_PKEY.

While here, merge a few trivial improvements to orthography and
punctuation from the OpenSSL 1.1 branch.

14 months agoimport EVP_sha3_224(3) from the OpenSSL 1.1 branch, which is still under
schwarze [Mon, 14 Aug 2023 14:22:32 +0000 (14:22 +0000)]
import EVP_sha3_224(3) from the OpenSSL 1.1 branch, which is still under
a free license, tweaked by me

14 months agoSkip leading dash in kernel boot options instead of complaining it is an
miod [Mon, 14 Aug 2023 13:49:42 +0000 (13:49 +0000)]
Skip leading dash in kernel boot options instead of complaining it is an
unknown option character.

14 months agounreferneced -> unreferenced
miod [Mon, 14 Aug 2023 12:03:12 +0000 (12:03 +0000)]
unreferneced -> unreferenced

14 months agoImprove error message when if_indextoname() fails.
tobhe [Mon, 14 Aug 2023 12:02:02 +0000 (12:02 +0000)]
Improve error message when if_indextoname() fails.

14 months agoAdd explicit NULL checks for sa_cp_addr and sa_cp_addr6.
tobhe [Mon, 14 Aug 2023 11:55:03 +0000 (11:55 +0000)]
Add explicit NULL checks for sa_cp_addr and sa_cp_addr6.

14 months agoSync expected failures with reality. Recent libm changes caused
anton [Mon, 14 Aug 2023 09:26:37 +0000 (09:26 +0000)]
Sync expected failures with reality. Recent libm changes caused
nearbyint_test.c to pass on amd64.

ok miod@

14 months agozap useless MAN bits
kn [Mon, 14 Aug 2023 08:56:20 +0000 (08:56 +0000)]
zap useless MAN bits

distrib/special/Makefile.inc sets MAN= NOMAN=1, thus setting MAN* in
distrib/special/*/Makefile is useless;  no manuals in the installer.

disklabel(8) and fdisk(8) remain exceptions with their NOMAN handling
as they embed their manual for use with interactive commands.

OK miod

14 months agoExtend scheduler tracepoints to follow CPU jumping.
mpi [Mon, 14 Aug 2023 08:33:24 +0000 (08:33 +0000)]
Extend scheduler tracepoints to follow CPU jumping.

- Add two new tracpoints sched:fork & sched:steal
- Include selected CPU number in sched:wakeup
- Add sched:unsleep corresponding to sched:sleep which matches add/removal
of threads on the sleep queue

ok claudio@

14 months agoCheck SignedData and SignerInfo versions to be 3
tb [Mon, 14 Aug 2023 08:25:26 +0000 (08:25 +0000)]
Check SignedData and SignerInfo versions to be 3

This adds two missing checks required by RFC 6488, section 3.

ok job

14 months agoMore files need to be removed by make clean.
miod [Mon, 14 Aug 2023 08:16:26 +0000 (08:16 +0000)]
More files need to be removed by make clean.

14 months agonetcat: avoid issuing syscalls on fd -1
tb [Mon, 14 Aug 2023 08:07:27 +0000 (08:07 +0000)]
netcat: avoid issuing syscalls on fd -1

In case a socket error condition occurs, readwrite() invalidates the
corresponding fd. Later on, readwrite() may still issue a syscall on
it. Avoid that by adding a couple of checks for fd == -1.

Reported and fix suggested by Leah Neukirchen.
Fixes https://github.com/libressl/openbsd/issues/143

"looks right" deraadt

14 months agoRemove non-MULTIPROCESSOR chunk defining copyin32 as copyin now that all
miod [Mon, 14 Aug 2023 07:42:34 +0000 (07:42 +0000)]
Remove non-MULTIPROCESSOR chunk defining copyin32 as copyin now that all
platforms provide it.

14 months agoAdd a copyin32() implementation.
miod [Mon, 14 Aug 2023 07:40:08 +0000 (07:40 +0000)]
Add a copyin32() implementation.

14 months agoadd message number of SSH2_MSG_NEWCOMPRESS defined in RFC8308
djm [Mon, 14 Aug 2023 03:37:00 +0000 (03:37 +0000)]
add message number of SSH2_MSG_NEWCOMPRESS defined in RFC8308

14 months agoThe 8042 emulation found on Chromebooks does not support the RESET command,
miod [Sun, 13 Aug 2023 21:54:02 +0000 (21:54 +0000)]
The 8042 emulation found on Chromebooks does not support the RESET command,
for no good reason, and causes pckbc not to attach. However, sending a `get
keyboard id' works, so this can be used as a second check to give those
fawlty pieces of hardware a chance to work.

Based on a diff submitted by, and tested by,  Vladimir 'phcoder' Serbinenko.

14 months agoIgnore failure when deleting regress/ttest anchor
sashan [Sun, 13 Aug 2023 21:21:53 +0000 (21:21 +0000)]
Ignore failure when deleting regress/ttest anchor
in 'stamp-setup' target. Found by anton@.

14 months agoremove by now unused test.sh script
anton [Sun, 13 Aug 2023 18:36:20 +0000 (18:36 +0000)]
remove by now unused test.sh script

14 months agoUse a dedicated regress target for each test case.
anton [Sun, 13 Aug 2023 18:34:49 +0000 (18:34 +0000)]
Use a dedicated regress target for each test case.

ok gnezdo@

14 months agoFix P_WSLEEP handling when continuing SSTOP-ed processes
claudio [Sun, 13 Aug 2023 15:53:31 +0000 (15:53 +0000)]
Fix P_WSLEEP handling when continuing SSTOP-ed processes

When continuing a process on the sleep queue just let it switch to
p_stat = SSLEEP even when P_WSLEEP is set. Once a proc is SSTOP-ed
in sleep_finish() a valid sleep point has been reached and there is
no need to make the process runnable again (which results in some
hairy race conditions). Instead simply clear P_WSLEEP since a stopped
proc reached the sleep state and there is no race with wakeup() anymore.

OK mpi@

14 months agobtrace(8): fix yacc reduce conflicts and undefined symbol warnings.
dv [Sun, 13 Aug 2023 13:19:23 +0000 (13:19 +0000)]
btrace(8): fix yacc reduce conflicts and undefined symbol warnings.

Define the STR symbol, used for the str function.

Tune the grammar, simplifying the 'pat' rule to 'expr'. Resolves
the reduce conflicts related to 'pat' and 'factor' both matching a
lone CSTRING token.

ok mpi@

14 months agosync with userland
tb [Sun, 13 Aug 2023 12:25:36 +0000 (12:25 +0000)]
sync with userland

14 months agoConditionally disable MSAN
tb [Sun, 13 Aug 2023 12:25:12 +0000 (12:25 +0000)]
Conditionally disable MSAN

from upstream

14 months agofix whitespace
tb [Sun, 13 Aug 2023 12:09:14 +0000 (12:09 +0000)]
fix whitespace

14 months agoRevert "drm/i915: Disable DC states for all commits"
jsg [Sun, 13 Aug 2023 10:40:45 +0000 (10:40 +0000)]
Revert "drm/i915: Disable DC states for all commits"

From Greg Kroah-Hartman
673cdde74fd13fff0acc4c6c41f5f949434156a5 in linux-6.1.y/6.1.45

14 months agodrm/amdgpu: Use apt name for FW reserved region
jsg [Sun, 13 Aug 2023 10:36:26 +0000 (10:36 +0000)]
drm/amdgpu: Use apt name for FW reserved region

From Lijo Lazar
af7215182417c892e09bcb6829377ce5c69f127f in linux-6.1.y/6.1.45
db3b5cb64a9ca301d14ed027e470834316720e42 in mainline linux

14 months agodrm/amdgpu: Remove unnecessary domain argument
jsg [Sun, 13 Aug 2023 10:33:48 +0000 (10:33 +0000)]
drm/amdgpu: Remove unnecessary domain argument

From Luben Tuikov
3d0a34c42f0d50c06ca21761d625a823e245118e in linux-6.1.y/6.1.45
3273f11675ef11959d25a56df3279f712bcd41b7 in mainline linux

14 months agodrm/amdgpu: add vram reservation based on vram_usagebyfirmware_v2_2
jsg [Sun, 13 Aug 2023 10:30:28 +0000 (10:30 +0000)]
drm/amdgpu: add vram reservation based on vram_usagebyfirmware_v2_2

From Tong Liu01
526defeec474ea8002b8312b9c88f96fa1f85a48 in linux-6.1.y/6.1.45
4864f2ee9ee2acf4a1009b58fbc62f17fa086d4e in mainline linux

14 months agodrm/amd/display: skip CLEAR_PAYLOAD_ID_TABLE if device mst_en is 0
jsg [Sun, 13 Aug 2023 10:27:32 +0000 (10:27 +0000)]
drm/amd/display: skip CLEAR_PAYLOAD_ID_TABLE if device mst_en is 0

From Peichen Huang
56562676102e135e7aebada26c2aea146a5b5ad0 in linux-6.1.y/6.1.45
a1c9a1e27022d13c70a14c4faeab6ce293ad043b in mainline linux

14 months agodrm/amd/display: Ensure that planes are in the same order
jsg [Sun, 13 Aug 2023 10:25:34 +0000 (10:25 +0000)]
drm/amd/display: Ensure that planes are in the same order

From Rodrigo Siqueira
63eeb50fa11009cc4c82919b040c361c4ea0f14e in linux-6.1.y/6.1.45
bb46a6a9bab134b9d15043ea8fa9d6c276e938b8 in mainline linux

14 months agodrm/i915/gt: Cleanup aux invalidation registers
jsg [Sun, 13 Aug 2023 10:23:58 +0000 (10:23 +0000)]
drm/i915/gt: Cleanup aux invalidation registers

From Andi Shyti
37f6073f7db329c9db4357f82e565958fb64ea16 in linux-6.1.y/6.1.45
d14560ac1b595aa2e792365e91fea6aeaee66c2b in mainline linux

14 months agosimplify previous;
jmc [Sun, 13 Aug 2023 10:23:26 +0000 (10:23 +0000)]
simplify previous;

14 months agodrm/i915: Fix premature release of request's reusable memory
jsg [Sun, 13 Aug 2023 10:22:20 +0000 (10:22 +0000)]
drm/i915: Fix premature release of request's reusable memory

From Janusz Krzysztofik
4db8b39418a685179263b7ad895a3182d72be358 in linux-6.1.y/6.1.45
a337b64f0d5717248a0c894e2618e658e6a9de9f in mainline linux

14 months agodrm/ttm: check null pointer before accessing when swapping
jsg [Sun, 13 Aug 2023 10:20:31 +0000 (10:20 +0000)]
drm/ttm: check null pointer before accessing when swapping

From Guchun Chen
1fdd16d89c01336d9a942b5f03673c17d401da87 in linux-6.1.y/6.1.45
2dedcf414bb01b8d966eb445db1d181d92304fb2 in mainline linux

14 months agoAdd support for storing builtin TID and PID in variables.
mpi [Sun, 13 Aug 2023 09:52:47 +0000 (09:52 +0000)]
Add support for storing builtin TID and PID in variables.

14 months agoRegression test for the use-after-free in map insertion
mpi [Sun, 13 Aug 2023 09:49:47 +0000 (09:49 +0000)]
Regression test for the use-after-free in map insertion

14 months agoPrevent user-after/double free in map insertion.
mpi [Sun, 13 Aug 2023 09:48:27 +0000 (09:48 +0000)]
Prevent user-after/double free in map insertion.

Freeing arguments tied to statements is not an option because rules are
parsed multiple times.  Always make a copy of them if they are assigned
to a key in a map.

14 months agokevent: Add precision and abstimer flags for EVFILT_TIMER
visa [Sun, 13 Aug 2023 08:29:28 +0000 (08:29 +0000)]
kevent: Add precision and abstimer flags for EVFILT_TIMER

Add timer precision flags NOTE_SECONDS, NOTE_MSECONDS, NOTE_USECONDS
and NOTE_NSECONDS for EVFILT_TIMER. Also, add an initial implementation
of NOTE_ABSTIME timers.

Similar kevent(2) flags exist on FreeBSD, NetBSD and XNU.

Initial diff by and OK aisha@
OK mpi@

14 months agoAdd modff()/modfl() inf/nan tests; from Willemijn Coene.
miod [Sun, 13 Aug 2023 07:02:36 +0000 (07:02 +0000)]
Add modff()/modfl() inf/nan tests; from Willemijn Coene.

14 months agoExtent the modf() tests; from Willemijn Coene.
miod [Sun, 13 Aug 2023 06:57:04 +0000 (06:57 +0000)]
Extent the modf() tests; from Willemijn Coene.

14 months agoMake sure modff() returns correct values for infinities.
miod [Sun, 13 Aug 2023 06:56:10 +0000 (06:56 +0000)]
Make sure modff() returns correct values for infinities.

Reported by Willemijn Coene.

14 months agoMake sure modf() returns correct values for infinities. While there, drop
miod [Sun, 13 Aug 2023 06:55:37 +0000 (06:55 +0000)]
Make sure modf() returns correct values for infinities. While there, drop
the few assembler versions as has been done on other *BSD systems; this
function (modf) turns out to be non-trivial enough, having only one
known-to-work version is preferrable.

Reported by Willemijn Coene.

14 months agounifdef appeared in 4.1c before 2.9
jsg [Sun, 13 Aug 2023 02:20:23 +0000 (02:20 +0000)]
unifdef appeared in 4.1c before 2.9
dates checked in CSRG archives and already changed upstream in unifdef3

14 months agoMention recent developments.
miod [Sat, 12 Aug 2023 20:49:29 +0000 (20:49 +0000)]
Mention recent developments.

14 months agoBetter uwacom(4) support for Intuos S and One S tablets; most of the work
miod [Sat, 12 Aug 2023 20:47:06 +0000 (20:47 +0000)]
Better uwacom(4) support for Intuos S and One S tablets; most of the work
done by Vladimir Meshcheriakov (first name dot last name at epita somewhere in
frogland), thanks!

Tested by Peter J. Philipp on Intuos Draw and by espie@ on Intuos S.

14 months agoRegen
miod [Sat, 12 Aug 2023 20:44:32 +0000 (20:44 +0000)]
Regen

14 months agoAnother Wacom tablet; from Vladimir Meshcheriakov (first name dot last name
miod [Sat, 12 Aug 2023 20:43:49 +0000 (20:43 +0000)]
Another Wacom tablet; from Vladimir Meshcheriakov (first name dot last name
at epita somewhere in france)