From dillon at crater.dragonflybsd.org Tue Nov 4 10:28:22 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Tue, 4 Nov 2025 10:28:22 -0800 (PST) Subject: git: hammer2 - Enhance "show" (debugging feature) Message-ID: <20251104182822.464032DB3297@crater.dragonflybsd.org> commit 9bf50b26854a8507240eab6c5c6cfb87f8f53c31 Author: Matthew Dillon Date: Tue Nov 4 10:27:25 2025 -0800 hammer2 - Enhance "show" (debugging feature) Enhance the hammer2 show command to allow a chainspec to be specified to dump a specific chain. The output will also print the xxhash64 value for the buffer. Summary of changes: sbin/hammer2/cmd_debug.c | 30 +++++++++++++++++++++++++++++- sbin/hammer2/hammer2.8 | 9 ++++++++- sbin/hammer2/hammer2.h | 2 +- sbin/hammer2/main.c | 18 ++++++++++++------ 4 files changed, 50 insertions(+), 9 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9bf50b26854a8507240eab6c5c6cfb87f8f53c31 -- DragonFly BSD source repository From aly at crater.dragonflybsd.org Sat Nov 8 21:24:18 2025 From: aly at crater.dragonflybsd.org (Aaron LI) Date: Sat, 8 Nov 2025 21:24:18 -0800 (PST) Subject: git: libusb: Implement v1.0 libusb_get_version() API Message-ID: <20251109052418.B59DC2DC4E82@crater.dragonflybsd.org> commit 562980527a90b306615806248ec16ac270412443 Author: Aaron LI Date: Sun Nov 9 11:58:06 2025 +0800 libusb: Implement v1.0 libusb_get_version() API It seems our USB stack was synced from FreeBSD in 2016, so I inherit the 'nano = 2016' version info from FreeBSD. This function is at least used by 'sysutils/nut' to fill the 'driver.version.usb' metadata in 'usbhid-ups' driver. The return value doesn't matter at all. Obtained-from: FreeBSD (commit 14b896ce80daad378a70a125ca15c2e23cd8d34b) Summary of changes: lib/libusb/Makefile | 1 + lib/libusb/libusb.3 | 6 +++++- lib/libusb/libusb.h | 10 ++++++++++ lib/libusb/libusb10.c | 15 +++++++++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/562980527a90b306615806248ec16ac270412443 -- DragonFly BSD source repository From aly at crater.dragonflybsd.org Sat Nov 8 21:24:18 2025 From: aly at crater.dragonflybsd.org (Aaron LI) Date: Sat, 8 Nov 2025 21:24:18 -0800 (PST) Subject: git: libusb: Implement v1.0 libusb_get_port_number() API Message-ID: <20251109052418.D23F92DC4E84@crater.dragonflybsd.org> commit b7cdd21eaa2f49f6aa6f00072f6dcb211cd90523 Author: Aaron LI Date: Sun Nov 9 13:08:19 2025 +0800 libusb: Implement v1.0 libusb_get_port_number() API This function is also used by 'sysutils/nut' to scan the USB devices. However, nut uses dlopen() to determine the presence of this API and allows it to be absent. Obtained-from: FreeBSD (commit 0f2c706643ff211ce1e1eb0cfbc3c05bc67f2311) Summary of changes: lib/libusb/Makefile | 1 + lib/libusb/libusb.3 | 6 ++++++ lib/libusb/libusb.h | 1 + lib/libusb/libusb10.c | 8 ++++++++ 4 files changed, 16 insertions(+) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b7cdd21eaa2f49f6aa6f00072f6dcb211cd90523 -- DragonFly BSD source repository From aly at crater.dragonflybsd.org Sat Nov 8 21:24:18 2025 From: aly at crater.dragonflybsd.org (Aaron LI) Date: Sat, 8 Nov 2025 21:24:18 -0800 (PST) Subject: git: libusb: Implement v1.0 libusb_set_auto_detach_kernel_driver() API Message-ID: <20251109052418.F25B12DC4E87@crater.dragonflybsd.org> commit fe983b2883932472dc6a2055a849f7814d93a898 Author: Aaron LI Date: Sun Nov 9 13:11:24 2025 +0800 libusb: Implement v1.0 libusb_set_auto_detach_kernel_driver() API I noticed this function when I was porting the libusb_get_port_number() function, so port this as well. Obtained-from: FreeBSD (commits 5b40d9601c72fbb04f32437d529dbf51252dc31e and a3d81a8a8a4f8379b0870238ae417f7986d7d299) Summary of changes: lib/libusb/Makefile | 1 + lib/libusb/libusb.3 | 11 +++++++++++ lib/libusb/libusb.h | 1 + lib/libusb/libusb10.c | 28 +++++++++++++++++++++++++--- lib/libusb/libusb20.c | 6 ++++++ lib/libusb/libusb20_int.h | 3 +++ 6 files changed, 47 insertions(+), 3 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fe983b2883932472dc6a2055a849f7814d93a898 -- DragonFly BSD source repository From aly at crater.dragonflybsd.org Sat Nov 8 21:24:19 2025 From: aly at crater.dragonflybsd.org (Aaron LI) Date: Sat, 8 Nov 2025 21:24:19 -0800 (PST) Subject: git: libusb: Trim trailing whitespace Message-ID: <20251109052419.187EA2DC4E8A@crater.dragonflybsd.org> commit a52efb1c474bb5d861e8a2c5e99b4bc9bcef060b Author: Aaron LI Date: Sun Nov 9 13:12:52 2025 +0800 libusb: Trim trailing whitespace Summary of changes: lib/libusb/libusb.h | 4 ++-- lib/libusb/libusb20.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a52efb1c474bb5d861e8a2c5e99b4bc9bcef060b -- DragonFly BSD source repository From aly at crater.dragonflybsd.org Sat Nov 8 21:24:19 2025 From: aly at crater.dragonflybsd.org (Aaron LI) Date: Sat, 8 Nov 2025 21:24:19 -0800 (PST) Subject: git: : Bump version for libusb(3) update Message-ID: <20251109052419.3B4CD2DC4E8D@crater.dragonflybsd.org> commit e3289943f50e07a01d419666bca1f3a2db930456 Author: Aaron LI Date: Sun Nov 9 13:23:44 2025 +0800 : Bump version for libusb(3) update Summary of changes: sys/sys/param.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e3289943f50e07a01d419666bca1f3a2db930456 -- DragonFly BSD source repository From mneumann at crater.dragonflybsd.org Sun Nov 9 06:27:02 2025 From: mneumann at crater.dragonflybsd.org (Michael Neumann) Date: Sun, 9 Nov 2025 06:27:02 -0800 (PST) Subject: git: test: Integrate benchmark into cryptoapi_test util Message-ID: <20251109142703.5A2862DC621F@crater.dragonflybsd.org> commit bd5bbd297764424fe14859827f0c1f6cc047844a Author: Michael Neumann Date: Sun Nov 9 14:23:24 2025 +0100 test: Integrate benchmark into cryptoapi_test util Print execution times and add "-n REPETITIONS" option. Take the benchmark results with a grain of salt when comparing the cryptoapi results against the cryptodev results, as we do not use the AESNI CPU instruction when crytoapi is used outside the kernel. While there, parse CLI options using getopt(3) and add a few more test fixtures. Summary of changes: test/crypto/cryptoapi/Makefile | 11 ++- test/crypto/cryptoapi/crypto-api.c | 31 +++++---- test/crypto/cryptoapi/crypto-dev.c | 44 ++++++------ test/crypto/cryptoapi/cryptoapi_test.c | 116 +++++++++++++++++++++++++------ test/crypto/cryptoapi/expected_output.md | 60 ++++++++++++++++ test/crypto/cryptoapi/fixtures.csv | 4 ++ 6 files changed, 207 insertions(+), 59 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bd5bbd297764424fe14859827f0c1f6cc047844a -- DragonFly BSD source repository From mneumann at crater.dragonflybsd.org Sun Nov 9 06:27:03 2025 From: mneumann at crater.dragonflybsd.org (Michael Neumann) Date: Sun, 9 Nov 2025 06:27:03 -0800 (PST) Subject: git: cryptoapi: inline functions and s/blocklen/blocksize/ Message-ID: <20251109142703.8AACF2DC6221@crater.dragonflybsd.org> commit 2d6b98ca36621f8e505db43c9c7a8348427c1839 Author: Michael Neumann Date: Sun Nov 9 15:17:32 2025 +0100 cryptoapi: inline functions and s/blocklen/blocksize/ - Inline a few functions which previously were macros - Consistently use "blocksize" instead of "blocklen" - Use uint8_t for alpha instead of int - Use memset() in proximity of memcpy() - Non-functional change Summary of changes: sys/crypto/cryptoapi/cryptoapi.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2d6b98ca36621f8e505db43c9c7a8348427c1839 -- DragonFly BSD source repository From mneumann at crater.dragonflybsd.org Sun Nov 9 08:42:05 2025 From: mneumann at crater.dragonflybsd.org (Michael Neumann) Date: Sun, 9 Nov 2025 08:42:05 -0800 (PST) Subject: git: cryptoapi: Revert inlining of some crypto functions Message-ID: <20251109164205.3A9802DC6B07@crater.dragonflybsd.org> commit 7e0e24c3e958498103fac56b94465a53703d4d8b Author: Michael Neumann Date: Sun Nov 9 17:40:12 2025 +0100 cryptoapi: Revert inlining of some crypto functions As this breaks the build due to gcc not able to inline indirect function calls. Summary of changes: sys/crypto/cryptoapi/cryptoapi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7e0e24c3e958498103fac56b94465a53703d4d8b -- DragonFly BSD source repository From mneumann at crater.dragonflybsd.org Sun Nov 9 08:45:21 2025 From: mneumann at crater.dragonflybsd.org (Michael Neumann) Date: Sun, 9 Nov 2025 08:45:21 -0800 (PST) Subject: git: test: Also test CBC variants of cryptoapi Message-ID: <20251109164521.A8B3A2DC6B7F@crater.dragonflybsd.org> commit 9536fb97c1d9d1c417f87cc621cb32d85bbd610c Author: Michael Neumann Date: Sun Nov 9 17:43:28 2025 +0100 test: Also test CBC variants of cryptoapi Summary of changes: test/crypto/cryptoapi/crypto-api.c | 12 + test/crypto/cryptoapi/crypto-dev.c | 12 + test/crypto/cryptoapi/expected_output.md | 1800 ++++++++++++++++++++++++++++++ test/crypto/cryptoapi/fixtures.csv | 120 ++ 4 files changed, 1944 insertions(+) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9536fb97c1d9d1c417f87cc621cb32d85bbd610c -- DragonFly BSD source repository From mneumann at crater.dragonflybsd.org Tue Nov 11 13:19:51 2025 From: mneumann at crater.dragonflybsd.org (Michael Neumann) Date: Tue, 11 Nov 2025 13:19:51 -0800 (PST) Subject: git: test: import more test cases to cryptapi_test Message-ID: <20251111211951.353842DD0110@crater.dragonflybsd.org> commit 986a42893fd2482955a1b431c226732c4001c6e0 Author: Michael Neumann Date: Sun Nov 9 22:42:57 2025 +0100 test: import more test cases to cryptapi_test - Import test cases from test/testcases/crypto/* except for aesctr which we do not have support for. - Dedup fixtures. We are testing symmetric ciphers here, so there is no need to keep duplicates of plaintext -> ciphertext and ciphertext -> plaintext. - Always test in both directions: Encrypt plaintext and decrypt ciphertext. - Store ct (ciphertext) in fixtures.csv. Summary of changes: test/crypto/cryptoapi/Makefile | 10 +- test/crypto/cryptoapi/crypto-api.c | 30 +- test/crypto/cryptoapi/crypto-dev.c | 30 +- test/crypto/cryptoapi/cryptoapi_test.c | 449 +- test/crypto/cryptoapi/expected_output.md | 5462 ----------------------- test/crypto/cryptoapi/fixtures.csv | 4613 +++++++++++++++++-- test/testcases/Makefile | 1 - test/testcases/crypto/Makefile | 3 - test/testcases/crypto/aes/Makefile | 4 - test/testcases/crypto/aes/aestest.c | 366 -- test/testcases/crypto/aes/ecbnk44.txt | 779 ---- test/testcases/crypto/aes/ecbnk48.txt | 1547 ------- test/testcases/crypto/aes/ecbnt44.txt | 779 ---- test/testcases/crypto/aes/ecbnt48.txt | 779 ---- test/testcases/crypto/aes/ecbvk44.txt | 398 -- test/testcases/crypto/aes/ecbvk48.txt | 782 ---- test/testcases/crypto/aes/ecbvt44.txt | 398 -- test/testcases/crypto/aes/ecbvt48.txt | 398 -- test/testcases/crypto/aesctr/Makefile | 4 - test/testcases/crypto/aesctr/aesctr.c | 295 -- test/testcases/crypto/aesxts/Makefile | 4 - test/testcases/crypto/aesxts/aes_xts.c | 1848 -------- test/testcases/crypto/serpent/Makefile | 4 - test/testcases/crypto/serpent/serpent_test.c | 394 -- test/testcases/crypto/serpent/serpentecb_vk.txt | 2334 ---------- test/testcases/crypto/serpent/serpentecb_vt.txt | 1566 ------- test/testcases/crypto/twofish/Makefile | 4 - test/testcases/crypto/twofish/twofish_test.c | 394 -- test/testcases/crypto/twofish/twofishecb_vk.txt | 2334 ---------- test/testcases/crypto/twofish/twofishecb_vt.txt | 1566 ------- 30 files changed, 4581 insertions(+), 22994 deletions(-) delete mode 100644 test/crypto/cryptoapi/expected_output.md delete mode 100644 test/testcases/crypto/Makefile delete mode 100644 test/testcases/crypto/aes/Makefile delete mode 100644 test/testcases/crypto/aes/aestest.c delete mode 100644 test/testcases/crypto/aes/ecbnk44.txt delete mode 100644 test/testcases/crypto/aes/ecbnk48.txt delete mode 100644 test/testcases/crypto/aes/ecbnt44.txt delete mode 100644 test/testcases/crypto/aes/ecbnt48.txt delete mode 100644 test/testcases/crypto/aes/ecbvk44.txt delete mode 100644 test/testcases/crypto/aes/ecbvk48.txt delete mode 100644 test/testcases/crypto/aes/ecbvt44.txt delete mode 100644 test/testcases/crypto/aes/ecbvt48.txt delete mode 100644 test/testcases/crypto/aesctr/Makefile delete mode 100644 test/testcases/crypto/aesctr/aesctr.c delete mode 100644 test/testcases/crypto/aesxts/Makefile delete mode 100644 test/testcases/crypto/aesxts/aes_xts.c delete mode 100644 test/testcases/crypto/serpent/Makefile delete mode 100644 test/testcases/crypto/serpent/serpent_test.c delete mode 100644 test/testcases/crypto/serpent/serpentecb_vk.txt delete mode 100644 test/testcases/crypto/serpent/serpentecb_vt.txt delete mode 100644 test/testcases/crypto/twofish/Makefile delete mode 100644 test/testcases/crypto/twofish/twofish_test.c delete mode 100644 test/testcases/crypto/twofish/twofishecb_vk.txt delete mode 100644 test/testcases/crypto/twofish/twofishecb_vt.txt http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/986a42893fd2482955a1b431c226732c4001c6e0 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Mon Nov 17 18:24:09 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Mon, 17 Nov 2025 18:24:09 -0800 (PST) Subject: git: kdump - Add -h option to dump data as hex Message-ID: <20251118022409.B031A2DE7B48@crater.dragonflybsd.org> commit d30f694957490bcecc2e6ad4f63ce68b3b39987a Author: Matthew Dillon Date: Mon Nov 17 18:14:11 2025 -0800 kdump - Add -h option to dump data as hex * Add -h option, dumps data as hex instead of ascii. Summary of changes: usr.bin/kdump/kdump.1 | 2 ++ usr.bin/kdump/kdump.c | 89 +++++++++++++++++++++++++++++++-------------------- 2 files changed, 57 insertions(+), 34 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d30f694957490bcecc2e6ad4f63ce68b3b39987a -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Mon Nov 17 18:24:09 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Mon, 17 Nov 2025 18:24:09 -0800 (PST) Subject: git: hammer2 - disable FIOSEEKHOLE Message-ID: <20251118022409.C8EB12DE7B4A@crater.dragonflybsd.org> commit 0d0182bdb451dfc740da6d92f6d849e2e6496cc8 Author: Matthew Dillon Date: Mon Nov 17 18:21:42 2025 -0800 hammer2 - disable FIOSEEKHOLE * This function is returning incorrect results and needs more work. Disable for now. Certain portions of the hammer2 btree may not yet be synchronized even when the file buffers are synced. A SEEK_HOLE operation just after a file is written but prior to the next full filesystem may return incorrect data. And there are other issues with the H2 implementation too. So... just disable it for now. * Fixes make configure; make sequences in dports where grep uses SEEK_HOLE to try to locate any large holes in a file. Summary of changes: sys/vfs/hammer2/hammer2_ioctl.c | 4 ++++ 1 file changed, 4 insertions(+) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0d0182bdb451dfc740da6d92f6d849e2e6496cc8 -- DragonFly BSD source repository From dillon at crater.dragonflybsd.org Mon Nov 17 18:39:47 2025 From: dillon at crater.dragonflybsd.org (Matthew Dillon) Date: Mon, 17 Nov 2025 18:39:47 -0800 (PST) Subject: git: DragonFly_RELEASE_6_4 kdump - Add -h option to dump data as hex Message-ID: <20251118023947.BFF552DE7C4D@crater.dragonflybsd.org> commit 8ac8573fe56faf48fd92cb9c86d45e275c973426 Author: Matthew Dillon Date: Mon Nov 17 18:14:11 2025 -0800 kdump - Add -h option to dump data as hex * Add -h option, dumps data as hex instead of ascii. Summary of changes: usr.bin/kdump/kdump.1 | 2 ++ usr.bin/kdump/kdump.c | 89 +++++++++++++++++++++++++++++++-------------------- 2 files changed, 57 insertions(+), 34 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8ac8573fe56faf48fd92cb9c86d45e275c973426 -- DragonFly BSD source repository From ivadasz at crater.dragonflybsd.org Sun Nov 30 07:18:37 2025 From: ivadasz at crater.dragonflybsd.org (Imre Vadasz) Date: Sun, 30 Nov 2025 07:18:37 -0800 (PST) Subject: git: virtio_blk - Enable D_KVABIO API. Message-ID: <20251130151837.41E952E18453@crater.dragonflybsd.org> commit d6d89df42c4e724ff8531d4d63a9e61c4f6ce236 Author: Imre Vad??sz Date: Sun Nov 30 16:17:39 2025 +0100 virtio_blk - Enable D_KVABIO API. This should avoid some unnecessary page invalidations. This driver already was compliant, since it never accesses any of the data in the bio buffer. Summary of changes: sys/dev/virtual/virtio/block/virtio_blk.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d6d89df42c4e724ff8531d4d63a9e61c4f6ce236 -- DragonFly BSD source repository From ivadasz at crater.dragonflybsd.org Sun Nov 30 07:18:37 2025 From: ivadasz at crater.dragonflybsd.org (Imre Vadasz) Date: Sun, 30 Nov 2025 07:18:37 -0800 (PST) Subject: git: cd9660 - Fixup typo from fb62a9282b1, to apply *upper* limit to hash table size. Message-ID: <20251130151837.26A652E18451@crater.dragonflybsd.org> commit 17f49b39bc2994e21aab8da492f710e23950d4c0 Author: Imre Vad??sz Date: Sun Nov 30 16:18:03 2025 +0100 cd9660 - Fixup typo from fb62a9282b1, to apply *upper* limit to hash table size. Summary of changes: sys/vfs/isofs/cd9660/cd9660_node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/17f49b39bc2994e21aab8da492f710e23950d4c0 -- DragonFly BSD source repository