CVS: cvs.openbsd.org: src

2023-08-13 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/08/13 21:37:00

Modified files:
usr.bin/ssh: ssh2.h 

Log message:
add message number of SSH2_MSG_NEWCOMPRESS defined in RFC8308



CVS: cvs.openbsd.org: src

2023-08-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/08/13 15:54:02

Modified files:
sys/dev/pckbc  : pckbd.c pckbdreg.h 

Log message:
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.



CVS: cvs.openbsd.org: src

2023-08-13 Thread Alexandr Nedvedicky
CVSROOT:/cvs
Module name:src
Changes by: sas...@cvs.openbsd.org  2023/08/13 15:21:53

Modified files:
regress/sys/net/pf_table: Makefile 

Log message:
Ignore failure when deleting regress/ttest anchor
in 'stamp-setup' target. Found by anton@.



CVS: cvs.openbsd.org: src

2023-08-13 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2023/08/13 12:36:20

Removed files:
regress/libexec/ld.so/ldd: test.sh 

Log message:
remove by now unused test.sh script



CVS: cvs.openbsd.org: src

2023-08-13 Thread Anton Lindqvist
CVSROOT:/cvs
Module name:src
Changes by: an...@cvs.openbsd.org   2023/08/13 12:34:49

Modified files:
regress/libexec/ld.so/ldd: Makefile 

Log message:
Use a dedicated regress target for each test case.

ok gnezdo@



CVS: cvs.openbsd.org: src

2023-08-13 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2023/08/13 09:53:31

Modified files:
sys/kern   : kern_sig.c 

Log message:
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@



CVS: cvs.openbsd.org: src

2023-08-13 Thread Dave Voutila
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2023/08/13 07:19:23

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

Log message:
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@



CVS: cvs.openbsd.org: src

2023-08-13 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/08/13 06:25:36

Modified files:
sys/lib/libz   : deflate.c 

Log message:
sync with userland



CVS: cvs.openbsd.org: src

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

Modified files:
lib/libz   : deflate.c 

Log message:
Conditionally disable MSAN

from upstream



CVS: cvs.openbsd.org: src

2023-08-13 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2023/08/13 06:09:14

Modified files:
lib/libcrypto/dh: dh_lib.c 

Log message:
fix whitespace



CVS: cvs.openbsd.org: src

2023-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/13 04:40:45

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

Log message:
Revert "drm/i915: Disable DC states for all commits"

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



CVS: cvs.openbsd.org: src

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

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

Log message:
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



CVS: cvs.openbsd.org: src

2023-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/13 04:33:48

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

Log message:
drm/amdgpu: Remove unnecessary domain argument

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



CVS: cvs.openbsd.org: src

2023-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/13 04:30:28

Modified files:
sys/dev/pci/drm/amd/amdgpu: amdgpu_atomfirmware.c amdgpu_ttm.c 
amdgpu_ttm.h 
sys/dev/pci/drm/amd/include: atomfirmware.h 

Log message:
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



CVS: cvs.openbsd.org: src

2023-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/13 04:27:32

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

Log message:
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



CVS: cvs.openbsd.org: src

2023-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/13 04:25:34

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

Log message:
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



CVS: cvs.openbsd.org: src

2023-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/13 04:23:58

Modified files:
sys/dev/pci/drm/i915/gt: gen8_engine_cs.c intel_gt_regs.h 
 intel_lrc.c 

Log message:
drm/i915/gt: Cleanup aux invalidation registers

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



CVS: cvs.openbsd.org: src

2023-08-13 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/13 04:23:26

Modified files:
lib/libc/sys   : kqueue.2 

Log message:
simplify previous;



CVS: cvs.openbsd.org: src

2023-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/13 04:22:20

Modified files:
sys/dev/pci/drm/i915: i915_active.c i915_request.c 

Log message:
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



CVS: cvs.openbsd.org: src

2023-08-13 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2023/08/13 04:20:31

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

Log message:
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



CVS: cvs.openbsd.org: src

2023-08-13 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/08/13 03:52:47

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

Log message:
Add support for storing builtin TID and PID in variables.



CVS: cvs.openbsd.org: src

2023-08-13 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/08/13 03:49:47

Modified files:
regress/usr.sbin/btrace: Makefile 
Added files:
regress/usr.sbin/btrace: mapoverwrite.bt mapoverwrite.ok 

Log message:
Regression test for the use-after-free in map insertion



CVS: cvs.openbsd.org: src

2023-08-13 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/08/13 03:48:27

Modified files:
usr.sbin/btrace: map.c 

Log message:
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.



CVS: cvs.openbsd.org: src

2023-08-13 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2023/08/13 02:29:28

Modified files:
lib/libc/sys   : kqueue.2 
regress/sys/kern/kqueue: kqueue-timer.c 
sys/kern   : kern_event.c 
sys/sys: event.h 
usr.bin/kdump  : mksubr 

Log message:
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@



CVS: cvs.openbsd.org: src

2023-08-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/08/13 01:02:36

Modified files:
regress/lib/libm: Makefile 
Added files:
regress/lib/libm/modf: Makefile modf_test.c 

Log message:
Add modff()/modfl() inf/nan tests; from Willemijn Coene.



CVS: cvs.openbsd.org: src

2023-08-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/08/13 00:57:51

src/regress/lib/libm/modf

Update of /cvs/src/regress/lib/libm/modf
In directory cvs.openbsd.org:/tmp/cvs-serv38944/modf

Log Message:
Directory /cvs/src/regress/lib/libm/modf added to the repository



CVS: cvs.openbsd.org: src

2023-08-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/08/13 00:57:04

Modified files:
regress/lib/libc/modf: modf_test.c 

Log message:
Extent the modf() tests; from Willemijn Coene.



CVS: cvs.openbsd.org: src

2023-08-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/08/13 00:56:10

Modified files:
lib/libm/src   : s_modff.c 

Log message:
Make sure modff() returns correct values for infinities.

Reported by Willemijn Coene.



CVS: cvs.openbsd.org: src

2023-08-13 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2023/08/13 00:55:37

Modified files:
lib/libc/gen   : modf.c 
lib/libc/arch/amd64/gen: Makefile.inc 
lib/libc/arch/i386/gen: Makefile.inc 
lib/libc/arch/mips64/gen: Makefile.inc 
lib/libc/arch/sparc64/gen: Makefile.inc 
Removed files:
lib/libc/arch/amd64/gen: modf.S 
lib/libc/arch/i386/gen: modf.S 
lib/libc/arch/mips64/gen: modf.S 
lib/libc/arch/sparc64/gen: modf.S 

Log message:
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.