From dillon at crater.dragonflybsd.org Tue Jul 1 22:13:39 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Tue, 1 Jul 2025 22:13:39 -0700 (PDT) Subject: git: Debug - Fixing fdpassing.c test program Message-ID: <20250702051339.D5D982BB9F88@crater.dragonflybsd.org> commit ee8496af6bb0aeab3956eaae9c640b64c028ee45 Author: Matthew Dillon Date: Tue Jul 1 22:13:01 2025 -0700 Debug - Fixing fdpassing.c test program * Use proper alignment macros. This test program must be really old, from a time when sizeof(long) used to be 4 but now is 8. Summary of changes: test/debug/fdpassing.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ee8496af6bb0aeab3956eaae9c640b64c028ee45 -- DragonFly BSD source repository From aly at crater.dragonflybsd.org Wed Jul 2 00:41:51 2025 From: aly at crater.dragonflybsd.org (Aaron LI) Date: Wed, 2 Jul 2025 00:41:51 -0700 (PDT) Subject: git: timeout(1): Print error info of failed kill()/procctl() Message-ID: <20250702074151.809172BBA5C0@crater.dragonflybsd.org> commit 53248150169629fe137a4941e537bc26eee71a58 Author: Aaron LI Date: Wed Jun 11 17:59:05 2025 +0800 timeout(1): Print error info of failed kill()/procctl() Obtained-from: FreeBSD Summary of changes: usr.bin/timeout/timeout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/53248150169629fe137a4941e537bc26eee71a58 -- DragonFly BSD source repository From aly at crater.dragonflybsd.org Wed Jul 2 00:41:51 2025 From: aly at crater.dragonflybsd.org (Aaron LI) Date: Wed, 2 Jul 2025 00:41:51 -0700 (PDT) Subject: git: : Supplement 500706 with RTM_VERSION and _CMSG_ALIGN changes Message-ID: <20250702074151.987F12BBA5C2@crater.dragonflybsd.org> commit b8c642eacfc6f4f1773b2bca67e6c8d96b68c3d5 Author: Aaron LI Date: Wed Jul 2 15:24:32 2025 +0800 : Supplement 500706 with RTM_VERSION and _CMSG_ALIGN changes There were RTM_VERSION bump (from 6 to 7) and _CMSG_ALIGN() changes (alignment raised from 4 to 8) prior to the revision 500706, but those changes themselves didn't bump the __DragonFly_version. So supplement the 500706 revision notes with such changes. See also the commits of those changes: * Commit b3aa44a1fb12417a3c45a78a0620e126ae6b624d Roy Marples Wed, 11 Sep 2019 19:25:11 +0000 (20:25 +0100) build: Adjust _CMSG_ALIGN() for portability * Commit 43a373152df2d405c9940983e584e6a25e76632d Roy Marples Thu, 12 Sep 2019 08:13:30 +0000 (09:13 +0100) route(4): Add ifam_pid and ifam_addrflags to ifa_msghdr Summary of changes: sys/sys/param.h | 1 + 1 file changed, 1 insertion(+) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b8c642eacfc6f4f1773b2bca67e6c8d96b68c3d5 -- DragonFly BSD source repository From tkusumi at crater.dragonflybsd.org Sun Jul 6 01:38:37 2025 From: tkusumi at crater.dragonflybsd.org (Tomohiro Kusumi) Date: Sun, 6 Jul 2025 01:38:37 -0700 (PDT) Subject: git: sys/vfs/hammer2: Add missing ctime updates Message-ID: <20250706083838.02BD12BC93B1@crater.dragonflybsd.org> commit af1833426ba508225c232c536abeec0526739264 Author: Tomohiro Kusumi Date: Sun Jul 6 00:40:05 2025 -0700 sys/vfs/hammer2: Add missing ctime updates This fixes many errors in pjdfstest. The inode in question is already "modified" for either mtime or nlinks, so no extra chain flushing only to update ctime. Summary of changes: sys/vfs/hammer2/hammer2_inode.c | 11 ++++++++--- sys/vfs/hammer2/hammer2_vnops.c | 7 +++++++ 2 files changed, 15 insertions(+), 3 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/af1833426ba508225c232c536abeec0526739264 -- DragonFly BSD source repository From tkusumi at crater.dragonflybsd.org Tue Jul 8 00:25:13 2025 From: tkusumi at crater.dragonflybsd.org (Tomohiro Kusumi) Date: Tue, 8 Jul 2025 00:25:13 -0700 (PDT) Subject: git: sys/vfs/hammer2: Remove hardlink related obsolete comments Message-ID: <20250708072513.8B15D2BD0B06@crater.dragonflybsd.org> commit a9d812fe50d71d63ed31c3ddc1bfdf452e4a8657 Author: Tomohiro Kusumi Date: Mon Jul 7 01:50:07 2025 -0700 sys/vfs/hammer2: Remove hardlink related obsolete comments These "real inode" comments are from old hardlink design (e.g. e12ae3a59f03333cd0ce1dc645dd4719c32592b1 in 2015). Most have been removed, so remove remaining ones. Also remove "isopen" comments for hammer2_inode_unlink_finisher(). isopen was removed in bb16050ede5e81262312893fc8aaa54959cf993b in 2022. Summary of changes: sys/vfs/hammer2/hammer2_inode.c | 9 --------- sys/vfs/hammer2/hammer2_vnops.c | 15 --------------- sys/vfs/hammer2/hammer2_xops.c | 4 +--- 3 files changed, 1 insertion(+), 27 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a9d812fe50d71d63ed31c3ddc1bfdf452e4a8657 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Wed Jul 9 20:27:37 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Wed, 9 Jul 2025 20:27:37 -0700 (PDT) Subject: git: kern: pipe2() should return EINVAL on invalid flags Message-ID: <20250710032737.3B3122BD81F3@crater.dragonflybsd.org> commit 025a0b0eaeaa706eff1c8879d1b8af373bf0063b Author: Ricardo Branco Date: Fri Jun 20 14:21:16 2025 +0200 kern: pipe2() should return EINVAL on invalid flags Summary of changes: sys/kern/sys_pipe.c | 2 ++ 1 file changed, 2 insertions(+) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/025a0b0eaeaa706eff1c8879d1b8af373bf0063b -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Wed Jul 9 20:27:37 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Wed, 9 Jul 2025 20:27:37 -0700 (PDT) Subject: git: kern: Introduce F_MAXFD from NetBSD Message-ID: <20250710032737.5622B2BD81F5@crater.dragonflybsd.org> commit d724c3ba9646dfa0e68029dafaf13d4896c26360 Author: Ricardo Branco Date: Fri Jun 20 09:09:49 2025 +0200 kern: Introduce F_MAXFD from NetBSD Summary of changes: sys/kern/kern_descrip.c | 9 +++++++++ sys/sys/fcntl.h | 1 + 2 files changed, 10 insertions(+) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d724c3ba9646dfa0e68029dafaf13d4896c26360 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Wed Jul 9 20:27:37 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Wed, 9 Jul 2025 20:27:37 -0700 (PDT) Subject: git: kern: Add support for POSIX O_CLOFORK flag Message-ID: <20250710032737.79B782BD81F8@crater.dragonflybsd.org> commit dcc509c8852d34df1b0c73ce8507517b83dcc50a Author: Ricardo Branco Date: Thu Jun 19 23:26:46 2025 +0200 kern: Add support for POSIX O_CLOFORK flag Summary of changes: lib/libc/gen/dup3.c | 9 +++-- sys/kern/kern_descrip.c | 103 +++++++++++++++++++++++++++++++++++++++-------- sys/kern/sys_generic.c | 4 +- sys/kern/sys_pipe.c | 6 ++- sys/kern/uipc_syscalls.c | 18 ++++++++- sys/kern/uipc_usrreq.c | 4 ++ sys/kern/vfs_syscalls.c | 4 ++ sys/sys/fcntl.h | 12 +++++- sys/sys/filedesc.h | 7 +++- sys/sys/kern_syscall.h | 2 +- sys/sys/socket.h | 2 + 11 files changed, 141 insertions(+), 30 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dcc509c8852d34df1b0c73ce8507517b83dcc50a -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Wed Jul 9 20:27:37 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Wed, 9 Jul 2025 20:27:37 -0700 (PDT) Subject: git: test: Add bsd/dup_test Message-ID: <20250710032739.41FA02BD821C@crater.dragonflybsd.org> commit 35b35eab466554e06c66e459bc23d5a5e8998524 Author: Ricardo Branco Date: Sat Jun 21 07:37:08 2025 +0200 test: Add bsd/dup_test Summary of changes: test/bsd/dup_test/Makefile | 7 + test/bsd/dup_test/dup_test.c | 480 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 487 insertions(+) create mode 100644 test/bsd/dup_test/Makefile create mode 100644 test/bsd/dup_test/dup_test.c http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/35b35eab466554e06c66e459bc23d5a5e8998524 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Wed Jul 9 20:27:39 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Wed, 9 Jul 2025 20:27:39 -0700 (PDT) Subject: git: lib: Fix calls that naively set F_SETFD Message-ID: <20250710032739.59F692BD821E@crater.dragonflybsd.org> commit d61c4f1405c9d4b04cdc72a6136a6c43e32479d7 Author: Ricardo Branco Date: Sun Jun 22 14:53:17 2025 +0200 lib: Fix calls that naively set F_SETFD Summary of changes: lib/libc/gen/opendir.c | 5 ++++- lib/libc/stdio/fdopen.c | 5 +++-- lib/libc/stdio/freopen.c | 8 +++++--- lib/libc/stdio/mktemp.c | 2 +- lib/libfetch/common.c | 7 +++++-- 5 files changed, 18 insertions(+), 9 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d61c4f1405c9d4b04cdc72a6136a6c43e32479d7 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Wed Jul 9 20:27:39 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Wed, 9 Jul 2025 20:27:39 -0700 (PDT) Subject: git: tests: Add Illumos oclo tests for O_CLOEXEC & O_CLOFORK Message-ID: <20250710032742.4F7AA2BD8253@crater.dragonflybsd.org> commit 1905ae529d127b74fdb58620bcbfa58ca14d4774 Author: Ricardo Branco Date: Sun Jun 29 11:43:34 2025 +0200 tests: Add Illumos oclo tests for O_CLOEXEC & O_CLOFORK Taken from last commit b3ff81dc6673bee7f291d9d66a832cb3e1004f49 from https://github.com/illumos/illumos-gate/tree/master/usr/src/test/os-tests/tests/oclo Summary of changes: test/illumos/oclo/oclo.c | 1310 +++++++++++++++++++++++++++++++++++ test/illumos/oclo/oclo_errors.c | 193 ++++++ test/illumos/oclo/ocloexec_verify.c | 137 ++++ 3 files changed, 1640 insertions(+) create mode 100644 test/illumos/oclo/oclo.c create mode 100644 test/illumos/oclo/oclo_errors.c create mode 100644 test/illumos/oclo/ocloexec_verify.c http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1905ae529d127b74fdb58620bcbfa58ca14d4774 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Wed Jul 9 20:27:42 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Wed, 9 Jul 2025 20:27:42 -0700 (PDT) Subject: git: tests: Adapt Illumos oclo tests to DragonflyBSD Message-ID: <20250710032742.9713D2BD8259@crater.dragonflybsd.org> commit 5a3b3b97218d8eac97ffe879a1d4124aaf76b8c0 Author: Ricardo Branco Date: Sun Jun 29 11:44:38 2025 +0200 tests: Adapt Illumos oclo tests to DragonflyBSD Summary of changes: test/illumos/oclo/Makefile | 18 ++++++++ test/illumos/oclo/oclo.c | 89 ++++++++++++++++++++++++------------- test/illumos/oclo/oclo_errors.c | 25 +++++++---- test/illumos/oclo/ocloexec_verify.c | 44 +++++++++--------- 4 files changed, 117 insertions(+), 59 deletions(-) create mode 100644 test/illumos/oclo/Makefile http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5a3b3b97218d8eac97ffe879a1d4124aaf76b8c0 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Wed Jul 9 20:27:42 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Wed, 9 Jul 2025 20:27:42 -0700 (PDT) Subject: git: Update manpages for O_CLOFORK flag and others Message-ID: <20250710032742.B00AF2BD825B@crater.dragonflybsd.org> commit a7d91f8ef41435d0bbc63d285f94a882ecaf77b7 Author: Ricardo Branco Date: Thu Jul 3 21:00:29 2025 +0200 Update manpages for O_CLOFORK flag and others Summary of changes: lib/libc/gen/dup3.3 | 18 +++++++++-- lib/libc/sys/accept.2 | 16 +++++++++- lib/libc/sys/execve.2 | 7 +++-- lib/libc/sys/fcntl.2 | 79 ++++++++++++++++++++++++++++++++++++----------- lib/libc/sys/fork.2 | 12 ++++++- lib/libc/sys/open.2 | 17 +++++++++- lib/libc/sys/pipe.2 | 11 ++++++- lib/libc/sys/recv.2 | 3 +- lib/libc/sys/socket.2 | 10 +++++- lib/libc/sys/socketpair.2 | 5 +-- 10 files changed, 148 insertions(+), 30 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a7d91f8ef41435d0bbc63d285f94a882ecaf77b7 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Wed Jul 9 20:27:42 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Wed, 9 Jul 2025 20:27:42 -0700 (PDT) Subject: git: kernel - Minor adjustment to set_flags cast Message-ID: <20250710032742.CAC7C2BD825F@crater.dragonflybsd.org> commit 46e05447c9ae6ca5cb12b8b082cf1f7523b95fbd Author: Matthew Dillon Date: Wed Jul 9 20:26:09 2025 -0700 kernel - Minor adjustment to set_flags cast * filedesc flags are a char. Avoid potential future issues by typing it and cast the int argument from fsetfdflags() to clean the implementation up a bit. Leave the argument as an int for now. Summary of changes: sys/kern/kern_descrip.c | 4 ++-- sys/sys/filedesc.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/46e05447c9ae6ca5cb12b8b082cf1f7523b95fbd -- DragonFly BSD source repository From aly at crater.dragonflybsd.org Wed Jul 9 21:57:13 2025 From: aly at crater.dragonflybsd.org (Aaron LI) Date: Wed, 9 Jul 2025 21:57:13 -0700 (PDT) Subject: git: : Bump __DragonFly_version for F_MAXFD and O_CLOFORK Message-ID: <20250710045714.1137F2BD869E@crater.dragonflybsd.org> commit 6e0aed1ed649e7f71645963e0b275248271650d2 Author: Aaron LI Date: Thu Jul 10 12:56:27 2025 +0800 : Bump __DragonFly_version for F_MAXFD and O_CLOFORK Summary of changes: sys/sys/param.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6e0aed1ed649e7f71645963e0b275248271650d2 -- DragonFly BSD source repository From aly at crater.dragonflybsd.org Sun Jul 13 17:37:00 2025 From: aly at crater.dragonflybsd.org (Aaron LI) Date: Sun, 13 Jul 2025 17:37:00 -0700 (PDT) Subject: git: bge.4: Mention bnx.4 for PCIe NICs based on BCM57785/BCM5718 chips Message-ID: <20250714003701.105B42BE61DD@crater.dragonflybsd.org> commit 7e689847cf68e419e4c2aa0318ad21307b0ae387 Author: Aaron LI Date: Mon Jul 14 08:35:13 2025 +0800 bge.4: Mention bnx.4 for PCIe NICs based on BCM57785/BCM5718 chips Summary of changes: share/man/man4/bge.4 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7e689847cf68e419e4c2aa0318ad21307b0ae387 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Tue Jul 15 13:08:22 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Tue, 15 Jul 2025 13:08:22 -0700 (PDT) Subject: git: dsynth - Add -g option to mount */dports/dragonfly Message-ID: <20250715200822.DB9492BED334@crater.dragonflybsd.org> commit 60cde009199ad74da7fae1c9c958d9d5f8f93a1d Author: Matthew Dillon Date: Tue Jul 15 13:04:46 2025 -0700 dsynth - Add -g option to mount */dports/dragonfly * Used by the WITH_DPORTS option to make build-all to ask dsynth to null-mount */dports/dragonfly in addition to null-mount */dports, because */dports/dragonfly itself might be a sub-mount. Summary of changes: usr.bin/dsynth/build.c | 2 ++ usr.bin/dsynth/dsynth.1 | 7 ++++++- usr.bin/dsynth/dsynth.c | 7 ++++++- usr.bin/dsynth/dsynth.h | 2 ++ usr.bin/dsynth/mount.c | 8 ++++++++ 5 files changed, 24 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/60cde009199ad74da7fae1c9c958d9d5f8f93a1d -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Tue Jul 15 13:08:22 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Tue, 15 Jul 2025 13:08:22 -0700 (PDT) Subject: git: world - Fix make build-all WITH_DPORTS=yes Message-ID: <20250715200823.1048F2BED337@crater.dragonflybsd.org> commit 922213b4b515e7eb385e68932fec2d026521a19f Author: Matthew Dillon Date: Tue Jul 15 13:06:12 2025 -0700 world - Fix make build-all WITH_DPORTS=yes * Fix make build-all WITH_PORTS=yes by passing the new -g option to dsynth, so the /usr/src/dports.base/dragonfly subdirectory can be pasted onto /xports in its chroot. This is a terrible hack but ... it's not as terrible as other solutions. Reported-by: daftaupe Summary of changes: Makefile.inc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/922213b4b515e7eb385e68932fec2d026521a19f -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Tue Jul 15 13:09:40 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Tue, 15 Jul 2025 13:09:40 -0700 (PDT) Subject: git: sound - Attempt to fix freezes Message-ID: <20250715200940.9B1A92BED388@crater.dragonflybsd.org> commit 104a9f7db9e9c1e0d7c2a14e3747f3ea7c441baa Author: Matthew Dillon Date: Tue Jul 15 13:08:42 2025 -0700 sound - Attempt to fix freezes * Fix a bug where an interrupt can occur prior to the device being fully initialized. * Fix a bug where the interrupt can get stuck, causing a system crash. Nudged-by: servik Taken-From: FreeBSD Summary of changes: sys/dev/sound/pci/hda/hdac.c | 41 ++++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 13 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/104a9f7db9e9c1e0d7c2a14e3747f3ea7c441baa -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Wed Jul 16 15:14:48 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Wed, 16 Jul 2025 15:14:48 -0700 (PDT) Subject: git: world - Fix make build-all WITH_DPORTS=yes (2) Message-ID: <20250716221448.5163F2BF1F8E@crater.dragonflybsd.org> commit 5915db3332702dfdb82060a648962f889f6a691b Author: Matthew Dillon Date: Wed Jul 16 15:14:00 2025 -0700 world - Fix make build-all WITH_DPORTS=yes (2) * Use -y with pkg install when installing dragonfly-base Suggested-by: daftaupe Summary of changes: Makefile.inc1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5915db3332702dfdb82060a648962f889f6a691b -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Sat Jul 26 18:51:19 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Sat, 26 Jul 2025 18:51:19 -0700 (PDT) Subject: git: kernel - allow more NULL vm_object cases in vm_pageout_scan_active() Message-ID: <20250727015119.8E1E62C19C59@crater.dragonflybsd.org> commit c267aac0072dae6cf4ae874605f3f0659a2fc820 Author: Matthew Dillon Date: Sat Jul 26 18:49:24 2025 -0700 kernel - allow more NULL vm_object cases in vm_pageout_scan_active() * This code checks for NULL vm_objects in several places but missed a few. Add missing NULL checks. * Fixes reported NULL pointer kernel panics. Reported-by: karthik holla, Michael Neumann Summary of changes: sys/vm/vm_pageout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c267aac0072dae6cf4ae874605f3f0659a2fc820 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Sat Jul 26 18:52:10 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Sat, 26 Jul 2025 18:52:10 -0700 (PDT) Subject: git: DragonFly_RELEASE_6_4 kernel - allow more NULL vm_object cases in vm_pageout_scan_active() Message-ID: <20250727015210.DBC492C19C7F@crater.dragonflybsd.org> commit e898ef78dc16b5ef0434ac8e30ad352a1ac8cc42 Author: Matthew Dillon Date: Sat Jul 26 18:49:24 2025 -0700 kernel - allow more NULL vm_object cases in vm_pageout_scan_active() * This code checks for NULL vm_objects in several places but missed a few. Add missing NULL checks. * Fixes reported NULL pointer kernel panics. Reported-by: karthik holla, Michael Neumann Summary of changes: sys/vm/vm_pageout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e898ef78dc16b5ef0434ac8e30ad352a1ac8cc42 -- DragonFly BSD source repository From mneumann at crater.dragonflybsd.org Tue Jul 29 12:03:43 2025 From: mneumann at crater.dragonflybsd.org (Michael Neumann) Date: Tue, 29 Jul 2025 12:03:43 -0700 (PDT) Subject: git: dm_target_crypt - make the next generation (ng) module the default Message-ID: <20250729190343.515612C25A45@crater.dragonflybsd.org> commit f9c79d28d9ec0c95b4e78c6374f774077944db5e Author: Michael Neumann Date: Tue Jul 29 20:23:45 2025 +0200 dm_target_crypt - make the next generation (ng) module the default * The next generation version has been thoroughly tested by me for the last few months * Remove the "legacy" dm_target_crypt code and module * Rename dm_target_crypt_ng -> dm_target_crypt (in the source tree dm/crypt_ng -> dm/crypt) * Whenever you read "dm_target_crypt_ng" in old commit messages, this is now the current module (just named "dm_target_crypt"). Sorry for the confusion * swapon(8) will now pick up the new module, as "dm_target_crypt" is hard-coded in it * Check your /boot/loader.conf and change `dm_target_crypt_ng_load=YES` to `dm_target_crypt_load=YES` in case of need Discussed-with: dillon Summary of changes: sys/dev/disk/dm/Makefile | 2 +- sys/dev/disk/dm/crypt/Makefile | 2 +- sys/dev/disk/dm/crypt/dm_target_crypt.c | 1196 ++++++++++------------------ sys/dev/disk/dm/crypt_ng/Makefile | 6 - sys/dev/disk/dm/crypt_ng/dm_target_crypt.c | 1103 ------------------------- 5 files changed, 401 insertions(+), 1908 deletions(-) delete mode 100644 sys/dev/disk/dm/crypt_ng/Makefile delete mode 100644 sys/dev/disk/dm/crypt_ng/dm_target_crypt.c http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f9c79d28d9ec0c95b4e78c6374f774077944db5e -- DragonFly BSD source repository From mneumann at crater.dragonflybsd.org Tue Jul 29 12:36:36 2025 From: mneumann at crater.dragonflybsd.org (Michael Neumann) Date: Tue, 29 Jul 2025 12:36:36 -0700 (PDT) Subject: git: dm_target_crypt - correctly print number of write buffers Message-ID: <20250729193636.7A1872C25BE7@crater.dragonflybsd.org> commit f808c493233dd62044022fe4953c0e74ee55d9f7 Author: Michael Neumann Date: Tue Jul 29 21:33:06 2025 +0200 dm_target_crypt - correctly print number of write buffers Btw, to verify that I actually "just" moved "dm/crypt_ng" -> "dm/crypt" in the previous commit, run: git diff \ c267aac007:sys/dev/disk/dm/crypt_ng/dm_target_crypt.c \ f9c79d28d9:sys/dev/disk/dm/crypt/dm_target_crypt.c Unfortunately, git isn't smart enough. Summary of changes: sys/dev/disk/dm/crypt/dm_target_crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f808c493233dd62044022fe4953c0e74ee55d9f7 -- DragonFly BSD source repository From mneumann at crater.dragonflybsd.org Tue Jul 29 13:04:43 2025 From: mneumann at crater.dragonflybsd.org (Michael Neumann) Date: Tue, 29 Jul 2025 13:04:43 -0700 (PDT) Subject: git: uvc - Initial port of webcam driver from FreeBSD Message-ID: <20250729200448.485A12C25DFE@crater.dragonflybsd.org> commit a79869670e17876395a0e3300fda2f4471d896cb Author: Michael Neumann Date: Tue May 6 16:03:42 2025 +0200 uvc - Initial port of webcam driver from FreeBSD This adds preliminary support for USB Video Class (UVC) devices or so called "webcams". The port is based on [1] (branch feature-uvc-prepare-submit3) as of May 10, 2025. Tested with the built-in USB HD Webcam of my Panasonic CF-SV7 as well as with a no-name external webcam. Works in chrome, cheese and with ffmpeg. Does not work in Firefox (waits for permissions) or pwcview. To record from webcam with ffmpeg: ffmpeg -f v4l2 -i /dev/video0 -vcodec rawvideo record.mkv After closing the video device, you still have to kldunload uvc and kldload uvc again, otherwise it either stops working or you'll get strange artifacts. Here are the additions I made: * Applied some automatic DragonFly conversions using the following Makefile script: replace: ruby -i -p -e '$$_.gsub!(%r[dev/usb], "bus/u4b")' *.c *.h ruby -i -p -e '$$_.gsub!(%r[(malloc|free)\(], "k\\1(")' *.c *.h ruby -i -p -e '$$_.gsub!(%r{([a-z]*)printf\(}, "k\\1printf(")' *.c *.h * Add STAILQ_FOREACH_SAFE macros adapted from netproto/802_11/ieee80211_dragonfly.h * Add atomic_subtract_64 macro * Add kqueue support, replacing FreeBSD's poll code * Fix mmap implementation * Properly size uvc_data_request packages for UVC versions >= 1.5 to 48 bytes (taken from OpenBSD). This is required to recognize my webcam. [1]: https://github.com/lwhsu/freebsd-src/tree/feature-uvc-prepare-submit3 Summary of changes: sys/bus/u4b/Makefile | 2 +- sys/bus/u4b/quirk/usb_quirk.c | 4 + sys/bus/u4b/quirk/usb_quirk.h | 23 + sys/bus/u4b/usb.h | 4 + sys/bus/u4b/usb/Makefile | 2 +- sys/bus/u4b/usb_device.c | 147 ++ sys/bus/u4b/usb_device.h | 4 + sys/bus/u4b/usb_transfer.c | 26 + sys/bus/u4b/usb_transfer.h | 1 + sys/bus/u4b/usbdevs | 1 + sys/bus/u4b/usbdi.h | 3 + sys/bus/u4b/{gadget/g_modem => uvc}/Makefile | 19 +- sys/bus/u4b/uvc/uvc_buf.c | 762 +++++++ sys/bus/u4b/uvc/uvc_buf.h | 116 ++ sys/bus/u4b/uvc/uvc_ctrls.c | 1163 +++++++++++ sys/bus/u4b/uvc/uvc_drv.c | 2789 ++++++++++++++++++++++++++ sys/bus/u4b/uvc/uvc_drv.h | 780 +++++++ sys/bus/u4b/uvc/uvc_v4l2.c | 799 ++++++++ sys/bus/u4b/uvc/uvc_v4l2.h | 100 + sys/contrib/v4l/videodev.h | 367 ++++ sys/contrib/v4l/videodev2.h | 1907 ++++++++++++++++++ sys/cpu/x86_64/include/atomic.h | 1 + 22 files changed, 9011 insertions(+), 9 deletions(-) copy sys/bus/u4b/{gadget/g_modem => uvc}/Makefile (82%) create mode 100644 sys/bus/u4b/uvc/uvc_buf.c create mode 100644 sys/bus/u4b/uvc/uvc_buf.h create mode 100644 sys/bus/u4b/uvc/uvc_ctrls.c create mode 100644 sys/bus/u4b/uvc/uvc_drv.c create mode 100644 sys/bus/u4b/uvc/uvc_drv.h create mode 100644 sys/bus/u4b/uvc/uvc_v4l2.c create mode 100644 sys/bus/u4b/uvc/uvc_v4l2.h create mode 100644 sys/contrib/v4l/videodev.h create mode 100644 sys/contrib/v4l/videodev2.h http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a79869670e17876395a0e3300fda2f4471d896cb -- DragonFly BSD source repository From mneumann at crater.dragonflybsd.org Tue Jul 29 15:18:14 2025 From: mneumann at crater.dragonflybsd.org (Michael Neumann) Date: Tue, 29 Jul 2025 15:18:14 -0700 (PDT) Subject: git: uvc - use ksnprintf Message-ID: <20250729221815.073812C26314@crater.dragonflybsd.org> commit b1fd59ae6ced913dbb3793ba1a0ec8fa9531770b Author: Michael Neumann Date: Wed Jul 30 00:12:56 2025 +0200 uvc - use ksnprintf Ensures that we do not accidentially overwrite the stack frame Summary of changes: sys/bus/u4b/uvc/uvc_buf.c | 1 + sys/bus/u4b/uvc/uvc_ctrls.c | 58 ++++++++++++++++++++++----------------------- sys/bus/u4b/uvc/uvc_drv.c | 6 +++-- 3 files changed, 34 insertions(+), 31 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b1fd59ae6ced913dbb3793ba1a0ec8fa9531770b -- DragonFly BSD source repository