Commit Graph

9958 Commits

Author SHA1 Message Date
Baptiste Daroussin 4087ffdbce nvi: import version 2.2.1-52c07e8 2025-01-02 10:04:12 +01:00
Kyle Evans 35c0a8c449 Add 'contrib/libder/' from commit '9c40c4de4c33b2ba1124fb752ebea0bebaa6013f'
git-subtree-dir: contrib/libder
git-subtree-mainline: d11904b350
git-subtree-split: 9c40c4de4c
2025-01-01 15:11:02 -06:00
Joseph Koshy aac74b708b libelftc: Fix a typo - FreeBSD's riscv port is little-endian.
This change brings the descriptor for target "elf64-riscv-freebsd"
in line with its documentation.

I missed this somehow when reviewing https://reviews.freebsd.org/D20768.

Reported by: Haowu Ge (on elftoolchain-developers)
Reviewed by: emaste, imp
Differential Revision: https://reviews.freebsd.org/D48271
2024-12-31 19:53:05 +00:00
Igor Ostapenko 2ed24e28d1 kyua: Support is_exclusive metadata coming from an ATF test case
On ATF side it is named "is.exclusive".

Reviewed by:	ngie, markj
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D47671
2024-12-24 08:36:33 +00:00
Cy Schubert 98e34e8e25 ntp: Undo upstream (ntp.org) fix for upstream Bug 3851
The patch for upstream (ntp.org) fix for upstream Bug 3851 may have
fixed a Linux bug but it caused a regression when ntpd is run on
FreeBSD.

Suggested that so@ publish an errata and merge this to releng/14.2.

PR:		283116
MFH:		3 days
2024-12-23 14:37:34 -08:00
Warner Losh 70236f02f0 Revert "jemalloc: Reduce diffs to 5.2.1 revert to using JEMALLOC_FALLTHROUGH"
This reverts commit 7bcf5319c1.

Turns out this is needed for gcc, at least through gcc 14. This wasn't
documented it the import when it came in, so revert with this note.

Sponsored by:		Netflix
2024-12-15 09:23:59 -07:00
Warner Losh 59e013a52c jemalloc: Retire SWAP_RESERVE_* compat shims
We no longer need these compat shims. They were needed for FreeBSD 12
and earlier.

Sponsored by:		Netflix
2024-12-13 16:04:40 -07:00
Warner Losh db589b5de6 jemalloc: Retire ifdef for ELF_BSDF_VMNOOVERCOMMIT
ELF_BSDF_VMNOOVERCOMMIT was introduced in time for stable/13 (but not
stable/12), so is now in all supported branches. We're highly unlikely
to merge future versions to stable/13 let alone anything earlier.

