aboutsummaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* t_ptrace_wait.c: clean up trailing whitespaceEnji Cooper2 days1-12/+12
| | | | | | This is being done to aid with future potential updates of this file. MFC after: 1 week
* blocklist: blacklist: Chase recent upstream changesJose Luis Duran3 days2-17/+17
| | | | MFC after: 3 days
* MFV: Import blocklist 2026-02-07 (10a907f)Jose Luis Duran3 days5-64/+67
| | | | | | | | | | Merge commit 'a39ba5e2935176fe982235556e46ba3f51178187' Changes: https://github.com/zoulasc/blocklist/compare/8a4b011...10a907f MFC after: 3 days
* libdiff: Simplify truncation detectionDag-Erling Smørgrav6 days2-6/+7
| | | | | | | | | | | | | | | * Adjust the comment to reflect the fact that SIGBUS can occur not only if the file is truncated, but also if an I/O error occurs while paging in any part of it. * Instead of setting a flag, just return EIO. * Adjust the unit test accordingly. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: thj, kevans Differential Revision: https://reviews.freebsd.org/D55108
* rpc: correct resultproc_t's typeBrooks Davis8 days1-2/+3
| | | | | | | | | | | | It takes exactly three arguments of known type. Tweak the types of various resultproc_t functions to match the type (mostly added const to struct pointers) allowing us to drop casts. Effort: CHERI upstreaming Reviewed by: vangyzen, glebius Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D54941
* MFV less v691Xin LI8 days48-1326/+2593
|\ | | | | | | | | Relnotes: yes MFC after: 2 weeks
* | contrib/spleen: Update to 2.2.OAlexander Ziaee9 days9-129/+1669
| | | | | | | | | | | | | | | | | | | | | | | | This release adds several new characters critical to the manual pages that were previously missing on high-dpi displays: em-dash, en-dash, hyphen, angle brackets, white square, dagger, and double dagger. It also features improved alignment for numerous characters in different sizes. Thanks: Fredric Cambus MFC after: 3 days Discussed with: emaste
* | gtest.cc: declare fail_if_no_test_linked flagEnji Cooper13 days1-0/+1
| | | | | | | | | | | | | | | | | | | | Clang's -Wmissing-variable-declarations flags this as an issue since the flag is only used in `gtest.cc`. Declare the flag beforehand to ensure that the variable scope is properly limited to `gtest.cc`. MFC after: 1 week MFC with: 46333229c6a0187ebf231805682ee0bceed704d1 Ref: https://github.com/google/googletest/pull/4898
* | GoogleTest: import 1.17.0Enji Cooper13 days61-916/+2684
| | | | | | | | | | | | | | | | | | | | | | | | The changes between the two versions can be found in this diff of the two release tags: https://github.com/google/googletest/compare/v1.15.2...v1.17.0 One notable change is that GoogleTest 1.17.0 now requires C++-17 to build. MFC after: 1 week Merge commit '3a4c29b5bed4ea20266ad9371fbfdc6bca088f92'
* | capsicum-test: Move out of contribEd Maste13 days35-9071/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Google developed the Capsicum unit test suite[1] as part of the Capsicum-Linux[2] project, based on unit tests that existed in FreeBSD and unit tests developed as part of the initial Capsicum-Linux port. Capsicum-Linux was archived as of October 31, 2022 and is no longer being maintained. FreeBSD is currently the only consumer of and contributor to the test suite. Move the src into tests/sys/capsicum to simplify ongoing maintenance. The makefiles were deleted as we (continue to) use the existing bespoke FreeBSD Makefile, and CONTRIBUTING.md was removed as the Google CLA is no longer applicable. [1] https://github.com/google/capsicum-test [2] https://github.com/google/capsicum-linux Reviewed by: asomers, oshogbo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54917
* | netbsd-tests: Fix regcomp_too_big flakinessMark Johnston2026-01-271-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test sometimes crashes with ASLR enabled. This seems to happen when regcomp() grows the process stack and happens to run into the virtual memory limit set at the beginning of the test. ASLR triggers the problem since it introduces a bit of fragmentation and thus introduces cases where stack allocation can be the trigger of virtual memory exhaustion, rather than dynamic memory allocation in regcomp(). Make the test stable by priming the stack before doing anything else. This effectively reserves 16MB of virtual memory for the stack, which in practice is enough to make the test stable on amd64. PR: 259971 Reviewed by: ngie, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54880
* | netbsd-tests t_regex_att: Use __nonstring for a non-string constantJohn Baldwin2026-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | Fixes the following warning from GCC 15: contrib/netbsd-tests/lib/libc/regex/t_regex_att.c:54:30: error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (4 chars into 3 available) [-Werror=unterminated-string-initialization] 54 | static const char delim[3] = "\\\\\0"; | ^~~~~~~~ Reviewed by: ngie, imp, dim Differential Revision: https://reviews.freebsd.org/D54866
* | Merge commit 81b20e110b3f from llvm git (by Roland McGrath):John Baldwin2026-01-276-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [libc++] Work around new GCC 15 type_traits builtins that can't be used as Clang's can (#137871) GCC 15 has added builtins for various C++ type traits that Clang already had. Since `__has_builtin(...)` now finds these, the #if branches previously only used for Clang are now used for GCC 15. However, GCC 15 requires that these builtins only be used in type aliases, not in template aliases. For now, just don't use the `__has_builtin(...)` branches under newer GCC versions, so both 14 and 15 work during the transition. This can be cleaned up later to use all the GCC 15 builtins available. Fixed: #137704 Fixed: #117319 Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D54865
* | bnxt_re/libbnxtre: Add support for Variable WQE on BCM576xx controllersSreekanth Reddy2026-01-274-11/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Variable size WQE means that each send Work Queue Entry to HW can use different WQE sizes as opposed to the static WQE size on the current devices. Set variable WQE mode for BCM576xx devices. Depth of the Queue will be a multiple of slot which is 16 bytes. The number of slots should be a multiple of 256 as per the HW requirement. Initialize the Software shadow queue to hold requests equal to the number of slots. Reviewed by: ssaxena Differential Revision: https://reviews.freebsd.org/D54525 MFC after: 3 days
* | bnxt_re/libbnxtre: Add RoCE support for BCM576xx controllersSreekanth Reddy2026-01-274-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added RoCE support for BCM576xx controllers with below changes, 1. Update the BAR offsets for handling BCM576xx controllers. Use the values populated by the L2 driver for getting the Doorbell offsets. 2. Use msn index instead of tail to pull psn table entry. 3. Temporarily disable dbr pacing feature untill it is fully implemented. 4. Add support for 400G speed. Reviewed by: ssaxena Differential Revision: https://reviews.freebsd.org/D54521 MFC after: 3 days
* | Add pdrfork to OpenBSMAlan Somers2026-01-262-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | It's necessary for auditd to be able to log its events. Note that the recently added pdwait() syscall is only auditable because an audit event of that name was preemptively added back in 2012. PR: 292739 MFC after: 1 week Fixes: 5c2ee618d5e "sys: add pdrfork(2)" Sponsored by: ConnectWise Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D54897
* | libc++ inttypes.h: define __STDC_CONSTANT_MACROS and __STDC_LIMIT_MACROSDimitry Andric2026-01-231-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | Before transitively including the base version of inttypes.h, define __STDC_CONSTANT_MACROS and __STDC_LIMIT_MACROS, because the base inttypes.h directly includes sys/stdint.h, instead of going through the 'regular' stdint.h. The libc++ version of the latter does define those macros, to ensure things like UINT64_C() and SIZE_MAX are defined even in C++98 or C++03. MFC after: 3 days
* | nvi: import version 2.2.2Baptiste Daroussin2026-01-1425-135/+739
|\ \
* \ \ ncurses: merge update to ncurses 6.6Baptiste Daroussin2026-01-14411-24549/+29140
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 6.6 is ABI compatible with 6.5 (tested with abidiff) Remove html documentation to ease updates MFC After: 1 month
* | | | Import latest mtree from NetBSDJose Luis Duran2026-01-112-16/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '7e59b238fcf32f3d365e78ddc702ca494e1ff68d' This commit partially reverts the previous vendor import, given that the "type" keyword has been historically mandatory and should not be removed by "-R all". This was clarified in the man page. Reported by: glebius PR: 219467 MFC after: 1 week
* | | | kyua: Add "debug -x|--execute cmd" optionIgor Ostapenko2026-01-119-11/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | With execenv=jail specified, the "cmd" runs inside the test's jail. Reviewed by: ngie, markj Differential Revision: https://reviews.freebsd.org/D52642
* | | | grep: add testcase to test color when matches is greater than MAX_MATCHESViacheslav Chimishuk2026-01-092-0/+7
| | | | | | | | | | | | | | | | | | | | Reviewed by: imp, kevans Pull Request: https://github.com/freebsd/freebsd-src/pull/1442
* | | | libarchive: merge from vendor branchMartin Matuska2026-01-0524-60/+67
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libarchive 3.8.5 Important bugfixes: #2809 bsdtar: fix regression from 3.8.4 zero-length pattern issue bugfix Obtained from: libarchive Vendor commit: dd897a78c662a2c7a003e7ec158cea7909557bee MFC after: 1 week
| * | | | Update vendor/libarchive to 3.8.5vendor/libarchiveMartin Matuska2026-01-0552-30/+2891
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Important bugfixes: #2809 bsdtar: fix regression from 3.8.4 zero-length pattern issue bugfix Obtained from: libarchive Vendor commit: dd897a78c662a2c7a003e7ec158cea7909557bee
* | | | | Merge commit faa5141b9be4 from file git (by Christos Zoulas):Jessica Clarke2025-12-311-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR/656: harry.sintonen: Fix bug in byte swapping that was caused by the change to make flags uint16_t and cont_level uint8_t. This fixes using a magic.mgc built with a different endianness than file(1) itself, e.g. when building powerpc64 on amd64. PR: 292079 Fixes: ae316d1d1cff ("MFV: file 5.46.") MFC after: 3 days
* | | | | ncurses: avoid warnings about too-long initializer stringsDimitry Andric2025-12-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Increase the size of `assoc::from` to 8 bytes, to avoid warnings from clang 21 similar to: contrib/ncurses/progs/infocmp.c:702:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 702 | DATA("\033[2J", "ED2"), /* clear page */ | ^~~~~~~~~ contrib/ncurses/progs/infocmp.c:716:10: error: initializer-string for character array is too long, array size is 4 but initializer has size 5 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization] 716 | DATA("\033[!p", "DECSTR"), /* soft reset */ | ^~~~~~~~~ Reviewed by: markj Obtained from: https://invisible-island.net/archives/ncurses/6.5/ncurses-6.5-20241207.patch.gz MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54371
* | | | | kyua manuals: Correct --results-file short formYan-Hao Wang2025-12-296-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 290647 Ref: kyua/cli/common.cpp#104 MFC after: 3 days Reviewed by: ziaee Closes: https://github.com/freebsd/kyua/issues/267
* | | | | kyua: Make "debug -p" skip writing stdout/stderr to tmp filesIgor Ostapenko2025-12-263-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: kp, ngie Differential Revision: https://reviews.freebsd.org/D54363
* | | | | kyua: Fix prompt of "debug -p" commandIgor Ostapenko2025-12-251-2/+2
| | | | |
* | | | | MFV 762f11d98d5cd57ebbe85c36e9e86a557a91fe4e: xz 5.8.2.Xin LI2025-12-2332-323/+2063
| | | | | | | | | | | | | | | | | | | | MFC after: 7 days
* | | | | telnet: Remove usage of ALIGNMark Johnston2025-12-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc doesn't like ALIGN() being applied to an array type. Just use __aligned instead. Reported by: Jenkins Reviewed by: brooks Fixes: 80203a27e964 ("Add sys/_align.h replacing machine/_align.h") MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54290
* | | | | libpcap: fix resource leaks and set error messagesGuy Harris2025-12-221-7/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In finddevs_bpf() close the BPF device descriptor and free the device list buffer before returning. For ioctl() and malloc() errors, use pcapint_fmt_errmsg_for_errno() to generate an error message. Fix some comments. (cherry picked from commit 6870404f35da32d63a0a8789edb010842dd6b208)
* | | | | Import latest mtree from NetBSDJose Luis Duran2025-12-194-41/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'eb2ccba0c11b405ac613c3046997765317cc8b5c' PR: 192839 PR: 219467 MFC after: 1 week
* | | | | lib/msun/tests: xfail fe_round on riscv64Siva Mahadevan2025-12-171-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace ATF_CHECK_* with ATF_REQUIRE_* to fail fast and avoid unexpected aborts. Signed-off-by: Siva Mahadevan <me@svmhdvn.name> PR: 290099 MFC after: 3 days Sponsored by: The FreeBSD Foundation Pull Request: https://github.com/freebsd/freebsd-src/pull/1871
* | | | | lib/msun/tests: Remove newlines in ATF msgsSiva Mahadevan2025-12-171-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes broken test reports with the following message: lib/msun/fe_round_test:fe_round -> broken: Test result contains multiple lines: expected_failure: /usr/src/contrib/netbsd-tests/lib/libm/t_fe_round.c:95: Didn't get the same rounding mode out!<<NEWLINE>>(index 0) fed in 64 rounding mode, got 0 out<<NEWLINE>> [0.079s] Signed-off-by: Siva Mahadevan <me@svmhdvn.name> MFC after: 3 days Sponsored by: The FreeBSD Foundation Pull Request: https://github.com/freebsd/freebsd-src/pull/1871
* | | | | libpcap: disable more code related to USB pseudo-interfacesGleb Smirnoff2025-12-161-3/+3
| | | | | | | | | | | | | | | | | | | | Fixes: 6e297e1cdff3568da19760e7e7c615ee4e8383ef
* | | | | libpcap: don't try to create usbusX interfacesGleb Smirnoff2025-12-161-3/+3
| | | | |
* | | | | blocklist: blacklist: Chase recent upstream changesJose Luis Duran2025-12-161-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream fixed a couple of bugs: 1. Only attempt to restore the blocking rules if the database file exists. Otherwise, when the service starts for the first time, it fails (PR 258411). 2. Revert a commit that removed a call to close(bi->bi_fd), preventing the descriptor from being deleted. PR: 258411 PR: 291680 MFC after: 1 week
* | | | | MFV: Import blocklist 2025-12-15 (8a4b011)Jose Luis Duran2025-12-161-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'bfef098f924950a085927b1e7dd6c6db4e651c5c' Changes: https://github.com/zoulasc/blocklist/compare/ff13526...8a4b011 PR: 258411 PR: 291680 MFC after: 1 week
* | | | | blocklist: Add vendor import instructionsJose Luis Duran2025-12-162-0/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add vendor import instructions for blocklist. It includes a "freebsd-changes.sh" script that takes care of adapting paths and functions into FreeBSD. Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D49510
* | | | | libpcap: obtain list of bpf tap points with BIOCGETIFLISTGleb Smirnoff2025-12-151-9/+47
| | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D53874
* | | | | mtree: tests: Import NetBSD's mtree test suiteJose Luis Duran2025-12-131-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manually import latest mtree test suite from NetBSD. MFC after: 1 week
* | | | | mtree: Fix typosJose Luis Duran2025-12-132-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manually apply a typo fix. This change has already been submitted upstream as bin/59824. MFC after: 1 week
* | | | | Import latest mtree from NetBSDJose Luis Duran2025-12-1310-167/+271
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'f600477feb4ae61a75f61949eb600caff4aeea8c' MFC after: 1 week Discussed with: brooks
* | | | | contrib/tzdata: import tzdata 2025cPhilip Paeps2025-12-1122-409/+683
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: https://github.com/eggert/tz/blob/2025c/NEWS MFC after: 3 days
* | | | | ofed/libibverbs: remove no longer needed local alloca.hKonstantin Belousov2025-12-094-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: NVidia networking MFC after: 1 week
* | | | | ofed/libibverbs: remove strdupa() hack from config.hKonstantin Belousov2025-12-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is now provided by regular string.h. While there, remove stale $FreeBSD$ svn tag, and add include guards. Sponsored by: NVidia networking MFC after: 1 week
* | | | | Update to bmake-20251111Simon J. Gerraty2025-12-0389-684/+656
| | | | | | | | | | | | | | | | | | | | Merge commit '638c66de4a0faa4c2e815e81cd4021c2387c7e0f'
* | | | | sqlite3: Update to 3.50.4Cy Schubert2025-12-025-129/+170
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Release notes at https://www.sqlite.org/releaselog/3_50_4.html. Obtained from: https://www.sqlite.org/2025/sqlite-autoconf-3500400.tar.gz Merge commit 'e7e917ee3cf2b3010b1c511c6ebaf8b65b983ad7'
* \ \ \ \ \ libarchive: merge from vendor branchMartin Matuska2025-12-0117-53/+63
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libarchive 3.8.4 Important bugfixes: #2787 bsdtar: Fix zero-length pattern issue #2797 lib: Fix regression introduced in libarchive 3.8.2 when walking enterable but unreadable directories Obtained from: libarchive Vendor commit: d114ceee6de08a7a60ff1209492ba38bf9436f79 MFC after: 1 week