Commit Graph

10319 Commits

Author SHA1 Message Date
Dimitry Andric 2b619b7c7b Merge commit 93a67259cf23 from llvm git (by ShengYi Hung):
[ToolChains][FreeBSD] Set default Linker to LLD for FreeBSD (#190596)

  When the linker is specified as ld, toolchain applies special handling
  by invoking (triple)-ld instead of resolving ld via standard PATH
  lookup. This causes GNU ld installed via the system package manager to
  take the precedence (since (triple)-ld appears earlier in the search
  path), effectively overriding ld.lld.

  As a result, we set the default Linker on FreeBSD to ld.lld to indicate
  we want to use lld by default.

PR:		292067
MFC after:	3 days
2026-06-13 12:03:11 +02:00
Gordon Tetlow 980ba4177b ldns: Fix query response validation
Approved by:	so
Security:	FreeBSD-SA-26:36.ldns
Security:	CVE-2026-10846
2026-06-09 19:13:21 +00:00
Dag-Erling Smørgrav 5bd78cfc80 auditd: Fix signal handling
Rewrite the main loop to use ppoll() instead of just blocking on read,
blocking the signals we care about when we aren't polling.

I didn't bother replacing alarm() with setitimer(); the alarm code
is dead anyway since there is no way for max_idletime to acquire a
non-zero value.

While here, avoid leaking the pid file and trigger descriptors to the
log child.

PR:		295840
MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D57451
2026-06-09 00:45:34 +02:00
Dag-Erling Smørgrav 641e8e3956 Revert "libc: Constify the getcap API"
This broke cross-building on Linux and macOS.

This reverts commit 823d00b2d4.
2026-06-05 19:15:46 +02:00
Dag-Erling Smørgrav 823d00b2d4 libc: Constify the getcap API
MFC after:	1 week
Inspired by:	NetBSD
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D57252
2026-06-05 00:41:22 +02:00
Xin LI e949ce9dc0 MFV: file 5.47.
MFC after:	3 days
2026-06-02 21:54:25 -07:00
Dimitry Andric 86326398b7 Merge commit 63c29df8eceb from llvm git (by Dmitry Polukhin):
[Serialization] Fix assertion on re-deserialized friend template spec… (#200566)

  …ialization in PCH (#198133)

  A friend function-template specialization declared inside a class
  template is serialized into a PCH. When the class template is later
  instantiated while loading the PCH, the friend specialization can be
  deserialized re-entrantly (VisitFriendDecl -> VisitFunctionDecl -> ...
  -> VisitFunctionDecl for the same specialization) at the same time as
  the canonical copy, producing two redeclarations of the same
  specialization in the template's specialization set.

  ASTDeclReader::VisitFunctionDecl asserted that this collision could only
  happen when merging declarations from different modules. Since
  38b3d87bd384, friend functions defined inside dependent class templates
  are loaded eagerly, so the collision can now also occur within a single
  PCH/AST file (non-modules build), tripping the assertion:

    Assertion failed: (Reader.getContext().getLangOpts().Modules &&
    "already deserialized this template specialization"), function
    VisitFunctionDecl

  The merge that follows (mergeRedeclarable) already links the two
  redeclarations correctly regardless of whether modules are enabled, so
  the fix is to drop the modules-only assumption and let the merge run.

  Fixes https://github.com/llvm/llvm-project/issues/198133

This fixes (well, simply removes :) an assertion when building the
cad/OrcaSlicer port with precompiled headers turned on.

PR:		295296
MFC after:	3 days
2026-06-01 19:10:11 +02:00
Pietro Cerutti 84dd0acd1c dma: support relaying to an LMTP endpoint
Approved by:		bapt
Differential Revision:	https://reviews.freebsd.org/D55627
Upstream:		https://github.com/corecode/dma/pull/152
2026-06-01 12:19:57 +00:00
Mark Johnston bd15d6ef12 libarchive: Force GNU iconv compatibility on FreeBSD
When libarchive is compiled with FreeBSD's native iconv instead of
libiconv, as happens with libarchive in the base system, we need to
configure iconv(3) to handle invalid sequences by returning -1, as
iconv_strncat_in_locale() assumes GNU iconv semantics.

This corresponds to upstream PR 3056.

PR:		294577
MFC after:	1 week
2026-05-27 15:10:57 +02:00
Cy Schubert 5b8f59e648 sqlite3: Vendor import of sqlite3 3.53.1
Release notes at https://www.sqlite.org/releaselog/3_53_1.html.

Obtained from:  https://www.sqlite.org/2026/sqlite-autoconf-3530100.tar.g

Merge commit 'b00eb376e3fb28e738f9370552dae9d92c1fdd76' into sqlite3
2026-05-25 10:19:28 -07:00
Dag-Erling Smørgrav 50caa0ea0c unbound: Update to 1.25.1
Release notes at
	https://nlnetlabs.nl/news/2026/May/20/unbound-1.25.1-released/

Merge commit '22e58f330a151944c24e010d23ec3881df6681b6'

Security:	CVE-2026-33278
Security:	CVE-2026-42944
Security:	CVE-2026-42959
Security:	CVE-2026-32792
Security:	CVE-2026-40622
Security:	CVE-2026-41292
Security:	CVE-2026-42534
Security:	CVE-2026-42923
Security:	CVE-2026-42960
Security:	CVE-2026-44390
Security:	CVE-2026-44608
MFC after:	1 week
2026-05-23 03:57:43 +02:00
Dag-Erling Smørgrav 5fa84c6ec1 unbound: Update to 1.25.0
Release notes at
	https://nlnetlabs.nl/news/2026/Apr/29/unbound-1.25.0-released/

Merge commit '4dd0a17edce60370304a45f2c40251e09e193bd6'

MFC after:	1 week
2026-05-23 03:54:22 +02:00
Dag-Erling Smørgrav 22fa41b4e8 unbound: Update to 1.24.2
Merge commit 'ec5b94f552d7cb2a9d456c67e9941bcf5e3698bf'

This is purely cosmetic as we already had the functional changes.

MFC after:	1 week
2026-05-22 20:16:26 +00:00
Dag-Erling Smørgrav 290190b26c unbound: Regenerate for 1.24.1
No functional changes intended.

Fixes:		8b29c373e6 ("unbound: Vendor import 1.24.1")
2026-05-22 20:14:47 +00:00
Dag-Erling Smørgrav cd69bc03cf unbound: Tweak freebsd-configure script
Regenerating the configure script is optional and can introduce noise
if the installed versions of autoconf, automake, and libtool do not
match those used upstream.  Tweak our script slightly so it will skip
this step if libtoolize is not found.
2026-05-22 21:55:22 +02:00
Dag-Erling Smørgrav dd64155367 ldns: Fix unused variable on big-endian
MFC after:	1 week
Fixes:		9ed998a81b ("ldns: Update to 1.9.0")
2026-05-22 21:38:34 +02:00
Alexander Ziaee 4e2bf6e90a mdoc.7: Revert upstream changes to Lb/LIBRARY
Since this manual describes the mdoc syntax throughout the ecosystem,
I had to blend what we had before with what upstream is doing now.

Thanks:		adrian
MFC after:	3 days (we shipped this doc in 15.0/14.4)
Reviewed by:	ivy, mhorne, des, adrian
Discussed with:	arch@
Differential Revision:	https://reviews.freebsd.org/D56153
2026-05-22 14:31:54 -04:00
Dag-Erling Smørgrav 70739f3499 ldns: Regenerate configuration after update
MFC after:	1 week
Fixes:		d44c9549ef ("ldns: Update to 1.8.4")
Fixes:		9ed998a81b ("ldns: Update to 1.9.0")
2026-05-22 20:12:26 +02:00
Dag-Erling Smørgrav 9ed998a81b ldns: Update to 1.9.0
Merge commit '5eb18e8576462f5bb33fbd60fcbd752fe5791f33'

MFC after:	1 week
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D57170
2026-05-22 19:54:58 +02:00
Dag-Erling Smørgrav d44c9549ef ldns: Update to 1.8.4
Merge commit '3dcfa5af412125cd1bad1d383ff7c18c5effbd77'

MFC after:	1 week
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D57169
2026-05-22 19:54:09 +02:00
Dag-Erling Smørgrav f103898935 Revert "import ldns 1.8.3"
Pre-push rebase bungled the metadata

This reverts commit 2bc6aa3c41.
2026-05-22 19:53:26 +02:00
Dag-Erling Smørgrav 399f9ca49b Revert "import ldns 1.9.0"
Pre-push rebase bungled the metadata

This reverts commit 597a090ff2.
2026-05-22 19:53:26 +02:00
Dag-Erling Smørgrav 597a090ff2 import ldns 1.9.0
MFC after:	1 week
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D57170
2026-05-22 19:23:59 +02:00
Dag-Erling Smørgrav 2bc6aa3c41 import ldns 1.8.3
MFC after:	1 week
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D57169
2026-05-22 19:23:57 +02:00
Dag-Erling Smørgrav cbe037c970 ldns: Belatedly update for OpenSSL 3.0.0
MFC after:	1 week
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D57168
2026-05-22 19:23:50 +02:00
Dag-Erling Smørgrav 4dd0a17edc import unbound 1.25.0 2026-05-22 16:08:07 +02:00
Dag-Erling Smørgrav 5eb18e8576 import ldns 1.9.0 2026-05-22 15:37:52 +02:00
Dag-Erling Smørgrav 3dcfa5af41 import ldns 1.8.3 2026-05-22 15:36:27 +02:00
John Baldwin 8766e2122a mandoc: Updating FreeBSD thead library descriptions
Remove libkse as it has been obsolete for many years and drop 1:1 from
description of libthr.

Reviewed by:	brooks
Sponsored by:	AFRL, DARPA
Differential Revision:	https://reviews.freebsd.org/D56850
2026-05-13 12:33:29 -04:00
John Baldwin 538f0564c1 mandoc: Add an entry for libsys to lib.in
Reviewed by:	brooks, emaste
Obtained from:	CheriBSD
Sponsored by:	AFRL, DARPA
Differential Revision:	https://reviews.freebsd.org/D56849
2026-05-13 12:33:12 -04:00
Simon J. Gerraty 1729d2f741 Merge bmake-20260508
Merge commit 'ef402bba84260816d3e8d6e2439b0bc7eddc9446'
2026-05-12 21:26:44 -07:00
Philip Paeps 9cc9b8b372 contrib/expat: import expat 2.8.1
Changes: https://github.com/libexpat/libexpat/blob/R_2_8_1/expat/Changes

Security:	CVE-2026-45186
MFC after:	1 week
2026-05-13 11:26:56 +08:00
Chuck Tuffli 346be36e88 smart: Merge smart 1.0.3
Merge commit 'd2d20bb5099dc1c443a4b783d43b8a45338c85d2'
2026-05-12 07:33:03 -07:00
Chuck Tuffli 7419d6e463 Add 'contrib/smart/' from commit 'eb3b1302382b1d0cbe37eeebabfcdd546aa2fc4e'
git-subtree-dir: contrib/smart
git-subtree-mainline: 95b4436e98
git-subtree-split: eb3b130238
2026-05-11 14:50:04 -07:00
Hartmut Brandt 27ad506d26 Document some more OIDs that are used by bsnmp. 2026-05-09 18:04:45 +02:00
Chuck Silvers 7906084ba2 Fix some memory leaks when fetching the mibII.
Reviewed by:	glebius
Sponsored by:	Netflix
Differential Revision:	<https://reviews.freebsd.org/D55998>
2026-05-09 17:52:14 +02:00
Dimitry Andric d9b272a19d Merge commit 871038759afb from llvm git (by Marco Elver):
Thread Safety Analysis: Fix pointer handling of variables with deprecated attributes (#148974)

  de10e44b6fe7 ("Thread Safety Analysis: Support warning on
  passing/returning pointers to guarded variables") added checks for
  passing pointer to guarded variables. While new features do not
  necessarily need to support the deprecated attributes (`guarded_var`,
  and `pt_guarded_var`), we need to ensure that such features do not cause
  the compiler to crash.

  As such, code such as this:

          struct {
            int v __attribute__((guarded_var));
          } p;

          int *g() {
            return &p.v;  // handleNoMutexHeld() with POK_ReturnPointer
          }

  Would crash in debug builds with the assertion in handleNoMutexHeld()
  triggering. The assertion is meant to capture the fact that this helper
  should only be used for warnings on variables (which the deprecated
  attributes only applied to).

  To fix, the function handleNoMutexHeld() should handle all POK cases
  that apply to variables explicitly, and produce a best-effort warning.

  We refrain from introducing new warnings to avoid unnecessary code bloat
  for deprecated features.

  Fixes: https://github.com/llvm/llvm-project/issues/140330

This fixes an assertion while building the net/openvswitch port:
"Assertion failed: ((POK == POK_VarAccess || POK == POK_VarDereference)
&& "Only works for variables"), function handleNoMutexHeld, file
/usr/src/contrib/llvm-project/clang/lib/Sema/AnalysisBasedWarnings.cpp,
line 2120.'

Reported by:	cy
PR:		295101, 292067
MFC after:	1 month
2026-05-08 19:59:54 +02:00
Dag-Erling Smørgrav 8acc4c16c6 vis.3: Try to better describe VIS_SAFE
The current text fails to draw the reader's attention to the fact that
VIS_SAFE essentially exempts certain characters from being encoded.

While here, fix some markup nits.

MFC after:	1 week
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D56716
2026-05-04 14:08:10 +02:00
Dimitry Andric 19ff93c921 Revert 00bee6fcd7, which partially reverted libc++ commit aa7f377c965c
After base 966fb94cb3, this revert is no longer necessary: stdint.h
will unconditionally define macros such as `SIZE_MAX`, `UINT64_C`, and
others.

Submitted by:   Nikolas Klauser <nikolasklauser@berlin.de>
MFC after:      1 month
Reviewed by:    imp
Differential Revision: https://reviews.freebsd.org/D56746
2026-05-01 20:16:18 +02:00
Siva Mahadevan cb0e3a5fba contrib/openresolv: MFV openresolv 3.17.4
Reviewed by:	pfg
Approved by:	lwhsu (mentor)
Differential Revision:	https://reviews.freebsd.org/D56269
2026-04-28 15:26:59 -04:00
Chuck Tuffli e139a49b5d Revert "Vendor import of smart at 1.0.2"
This reverts commit 68e5b71517.
2026-04-28 12:03:38 -07:00
Chuck Tuffli 68e5b71517 Vendor import of smart at 1.0.2
smart/diskhealth is a command line application to monitor disk health
from a storage device via SMART.

Reviewed by:	fuz, jrm
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D56638
2026-04-28 10:08:27 -07:00
Philip Paeps e3935639d8 contrib/expat: import expat 2.8.0
Changes: https://github.com/libexpat/libexpat/blob/R_2_8_0/expat/Changes

Security:	CVE-2026-41080
MFC after:	1 week
2026-04-27 16:24:36 +05:45
Mark Johnston e3b8e55e71 netbsd-tests: Fix the mmap_truncate_signal test
Add a volatile qualifier in the loop which triggers SIGBUS, as otherwise
the compiler is smart enough to elide it, replacing it with a check for
page != 0.

MFC after:	1 week
2026-04-26 01:56:14 +00:00
Dimitry Andric 3cbf898fb4 Add a comment to llvm's OptParser.td, so dependent files get rebuilt.
PR:		292067
MFC after:	1 month
2026-04-25 16:14:23 +02:00
Dimitry Andric 20450c2e79 Merge commit b0d2b57f7e47 from llvm git (by Phoebe Wang):
[Headers][X86] Remove more duplicated typedefs (#153820)

  They are defined in mmintrin.h

This fixes a -Werror warning in openzfs, which compiles for C99, and C99
does not allow for typedef redefinitions.

PR:		292067
MFC after:	1 month
2026-04-25 16:14:23 +02:00
Dimitry Andric 4fc1fdd206 Merge commit c1d26c3c2510 from llvm git (by Nikolas Klauser):
[libc++] Fix iostream size ABI break (#185839)

  In #124103 we changed the size of various iostream objects, which turns
  out to be ABI breaking when compiling non-PIE code.

  This ABI break is safe to fix, since for any programs allocating more
  memory for the iostream objects, the remaining bytes are simply unused
  now.

  Fixes #185724

This fixes the ABI break that causes programs that use the standard
streams to terminate in various interesting ways, usually by throwing an
unexpected std::bad_cast exception.

PR:		292067
MFC after:	1 month
2026-04-25 16:14:22 +02:00
Dimitry Andric 5ac874516b Merge commit 787ba2426148 from llvm git (by Matheus Izvekov):
[clang] create local instantiation scope for matching template template parameters (#183219)

  This fixes a bug where a partial substitution from the enclosing scope
  is used to prepopulate an unrelated template argument deduction.

  Fixes #181166

This fixes an expected error when building the devel/catch port.

PR:		292067
MFC after:	1 month
2026-04-25 16:14:22 +02:00
Dimitry Andric 0f15398d12 Fixup mismerge in __cxx03/__type_traits/add_[lr]value_reference.h.
PR:		292067
MFC after:	1 month
2026-04-25 16:14:22 +02:00
Dimitry Andric 1dfe63e4f7 Merge commit d803c61aca0d from llvm git (by Corentin Jabot):
[Clang] Fix a regression introduced by #147046 (#150893)

  Static functions have an implicit object argument during deduction.

This fixes an assertion while compiling the devel/corrade port.

PR:		292067
MFC after:	1 month
2026-04-25 16:14:22 +02:00