CVS: cvs.openbsd.org: src

2024-05-02 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/05/02 11:10:55

Modified files:
sys/kern   : uipc_usrreq.c 

Log message:
Don't re-lock sockets in uipc_shutdown().

No reason to lock peer. It can't be or became listening socket, both
sockets can't be in the middle of connecting or disconnecting.

ok bluhm



CVS: cvs.openbsd.org: src

2024-05-02 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2024/05/02 09:46:10

Modified files:
usr.sbin/vmctl : main.c vmctl.8 vmctl.c 

Log message:
vmctl(8): Add 'vmctl status -r'

The -r option can be used to limit the output of 'vmctl status' to only
running VMs. This is useful for machines that have a large number of
stopped VMs, as the running ones are printed at the top by default and
previously required scrolling back to see the list of running VMs, and/or
using 'grep RUNNING'.

There is no change for users not using -r.

ok dv



CVS: cvs.openbsd.org: src

2024-05-02 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/05/02 09:33:59

Modified files:
lib/libcrypto/asn1: t_crl.c 

Log message:
Remove a useless OBJ_obj2nid() call from X509_CRL_print()

ok beck (as part of a larger diff)



CVS: cvs.openbsd.org: src

2024-05-02 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/05/02 05:55:31

Modified files:
sys/kern   : uipc_socket.c 

Log message:
Pass `sosp' instead of `so' to sblock() when locking `so_snd' within
sosplice().

ok bluhm



CVS: cvs.openbsd.org: src

2024-05-02 Thread Kenji Aoyama
CVSROOT:/cvs
Module name:src
Changes by: aoy...@cvs.openbsd.org  2024/05/02 03:38:59

Modified files:
sys/arch/luna88k/cbus: i82365_cbus.c if_ne_cbus.c nec86hw.c 

Log message:
Delete extra spaces, change spaces to tab.

No binary change.



CVS: cvs.openbsd.org: src

2024-05-01 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/05/01 07:15:59

Modified files:
sys/nfs: krpc_subr.c nfs_bio.c nfs_boot.c nfs_debug.c 
 nfs_kq.c nfs_node.c nfs_serv.c nfs_srvcache.c 
 nfs_subs.c nfs_syscalls.c nfs_vfsops.c 
 nfs_vnops.c 

Log message:
remove unneeded includes
ok miod@ mpi@



CVS: cvs.openbsd.org: src

2024-05-01 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/05/01 06:54:27

Modified files:
sys/arch/amd64/include: cpu.h 
sys/arch/arm64/include: cpu.h 
sys/arch/i386/include: cpu.h 
sys/uvm: uvm_page.c uvm_pdaemon.c uvm_percpu.h 
 uvm_pmemrange.c uvm_pmemrange.h uvmexp.h 
usr.bin/systat : uvm.c 
usr.bin/vmstat : vmstat.c 

Log message:
Add per-CPU caches to the pmemrange allocator.

The caches are used primarily to reduce contention on uvm_lock_fpageq() during
concurrent page faults.  For the moment only uvm_pagealloc() tries to get a
page from the current CPU's cache.  So on some architectures the caches are
also used by the pmap layer.

Each cache is composed of two magazines, design is borrowed from jeff bonwick
vmem's paper and the implementation is similar to the one of pool_cache from
dlg@.  However there is no depot layer and magazines are refilled directly by
the pmemrange allocator.

This version includes splvm()/splx() dances because the buffer cache flips
buffers in interrupt context.  So we have to prevent recursive accesses to
per-CPU magazines.

Tested by naddy@, solene@, krw@, robert@, claudio@ and Laurence Tratt.

ok claudio@, kettenis@



CVS: cvs.openbsd.org: src

2024-05-01 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/05/01 05:22:21

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

Log message:
add return statements missed when adapting from FreeBSD

Avoids segfaults with an argument of 0, NaN, or Inf.
Problem reported by Colin Ian King.  ok miod@ kettenis@



CVS: cvs.openbsd.org: src

2024-05-01 Thread Jan Klemkow
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/05/01 04:43:42

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

Log message:
Refactor receive offloading code in ix(4)

- reduce complexcity
- avoid combination of TCP and UDP IN_OK mbuf annotaions

with tweaks from bluhm
tested by bluhm

ok bluhm@



CVS: cvs.openbsd.org: src

2024-04-30 Thread Vitaliy Makkoveev
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/04/30 11:59:15

Modified files:
sys/kern   : sys_socket.c uipc_socket.c uipc_socket2.c 