Sponsored by:		Netflix
2024-12-13 16:04:40 -07:00
Warner Losh 7bcf5319c1 jemalloc: Reduce diffs to 5.2.1 revert to using JEMALLOC_FALLTHROUGH
In the import of 5.2.1 (c5ad81420c), JEMALLOC_FALLTHROUGH was changed
to break (judging by the tagged upstream sources). This changes it back
to upstream. No functional change: this is just a textual change (though
the fallthrough macro doesn't expand to break).

Sponsored by:		Netflix
2024-12-13 16:04:40 -07:00
Warner Losh 7fdf597e96 jemalloc: Move generated files into lib/libc tree
Make it easire to update jemalloc by moving the FreeBSD specific files
and the generated files into lib/libc. This allows us to regenerate them
more easily, and emphasizes a bit that we may have to regenerate stuff
from upstream.

This is necessary to also unthin the import from the vendor branch as
well (which will be needed to simplify the imports in the future since
we are trying to use contrib/jemalloc for two different things).

No functional change.

Sponsored by:		Netflix
2024-12-13 16:04:39 -07:00
Warner Losh b55f5e1c4a jemalloc: Move generated jemalloc.3 into lib/libc tree
The more generated things that are in contrib/jemalloc tree, the more
chances for interference goes way up. So, move this file into our
lib/libc tree. I didn't add a 'generated file' line / info, but this is
funky enough I don't think we need that. We do add things to the man
page, and that should be tracked in the contrib/jemalloc tree to allow
better importing experience.

Sponsored by:		Netflix
2024-12-13 15:58:31 -07:00
Brooks Davis 3ca117c6bb mandoc: drop 3p section
The 3p is an OpenBSD thing and this list of sections is otherwise
entierly customized to FreeBSD.

Reviewed by:	imp, bapt
Differential Revision:	https://reviews.freebsd.org/D47948
2024-12-09 17:25:36 +00:00
Xin LI 26743408e9 MFV: xz 5.6.3
MFC after:	2 weeks
2024-12-09 07:20:04 -08:00
Xin LI c77c488926 MFV: less v668.
MFC after:	2 weeks
2024-12-08 21:22:12 -08:00
Xin LI 908f215e80 MFV: expat 2.6.4.
MFC after:      2 weeks
2024-12-08 20:25:01 -08:00
Xin LI ae316d1d1c MFV: file 5.46.
MFC after:	2 weeks
2024-12-08 11:08:17 -08:00
Brooks Davis 0fd7b46556 mandoc: remove duplicate libstdthreads entry 2024-12-06 20:48:13 +00:00
Brooks Davis c1c95add8c Merge mandoc snapshot 2024-09-22 2024-12-06 20:47:31 +00:00
Dimitry Andric 71ac745d76 Merge llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.5-0-gab4b5a2db582,
a.k.a. 19.1.5 release.

PR:		280562
MFC after:	3 days
2024-12-06 18:29:48 +01:00
Bjoern A. Zeeb a0e45db6f6 contrib/wpa: pass IFM_IEEE80211_VHT5G if vht_enabled on the channel
Set media mode correctly to IFM_IEEE80211_VHT5G if vht_enabled is set
on the channel.  Otherwise we'll end up setting 11NA.
Not a problem on first sight given net80211 does the upgrade to VHT
for us.  But we would not set iv_des_mode ("desired mode") on the vap.
Setting this will put a contraint on/help scanning for our desired
(VHT) channels to my understanding of the code.

Sponsored by:	The FreeBSD Foundation
MFC after:	6 weeks
Reviewed by:	cy, adrian
Differential Revision:	https://reviews.freebsd.org/D35978
2024-12-02 01:54:05 +00:00
Warner Losh 5fcaf13297 jemalloc: Remove obsolete files from the exclusion list
These files are not present upstream, nor in the tree after
autoconf/configure.

Remove the FREEBSD-* from the exclusion list. This likely breaks
FREEBSD-upgrade, but that needs to be rewritten for being used with a
vendor branch (or just scaled back to be just a how-to, no the full
script). Remove the dot files, since the upgrade process doesn't create
them.

Sponsored by:		Netflix
2024-11-30 23:49:03 -07:00
Warner Losh 8d457988a7 ota: Merge 20240728 (bsd-feature) from ota 3319c34a8713
Jul 28, 2024
	Fixed readcsvrec resize segfault when reading csv records longer
	than 8k. Thanks to Ozan Yigit.
	mktime() added to bsd-features branch. Thanks to Todd Miller.
2024-11-29 21:57:45 -07:00
Zhihao Yuan 06a98fefd3 nvi: Replace Clang-only __builtin_is_aligned with C code (#124)
We should use alignof in the future.

Obtained from: https://github.com/lichray/nvi2/commit/25c4d7db4ea638a31ac458b733a3b67b0a0ff634
2024-11-27 18:35:10 +00:00
Brooks Davis 56ef9c872b nvi: use memmove to realign buffers
Replace a rather convoluted realignment algorithm with memmove().  In
addition to being hard to understand, the code would read beyond the end
of the input buffer in certain conditions (found on CheriBSD).

Sponsored by:	DARPA
Pull Request:	https://github.com/lichray/nvi2/pull/122
2024-11-27 18:20:04 +00:00
Dimitry Andric 415efcecd8 Merge llvm-project release/19.x llvmorg-19.1.4-0-gaadaa00de76e
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.4-0-gaadaa00de76e,
a.k.a. 19.1.4 release.

PR:		280562
MFC after:	1 month
2024-11-21 18:46:18 +01:00
Mark Johnston 4ff291ebe8 vfs: Fix vop_stdis_text()
atomic(9) primitives are documented as operating on unsigned types.
Here, we need a cast to avoid a tautological comparison.

Add a regression test for access(2), which was affected by the bug.

Reported by:	NetApp
Reviewed by:	kib
Fixes:		e511bd1406 ("vfs: fully lockless v_writecount adjustment")
MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Differential Revision:	https://reviews.freebsd.org/D47672
2024-11-19 21:03:14 +00:00
Adrian Chadd 8b51df0d4f wpa: add support for GCMP-128 and BIP-128.
If net80211 announces support for GCMP and/or BIP then configure it
appropriately.

GCMP will be used by WPA3 in the future, and BIP is required for
802.11w/MFP (which is also required by WPA3.)

Differential Revision: https://reviews.freebsd.org/D46499
2024-11-17 10:04:58 -08:00
Dimitry Andric d686ce931c Merge llvm-project release/19.x llvmorg-19.1.3-0-gab51eccf88f5
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.3-0-gab51eccf88f5,
a.k.a. 19.1.3 release.

PR:		280562
MFC after:	1 month
2024-11-08 17:45:31 +01:00
Ed Maste ba10bfe509 libbsm: honour AU_OFLAG_NORESOLVE
AU_OFLAG_NORESOLVE is documented as "Leave user and group IDs in their
numeric form" but it was not actually tested.

OpenBSM pull request at https://github.com/openbsm/openbsm/pull/85

PR:		282271
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47263
2024-11-03 13:37:24 -05:00
Ed Maste 2dccd21949 libcxxrt: Update to upstream 6f2fdfebcd62
Interesting fixes:

3cbfe5a556fe Avoid noreturn warning on terminate()
2024-10-31 11:51:29 -04:00
Dimitry Andric f3457ed942 Tentatively merge llvm fix for buildworld WITH_ASAN
Building world using WITH_ASAN results in an assertion when compiling
certain source files referencing ifuncs:

  Assertion failed: (isa<Function>(Callee) || isa<GlobalAlias>(Callee)), function analyzeAllUses, file /root/freebsd/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cpp, line 514.

This was already reported upstream a while ago, in
<https://github.com/llvm/llvm-project/issues/87923>, but now there is
finally a candidate fix, which seems trivial so I am importing it right
away.

Reported by:	markj
PR:		280936
Pull Request:	https://github.com/llvm/llvm-project/pull/113841
MFC after:	3 days
2024-10-28 18:34:58 +01:00
Robert Clausecker 7ed159c6cc contrib/mandoc: add -isoC-2024 and -svid1 to mdoc(7)
C23 (ISO/IEC 9899:2024) is not out yet, but will be shortly.
SVID1 is needed for the history section of memccpy(3).

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D47284
2024-10-26 20:11:02 +02:00
Dimitry Andric bc9e19dce0 Fix buildworld with gcc 12 after llvm-19 import
Unfortunately gcc 12's is not yet capable of compiling all of libc++
19's C++23 code, which results in errors similar to:

  /usr/src/freebsd/src/contrib/llvm-project/libcxx/include/__algorithm/ranges_contains.h:41:3: error: 'static constexpr bool std::__1::ranges::__contains::__fn::operator()(_Iter, _Sent, const _Type&, _Proj)' must be a non-static member function
     41 |   operator()(_Iter __first, _Sent __last, const _Type& __value, _Proj __proj = {}) {
        |   ^~~~~~~~
  /usr/src/freebsd/src/contrib/llvm-project/libcxx/include/__algorithm/ranges_contains.h:48:3: error: 'static constexpr bool std::__1::ranges::__contains::__fn::operator()(_Range&&, const _Type&, _Proj)' must be a non-static member function
     48 |   operator()(_Range&& __range, const _Type& __value, _Proj __proj = {}) {
        |   ^~~~~~~~

Until we can get rid of gcc 12, work around this by making it compile
libc++ in C++20 mode instead.

NOTE: The resulting libc++ library will not be C++23 compatible! Please
try to avoid shipping it, and use gcc 13 instead, if you must use gcc.

PR:		280562
MFC after:	3 days
2024-10-25 18:08:32 +02:00
Dimitry Andric a5b1eecbed Apply workaround for building llvm-project with WITHOUT_LLVM_ASSERTIONS
Some internal checking functions should only be declared when both
NDEBUG and LLVM_ENABLE_ABI_BREAKING_CHECKS are undefined, otherwise you
would get compile errors similar to:

  /usr/src/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:921:13: error: no member named 'VerifyDAGDivergence' in 'llvm::SelectionDAG'
   921 |     CurDAG->VerifyDAGDivergence();
       |     ~~~~~~  ^

Adjust the conditions for declaring and using these functions. This has
also been reported upstream.

Reported by:	cy
PR:		280562
MFC after:	1 month
2024-10-24 09:03:02 +02:00
Dimitry Andric 5deeebd8c6 Merge llvm-project release/19.x llvmorg-19.1.2-0-g7ba7d8e2f7b6
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.2-0-g7ba7d8e2f7b6,
a.k.a. 19.1.2 release.

PR:		280562
MFC after:	1 month
2024-10-23 20:27:38 +02:00
Dimitry Andric 6e516c87b6 Merge llvm-project release/19.x llvmorg-19.1.1-0-gd401987fe349
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.1-0-gd401987fe349,
a.k.a. 19.1.1 release.

PR:		280562
MFC after:	1 month
2024-10-23 20:27:28 +02:00
Dimitry Andric c80e69b00d Merge llvm-project release/19.x llvmorg-19.1.0-0-ga4bf6cd7cfb1
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.0-0-ga4bf6cd7cfb1,
a.k.a. 19.1.0 release.

PR:		280562
MFC after:	1 month
2024-10-23 20:27:22 +02:00
Dimitry Andric 835c3a3e69 Merge commit 6dbdb8430b49 from llvm git (by Nikolas Klauser):
[Clang] Fix crash due to invalid source location in __is_trivially_equality_comparable (#107815)

  Fixes #107777

This fixes an assertion failure building www/qt5-webengine:

  Assertion failed: (Loc.isValid() && "point of instantiation must be valid!"), function setPointOfInstantiation, file contrib/llvm-project/clang/include/clang/AST/DeclTemplate.h, line 1938.

PR:		280562
MFC after:	1 month
2024-10-23 20:27:19 +02:00
Dimitry Andric 6c4b055cfb Merge llvm-project release/19.x llvmorg-19.1.0-rc4-0-g0c641568515a
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.0-rc4-0-g0c641568515a.

PR:		280562
MFC after:	1 month
2024-10-23 20:27:14 +02:00
Dimitry Andric 6298728806 Merge llvm-project release/19.x llvmorg-19.1.0-rc3-0-g437434df21d8
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.0-rc3-0-g437434df21d8.

PR:		280562
MFC after:	1 month
2024-10-23 20:27:07 +02:00
Dimitry Andric 52418fc2be Merge llvm-project release/19.x llvmorg-19.1.0-rc2-0-gd033ae172d1c
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.0-rc2-0-gd033ae172d1c.

PR:		280562
MFC after:	1 month
2024-10-23 20:26:53 +02:00
Dimitry Andric 072b5fb698 libcxx-compat: revert llvmorg-19-init-4003-g55357160d0e1:
[libc++] Use GCC type traits builtins for remove_cv and remove_cvref (#81386)

  They have been added recently to GCC without support for mangling. This
  patch uses them in structs and adds aliases to these structs instead of
  the builtins directly.

PR:		280562
MFC after:	1 month
2024-10-23 20:26:47 +02:00
Dimitry Andric f3859a1a13 libcxx-compat: revert llvmorg-19-init-4504-g937a5396cf3e:
[libc++] Remove unused includes from __type_traits/is_convertible.h (#83747)

PR:		280562
MFC after:	1 month
2024-10-23 20:26:46 +02:00
Dimitry Andric a7b2d7f261 libcxx-compat: revert llvmorg-19-init-5639-ga10aa4485e83:
[libc++] Simplify the implementation of remove_reference (#85207)

  GCC 13 introduced the type trait `__remove_reference`. We can simplify
  the implementation of `remove_reference` a bit by using it.

PR:		280562
MFC after:	1 month
2024-10-23 20:26:45 +02:00
Dimitry Andric 1199d38d8e libcxx-compat: revert llvmorg-19-init-8667-g472b612ccbed:
[libc++][NFC] Remove unused includes from <__type_traits/remove_cv.h> (#88752)

PR:		280562
MFC after:	1 month
2024-10-23 20:26:45 +02:00
Dimitry Andric 2f2ebe758b libcxx-compat: revert llvmorg-19-init-17473-g69fecaa1a455:
[libc++] Clean up some now dead code with the upgrade to GCC 14 (#97746)

PR:		280562
MFC after:	1 month
2024-10-23 20:26:44 +02:00
Dimitry Andric e8847079df libcxx-compat: revert llvmorg-19-init-17727-g0eebb48fcfbc:
[libc++] Merge is_member{,_object,_function}_pointer.h (#98727)

  The implementations for these traits have been simplified quite a bit,
  since we have builtins available for them now.

PR:		280562
MFC after:	1 month
2024-10-23 20:26:43 +02:00
Dimitry Andric 0bec0529b1 libcxx-compat: revert llvmorg-19-init-17728-g30cc12cd818d:
[libc++] Simplify the implementation of is_null_pointer a bit (#98728)

PR:		280562
MFC after:	1 month
2024-10-23 20:26:42 +02:00
Dimitry Andric e8054e44f4 libcxx-compat: revert llvmorg-19-init-17853-g578c6191eff7:
[libc++] Simplify std::is_void (#99033)

PR:		280562
MFC after:	1 month
2024-10-23 20:26:41 +02:00
Dimitry Andric 04f5b79cfa libcxx-compat: revert llvmorg-19-init-18062-g4dfa75c663e5:
[libc++] Merge is_scoped_enum.h into is_enum.h (#99458)

PR:		280562
MFC after:	1 month
2024-10-23 20:26:40 +02:00