aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add several sanitizer ignore lists under /usr/lib/clangDimitry Andric2022-05-284-0/+10
| | | | | | | | | | | Some of the sanitizers from compiler-rt can use ignore lists, which are loosely modeled on valgrind's example. Upstream provides default lists for AddressSanitizer, CFI, and MemorySanitizer, so install these in the expected location, /usr/lib/clang/14.0.3/share. Reviewed by: emaste MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35338
* libpmc: Another update of x86 event definitions.Alexander Motin2022-05-27222-60265/+82830
| | | | MFC after: 1 month
* irdma: Add RDMA driver for Intel(R) Ethernet Controller E810Bartosz Sobczak2022-05-232-0/+25
| | | | | | | | | | | | | | | | | This is an initial commit for RDMA FreeBSD driver for Intel(R) Ethernet Controller E810, called irdma. Supporting both RoCEv2 and iWARP protocols in per-PF manner, RoCEv2 being the default. Testing has been done using krping tool, perftest, ucmatose, rping, ud_pingpong, rc_pingpong and others. Signed-off-by: Eric Joyner <erj@FreeBSD.org> Reviewed by: #manpages (pauamma_gundo.com) [documentation] MFC after: 1 week Relnotes: yes Sponsored by: Intel Corporation Differential Revision: https://reviews.freebsd.org/D34690
* pam_exec: fix segfault when authtok is nullYan Ka Chiu2022-05-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | According to pam_exec(8), the `expose_authtok` option should be ignored when the service function is `pam_sm_setcred`. Currently `pam_exec` only prevent prompt for anth token when `expose_authtok` is set on `pam_sm_setcred`. This subsequently led to segfault when there isn't an existing auth token available. Bug reported on this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263893 After reading https://reviews.freebsd.org/rS349556 I am not sure if the default behaviour supposed to be simply not prompt for authentication token, or is it to ignore the option entirely as stated in the man page. This patch is therefore only adding an additional NULL check on the item `pam_get_item` provide, and exit with `PAM_SYSTEM_ERR` when such item is NULL. MFC after: 1 week Reviewed by: des, khng Differential Revision: https://reviews.freebsd.org/D35169
* powerpc: enable supported sanitizers on powerpc64*Piotr Kubaj2022-05-172-1/+35
| | | | | | | | | | | | | | | | | | 1. Merge LLVM's 315d792130258a9b7250494be8d002ebb427b08f, adding support for FreeBSD/powerpc64*. 2. Add sanitizer list to lib/libclang_rt/Makefile, taken from the list of libraries that llvm-devel port builds. 3. powerpc64le supports the same sanitizers that powerpc64, but powerpc64le also supports xray* sanitizers. 4. lib/libclang_rt/xray/Makefile hardcodes amd64-specific files, so that needs to be conditionalized. 5. Sanitizers are not enabled for powerpc, because powerpc supports only builtins and profile. Reviewed by: dim Differential Revision: https://reviews.freebsd.org/D35228 Relnotes: yes MFC after: 3 days
* riscv: also enable includes, stats and stats_client in libclang_rtPiotr Kubaj2022-05-161-0/+3
| | | | | | Reviewed by: dim (earlier version) Differential Revision: https://reviews.freebsd.org/D34735 MFC after: 3 days
* libsysdecode: Fix decoding of SCHED_ flagsDmitry Chagin2022-05-161-1/+1
| | | | | | | | Use sys/sched.h where SCHED_ flags are defined. Reviewed by: emaste Differential revision: https://reviews.freebsd.org/D35208 MFC after: 2 weeks
* kqueue: Fix kqueue(2) man page.Dmitry Chagin2022-05-141-5/+1
| | | | | | | | | Remove bogus BUGS note about timeout limit to 24 hours, that's not true since callouting project import. Reviewed by: mav Differential revision: https://reviews.freebsd.org/D35206 MFC after: 2 weeks
* Merge llvm-project release/14.x llvmorg-14.0.3-0-g1f9140064dfbDimitry Andric2022-05-1414-19/+27
|\ | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14.0.3-0-g1f9140064dfb. PR: 261742 MFC after: 2 weeks
* | Apply libc++ fix for <ranges> not compiling at allDimitry Andric2022-05-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 44cdca37c01a from llvm git (by Arthur O'Dwyer): [libc++] Define `namespace views` in its own detail header. Discovered in the comments on D118748: we would like this namespace to exist anytime Ranges exists, regardless of whether concepts syntax is supported. Also, we'd like to fully granularize the <ranges> header, which means not putting any loose declarations at the top level. Differential Revision: https://reviews.llvm.org/D118809
* | Merge llvm-project release/14.x llvmorg-14.0.0-2-g3f43d803382dDimitry Andric2022-05-143-5/+5
|\| | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14.0.0-2-g3f43d803382d. PR: 261742 MFC after: 2 weeks
* | Merge llvm-project release/14.x llvmorg-14.0.0-rc4-2-gadd3ab7f4c8aDimitry Andric2022-05-143-5/+5
|\| | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14.0.0-rc4-2-gadd3ab7f4c8a. PR: 261742 MFC after: 2 weeks
* | Merge llvm-project release/14.x llvmorg-14.0.0-rc2-12-g09546e1b5103Dimitry Andric2022-05-145-6/+7
|\| | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14.0.0-rc2-12-g09546e1b5103. PR: 261742 MFC after: 2 weeks
* | Merge llvm-project release/14.x llvmorg-14.0.0-rc1-74-g4dc3cb8e3255Dimitry Andric2022-05-1410-18/+35
|\| | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14.0.0-rc1-74-g4dc3cb8e3255. PR: 261742 MFC after: 2 weeks
* | Merge llvm-project release/14.x llvmorg-14-init-18315-g190be5457c90Dimitry Andric2022-05-1412-29/+85
|\| | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14-init-18315-g190be5457c90. PR: 261742 MFC after: 2 weeks
* | Merge llvm-project main llvmorg-14-init-18294-gdb01b123d012Dimitry Andric2022-05-147-11/+15
|\| | | | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14-init-18294-gdb01b123d012, the last commit before the upstream release/14.x branch was created. PR: 261742 MFC after: 2 weeks
* | Merge llvm-project main llvmorg-14-init-17616-g024a1fab5c35Dimitry Andric2022-05-1416-175/+350
|\| | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14-init-17616-g024a1fab5c35. PR: 261742 MFC after: 2 weeks
* | Merge llvm-project main llvmorg-14-init-13186-g0c553cc1af2eDimitry Andric2022-05-142-5/+5
|\| | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14-init-13186-g0c553cc1af2e. PR: 261742 MFC after: 2 weeks
* | Merge llvm-project main llvmorg-14-init-11187-g222442ec2d71Dimitry Andric2022-05-146-7/+172
|\| | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14-init-11187-g222442ec2d71. PR: 261742 MFC after: 2 weeks
* | Merge llvm-project main llvmorg-14-init-10223-g401b76fdf2b3Dimitry Andric2022-05-1432-1412/+2141
|\| | | | | | | | | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14-init-10223-g401b76fdf2b3. PR: 261742 MFC after: 2 weeks
* | libm: Add feenableexcept and fedisableexcept to library on powerpcJustin Hibbits2022-05-143-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: These functions are missing from the library itself, and exist solely in the header. This breaks a few ports that expect libm to have the symbols in the library itself. Questions on MFC-ability: Can this be MFC'd to 13.2, and how? Reviewers: imp, emaste, kib Reviewed By: kib Differential Revision: https://reviews.freebsd.org/D35204
* | Fixed the value returned by sched_getaffinity().Dmitry Chagin2022-05-121-4/+0
| | | | | | | | | | | | | | | | On success gnu libc sched_getaffinity() should return 0, unlike underlying Linux syscall which returns the size of CPU mask copied to user. PR: 263939 MFC after: 2 weeks
* | Use Linux semantics for the thread affinity syscalls.Dmitry Chagin2022-05-113-32/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux has more tolerant checks of the user supplied cpuset_t's. Minimum cpuset_t size that the Linux kernel permits in case of getaffinity() is the maximum CPU id, present in the system / NBBY, the maximum size is not limited. For setaffinity(), Linux does not limit the size of the user-provided cpuset_t, internally using only the meaningful part of the set, where the upper bound is the maximum CPU id, present in the system, no larger than the size of the kernel cpuset_t. Unlike FreeBSD, Linux ignores high bits if set in the setaffinity(), so clear it in the sched_setaffinity() and Linuxulator itself. Reviewed by: Pau Amma (man pages) In collaboration with: jhb Differential revision: https://reviews.freebsd.org/D34849 MFC after: 2 weeks
* | libutil: eliminate one syscall from kinfo_getprocEd Maste2022-05-071-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we invoked the sysctl with a NULL buffer to query the size, allocated a buffer, then invoked it again to fetch the data. As we only handle the case where the sysctl provides data of the expected size we can just allocate a correctly-sized buffer to begin with. Reported by: Thomas Hurst via Twitter Reviewed by: kevans MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35140
* | libc: Add HISTORY sections to the manual pagesGordon Bergling2022-05-0531-35/+263
| | | | | | | | | | | | | | | | | | | | There are some sections which could be improved and work to do so is on going. The work will be covered via 'X-MFC-WITH' commits. Obtained from: OpenBSD MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D34759
* | build target triple variable from sys/conf/newvers.shAlfredo Dal'Ava Junior2022-05-031-3/+6
| | | | | | | | | | | | | | | | | | | | | | Retrieve FreeBSD revision number directly from sys/conf/newvers.sh when building the compiler target triple value, avoiding manual intervention on other files every new release. Reviewed by: imp MFC after: 2 months Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br) Differential Revision: https://reviews.freebsd.org/D34429
* | Remove PAGE_SIZE from libthrAndrew Turner2022-05-0313-11/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In libthr we use PAGE_SIZE when allocating memory with mmap and to check various structs will fit into a single page so we can use this allocator for them. Ask the kernel for the page size on init for use by the page allcator and add a new machine dependent macro to hold the smallest page size the architecture supports to check the structure is small enough. This allows us to use the same libthr on arm64 with either 4k or 16k pages. Reviewed by: kib, markj, imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34984
* | Use the existing page size in libthrAndrew Turner2022-05-031-1/+1
| | | | | | | | | | | | | | | | | | Rather than calling getpagesize() twice use the value saved after the first call to size a mmap allocation. Reviewed by: kib, markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34983
* | libz: update the upgrade instructions to reflect realityXin LI2022-04-301-4/+2
| |
* | Export _Unwind_Complete and _Unwind_VRS_Pop from arm's libgcc_sDimitry Andric2022-04-271-0/+2
| | | | | | | | | | | | | | | | | | | | Apparently some ports on arm require these symbols, and while they were available in llvm's libunwind, they were never exported via the arm specific Symbol.map. Put them in the same version block as gcc does (GCC_3.5). Reported by: Robert Clausecker <fuz_at_fuz.su> MFC after: 3 days
* | sched_getaffinity(3): more compatibility with LinuxKonstantin Belousov2022-04-251-2/+7
| | | | | | | | | | | | | | | | | | | | Report EINVAL instead of EDEADLK when impossible cpu mask is set. Noted by: dchagin Reviewed by: dchagin (previous version), markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D35045
* | pf: Add per-rule timestamps for rule and eth_ruleReid Linnemann2022-04-222-1/+11
| | | | | | | | | | | | | | | | | | | | | | Similar to ipfw rule timestamps, these timestamps internally are uint32_t snaps of the system time in seconds. The timestamp is CPU local and updated each time a rule or a state associated with a rule or state is matched. Reviewed by: kp Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D34970
* | Fix sigtimedwait manpage.Dmitry Chagin2022-04-211-2/+11
| | | | | | | | | | | | | | | | Historically, sigtimedwait() blocks indefinitely if timeout is NULL. Reviewed by: jilles, imp Differential Revision: https://reviews.freebsd.org/D34985 MFC after: 2 weeks
* | bsddialog(3): fix disabled shadowAlfonso S. Siciliano2022-04-201-2/+0
| | | | | | | | | | | | | | | | | | | | | | Fix dialogs building and updating fault with disabled shadow (conf.shadow=false and implicitly bsddialog --no-shadow). While here delete WARNS=2: all warnings were fixed in upstream and imported in 0.2. Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D34958
* | libfetch: remove a set-but-not-uswed variableStefan Eßer2022-04-201-5/+2
| |
* | Bump Dd in getdirentries.2 after c6487446.Dmitry Chagin2022-04-201-1/+1
| | | | | | | | MFC after: 1 week
* | libpfctl: grow request buffer on ENOSPCKristof Provost2022-04-201-139/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | When we issue a request to pf and expect a serialised nvlist as a reply we have to supply a suitable buffer to the kernel. The required size for this buffer is difficult to predict, and may be (slightly) different from request to request. If it's insufficient the kernel will return ENOSPC. Teach libpfctl to catch this and send the request again with a larger buffer. MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D34908
* | geli: Add a chicken switch for unmapped I/OMark Johnston2022-04-181-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | We have a report of a panic in GELI that appears to go away when unmapped I/O is disabled. Add a tunable to make such investigations easier in the future. No functional change intended. PR: 262894 Reviewed by: asomers MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34944
* | Merge bearssl-20220418Simon J. Gerraty2022-04-182-1/+3
| | | | | | | | | | | | | | | | Main change is a callback for checking validity period of certificates. Merge commit 'f6acb9b9f81c96ae7c9592bee1bb89c4357cc3e5' Add -DHAVE_BR_X509_TIME_CHECK to libsecureboot/Makefile.inc
* | Update libsecurebootSimon J. Gerraty2022-04-189-95/+390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preparation for updating bearssl, pull in updates to libsecureboot. o fix handling of some out-of-memory cases o allow more control over reporting of Verified/Unverified files. this helps boot time when console output is slow o recheck verbose/debug level after reading any unverified file o more debug support for vectx o hash_string to support fake stat for tftp o tests/tvo add -v to simply verify signatures o vets.c allow for HAVE_BR_X509_TIME_CHECK which will greatly simplify verification in loader o report date when certificate fails validity period checks Reviewed by: stevek Sponsored by: Juniper Networks, Inc.
* | libsysdecode: Add regression tests for sysdecode_cap_rights(3)Mark Johnston2022-04-153-0/+160
| | | | | | | | | | | | | | Reviewed by: jhb, emaste MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34900
* | libsysdecode: Include required headers in sysdecode.hMark Johnston2022-04-1517-39/+4
| | | | | | | | | | | | | | | | | | | | Make sysdecode.h self-contained rather than forcing all consumers to include dependencies. No functional change intended. Reviewed by: pauamma_gundo.com, jhb, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34899
* | time(3): Refine history in the manual pageGordon Bergling2022-04-141-8/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The time() system call first appeared in Version 1 AT&T UNIX. Through the Version 3 AT&T UNIX, it returned 60 Hz ticks since an epoch that changed occasionally, because it was a 32-bit value that overflowed in a little over 2 years. In Version 4 AT&T UNIX the granularity of the return value was reduced to whole seconds, delaying the aforementioned overflow until 2038. Version 7 AT&T UNIX introduced the ftime() system call, which returned time at a millisecond level, though retained the gtime() system call (exposed as time() in userland). time() could have been implemented as a wrapper around ftime(), but that wasn't done. 4.1cBSD implemented a higher-precision time function gettimeofday() to replace ftime() and reimplemented time() in terms of that. Since FreeBSD 9 the implementation of time() uses clock_gettime(CLOCK_SECOND) instead of gettimeofday() for performance reasons. With most valuable input from Warner (imp@). Reviewed by: 0mp, jilles, imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D34751
* | Mostly revert a5970a529c2d95271: Make files opened with O_PATH to not block ↵Konstantin Belousov2022-04-131-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | non-forced unmount Problem is that open(O_PATH) on nullfs -o nocache is broken then, because there is no reference on the vnode after the open syscall exits. Reported and tested by: ambrisko Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week
* | ssh: update to OpenSSH v8.9p1Ed Maste2022-04-131-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Release notes are available at https://www.openssh.com/txt/release-8.9 Some highlights: * ssh(1), sshd(8), ssh-add(1), ssh-agent(1): add a system for restricting forwarding and use of keys added to ssh-agent(1) * ssh(1), sshd(8): add the sntrup761x25519-sha512@openssh.com hybrid ECDH/x25519 + Streamlined NTRU Prime post-quantum KEX to the default KEXAlgorithms list (after the ECDH methods but before the prime-group DH ones). The next release of OpenSSH is likely to make this key exchange the default method. * sshd(8), portable OpenSSH only: this release removes in-built support for MD5-hashed passwords. If you require these on your system then we recommend linking against libxcrypt or similar. Future deprecation notice ========================= A near-future release of OpenSSH will switch scp(1) from using the legacy scp/rcp protocol to using SFTP by default. Legacy scp/rcp performs wildcard expansion of remote filenames (e.g. "scp host:* .") through the remote shell. This has the side effect of requiring double quoting of shell meta-characters in file names included on scp(1) command-lines, otherwise they could be interpreted as shell commands on the remote side. MFC after: 1 month Relnotes: Yes Sponsored by: The FreeBSD Foundation
* | | libsysdecode: Fix decoding of Capsicum rightsMark Johnston2022-04-133-5/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Capsicum rights are a bit tricky since some of them are subsets of others, and one can have rights R1 and R2 such that R1 is a subset of R2, but there is no collection of named rights whose union is R2. So, they don't behave like most other flag sets. sysdecode_cap_rights(3) does not handle this properly and so can emit misleading decodings. Try to fix all of these problems: - Include composite rights in the caprights table. - Use a constructor to sort the caprights table such that "larger" rights appear first and thus are matched first. - Don't print rights that are a subset of rights already printed, so as to minimize the length of the output. - Print a trailing message if some of the specific rights are not matched by the table. PR: 263165 Reviewed by: pauamma_gundo.com (doc), jhb, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34874
* | | [patch][doc] Fix EXAMPLE in kqueue(2)Fernando Apesteguía2022-04-131-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The error control was not properly implemented. "changelist" is const, hence event.flags is never changed by the syscall. PR: 196844 Reported by: eugen@ Reviewed by: PauAmma <pauamma@gundo.com> Approved by: eugen@ Fixes: 8c231786f01b9f8614e2fe5b47196db1caa7a772
* | | Remove checks for __GNUCLIKE_ASM assuming it is always true.John Baldwin2022-04-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All supported compilers (modern versions of GCC and clang) support this. Many places didn't have an #else so would just silently do the wrong thing. Ancient versions of icc (the original motivation for this) are no longer a compiler FreeBSD supports. PR: 263102 (exp-run) Reviewed by: brooks, imp Differential Revision: https://reviews.freebsd.org/D34797
* | | getdirentries: return ENOENT for unlinked but still open directory.Dmitry Chagin2022-04-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | To be more compatible to IEEE Std 1003.1-2008 (“POSIX.1”). Reviewed by: mjg, Pau Amma (doc) Differential revision: https://reviews.freebsd.org/D34680 MFC after: 2 weeks
* | | libprocstat: document procstat_getadvlock(3)Konstantin Belousov2022-04-091-1/+28
| | | | | | | | | | | | | | | | | | | | | Reviewed by: markj, rmacklem Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D34756