aboutsummaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* netbsd-tests: Fix the libc stat_socket testMark Johnston2 days1-7/+4
| | | | | | | | | | | The test tries to connect a socket to a closed port at 127.0.0.1. It sets O_NONBLOCK on the socket first and expects to get EINPROGRESS from connect(2), but this is not guaranteed, ECONNREFUSED is possible. Handle both cases, and re-enable the test. PR: 240621 MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Revert "Disable flaky test lib.libc.sys.setrlimit_test.setrlimit_stack"Mark Johnston2 days1-3/+0
| | | | | | | | | | | The stack gap implementation is disabled by default now, so the test passes. This reverts commit dad71022bd7a8f95ab2ba656bec61e2424a1c3c5. PR: 259969 MFC after: 1 week Sponsored by: The FreeBSD Foundation
* sqlite3: Vendor import of sqlite3 3.37.2Cy Schubert6 days7-54/+85
|\ | | | | | | | | | | Changes at https://www.sqlite.org/releaselog/3_37_2.html. MFC after: 1 month
* | wpa: Import wpa_supplicant/hostapd commit b26f5c0feCy Schubert11 days52-298/+1380
| | | | | | | | | | | | | | This is the December/January update to vendor/wpa committed upstream 2021-12-13. MFC after: 1 month
* | sqlite3: Vendor import of sqlite3 3.37.1Cy Schubert11 days12-8151/+13067
|\| | | | | | | | | | | Changes at https://www.sqlite.org/releaselog/3_37_1.html. Merge commit '7e13a4eb402641ddf307497cc9ac7ce1ab21c2a8' into sqlite3-work2
| * sqlite3: Vendor import of sqlite3 3.37.1Cy Schubert11 days1-679/+0
| | | | | | | | Changes at https://www.sqlite.org/releaselog/3_37_1.html.
| * sqlite3: Vendor import of sqlite3 3.37.1vendor/sqlite3/sqlite-3370100Cy Schubert12 days1-0/+679
| | | | | | | | Changes at https://www.sqlite.org/releaselog/3_37_1.html.
* | file: upgrade to 5.41.Xin LI13 days199-2710/+6710
|\ \ | | | | | | | | | MFC after: 2 weeks
* | | Make CPU_SET macros compliant with other implementationsStefan Eßer2021-12-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The introduction of <sched.h> improved compatibility with some 3rd party software, but caused the configure scripts of some ports to assume that they were run in a GLIBC compatible environment. Parts of sched.h were made conditional on -D_WITH_CPU_SET_T being added to ports, but there still were compatibility issues due to invalid assumptions made in autoconfigure scripts. The differences between the FreeBSD version of macros like CPU_AND, CPU_OR, etc. and the GLIBC versions was in the number of arguments: FreeBSD used a 2-address scheme (one source argument is also used as the destination of the operation), while GLIBC uses a 3-adderess scheme (2 source operands and a separately passed destination). The GLIBC scheme provides a super-set of the functionality of the FreeBSD macros, since it does not prevent passing the same variable as source and destination arguments. In code that wanted to preserve both source arguments, the FreeBSD macros required a temporary copy of one of the source arguments. This patch set allows to unconditionally provide functions and macros expected by 3rd party software written for GLIBC based systems, but breaks builds of externally maintained sources that use any of the following macros: CPU_AND, CPU_ANDNOT, CPU_OR, CPU_XOR. One contributed driver (contrib/ofed/libmlx5) has been patched to support both the old and the new CPU_OR signatures. If this commit is merged to -STABLE, the version test will have to be extended to cover more ranges. Ports that have added -D_WITH_CPU_SET_T to build on -CURRENT do no longer require that option. The FreeBSD version has been bumped to 1400046 to reflect this incompatible change. Reviewed by: kib MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D33451
* | | Avoid emitting popcnt in libclang_rt.fuzzer*.a if unsupportedDimitry Andric2021-12-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since popcnt is only supported by CPUTYPE=nehalem and later, ensure that this instruction is only emitted when appropriate. Otherwise, programs using the library can abort with SIGILL. See also: https://github.com/llvm/llvm-project/issues/52893 PR: 258156 Reported by: Eric Rucker <bhtooefr@bhtooefr.org> MFC after: 3 days
* | | readelf: add Go Build ID ELF note supportEd Maste2021-12-291-1/+23
| | | | | | | | | | | | | | | | | | Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D33379
* | | Apply clang fix for crash or assertion failure compiling part of llvmDimitry Andric2021-12-241-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 77e8f4eeeeed from llvm git (by David Green): [ARM] Define ComplexPatternFuncMutatesDAG Some of the Arm complex pattern functions call canExtractShiftFromMul, which can modify the DAG in-place. For this to be valid and handled successfully we need to define ComplexPatternFuncMutatesDAG. Differential Revision: https://reviews.llvm.org/D107476 When building parts of llvm targeting armv6 on stable/12, the following assertion can appear (or if assertions are disabled, clang is likely to crash): Assertion failed: (NodeToMatch->getOpcode() != ISD::DELETED_NODE && "NodeToMatch was removed partway through selection"), function SelectCodeCommon, file /usr/src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp, line 3573. PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /usr/obj/usr/src/freebsd12-amd64/tmp/usr/bin/c++ -cc1 -triple armv6kz-unknown-freebsd12.3-gnueabihf -S --mrelax-relocations -disable-free -disable-llvm-verifier -discard-value-names -mrelocation-model static -mconstructor-aliases -target-cpu arm1176jzf-s -target-feature +vfp2 -target-feature +vfp2sp -target-feature -vfp3 -target-feature -vfp3d16 -target-feature -vfp3d16sp -target-feature -vfp3sp -target-feature -fp16 -target-feature -vfp4 -target-feature -vfp4d16 -target-feature -vfp4d16sp -target-feature -vfp4sp -target-feature -fp-armv8 -target-feature -fp-armv8d16 -target-feature -fp-armv8d16sp -target-feature -fp-armv8sp -target-feature -fullfp16 -target-feature +fp64 -target-feature -d32 -target-feature -neon -target-feature -sha2 -target-feature -aes -target-feature -fp16fml -target-feature +strict-align -target-abi aapcs-linux -mfloat-abi hard -fallow-half-arguments-and-returns -ffunction-sections -fdata-sections -O1 -std=c++14 -fdeprecated-macro -fno-rtti -fno-signed-char -faddrsig -fexperimental-new-pass-manager PPCISelLowering-009095.ii 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module 'PPCISelLowering-009095.cpp'. 4. Running pass 'ARM Instruction Selection' on function '@_ZN4llvm17PPCTargetLoweringC2ERKNS_16PPCTargetMachineERKNS_12PPCSubtargetE' This crash or assertion is fixed by the upstream commit. MFC after: 3 days
* | | tzcode: fix tz change detection logicKyle Evans2021-12-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | clock_gettime() returns 0 if it succeeds, so don't capture that into the fail logic. With this, WITH_DETECT_TZ_CHANGES successfully detects a change after 61 seconds. Reviewed by: imp, trasz Differential Revision: https://reviews.freebsd.org/D33494
* | | bsddialog: import version 0.0.2Baptiste Daroussin2021-12-2121-260/+949
| | |
* | | Revert "t_setrlimit: Adjust resource limit to 20M"Marcin Wojtas2021-12-201-4/+0
| | | | | | | | | | | | | | | | | | | | | This reverts commit 4f741801d86089a1c5d631ba1e0f1421cdcf7a7e. As per discussion in PR: 260303 the reverted patch covered the real issue with a fixed address of the top of the stack.
* | | ipfilter: Remove remaining unused bitsCy Schubert2021-12-2025-11070/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the remaining unused source files. These were never used. This is the last of a three commit series to move ipfilter. Discussed with: glebius Reviewed by: glebius, kp (for #network) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33510
* | | ipfilter: Move userland bits to sbinCy Schubert2021-12-20258-48580/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Through fixes and improvements our ipfilter sources have diverged enough to warrant move from contrib into sbin/ipf. Now that I'm planning on implementing MSS clamping as in iptables it makes more sense to move ipfilter to sbin. This is the second of three commits of the ipfilter move. Suggested by glebius on two occaions. Suggested by and discussed with: glebius Reviewed by: glebius, kp (for #network) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33510
* | | t_setrlimit: Adjust resource limit to 20MDawid Gorecki2021-12-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With ASLR enabled by default, RLIMIT_STACK test fails due to the fact that default stack gap can be as big as 15M. Because of that the resource limit of 4M results in test program receiving SIGSEGV immediately after exiting the setrlimit syscall. Since the idea of this test is to check if rlim_cur does not extend past rlim_max, adjusting the resource limit to 20M should not invalidate the test results. Obtained from: Semihalf Sponsored by: Alstom Group Differential revision: https://reviews.freebsd.org/D33116
* | | Merge bmake-20211212Simon J. Gerraty2021-12-18166-1888/+4798
| | | | | | | | | | | | commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'
* | | ipfilter: MSN RPC proxy is not completeCy Schubert2021-12-161-328/+0
| | | | | | | | | | | | | | | | | | | | | The MSN RPC proxy is incomplete and does not do any address translation. Remove it. MFC after: 1 week
* | | ipfilter: ipf_dstlist is a kernel source fileCy Schubert2021-12-152-1411/+0
| | | | | | | | | | | | | | | | | | Remove duplicate ipf_dstlist.* files. They live in sys/. MFC after: 1 week
* | | Apply fix for clang incorrectly optimizing part of dns/bind916Dimitry Andric2021-12-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit e5a8af7a90c6 from llvm git (by Gulfem Savrun Yeniceri): [Passes] Fix relative lookup table converter pass This patch fixes the relative table converter pass for the lookup table accesses that are resulted in an instruction sequence, where gep is not immediately followed by a load, such as gep being hoisted outside the loop or another instruction is inserted in between them. The fix inserts the call to load.relative.instrinsic in the original place of load instead of gep. Issue is reported by FreeBSD via https://bugs.freebsd.org/259921. Differential Revision: https://reviews.llvm.org/D115571 PR: 259921 Reported by: O. Hartmann <freebsd@walstatt-de.de> MFC after: 3 days
* | | ipfilter userland: Replace sprintf with range checking version (snprintf)Cy Schubert2021-12-1419-122/+127
| | | | | | | | | | | | MFC after: 1 week
* | | ipfilter: radix_ipf is a kernel source fileCy Schubert2021-12-142-1625/+0
| | | | | | | | | | | | | | | | | | Remove duplicate radix_ipf.* files. They live in sys/. MFC after: 1 week
* | | libdwarf: Add a weak uncompress() symbolMark Johnston2021-12-131-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This works around brokenness in buildworld's bootstrapping logic: it uses the source tree's metadata to collect dependency info (such as, "libdwarf depends on libz") but links against static host libraries. If these two are out of sync, as is the case if one builds a commit prior to the introduction of the libz dependency, then the build fails when trying to statically link nm(1). Mitigate the problem by defining a weak uncompress() symbol which simply returns an error. This ensures that the build won't fail when statically linking libdwarf without zlib. The downside is that any tools using libdwarf without zlib will now hit a runtime error if they attempt to decode compressed sections, but at least they'll fail deterministically, and compressed debug info is only enabled by default in main. In particular, this fixes building of branches lacking commit dbf05458e3bd, such as releng branches, stable/12 and 13 and old revisions of main. Previously the nm(1) build would fail with: ld: error: undefined symbol: uncompress >>> referenced by libdwarf_elf_init.c:233 >>> (/usr/src/contrib/elftoolchain/libdwarf/libdwarf_elf_init.c:233) >>> libdwarf_elf_init.o:(_dwarf_elf_init) in archive >>> /usr/lib/libdwarf.a Reported by: dim, ler, krion Reviewed by: imp, emaste Fixes: dbf05458e3bd ("libdwarf: Support consumption of compressed ELF sections") MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33419
* | | libdwarf: Fix error handling in _dwarf_elf_init()Mark Johnston2021-12-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were not setting "ret" before jumping to the error path, so the function returned success even when it had failed. Reviewed by: emaste MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33420
* | | bsddialog: import version 0.0.1Baptiste Daroussin2021-12-13312-48159/+793
| | |
* | | Revert clang change that breaks CTF on aarch64Dimitry Andric2021-12-121-14/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit e655e74a318e from llvm git (by Peter Collingbourne): AST: Create __va_list in the std namespace even in C. This ensures that the mangled type names match between C and C++, which is significant when using -fsanitize=cfi-icall. Ideally we wouldn't have created this namespace at all, but it's now part of the ABI (e.g. in mangled names), so we can't change it. Differential Revision: https://reviews.llvm.org/D104830 As reported by Jessica in https://reviews.llvm.org/D104830#3129527, this upstream change is implemented in such a way that it breaks DTrace's CTF. Since a proper fix has not yet been forthcoming, and we are unaffected by the (CFI-related) problem upstream was trying to address, revert the change for now. Requested by: jrtc27 MFC after: 3 days
* | | ippool: remove set-but-not-unused varsCy Schubert2021-12-112-15/+3
| | | | | | | | | | | | | | | | | | | | | Display of stats from a kernel core dump was never fully implemented. Remove the dangling vars and remove the documentation. MFC after: 3 days
* | | ipfcomp: remove set-but-not-unused varsCy Schubert2021-12-111-2/+0
| | | | | | | | | | | | MFC after: 3 days
* | | ipfilter printfieldhdr: remove set-but-not-unused varsCy Schubert2021-12-111-2/+1
| | | | | | | | | | | | MFC after: 3 days
* | | ipft_tx: remove set-but-not-unused varsCy Schubert2021-12-111-2/+0
| | | | | | | | | | | | MFC after: 3 days
* | | ipft_pc: remove set-but-not-unused varsCy Schubert2021-12-111-3/+0
| | | | | | | | | | | | MFC after: 3 days
* | | ipft_hx: remove set-but-not-unused varsCy Schubert2021-12-111-2/+0
| | | | | | | | | | | | MFC after: 3 days
* | | Remove FREEBSD-vendor filesEd Maste2021-12-062-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These files were intended to track version and perhaps maintainership information for contrib software. However, they were never used beyond bzip2, netcat, and OpenSSH, and generally haven't been kept up to date recently (my OpenSSH 8.7p1 update notwithstanding). Just remove them to avoid having confusing or outdated information. Suggested by: des MFC after: 1 week Sponsored by: The FreeBSD Foundation
* | | libdwarf: Support consumption of compressed ELF sectionsMark Johnston2021-12-063-15/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically decompress zlib-compressed debug sections when loading them. This lets ctfcovert work on userland code after commit c910570e7573 ("Use compressed debug in standalone userland debug files by default"). Reported by: avg Reviewed by: avg, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33139
* | | bsddialog: import snapshot 2021-12-05Baptiste Daroussin2021-12-06345-2247/+50464
| | |
* | | Apply fix for clang crashing on invalid -Wa,-march= valuesDimitry Andric2021-12-051-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit df08b2fe8b35 from llvm git (by Dimitry Andric): [AArch64] Avoid crashing on invalid -Wa,-march= values As reported in https://bugs.freebsd.org/260078, the gnutls Makefiles pass -Wa,-march=all to compile a number of assembly files. Clang does not support this -march value, but because of a mistake in handling the arguments, an unitialized Arg pointer is dereferenced, which can cause a segfault. Work around this by adding a check if the local WaMArch variable is initialized, and if so, using its value in the diagnostic message. Reviewed By: tschuett Differential Revision: https://reviews.llvm.org/D114677 PR: 260078 Reported by: bz MFC after: 3 days
* | | ipfilter(4): Fix a typo in an error messageGordon Bergling2021-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | - s/addresss/address/ This is a direct commit to contrib since the upstream is no longer active. MFC after: 3 days
* | | unbount: Vendor import 1.14.0rc1Cy Schubert2021-12-03128-1972/+5359
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This vendor import was requested by glebius@ as it should fix unbound crashes. Reported by: glebius MFC after: 1 week
| * | | unbound: Vendor import 1.14.0rc1vendor/unbound/1.14.0rc1Cy Schubert2021-12-033-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This vendor import was requested by glebius@ as it should fix unbound crashes. Reported by: glebius
* | | | wpa: Redo import wpa_supplicant/hostapd commit 14ab4a816Cy Schubert2021-12-02115-2351/+6992
| | | | | | | | | | | | | | | | | | | | | | | | This is the November update to vendor/wpa committed upstream 2021-11-26. MFC after: 1 month
* | | | Revert "wpa: Import wpa_supplicant/hostapd commit 14ab4a816"Cy Schubert2021-12-02115-6992/+2351
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 266f97b5e9a7958e365e78288616a459b40d924a, reversing changes made to a10253cffea84c0c980a36ba6776b00ed96c3e3b. A mismerge of a merge to catch up to main resulted in files being committed which should not have been.
* | | | wpa: Import wpa_supplicant/hostapd commit 14ab4a816Cy Schubert2021-12-02115-2351/+6992
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | This is the November update to vendor/wpa committed upstream 2021-11-26. MFC after: 1 month
* | | | | contrib/bc: merge version 5.2.1 from vendor branchStefan Eßer2021-11-3094-361/+1241
| | | | | | | | | | | | | | | | | | | | Merge commit 'e63540eed295749528548c2e3a90f5a6e57275c8'
* | | | | Add tests for posix_spawn_file_actions_add{chdir,fchdir}_np(3)Konstantin Belousov2021-11-301-0/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: kevans, ngie (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33143
* | | | | netbsd h_raw.c test: fake use of sum to avoid warningKonstantin Belousov2021-11-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* | | | | t_mlock.c: Remove null_errno, it is write-onlyKonstantin Belousov2021-11-291-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* | | | | Disable flaky test lib.libc.sys.setrlimit_test.setrlimit_stackLi-Wen Hsu2021-11-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | PR: 259969 Sponsored by: The FreeBSD Foundation
* | | | | Add 'contrib/bsddialog/' from commit '857c66bb5f3c5651b012beb1b5ea6ba39354ea94'Baptiste Daroussin2021-11-2442-0/+7241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git-subtree-dir: contrib/bsddialog git-subtree-mainline: a46722b580567799b484b5a81728eaf380777e04 git-subtree-split: 857c66bb5f3c5651b012beb1b5ea6ba39354ea94