aboutsummaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* wpa_supplicant/hostapd: Fix uninitialized packet pointer on errorCy Schubert2023-04-061-0/+1
| | | | | | | | | | | | | | | | | The packet pointer (called packet) will remain uninitialized when pcap_next_ex() returns an error. This occurs when the wlan interface is shut down using ifconfig destroy. Adding a NULL assignment to packet duplicates what pcap_next() does. The reason we use pcap_next_ex() in this instance is because with pacp_next() when we receive a null pointer if there was an error or if no packets were read. With pcap_next_ex() we can differentiate between an error and legitimately no packets were received. PR: 270649 Reported by: Robert Morris <rtm@lcs.mit.edu> Fixes: 6e5d01124fd4 MFC after: 3 days
* llvm/lld: damage control threadingMateusz Guzik2023-04-031-2/+13
| | | | | | | See the comment inside. Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D39389
* libpcap: Update to 1.10.3Joseph Mingrone2023-03-31237-14689/+28332
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Local changes: - In contrib/libpcap/pcap/bpf.h, do not include pcap/dlt.h. Our system net/dlt.h is pulled in from net/bpf.h. - sys/net/dlt.h: Incorporate changes from libpcap 1.10.3. - lib/libpcap/Makefile: Update for libpcap 1.10.3. Changelog: https://git.tcpdump.org/libpcap/blob/95691ebe7564afa3faa5c6ba0dbd17e351be455a:/CHANGES Reviewed by: emaste Obtained from: https://www.tcpdump.org/release/libpcap-1.10.3.tar.gz Sponsored by: The FreeBSD Foundation
* | tcpdump: Backport a fix required for upcoming libpcap updateJoseph Mingrone2023-03-301-0/+6
| | | | | | | | | | | | See also: https://github.com/the-tcpdump-group/tcpdump/commit/51f9c3b947eac89254c4e3662902487e0844a699 Reviewed by: emaste Sponsored by: The FreeBSD Foundation
* | pflogd: Do not access obsolete structure member pcap.tzoffJoseph Mingrone2023-03-301-1/+1
| | | | | | | | | | | | | | | | This change is in preparation for a libpcap update. See also: https://github.com/the-tcpdump-group/libpcap/commit/d4d65e7c4c0a6233784b346dcb0ebb7e23a3feaa Reviewed by: emaste Sponsored by: The FreeBSD Foundation
* | contrib/tzdata: import tzdata 2023cPhilip Paeps2023-03-293-10/+45
| | | | | | | | | | | | | | | | | | | | Changes: https://github.com/eggert/tz/blob/2023c/NEWS The tzdata 2023c release reverts all changes made in 2023b other than commentary, as that appears to be the best of a bad set of short-notice choices for modeling this week's daylight saving chaos in Lebanon. MFC after: insta-MFC
* | irdma(4): Upgrade the driver to 1.1.11-kBartosz Sobczak2023-03-2810-29/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of changes: - postpone mtu size assignment during load to avoid race condition - refactor some of the debug prints - add request reset handler - refactor flush scheduler to increase efficiency and avoid racing - put correct vlan_tag for UD traffic with PFC - suspend QP before going to ERROR state to avoid CQP timout - fix arithmetic error on irdma_debug_bugf - allow debug flag to be settable during driver load - introduce meaningful default values for DCQCN algorithm - interrupt naming convention improvements - skip unsignaled completions in poll_cmpl Signed-off-by: Bartosz Sobczak bartosz.sobczak@intel.com Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: hselasky@ MFC after: 1 week Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D39173
* | Import OpenCSD v.1.4.0.Ruslan Bukin2023-03-2751-345/+2199
| | | | | | | | Sponsored by: UKRI
* | contrib/tzdata: import tzdata 2023bPhilip Paeps2023-03-243-2/+21
| | | | | | | | | | | | Changes: https://github.com/eggert/tz/blob/2023b/NEWS MFC after: 1 day
* | WPA: driver_bsd.c: backout upstream IFF_ change and add loggingBjoern A. Zeeb2023-03-231-10/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts the state to our old supplicant logic setting or clearing IFF_UP if needed. In addition this adds logging for the cases in which we do (not) change the interface state. Depending on testing this seems to help bringing WiFi up or not log any needed changes (which would be the expected wpa_supplicant logic now). People should look out for ``(changed)`` log entries (at least if debugging the issue; this way we will at least have data points). There is a hypothesis still pondered that the entire IFF_UP toggling only exploits a race in net80211 (see further discssussions for more debugging and alternative solutions see D38508 and D38753). That may also explain why the changes to the rc startup script [1] only helped partially for some people to no longer see the continuous CTRL-EVENT-SCAN-FAILED. It is highly likely that we will want further changes and until we know for sure that people are seeing ''(changed)'' events this should stay local. Should we need to upstream this we'll likely need #ifdef __FreeBSD__ around this code. [1] 5fcdc19a81115d975e238270754e28557a2fcfc5 and d06d7eb09131edea666bf049d6c0c55672726f76 Sponsored by: The FreeBSD Foundation MFC after: 10 days Reviewed by: cy, enweiwu (earlier) Differential Revision: https://reviews.freebsd.org/D38807
* | contrib/tzdata: import tzdata 2023aPhilip Paeps2023-03-2320-250/+501
| | | | | | | | | | | | Changes: https://github.com/eggert/tz/blob/2023a/NEWS MFC after: 1 day
* | tcp_wrappers: Use ANSI (c89) definitions for one more functionEd Maste2023-03-211-2/+1
| | | | | | | | | | Fixes: 14f102eacc84 ("tcp_wrappers: Use ANSI (c89) function definit...") Sponsored by: The FreeBSD Foundation
* | tcp_wrappers: Use ANSI (c89) function definitionsEd Maste2023-03-2135-330/+128
| | | | | | | | | | | | | | | | Although this code is in contrib/ there is no active upstream. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36047
* | MFV: xz 5.4.2.Xin LI2023-03-2048-473/+5175
| | | | | | | | MFC after: 2 weeks
* | netbsd-tests: Remove some pointless sleeps from message queue testsMark Johnston2023-03-103-6/+0
| | | | | | | | | | | | | | | | | | | | - In the msgctl tests, there is no point in sleeping after a fork(). Just block immediately in wait(). - In non-blocking send/recv tests, just wait for the child to exit once it's reached a message limit. If a bug prevents the child from exiting promptly, the test will time out. MFC after: 1 week
* | contrib/bc: update to version 6.4.0Stefan Eßer2023-03-1016-443/+1693
| | | | | | | | | | | | | | | | This version contains a fix for an issue that can affect complex bc scripts that use multiple read() functions that receive input from an interactive user. The same value could be returned multiple times. MFC after: 2 weeks
* | NgATM: Remove netgraph ATM supportBrooks Davis2023-03-0925-4852/+0
| | | | | | | | | | | | | | | | | | | | Most ATM support was removed prior to FreeBSD 12. The netgraph support was kept as it was less intrusive, but it is presumed to be unused. Reviewed by: manu Relnotes: yes Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D38879
* | readelf: fix -wR option, memory leaks, and -wf minor bugChristos Margiolis2023-03-061-14/+25
| | | | | | | | | | | | | | Reviewed by: markj MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38419
* | xz: Improve compatibility with systems without capability mode supportXin LI2023-03-051-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the kernel is built without capability mode support, or when using an emulator like qemu-user-static that does not translate system calls, these calls will return a negative number and set the errno to ENOSYS. However, this error does not indicate a real programming or runtime error and is generally ignored by base system applications built with capability mode sandboxing. Match this behavior by making xz(1) to ignore ENOSYS errors when calling capability mode system calls too. PR: 269185 Reported by: Dan Kotowski MFC after: 2 days
* | bsnmp: Remove "All Rights Reserved" from FreeBSD Foundation copyrightsEd Maste2023-03-0311-11/+0
| |
* | sqlite3: Vendor import of sqlite3 3.41.0Cy Schubert2023-02-2811-1795/+4512
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Release notes at https://www.sqlite.org/releaselog/3_41_0.html. Obtained from: https://www.sqlite.org/2023/sqlite-autoconf-3410000.tar.gz MFC after: 2 weeks Merge commit '615bd3eb2a2225e83e14d5b2a82649430889483c' into temp_merge
* | | vendor/bc: import version 6.3.1Stefan Eßer2023-02-2477-294/+442
| | | | | | | | | | | | | | | | | | | | | This version adds a command to dc to query whether extended registers are enabled or not. (cherry picked from commit 61e1a12bb6c3bfdb0a4e499c88e8eaa2b548e427)
* | | byacc: Adjust expected test output to match our patches.Dag-Erling Smørgrav2023-02-2234-34/+34
| | | | | | | | | | | | Sponsored by: Klara, Inc.
* | | Merge commit 'd84e570b54961e8874bbd8de25635eb96be0977e'Simon J. Gerraty2023-02-214-462/+16
| | |
* | | byacc: Update to 20230201.Dag-Erling Smørgrav2023-02-20215-4230/+9859
| | | | | | | | | | | | | | | | | | | | | | | | Note that this enables the backtracking extension, which we had previously left disabled. PR: 244149, 269425 Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D38421
* | | llvm: make sure to use ELFv2 ABI on powerpc64Piotr Kubaj2023-02-162-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently LLVM is more or less set up to use ELFv2, but it still defaults to ELFv1 in some places. This causes lld to generate broken binaries when used with LTO. PR: 269455 Approved by: dim MFC after: 3 days
* | | libpcap: Make pcap/bpf.h a wrapper around system net/bpf.hJoseph Mingrone2023-02-162-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the past, we modified pcap/pcap.h to include the system net/bpf.h rather than libpcap's own pcap/bpf.h. However, starting around 1.10.2, libpcap requires a few extern functions defined in pcap/bpf.h to build. Simply reverting that local change and pulling in pcap/bpf.h is not a solution, because some ports with '#include <pcap.h>' such as mail/spamd and net/xprobe require the system net/bpf.h to be pulled in. To accommodate both requirements, make pcap/bpf.h a wrapper around the system net/bpf.h, but retain the extern function definitions. This is in preparation for libpcap 1.10.3. Approved by: cy, philip, emaste, delphij (earlier revision) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38575
* | | Merge bmake-20230208Simon J. Gerraty2023-02-1010-46/+149
| | | | | | | | | | | | Merge commit 'f4d51098686d961fc03dc5aa327619d0af3c9dcd'
* | | tzcode: Resurrect tzsetwall(3) with a deprecation warning.Dag-Erling Smørgrav2023-02-091-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This function has been around since 4.4BSD but was dropped upstream in 2020. This went unnoticed when tzcode was updated. Bring it back, but prepare for removing it before 14.0 is released. PR: 269445 MFC after: 3 days Reported by: val@packett.cool Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D38445
* | | Reapply: <type_traits>: Avoid instantiating a pointer type in std::decay<>Dimitry Andric2023-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GCC expands the pointer type in this conditional expression even for template types _Up that are not arrays. This raises an error when std::decay<> is used with reference types (as is done in LLVM's sources). Using add_pointer<> causes GCC to only instantiate a pointer type for array types. A similar change to this commit (albeit reworked due to upstream changes) has been merged to libc++ in commit 26068c6e60324ed866a1ca2afb5cb5eb0aaf015b. In file included from /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__compare/ordering.h:13, from /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__compare/common_comparison_category.h:12, from /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/tuple:168, from /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/DenseMapInfo.h:20, from /usr/src/contrib/llvm-project/llvm/include/llvm/ADT/DenseMap.h:17, from /usr/src/contrib/llvm-project/llvm/lib/Transforms/Scalar/GVNHoist.cpp:36: /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/type_traits: In instantiation of 'struct std::__1::__decay<llvm::CHIArg&, true>': /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/type_traits:1591:89: required from 'struct std::__1::decay<llvm::CHIArg&&>' /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__utility/pair.h:132:16: required by substitution of 'template<class _Tuple, typename std::__1::enable_if<typename std::__1::conditional<(std::__1::__tuple_like_with_size<_Tuple, 2, typename std::__1::__uncvref<_Tp>::type>::value && (! std::__1::is_same<typename std::__1::decay<_Tp>::type, std::__1::pair<llvm::BasicBlock*, llvm::SmallVector<llvm::CHIArg, 2> > >::value)), std::__1::pair<llvm::BasicBlock*, llvm::SmallVector<llvm::CHIArg, 2> >::_CheckTupleLikeConstructor, std::__1::__check_tuple_constructor_fail>::type::__enable_implicit<_Tuple>(), void>::type* <anonymous> > constexpr std::__1::pair<llvm::BasicBlock*, llvm::SmallVector<llvm::CHIArg, 2> >::pair(_Tuple&&) [with _Tuple = llvm::CHIArg&&; typename std::__1::enable_if<typename std::__1::conditional<(std::__1::__tuple_like_with_size<_Tuple, 2, typename std::__1::__uncvref<_Tp>::type>::value && (! std::__1::is_same<typename std::__1::decay<_Tp>::type, std::__1::pair<llvm::BasicBlock*, llvm::SmallVector<llvm::CHIArg, 2> > >::value)), std::__1::pair<llvm::BasicBlock*, llvm::SmallVector<llvm::CHIArg, 2> >::_CheckTupleLikeConstructor, std::__1::__check_tuple_constructor_fail>::type::__enable_implicit<_Tuple>(), void>::type* <anonymous> = <missing>]' /usr/src/contrib/llvm-project/llvm/lib/Transforms/Scalar/GVNHoist.cpp:892:51: required from here /usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/type_traits:1582:30: error: forming pointer to reference type 'std::__1::remove_extent<llvm::CHIArg&>::type' {aka 'llvm::CHIArg&'} 1582 | >::type type; | ^~~~ Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D36898 This reapplies commit c36de97088a2b9141cdaf2fae2a7f41bf820ffa0, which I accidentally overwrote in the llvm 15 merge. (It turns out upstream did not merge this to their 15.x branch.) MFC after: 2 weeks
* | | Merge llvm-project release/15.x llvmorg-15.0.7-0-g8dfdcc7b7bf6Dimitry Andric2023-02-085-44/+96
| | | | | | | | | | | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15.0.7-0-g8dfdcc7b7bf6. PR: 265425 MFC after: 2 weeks
* | | Merge llvm-project release/15.x llvmorg-15.0.6-0-g088f33605d8aDimitry Andric2023-02-0839-169/+349
| | | | | | | | | | | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15.0.6-0-g088f33605d8a. PR: 265425 MFC after: 2 weeks
* | | Merge llvm-project release/15.x llvmorg-15.0.2-10-gf3c5289e7846Dimitry Andric2023-02-0832-216/+398
| | | | | | | | | | | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15.0.2-10-gf3c5289e7846. PR: 265425 MFC after: 2 weeks
* | | Merge llvm-project release/15.x llvmorg-15.0.0-9-g1c73596d3454Dimitry Andric2023-02-0841-186/+609
| | | | | | | | | | | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15.0.0-9-g1c73596d3454. PR: 265425 MFC after: 2 weeks
* | | Merge llvm-project release/15.x llvmorg-15.0.0-rc2-40-gfbd2950d8d0dDimitry Andric2023-02-08167-1457/+3724
| | | | | | | | | | | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15.0.0-rc2-40-gfbd2950d8d0d. PR: 265425 MFC after: 2 weeks
* | | Merge llvm-project main llvmorg-15-init-17826-g1f8ae9d7e7e4Dimitry Andric2023-02-08428-4680/+9635
| | | | | | | | | | | | | | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15-init-17826-g1f8ae9d7e7e4, the last commit before the upstream release/16.x branch was created. PR: 265425 MFC after: 2 weeks
* | | Merge llvm-project main llvmorg-15-init-17485-ga3e38b4a206bDimitry Andric2023-02-08975-10361/+23756
| | | | | | | | | | | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15-init-17485-ga3e38b4a206b. PR: 265425 MFC after: 2 weeks
* | | Merge llvm-project main llvmorg-15-init-16436-g18a6ab5b8d1fDimitry Andric2023-02-081054-10427/+26832
| | | | | | | | | | | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15-init-16436-g18a6ab5b8d1f. PR: 265425 MFC after: 2 weeks
* | | Merge llvm-project main llvmorg-15-init-15358-g53dc0f10787Dimitry Andric2023-02-086006-152901/+364089
| | | | | | | | | | | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15-init-15358-g53dc0f10787. PR: 265425 MFC after: 2 weeks
* | | lua: Update to 5.4.4Warner Losh2023-02-0850-1068/+2522
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '755d9301ca89f02956fd17858b9d4d821ab5c972' from the vendor branch. This updates us from lua 5.4.2 to 5.4.4. In addition, it switches around how we flavor liblua for the boot loader and flua. This is done to reduce diffs with upstream and make it easier to import new versions (the current method has too many conflicts to resolve by hand): we include luaconf.local.h from luaconf.h (the only change to this file is now that #include at the end). We then define what we need to: for flua (which does very little) and one for stand (which creates the new FLOAT type out of int64). Sponsored by: Netflix
* | | libdwarf: Add some constants from DWARF 5Mark Johnston2023-02-075-2/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not exhaustive - DWARF 5 has some new enumeration types not implemented here - but I think I caught all the ones that are extended in DWARF 5, plus the new compilation unit type (DW_UT_*), needed when parsing .debug_info headers. These were useful when extending libdwarf/ctfconvert/readelf to handle DWARF generated by gcc 12, which is version 5 by default. Reviewed by: emaste MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38273
* | | irdma(4): Add code for compilation on stable/13 branchBartosz Sobczak2023-02-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current content of the irdma(4) driver consists only of code that is compilable on current 14-CURRENT branch which makes it impossible to merge into stable/13 branch because of missing dependencies in the ofed tree. This patch adds missing code that allows for merging into stable branch. Once it is there, code relating only to version 14 or higher should be removed. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: erj@ MFC after: 1 day Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D38170
* | | contrib/bc: uodate to version 6.2.4Stefan Eßer2023-02-0658-115/+469
| | | | | | | | | | | | | | | | | | | | | | | | This update contains only documentation changes (new main repository URL and changed mail address of the program author) and changes to the build system that do not affect the FreeBSD base system build. MFC after: 3 days
* | | libedit: update to snapshot 2023-01-06Baptiste Daroussin2023-02-0614-399/+122
| | | | | | | | | | | | MFC atfer: 1 week
* | | libc: Add tests for strchrnul(3).Dag-Erling Smørgrav2023-02-022-6/+299
| | | | | | | | | | | | | | | | | | | | | MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D38286
* | | Note upgrade to sendmail 8.17.1Gregory Neil Shapiro2023-02-011-2/+2
| | |
* | | elftoolchain: update the list of riscv relocationsMitchell Horne2023-01-312-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | A few have been added, a couple removed. Reviewed by: jrtc27, imp, emaste MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38175
* | | Merge commit '7087c8de43b0d5d27c52da6ba2ba4957b7e336ff' into new_mergePhil Shafer2023-01-3075-770/+2317
| | |
* | | contrib/bc: merge from vendor release 6.2.2Stefan Eßer2023-01-28176-6406/+14087
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This update fixes a few issues in history editing and the processing of the "quit" function. The "quit" function will no longer cause bc to exit when encountered in a script file (before any command from the script has been executed). New functions is_number(), is_string return 1 if the passed argument is a number resp. a string. The asciify() function has been extended to support the conversion of an array of numbers into a string. Merge commit '1a63323d17fedb05b6962853e821c9d7c6b9853e'
* | | Merge/update to bmake-20230126Simon J. Gerraty2023-01-28109-5272/+7151
| | |