summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MFC: 0ebcbcc0efdd (svn r368734:stable/11Cy Schubert2020-12-241-3/+3
| | | | | | | | | | | Update the unbound version number from r368478. Updating the version number is an extra manual step. Pointy hat to: cy Reported by: Herbert J. Skuhra <herbert _ gojira.at> (cherry picked from commit 0ebcbcc0efdd733b11311c840c47cc22f83c7408)
* MFC r368148: fix hastd(8)Eugene Grosbein2020-12-181-0/+1
| | | | | | | | | | hastd(8) assumes it has no extra file descriptors opened and aborts otherwise, so call closefrom() early. PR: 227461 Notes: svn path=/stable/11/; revision=368759
* MFC r368207,368607:Martin Matuska2020-12-1665-191/+1329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r368207: Update libarchive to 3.5.0 Relevant vendor changes: Issue #1258: add archive_read_support_filter_by_code() PR #1347: mtree digest reader support Issue #1381: skip hardlinks pointing to itself on extraction PR #1387: fix writing of cpio archives with hardlinks without file type PR #1388: fix rdev field in cpio format for device nodes PR #1389: completed support for UTF-8 encoding conversion PR #1405: more formats in archive_read_support_format_by_code() PR #1408: fix uninitialized size in rar5_read_data PR #1409: system extended attribute support PR #1435: support for decompression of symbolic links in zipx archives Issue #1456: memory leak after unsuccessful archive_write_open_filename MFC r368607: Sync libarchive with vendor. Vendor changes: Issue #1461: Unbreak build without lzma Issue #1462: warc reader: Fix build with gcc11 Issue #1463: Fix code compatibility in test_archive_read_support.c Issue #1464: Use built-in strnlen on platforms where not available Issue #1465: warc reader: fix undefined behaviour in deconst() function Notes: svn path=/stable/11/; revision=368707
* MFC r368478:Cy Schubert2020-12-1654-609/+2532
| | | | | | | | | | | MFV r368464: Update unbound from 1.12.0 to 1.13.0 Security: CVE-2020-28935 Notes: svn path=/stable/11/; revision=368693
* MFC r368555: caroot: update bundleKyle Evans2020-12-1511-0/+134
| | | | | | | | | Summary: - One (1) added - Ten (10) removed Notes: svn path=/stable/11/; revision=368678
* MFC r368525:Kenneth D. Merry2020-12-152-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r368525 | ken | 2020-12-10 16:06:06 -0500 (Thu, 10 Dec 2020) | 17 lines Add the LTO-9 density code to libmt and the mt(1) man page. These values are taken directly from the density report from an IBM LTO-9 tape drive. (Using mt getdensity) A LTO-9 drive stores 18TB raw (45TB with compression) on an LTO-9 tape. lib/libmt/mtlib.c: Add the LTO-9 density code, and bpmm/bpi values. usr.bin/mt/mt.1: Add the LTO-9 density code, bpmm/bpi values and number of tracks. Bump the man page date. ------------------------------------------------------------------------ Sponsored by: Spectra Logic Notes: svn path=/stable/11/; revision=368675
* MFC r368561:Brooks Davis2020-12-144-0/+10
| | | | | | | | | | | | | | | | ndis(4): expand deprecation to the whole driver nids(4) was a clever idea in the early 2000's when the market was flooded with 10/100 NICs with Windows-only drivers, but that hasn't been the case for ages and the driver has had no meaningful maintenance in ages. It only supports Windows-XP era drivers. Reviewed by: imp, bcr Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27527 Notes: svn path=/stable/11/; revision=368650
* MFC r368543:Brooks Davis2020-12-141-7/+7
| | | | | | | | | | | style(9): Correct whitespace in struct definitions struct ifconf and struct ifreq use the odd style "struct<tab>foo". struct ifdrv seems to have tried to follow this but was committed with spaces in place of most tabs resulting in "struct<space><space>ifdrv". Notes: svn path=/stable/11/; revision=368645
* MFC r368489:Dimitry Andric2020-12-121-1/+7
| | | | | | | | | | | | | | | | | | | | | | Merge commit 28de0fb48 from llvm git (by Luís Marques): [RISCV] Set __GCC_HAVE_SYNC_COMPARE_AND_SWAP_x defines The RISCV target did not set the GCC atomic compare and swap defines, unlike other targets. This broke builds for things like glib on RISCV. Patch by Kristof Provost (kprovost) Differential Revision: https://reviews.llvm.org/D91784 This should fix building glib20 on RISC-V and unblock a number of dependent ports. Requested by: kp Notes: svn path=/stable/11/; revision=368599
* MFC r367678:Mateusz Piotrowski2020-12-121-1/+15
| | | | | | | | | | | Document the PAGER environment variable Sometimes users want to use freebsd-update(8) in a non-interactive way and what they often miss is that they have to set PAGER to cat(1) in order to avoid interactive prompts from less(1). Notes: svn path=/stable/11/; revision=368590
* OpenSSL: backport fixes for CVE-2020-1971 from head (r368447)Jung-uk Kim2020-12-105-6/+85
| | | | | | | Note this is a direct commit because we have OpenSSL 1.0.2u in this branch. Notes: svn path=/stable/11/; revision=368530
* Document recent SAs/ENs.Glen Barber2020-12-102-0/+23
| | | | | | | Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/stable/11/; revision=368517
* Fix bug in ifconfig regarding VLAN creation.Hans Petter Selasky2020-12-101-1/+2
| | | | | | | | | | | | | | | | | | | Detection of VLAN interface type must happen before detection of interface type by prefix. Else the following sequence of commands will try to create a LAGG interface instead of a VLAN interface, which accidentially works, because the data pointed to by the ifr_data pointer is not parsed by the VLAN create ioctl(2). How to reproduce: # ifconfig lagg0 create # ifconfig lagg0.256 create Differential Revision: https://reviews.freebsd.org/D27521 Tested by: raul.munoz@custos.es Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=368504
* MFC r368190:Konstantin Belousov2020-12-071-0/+2
| | | | | | | Ensure that threading library is initialized in pthread_mutex_init(). Notes: svn path=/stable/11/; revision=368403
* MFC r368058:Hans Petter Selasky2020-12-036-8/+18
| | | | | | | | | | | | | | | | | | | | Ensure consistent error messages from ifconfig(8). If multiple threads are invoking "ifconfig XXX create" a race may occur which can lead to two different error messages for the same error. a) ifconfig: SIOCIFCREATE2: File exists b) ifconfig: interface XXX already exists This patch ensures ifconfig prints the same error code for the same case. Reviewed by: imp@ and kib@ Differential Revision: https://reviews.freebsd.org/D27380 Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=368298
* MFC r366286:Cy Schubert2020-12-031-28/+1
| | | | | | | ipfilter getifname ifdef cleanup. Notes: svn path=/stable/11/; revision=368295
* MFC r367812:Li-Wen Hsu2020-12-031-1/+1
| | | | | | | | | | | | | | | ipheth(4): Fix for iOS 14 Fix USB tethering for iOS 14. Inspired by: https://github.com/libimobiledevice/libimobiledevice/issues/1038 PR: 249979 Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D27250 Notes: svn path=/stable/11/; revision=368292
* MFC r367809:Dimitry Andric2020-12-023-35/+48
| | | | | | | | | | | | | | | | | When elftoolchain's objcopy (or strip) is rewriting a file in-place, make it create the temporary file in the same directory as the source file by default, instead of always using $TMPDIR or /tmp. If creating that file fails because the directory is not writable, also fallback to $TMPDIR or /tmp. This has also been submitted upstream as: https://sourceforge.net/p/elftoolchain/tickets/597/ Reported by: cem PR: 250872 Notes: svn path=/stable/11/; revision=368286
* MFC r367304:Dimitry Andric2020-12-028-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add WITH_LLVM_CXXFILT option to install llvm-cxxfilt as c++filt Since elftoolchain's cxxfilt is rather far behind on features, and we ran into several bugs, add an option to use llvm-cxxfilt as an drop-in replacement. It supports the same options as elftoolchain cxxfilt, though it doesn't have support for old ARM (C++ Annotated Reference Manual, not the CPU) and GNU v2 manglings. But these are irrelevant in 2020. Note: as we already compile the required libraries as part of libllvm, this will not add any significant build time either. PR: 250702 Reviewed by: emaste, yuri Differential Revision: https://reviews.freebsd.org/D27071 MFC r367712: Ensure make delete-old does not unlink the llvm-cxxfilt and its manpage, after r367304 and r367324, when WITH_LLVM_CXXFILT is enabled. Noticed by: "Herbert J. Skuhra" <herbert@gojira.at> Notes: svn path=/stable/11/; revision=368285
* MFC r368248:Mark Johnston2020-12-011-6/+18
| | | | | | | | | | rtsold: Fix multiple buffer overflows Approved by: so Security: CVE-2020-25577 Notes: svn path=/stable/11/; revision=368253
* iconv(1): Add EXAMPLEFernando Apesteguía2020-12-011-0/+7
| | | | | | | | | | Just a small example to show simple usage. Approved by: manpages (0mp@) Differential Revision: https://reviews.freebsd.org/D27385 Notes: svn path=/stable/11/; revision=368243
* MFC r367719:Hans Petter Selasky2020-12-015-19/+93
| | | | | | | | | | | | | | | | | | | | | Make mlx5_cmd_exec_cb() a safe API in mlx5core. APIs that have deferred callbacks should have some kind of cleanup function that callers can use to fence the callbacks. Otherwise things like module unloading can lead to dangling function pointers, or worse. The IB MR code is the only place that calls this function and had a really poor attempt at creating this fence. Provide a good version in the core code as future patches will add more places that need this fence. Linux commit: e355477ed9e4f401e3931043df97325d38552d54 Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=368226
* MFC r367717:Hans Petter Selasky2020-12-014-6/+8
| | | | | | | | | | | | | | | Enhance the mlx5_core_create_cq() function in mlx5core. Enhance mlx5_core_create_cq() to get the command out buffer from the callers to let them use the output. Linux commit: 38164b771947be9baf06e78ffdfb650f8f3e908e Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=368222
* MFC r367716:Hans Petter Selasky2020-12-012-6/+6
| | | | | | | | | | | | | | | | Use mlx5core to create/destroy all Dynamically Connected Targets, DCTs. To prevent a hardware memory leak when a DEVX DCT object is destroyed without calling drain DCT before, (e.g. under cleanup flow), need to manage its creation and destruction via mlx5 core. Linux commit: c5ae1954c47d3fd8815bd5a592aba18702c93f33 Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=368220
* MFC r367715:Hans Petter Selasky2020-12-011-2/+2
| | | | | | | | | | | | | | Fix error handling order in create_kernel_qp in mlx5ib. Make sure order of cleanup is exactly the opposite of initialization. Linux commit: f4044dac63e952ac1137b6df02b233d37696e2f5 Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=368218
* MFC r367555:Hans Petter Selasky2020-12-011-2/+7
| | | | | | | | | | | | | | Include GID type when deleting GIDs from HW table under RoCE in mlx4ib. Refer to the Linux commit mentioned below for a more detailed description. Linux commit: a18177925c252da7801149abe217c05b80884798 Requested by: Isilon Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=368216
* MFC r367622:Hans Petter Selasky2020-12-012-0/+4
| | | | | | | | | | Add more USB quirks. PR: 230038 Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=368214
* MFC r367615:Hans Petter Selasky2020-12-011-10/+15
| | | | | | | | | | | | | Add a tunable sysctl, hw.usb.uaudio.handle_hid, to allow disabling the the HID volume keys support in the USB audio driver. While at it re-organize the USB audio sysctls a bit. Differential Revision: https://reviews.freebsd.org/D27180 Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=368212
* MFC r367614:Hans Petter Selasky2020-12-011-0/+15
| | | | | | | | | | | When doing a USB alternate setting on an USB interface we need to re-configure the XHCI endpoint context. Differential Revision: https://reviews.freebsd.org/D27174 Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=368210
* MFC r367757, r367756, r367759, r367769:Mateusz Piotrowski2020-12-011-30/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve readability of the lists of options - Sort options alphabetically - Add missing arguments (e.g., "list" to -a) - Adjust the width of Bl Clean up the synopsis section & fix mandoc warnings The synopsis section had two very similar entries. The flags documented by the first one were a strict subset of the second one. Let's just keep only the second entry for simplicity. Add an example for the -s flag Partially revert r367756 (chpass(1) synopsis changes) Let's have two entries in the synopsis: - chpass now lists options which can be used for non-NIS-specific functionalities. - ypchpass additionally lists the NIS-specific flags. Technically, it is an artificial distinction, as chpass and ypchpass behave identically. Nevertheless, it might help navigating the synopsis section. Reviewed by: imp Notes: svn path=/stable/11/; revision=368206
* MFC r367114 (by melifaro):Mark Johnston2020-12-011-9/+4
| | | | | | | Fix use-after-free in icmp6_notify_error(). Notes: svn path=/stable/11/; revision=368202
* MFC r366285:Cy Schubert2020-11-301-11/+0
| | | | | | | | Resurrect ipfilter's getifname, replacing the stub with the real function. Notes: svn path=/stable/11/; revision=368201
* MFC r367530:Michael Tuexen2020-11-303-33/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | RFC 7323 specifies that: * TCP segments without timestamps should be dropped when support for the timestamp option has been negotiated. * TCP segments with timestamps should be processed normally if support for the timestamp option has not been negotiated. This patch enforces the above. Manually resolved merge conflicts. MFC 367891: Fix an issue I introuced in r367530: tcp_twcheck() can be called with to == NULL for SYN segments. So don't assume tp != NULL. Thanks to jhb@ for reporting and suggesting a fix. MFC r367946: Fix two occurences of a typo in a comment introduced in r367530. Thanks to lstewart@ for reporting them. PR: 250499 Reviewed by: gnn, rrs Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D27148 Notes: svn path=/stable/11/; revision=368183
* MFC r368084:Mateusz Piotrowski2020-11-291-3/+3
| | | | | | | | | | libprocstat.3: Correct two occurrences of kvm_getprocs to procstat_getprocs Submitted by: otis_sk.freebsd.org Reviewed by: markj Notes: svn path=/stable/11/; revision=368152
* MFC r367094:Cy Schubert2020-11-2872-1506/+3316
| | | | | | | | | MFV r367082: Update unbound 1.11.0 --> 1.12.0. Notes: svn path=/stable/11/; revision=368129
* MFC r367980:Cy Schubert2020-11-271-1/+1
| | | | | | | Fix a typo in a comment. Notes: svn path=/stable/11/; revision=368089
* MFC: Merge ENA v2.3.0 driverMarcin Wojtas2020-11-2520-521/+851
| | | | | | | | | | | | | | | | r367805 Update ENA driver version to v2.3.0 r367803 Rename descriptions of the supported ENA devices r367802 Add ENI metrics for the ENA driver r367801 Add SPDX license tag to the ENA driver files r367800 Add Rx offsets support for the ENA driver r367799 Adjust ENA driver files to latest ena-com changes r367795 Fix completion descriptors alignment for the ENA Obtained from: Semihalf Sponsored by: Amazon, Inc Notes: svn path=/stable/11/; revision=368013
* MFC r367640:Mateusz Piotrowski2020-11-201-1/+4
| | | | | | | Explicitly note in the EXAMPLES section that uname(3) contains more details Notes: svn path=/stable/11/; revision=367872
* MFC r367419:Mateusz Piotrowski2020-11-201-7/+4
| | | | | | | | | | Fix a typo and remove Xr's to vn(4) and vnconfig(4) "mandoc -Tlint" complained about the Xr to vnconfig, which was removed in r238202. I am not sure but maybe it's time to do the same to vn(4). Notes: svn path=/stable/11/; revision=367870
* MFC r367545: ng_nat: unbreak ABIEugene Grosbein2020-11-171-2/+2
| | | | | | | | | | | The revision r342168 broke ABI of ng_nat needlessly and the change was merged to stable branches breaking ABI there, too. Unbreak it. PR: 250722 Notes: svn path=/stable/11/; revision=367748
* MFC r367639:Mateusz Piotrowski2020-11-161-1/+2
| | | | | | | | | | Reference setprogname(3) in setproctitle(3) The reference to setproctitle(3) in the setprogname(3) manual is already in place. Notes: svn path=/stable/11/; revision=367724
* MFC r367253:Mateusz Piotrowski2020-11-151-1/+12
| | | | | | | | | | | Document how to use sudo for SU_CMD It is rather common for the ports users to replace su(1) with sudo(8) within the SU_CMD variable. Let's document it in the manual page (so far it's been hidden in a comment within bsd.commands.mk). Notes: svn path=/stable/11/; revision=367708
* MFC r367623:Dimitry Andric2020-11-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 8df4e6094 from llvm git (by Fangrui Song): [ELF] Don't consider SHF_ALLOC ".debug*" sections debug sections Fixes PR48071 * The Rust compiler produces SHF_ALLOC `.debug_gdb_scripts` (which normally does not have the flag) * `.debug_gdb_scripts` sections are removed from `inputSections` due to --strip-debug/--strip-all * When processing --gc-sections, pieces of a SHF_MERGE section can be marked live separately `=>` segfault when marking liveness of a `.debug_gdb_scripts` which is not split into pieces (because it is not in `inputSections`) This patch circumvents the problem by not treating SHF_ALLOC ".debug*" as debug sections (to prevent --strip-debug's stripping) (which is still useful on its own). Reviewed By: grimar Differential Revision: https://reviews.llvm.org/D91291 This should fix lld segfaulting when linking the rust-based parts of the devel/py-maturin port. Reported by: Nick Venenga <nijave@gmail.com> PR: 250783 Notes: svn path=/stable/11/; revision=367704
* MFC r367567:Mateusz Piotrowski2020-11-131-1/+1
| | | | | | | Address a mandoc warning Notes: svn path=/stable/11/; revision=367634
* MFC r367485:Dimitry Andric2020-11-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 354d3106c from llvm git (by Kai Luo): [PowerPC] Skip combining (uint_to_fp x) if x is not simple type Current powerpc64le backend hits ``` Combining: t7: f64 = uint_to_fp t6 llc: llvm-project/llvm/include/llvm/CodeGen/ValueTypes.h:291: llvm::MVT llvm::EVT::getSimpleVT() const: Assertion `isSimple() && "Expected a SimpleValueType!"' failed. ``` This patch fixes it by skipping combination if `t6` is not simple type. Fixed https://bugs.llvm.org/show_bug.cgi?id=47660. Reviewed By: #powerpc, steven.zhang Differential Revision: https://reviews.llvm.org/D88388 This should fix the llvm assertion mentioned above when building the following ports for powerpc64le: * audio/traverso * databases/percona57-pam-for-mysql * databases/percona57-server * emulators/citra * emulators/citra-qt5 * games/7kaa * graphics/dia * graphics/mandelbulber * graphics/pcl-pointclouds * net-p2p/libtorrent-rasterbar * textproc/htmldoc Requested by: pkubaj Notes: svn path=/stable/11/; revision=367603
* MFC r366683:Dimitry Andric2020-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 35ecc7fe4 from llvm git (by Hubert Tong): [clang][Sema] Fix PR47676: Handle dependent AltiVec C-style cast Fix premature decision in the presence of type-dependent expression operands on whether AltiVec vector initializations from single expressions are "splat" operations. Verify that the instantiation is able to determine the correct cast semantics for both the scalar type and the vector type case. Note that, because the change only affects the single-expression case (and the target type is an AltiVec-style vector type), the replacement of a parenthesized list with a parenthesized expression does not change the semantics of the program in a program-observable manner. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D88526 This should fix 'Assertion failed: (isScalarType()), function getScalarTypeKind, file /usr/src/contrib/llvm-project/clang/lib/AST /Type.cpp, line 2146', when building the graphics/opencv-core port for powerpc64le. Requested by: pkubaj Notes: svn path=/stable/11/; revision=367602
* MFC r367302:Brooks Davis2020-11-111-18/+18
| | | | | | | | | | | | | | | | | | | | | | sysvshm: pass relevant uap members as arguments Alter shmget_allocate_segment and shmget_existing to take the values they want from struct shmget_args rather than passing the struct around. In general, uap structures should only be the interface to sys_<foo> functions. This makes one small functional change and records the allocated space rather than the requested space. If this turns out to be a problem (e.g. if software tries to find undersized segments by exact size rather than using keys), we can correct that easily. Reviewed by: kib Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27077 Notes: svn path=/stable/11/; revision=367601
* MFC r367097:Mateusz Piotrowski2020-11-111-3/+3
| | | | | | | | | | | | Correct USB HID item in examples It turns out that examples were incorrectly referring to Volume_Up and Volume_Down, which are not defined at all. PR: 250683 Notes: svn path=/stable/11/; revision=367587
* MFC r366806:Hans Petter Selasky2020-11-102-0/+2
| | | | | | | | | | | Add new USB quirk. PR: 250422 Submitted by: vidwer+fbsdbugs@gmail.com Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=367565
* MFC r367269:Hans Petter Selasky2020-11-101-43/+42
| | | | | | | | | | | | | | | | | | | | | | Fix for referencing file via its vnode in ibore. Use the native vnode lookup functions, instead of going via the LinuxKPI, because the file referenced is typically created outside the LinuxKPI, and the LinuxKPI's fdget() can only resolve file descriptor numbers which were created by itself. The vnode pointer is used as an identifier to identify XRCD handles which are sharing resources. This patch fixes the so-called XRCD support in ibcore for FreeBSD. Refer to ibv_open_xrcd(3) for more information how the file descriptor argument is used. Reviewed by: kib@ Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/stable/11/; revision=367563