Log message:
Push  solock() down to sosend() for SOCK_RAW sockets.

Raw sockets are the simplest inet sockets, so use them to start landing
`sb_mtx' mutex(9) protection for `so_snd' buffer. Now solock() is taken
only around pru_send*(), the rest of sosend() serialized by sblock() and
`sb_mtx'. The unlocked SS_ISCONNECTED check is fine, because
rip{,6}_send() check it. Also, previously the SS_ISCONNECTED could be
lost due to solock() release around following m_getuio().

ok bluhm



CVS: cvs.openbsd.org: src

2024-04-30 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2024/04/30 11:12:19

Modified files:
sys/kern   : subr_hibernate.c 

Log message:
Add '\n' to DPRINTF() string that used to be a panic() string.

ok mlarkin@



CVS: cvs.openbsd.org: src

2024-04-30 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/04/30 11:06:00

Modified files:
sys/nfs: nfsproto.h 

Log message:
Make nfstov_mode() return mode_t rather than uint16_t.
This is a no-op since we only care about the low 12 bits in NFS anyway.

ok jsg@ semarie@



CVS: cvs.openbsd.org: src

2024-04-30 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/04/30 11:05:20

Modified files:
sys/nfs: nfs_serv.c nfs_socket.c nfs_srvcache.c 
 nfs_subs.c nfs_syscalls.c nfs_vnops.c 

Log message:
Constify NFS data whenever possible. Also make a few more const data static.

ok jsg@ semarie@



CVS: cvs.openbsd.org: src

2024-04-30 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/04/30 11:04:23

Modified files:
sys/nfs: nfs_serv.c nfs_socket.c nfs_subs.c nfs_var.h 
 nfs_vfsops.c nfs_vnops.c nfsm_subs.h nfsnode.h 

Log message:
Convert all the NFS macros (in nfsm_subs.h) into inline functions with the
appropriate extra arguments.

This (hopefully) completes the unmessyfication work started by thib@ a long,
long time ago (in a galaxy far away).

The conversion logic has been:
- nfsm_dissect has been turned into an rvalue expression, leaving the
cast operation up to its caller.
- macros which had three different exit paths (return, goto nfsmout or
fallthrough) have been split so that no macros have more than two exit paths.
- then they have been modified to return a value, which lets the caller
figure out what exit path is needed.
- local variables abused by the macros are now local variables of the new
inline functions.

This single commit is the sum of 25 intermediate diffs, which have all been
carefully reviewed by (at least) jsg@ and semarie@.

Tested with v2 and v3 servers and clients.

ok jsg@ semarie@



CVS: cvs.openbsd.org: src

2024-04-30 Thread Omar Polo
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2024/04/30 11:03:14

Modified files:
sys/sys: msg.h 
lib/libc/sys   : msgctl.2 

Log message:
add typedefs for msgqnum_t and msglen_t, required by POSIX.

improvements from kettenis and jca
ok millert, jca, guenther



CVS: cvs.openbsd.org: src

2024-04-30 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/04/30 10:54:47

Modified files:
sys/nfs: nfs_bio.c 

Log message:
Do not cast off_t to u_long in uvm_vnp_setsize call (only misbehaves on 32-bit
platforms.)

ok mpi@



CVS: cvs.openbsd.org: src

2024-04-30 Thread Tobias Stoeckmann
CVSROOT:/cvs
Module name:src
Changes by: tob...@cvs.openbsd.org  2024/04/30 09:40:43

Modified files:
usr.bin/ssh: ssh-keyscan.c 

Log message:
never close stdin

The sanitise_stdfd call makes sure that standard file descriptors are
open (if they were closed, they are connected with /dev/null).

Do not close stdin in any case to prevent error messages when stdin is
read multiple times and to prevent later usage of fd 0 for connections,
e.g.

echo localhost | ssh-keyscan -f - -f -

While at it, make stdin-related error messages nicer.

Authored with Max Kunzelmann 

ok djm



CVS: cvs.openbsd.org: src

2024-04-30 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2024/04/30 08:26:50

Modified files:
usr.sbin/pkg_add/OpenBSD: PackingElement.pm 

Log message:
Allow parsing either RFC9557 timestamps (which wants explicit +00:00) or
the existing format (with Z). From espie.



CVS: cvs.openbsd.org: src

2024-04-30 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/04/30 00:23:51

Modified files:
usr.bin/ssh: sftp-server.c 

Log message:
fix home-directory extension implementation, it always returned
the current user's home directory contrary to the spec.

Patch from Jakub Jelen via GHPR477



CVS: cvs.openbsd.org: src

2024-04-30 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/04/30 00:16:55

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

Log message:
flush stdout after writing "sftp>" prompt when not using editline.

>From Alpine Linux via GHPR480



CVS: cvs.openbsd.org: src

2024-04-29 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/04/29 23:53:03

Modified files:
usr.bin/ssh: ssh-keysign.c 

Log message:
stricter validation of messaging socket fd number; disallow usage of
stderr. Based on GHPR492 by RealHurrison



CVS: cvs.openbsd.org: src

2024-04-29 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/04/29 23:45:56

Modified files:
usr.bin/ssh: PROTOCOL.agent 

Log message:
add missing reserved fields to key constraint protocol documentation.

from Wiktor Kwapisiewicz via GHPR487



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 23:05:23

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

Log message:
appeard -> appeared;



CVS: cvs.openbsd.org: src

2024-04-29 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/04/29 20:14:10

Modified files:
usr.bin/ssh: clientloop.c serverloop.c 

Log message:
correctly restore sigprocmask around ppoll()
reported by Tõivo Leedjärv; ok deraadt@



CVS: cvs.openbsd.org: src

2024-04-29 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/04/29 20:10:49

Modified files:
usr.bin/ssh: clientloop.c sshconnect.c sshconnect.h 

Log message:
add explict check for server hostkey type against HostkeyAlgorithms.
Allows HostkeyAlgorithms to disable implicit fallback from certificate
keys to plain keys. ok markus@



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 19:53:49

Modified files:
sys/arch/riscv64/conf: GENERIC 

Log message:
remove commented DEBUG_TIMER for timer driver removed in 2021



CVS: cvs.openbsd.org: src

2024-04-29 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2024/04/29 15:32:10

Modified files:
sys/arch/powerpc64/conf: GENERIC 

Log message:
em(4) will work



CVS: cvs.openbsd.org: src

2024-04-29 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2024/04/29 14:18:12

Modified files:
distrib/sets/lists/man: mi 
share/man/man4 : Makefile 
share/man/man4/man4.arm64: Makefile 
Added files:
share/man/man4 : efi.4 
Removed files:
share/man/man4/man4.arm64: efi.4 

Log message:
Turn efi(4/arm64) into MI efi(4), sync with reality;  OK kettenis



CVS: cvs.openbsd.org: src

2024-04-29 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/04/29 10:17:46

Modified files:
usr.sbin/httpd : server_file.c 

Log message:
plug fd leak introduced in "avoid toctu" rewrite.

Issue reported by job
OK tb, job



CVS: cvs.openbsd.org: src

2024-04-29 Thread Dave Voutila
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2024/04/29 08:47:06

Modified files:
sys/arch/amd64/amd64: vmm_machdep.c 
sys/arch/amd64/include: vmmvar.h 
usr.sbin/vmd   : vm.c 

Log message:
vmm & vmd: drop "continue" flag to simplify running a vcpu.

There's no need to distinguish the "first" time running a vcpu from
the subsequent times because vmm(4) uses in-kernel state tracking
the last vm exit reason to optimize the logic for updating vcpu
registers from userland. While here, clean up the DPRINTF's to make
the Intel VMX logic similar to the AMD SVM.

ok mlarkin@



CVS: cvs.openbsd.org: src

2024-04-29 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2024/04/29 07:34:19

Modified files:
lib/libc/time  : strftime.3 

Log message:
strftime.3: clarify %G and %g description

Clarify that %G and %g produce the rarely needed ISO week-numbering
year rather than the Gregorian calendar year.

With millert@ and Evan Silberman.
Some of the wording is from the upstream version.

ok tb@



CVS: cvs.openbsd.org: src

2024-04-29 Thread Christian Weisgerber
CVSROOT:/cvs
Module name:src
Changes by: na...@cvs.openbsd.org   2024/04/29 07:23:19

Modified files:
distrib/sets/lists/man: mi 
usr.bin/tput   : Makefile 

Log message:
install accidentally dropped tput(1) man page again



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 07:07:18

Modified files:
sys/arch/riscv64/include: cpu.h 

Log message:
remove prototypes for removed functions



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 07:01:54

Modified files:
sys/arch/arm64/arm64: machdep.c 
sys/arch/arm64/include: cpu.h 

Log message:
remove prototypes for removed functions



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 06:46:22

Modified files:
sys/arch/armv7/omap: intc.h 

Log message:
remove unused armv7 specific find_first_bit()



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 06:42:06

Modified files:
sys/arch/armv7/omap: intc.c intc.h 

Log message:
remove unused intc_intr_bootstrap()



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 06:33:17

Modified files:
sys/arch/arm/arm: fault.c 
sys/arch/armv7/omap: intc.c intc.h 
sys/arch/armv7/sunxi: sxiintc.c sxiintc.h 

Log message:
remove unused global vars



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 06:24:46

Modified files:
sys/arch/arm/include: machdep.h pmap.h 
sys/arch/armv7/omap: intc.h 
sys/arch/armv7/sunxi: sxiintc.h 

Log message:
remove prototypes for removed functions



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 04:07:37

Modified files:
sys/arch/riscv64/riscv64: pmap.c 

Log message:
remove unused pmap_vp_remove()
ok miod@ kettenis@



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:40:11

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

Log message:
drm/amdgpu: remove invalid resource->start check v2

>From Christian Koenig
db74904a93a370807001e5fd64b5850a61f2bf65 in linux-6.6.y/6.6.29
ca7c4507ba87e9fc22e0ecfa819c3664b3e8287b in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:37:08

Modified files:
sys/dev/pci/drm/amd/amdkfd: kfd_process.c 

Log message:
drm/amdkfd: Fix memory leak in create_process failure

>From Felix Kuehling
aa02d43367a9adf8c85fb382fea4171fb266c8d0 in linux-6.6.y/6.6.29
18921b205012568b45760753ad3146ddb9e2d4e2 in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:35:53

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

Log message:
drm/amdgpu: validate the parameters of bo mapping operations more clearly

>From xinhui pan
ef13eeca7c79136bc38e21eb67322c1cbd5c40ee in linux-6.6.y/6.6.29
6fef2d4c00b5b8561ad68dd2b68173f5c6af1e75 in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:31:57

Modified files:
sys/dev/pci/drm/radeon: radeon_atombios.c 

Log message:
drm/radeon: make -fstrict-flex-arrays=3 happy

>From Alex Deucher
259486b5bdc63f648634c30b8284be29834a4125 in linux-6.6.y/6.6.29
0ba753bc7e79e49556e81b0d09b2de1aa558553b in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:30:19

Modified files:
sys/dev/pci/drm/i915/display: intel_display_device.h 
  intel_dp_mst.c 

Log message:
drm/i915/mst: Limit MST+DSC to TGL+

>From Ville Syrjala
75170320459ae5bedf73352989b8433880cba20a in linux-6.6.y/6.6.29
51bc63392e96ca45d7be98bc43c180b174ffca09 in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:27:37

Modified files:
sys/dev/pci/drm/i915: i915_vma.c 

Log message:
drm/i915/vma: Fix UAF on destroy against retire race

>From Janusz Krzysztofik
5e3eb862df9f972ab677fb19e0d4b9b1be8db7b5 in linux-6.6.y/6.6.29
0e45882ca829b26b915162e8e86dbb1095768e9e in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:25:15

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

Log message:
drm/amd/display: Do not recursively call manual trigger programming

>From Dillon Varone
a17236f99f49c5e3c2a052302127284a99fc07bb in linux-6.6.y/6.6.29
953927587f37b731abdeabe46ad44a3b3ec67a52 in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:23:21

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

Log message:
drm/i915: Disable live M/N updates when using bigjoiner

>From Ville Syrjala
9d106175b7a081f98112694e7fbb82105aff4eef in linux-6.6.y/6.6.29
4a36e46df7aa781c756f09727d37dc2783f1ee75 in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:21:44

Modified files:
sys/dev/pci/drm/i915/display: intel_atomic.c intel_crtc.c 
  intel_display.c 
  intel_display_types.h intel_dp.c 

Log message:
drm/i915: Adjust seamless_m_n flag behaviour

>From Ville Syrjala
ccb0934aeb3f7be579717041b10d274feef21de3 in linux-6.6.y/6.6.29
825edc8bc72f3266534a04e9a4447b12332fac82 in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:19:53

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

Log message:
drm/i915: Enable VRR later during fastsets

>From Ville Syrjala
deaeb5b64c5b8a7b681acaf721d040b1fe9dcc53 in linux-6.6.y/6.6.29
691dec86acc3afb469f09e9a4a00508b458bdb0c in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:18:00

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

Log message:
drm/i915: Extract intel_crtc_vblank_evade_scanlines()

>From Ville Syrjala
7e50ac4203d6a8b151233550cec7d7da794b2e13 in linux-6.6.y/6.6.29
f4b0cece716c95e16d973a774d5a5c5cc8cb335d in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:16:30

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

Log message:
drm/i915: Change intel_pipe_update_{start,end}() calling convention

>From Ville Syrjala
e19dc8c49e97b5cd84ee5753c301d64cde98c6aa in linux-6.6.y/6.6.29
09f390d4e2f38f8433431f4da31ca0a17a5c7853 in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:14:32

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

Log message:
drm/i915/cdclk: Fix voltage_level programming edge case

>From Ville Syrjala
51cc733fb48e86c3bbfaef1713710b2a6ffe565d in linux-6.6.y/6.6.29
6154cc9177ccea00c89ce0bf93352e474b819ff2 in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:12:46

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

Log message:
drm/i915/mst: Reject FEC+MST on ICL

>From Ville Syrjala
6711b0817a384bbeb8c951521334d5ef78c855aa in linux-6.6.y/6.6.29
99f855082f228cdcecd6ab768d3b8b505e0eb028 in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:10:41

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

Log message:
drm/i915: Fix FEC pipe A vs. DDI A mixup

>From Ville Syrjala
6b625d2743b464a16904feb5520462041e3d3ce2 in linux-6.6.y/6.6.29
126f94e87e7960ef7ae58180e39c19cc9dcbbf7f in mainline linux



CVS: cvs.openbsd.org: src

2024-04-29 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/29 00:06:46

Modified files:
sys/dev/pci/drm/include/linux: overflow.h 

Log message:
add check_add_overflow() for 6.6.29 drm



CVS: cvs.openbsd.org: src

2024-04-28 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/28 18:29:48

Modified files:
sys/arch/amd64/amd64: machdep.c 
sys/arch/i386/i386: machdep.c 
sys/arch/i386/isa: npx.c 
sys/arch/i386/pci: pcibios.c 
sys/dev/ic : ac97.c 
sys/netmpls: mpls_raw.c 

Log message:
remove unused global vars
ok deraadt@ miod@



CVS: cvs.openbsd.org: src

2024-04-28 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/04/28 10:43:43

Modified files:
sbin/dhclient  : dhclient.c 
sbin/isakmpd   : log.c policy.c x509.c 
sbin/newfs_msdos: newfs_msdos.c 
sbin/route : route.c 
sbin/shutdown  : shutdown.c 
sbin/unwind/libunbound/util: log.c 

Log message:
gmtime(3) / locatime(3) can fail when timestamps are way off.

Add missing error checks to all calls under sbin/

Input & OK millert



CVS: cvs.openbsd.org: src

2024-04-28 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/04/28 10:43:15

Modified files:
bin/date   : date.c 
bin/ksh: lex.c 
bin/pax: sel_subs.c 
bin/ps : print.c 

Log message:
gmtime(3) / locatime(3) can fail when timestamps are way off.

Add missing error checks to all calls under bin/

Input & OK millert



CVS: cvs.openbsd.org: src

2024-04-28 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/04/28 10:42:53

Modified files:
libexec/ftpd   : ftpcmd.y 
libexec/getty  : main.c 
libexec/snmpd/snmpd_metrics: mib.c 
libexec/talkd  : announce.c 

Log message:
gmtime(3) / locatime(3) can fail when timestamps are way off.

Add missing error checks to all calls under libexec/

Input & OK millert



CVS: cvs.openbsd.org: src

2024-04-28 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2024/04/28 08:28:02

Modified files:
lib/libc/stdio : fvwrite.c 

Log message:
__sfvwrite: allow writing buffers larger than BUFSIZ or st_blksize.

This can vastly improve write performance.  For unbuffered writes,
we now write up to INT_MAX instead of BUFSIZE.  For buffered writes,
write the largest multiple of the buffer size (which may be st_blksize).
>From Apple via enh at google.  OK tb@



CVS: cvs.openbsd.org: src

2024-04-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2024/04/28 07:12:31

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

Log message:
sync



CVS: cvs.openbsd.org: src

2024-04-28 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/04/28 04:09:25

Modified files:
usr.sbin/acme-client: netproc.c 

Log message:
Remove unused url from netproc()

Leftover from when RFC 8555 support was added.

ok florian



CVS: cvs.openbsd.org: src

2024-04-28 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/04/28 02:29:56

Modified files:
usr.sbin/acme-client: netproc.c 

Log message:
Don't filter dangerous characters by hand when strvisx(3) is right there.

segfault reported by sthen, which was most likely caused by buf_dump().

OK tb



CVS: cvs.openbsd.org: src

2024-04-27 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/04/27 13:49:42

Modified files:
bin/pax: gen_subs.c 

Log message:
Use propper knf.

Spotted by kettenis.



CVS: cvs.openbsd.org: src

2024-04-27 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/27 09:05:55

Modified files:
usr.bin/tput   : Makefile 
Added files:
usr.bin/tput   : clear.1 

Log message:
add a man page from curses source for clear(1);
from piotr durlej

ok millert



CVS: cvs.openbsd.org: src

2024-04-27 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/04/27 08:57:02

Modified files:
bin/pax: gen_subs.c 

Log message:
localtime(3) can fail if time_t is very far in the future or past.

found using afl++

OK millert



CVS: cvs.openbsd.org: src

2024-04-27 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/27 08:52:30

Modified files:
usr.bin/less   : less.hlp 

Log message:
"!command" notation was zapped 8 years ago - remove corresponding
entry from the help file; from piotr durlej

while here, zap an unneccessary blank line

ok millert



CVS: cvs.openbsd.org: src

2024-04-27 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/04/27 01:41:47

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

Log message:
Tweak start of DESCRIPTION of EC_GROUP_new()

Complete precision will lead to complete confusion, however outright lies
are also bad.



CVS: cvs.openbsd.org: src

2024-04-26 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/04/26 08:23:03

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

Log message:
Document EC_curve_{nid2nist,nist2nid}()



CVS: cvs.openbsd.org: src

2024-04-25 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/25 22:44:43

Modified files:
regress/sys/kern/pledge/generic: manager.c tests.out 

Log message:
fix signal test; ok tb@



CVS: cvs.openbsd.org: src

2024-04-25 Thread Todd C . Miller
CVSROOT:/cvs
Module name:src
Changes by: mill...@cvs.openbsd.org 2024/04/25 12:33:53

Modified files:
usr.bin/awk: FIXES README.md b.c main.c run.c 

Log message:
Update awk to the Apr 22, 2024 version.

* fixed regex engine gototab reallocation issue that was introduced
during the Nov 24 rewrite.

* fixed use-after-free bug in fnematch due to adjbuf invalidating
the pointers to buf.



CVS: cvs.openbsd.org: src

2024-04-25 Thread Klemens Nanni
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2024/04/25 12:31:49

Modified files:
sys/lib/libsa  : softraid.c 
sys/arch/amd64/stand/boot: boot.8 
sys/arch/amd64/stand/efiboot: Makefile.common cmd_i386.c conf.c 
  efiboot.c efiboot.h 

Log message:
Add boot.conf(8) 'mach idle [secs]' to halt at idle passphrase prompts

Enable users to power down their machines if there was no input after N
seconds during disk descryption.

Motivation is to save battery and prevent pocket heaters when notebooks
unhibernate (e.g. lid accidentially opened) and sit at "Passphrase: ".

Only available on efi(4) systems as the timeout is saved as EFI variable;
mostly because that's trivial to do, but also because we lack a better
mechanism to configure that and persist such data without the root disk.

Discussed with many, starting at h2k23
OK Tests gnezdo



CVS: cvs.openbsd.org: src

2024-04-25 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2024/04/25 11:32:53

Modified files:
sys/kern   : uipc_socket2.c uipc_syscalls.c 

Log message:
Rename socket wait channels when sleeping.

Use "netacc" for accept(2) and "netcon" for connect(2).  Call sleep
in sys_ypconnect() "ypcon" to make it unique.  sblock() now has
"sblock" to distinguish it from netlock.

OK claudio@ mvs@ kn@



CVS: cvs.openbsd.org: src

2024-04-25 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/04/25 10:14:40

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

Log message:
sync



CVS: cvs.openbsd.org: src

2024-04-25 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/04/25 10:14:00

Modified files:
lib/libcrypto  : Makefile 
Removed files:
lib/libcrypto/pem: pem2.h 

Log message:
Take pem2.h behind the barn

/*
* This header only exists to break a circular dependency between pem and err
* Ben 30 Jan 1999.
*/

25 years of uselessness is about a quarter century more than enough.

discussed with jsing



CVS: cvs.openbsd.org: src

2024-04-25 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/04/25 08:27:29

Modified files:
regress/lib/libcrypto: Makefile 
Added files:
regress/lib/libcrypto/crypto: Makefile crypto_test.c 

Log message:
Add regress coverage for crypto_ct_*_u8()



CVS: cvs.openbsd.org: src

2024-04-25 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/25 08:24:54

Modified files:
sbin/iked  : parse.y 

Log message:
add fstat() call removed in 1.145 to avoid uninitialised var use
ok tobhe@



CVS: cvs.openbsd.org: src

2024-04-25 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2024/04/25 08:19:45

src/regress/lib/libcrypto/crypto

Update of /cvs/src/regress/lib/libcrypto/crypto
In directory cvs.openbsd.org:/tmp/cvs-serv77624/crypto

Log Message:
Directory /cvs/src/regress/lib/libcrypto/crypto added to the repository



CVS: cvs.openbsd.org: src

2024-04-25 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2024/04/25 05:37:39

Modified files:
sys/dev/ic : dwqereg.h 

Log message:
Adjust macro definitions for dwqe(4) Rx descriptors.

Split Rx desc macro definitions into two sections, one for the "read"
format and one for the "writeback" format. Add some macros which will
be needed to support Rx checksum offloading.

ok jmatthew@



CVS: cvs.openbsd.org: src

2024-04-25 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/25 03:58:17

Modified files:
usr.bin/vi/vi  : vs_refresh.c 

Log message:
Don't divide by zero (empty files)

While there, also increase buf[]

OK claudio@



CVS: cvs.openbsd.org: src

2024-04-25 Thread Jonathan Matthew
CVSROOT:/cvs
Module name:src
Changes by: jmatt...@cvs.openbsd.org2024/04/25 02:51:37

Modified files:
sys/dev/ic : dwqe.c dwqereg.h 

Log message:
Mask off MAC management counter interrupts.  The driver doesn't know how
to handle these, so if they're enabled, they will cause an interrupt
storm.

ok patrick@ jsg@ stsp@



CVS: cvs.openbsd.org: src

2024-04-25 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2024/04/25 01:21:43

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

Log message:
slightly tweak softraid(4) wording to make installboot(8) usage more obvious



CVS: cvs.openbsd.org: src

2024-04-24 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/24 23:26:41

Modified files:
usr.bin/vi/docs/USD.doc/vi.ref: set.opt.roff 

Log message:
add percentage to ruler after recent changes;



CVS: cvs.openbsd.org: src

2024-04-24 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2024/04/24 23:23:45

Modified files:
sys/arch/sparc64/conf: Makefile.sparc64 

Log message:
Use -mno-fpu when compiling with clang now that the in-tree clang supports
this option; from Brad.



CVS: cvs.openbsd.org: src

2024-04-24 Thread Omar Polo
CVSROOT:/cvs
Module name:src
Changes by: o...@cvs.openbsd.org2024/04/24 15:31:31

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

Log message:
fix error return in fork_proc_backend(); ok gilles@



CVS: cvs.openbsd.org: src

2024-04-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2024/04/24 13:10:11

Modified files:
sys/kern   : init_sysent.c syscalls.c 
sys/sys: syscall.h syscallargs.h 

Log message:
Regen



CVS: cvs.openbsd.org: src

2024-04-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2024/04/24 13:09:14

Modified files:
sys/kern   : syscalls.master 

Log message:
Revert rev 1.261 and require sigsuspend and __thrsigdivert to take
KERNEL_LOCK. There is at least a race in sigsuspend which can be
triggered by dump(8). Should be enough to allow me to look for the
real cause.



CVS: cvs.openbsd.org: src

2024-04-24 Thread Job Snijders
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/24 09:15:40

Modified files:
usr.bin/vi/docs/USD.doc/vi.man: vi.1 
usr.bin/vi/vi  : vs_refresh.c 

Log message:
In ruler show the current line number as a percentage of the total lines

OK claudio@



CVS: cvs.openbsd.org: src

2024-04-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2024/04/24 04:42:09

Modified files:
usr.sbin/bgpctl: output_json.c 

Log message:
announce_capa is no more.
OK tb@



CVS: cvs.openbsd.org: src

2024-04-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2024/04/24 04:41:34

Modified files:
usr.sbin/bgpd  : bgpd.conf.5 bgpd.h parse.y printconf.c 
 session.c 

Log message:
Remove 'announce capabilities' as neighbor config stanza.

There is no need to have an easy knob to get outdated or crappy
implementations to limp along. Instead the various default on
capabilities just need to be disabled (e.g. announce as-4byte no).

OK tb@



CVS: cvs.openbsd.org: src

2024-04-24 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2024/04/24 03:30:30

Modified files:
sys/dev/sbus   : magma.c magmareg.h 

Log message:
Use static inline for cd1400_write_ccr() because clang 16 has issues with it.

Also remove some unused prototypes.
>From Koakuma, OK kn@



CVS: cvs.openbsd.org: src

2024-04-23 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/04/23 16:17:49

Modified files:
usr.sbin/rad   : rad.conf.5 

Log message:
Use "indicate" to match reset of the document.

Pointed out by kn, missed in previous.



CVS: cvs.openbsd.org: src

2024-04-23 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2024/04/23 16:11:59

Modified files:
usr.sbin/rad   : frontend.c parse.y printconf.c rad.conf.5 rad.h 

Log message:
Implement RFC 4191 default router preference.

OK phessler, kn

(Committing from a ferry somewhere on the English channel. Sadly the
free WiFi does not provide IPv6.)



CVS: cvs.openbsd.org: src

2024-04-23 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/23 07:34:51

Modified files:
bin/csh: func.c 
bin/ed : buf.c 
bin/ksh: c_ksh.c edit.c 
bin/pax: buf_subs.c 
sbin/fsck_ext2fs: inode.c 
sbin/growfs: growfs.c 
sbin/ifconfig  : ifconfig.c 
sbin/ncheck_ffs: ncheck_ffs.c 
sbin/ping  : ping.c 
usr.bin/calendar: ostern.c 
usr.bin/dc : dc.c 
usr.bin/dig: dighost.c 
usr.bin/dig/lib/dns: rdata.c tsig.c 
usr.bin/dig/lib/dns/rdata/generic: tkey_249.c 
usr.bin/make   : expandchildren.c 
usr.bin/mg : file.c 
usr.bin/rdist  : docmd.c 
usr.bin/snmp   : snmpc.c 
usr.bin/ssh: sshconnect.c 
usr.bin/telnet : telnet.c 
usr.bin/tftp   : tftpsubs.c 
usr.bin/tmux   : cmd-queue.c window-copy.c 
usr.sbin/amd/amd: amq_subr.c nfs_ops.c 
usr.sbin/dvmrpd: dvmrpe.c probe.c 
usr.sbin/ifstated: ifstated.c 
usr.sbin/ldpd  : lde.c 
usr.sbin/lpr/common_source: displayq.c 
usr.sbin/makefs/msdos: msdosfs_fat.c 
usr.sbin/mopd/common: print.c 
usr.sbin/mtree : compare.c 
usr.sbin/ntpd  : control.c 
usr.sbin/pcidump: pcidump.c 
usr.sbin/quot  : quot.c 
usr.sbin/radiusd: radiusd_standard.c 
usr.sbin/ripd  : auth.c 
usr.sbin/sasyncd: carp.c 
usr.sbin/smtpd : lka_filter.c mda_variables.c mta.c 
usr.sbin/tcpdump: print-ospf.c print-slow.c print-snmp.c 

Log message:
correct indentation; no functional change
ok tb@



CVS: cvs.openbsd.org: src

2024-04-23 Thread Jonathan Gray
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2024/04/23 07:09:21

Modified files:
sys/dev/ic : ahci.c ahcireg.h 

Log message:
use 1U << 31 to avoid undefined behaviour
ok miod@



CVS: cvs.openbsd.org: src

2024-04-23 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/04/23 04:52:08

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

Log message:
One empty line is enough



CVS: cvs.openbsd.org: src

2024-04-23 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/04/23 04:27:46

Modified files:
usr.sbin/rpki-client: http.c 

Log message:
Add missing comma

spotted by jsg



CVS: cvs.openbsd.org: src

2024-04-23 Thread Frederic Cambus
CVSROOT:/cvs
Module name:src
Changes by: fcam...@cvs.openbsd.org 2024/04/23 04:17:20

Modified files:
distrib/notes/arm64: hardware 

Log message:
Sync the supported hardware list with arm64.html.



CVS: cvs.openbsd.org: src

2024-04-23 Thread Theo Buehler
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2024/04/23 03:09:29

Modified files:
usr.sbin/rpki-client: http.c 

Log message:
sync with ftp/fetch.c r1.218: send host header for proxies

ok claudio



CVS: cvs.openbsd.org: src

2024-04-23 Thread Stuart Henderson
CVSROOT:/cvs
Module name:src
Changes by: st...@cvs.openbsd.org   2024/04/23 02:50:38

Modified files:
usr.bin/ftp: fetch.c 

Log message:
ftp: send Host: headers with CONNECT requests when tunneling TLS over an
HTTP proxy (i.e. for fetching resources over https). This is required by
some proxy servers.

Ftom KUWAZAWA Takuya, ok tb@



<    5   6   7   8   9   10   11   12   13   14   >