LLVM/project 51c5de8llvm/include/llvm/ADT FoldingSet.h, llvm/lib/Support FoldingSet.cpp

[ADT] Reorder classes in FoldingSet.h (NFC) (#221092)

This patch reorders classes in FoldingSet.h in bottom-up order:

- FoldingSetNode
- FoldingSetIterator
- FoldingSetBase

This setup brings two benefits:

- Eliminates the forward declaration of FoldingSetIterator.

- Enables consistent use of "FoldingSetNode *" instead of "Node *"
  and "void *", eliminating several static_casts.

Assisted-by: Antigravity
DeltaFile
+69-73llvm/include/llvm/ADT/FoldingSet.h
+9-9llvm/lib/Support/FoldingSet.cpp
+78-822 files

LLVM/project bea0cf1clang-tools-extra/clangd IncludeFixer.cpp, clang-tools-extra/clangd/unittests DiagnosticsTests.cpp

[clangd] Avoid invalid include-fixer fuzzy-find queries (#212134)

Fixes #200571.

`operator::align_val_t` is parsed as a conversion-function-id, whose
target type is `::align_val_t`. During typo recovery, Sema correctly
passes clangd a `DeclarationNameInfo` with kind
`CXXConversionFunctionName`; it is not a malformed ordinary identifier.

`UnresolvedNameRecorder` previously flattened every
`DeclarationNameInfo` through `getAsString()`. For a conversion-function
name, that presentation string contains the conversion target type and
can therefore contain a qualified type such as `std::align_val_t`. The
recorder then incorrectly stored that string as `UnresolvedName::Name`
and forwarded it as `FuzzyFindRequest::Query`.

Reject only `CXXConversionFunctionName` before this lossy conversion.
Such a name cannot be represented by IncludeFixer's `Name + Scopes`
model: its embedded type qualification is not the scope of an unresolved

    [5 lines not shown]
DeltaFile
+37-0clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
+7-0clang-tools-extra/clangd/IncludeFixer.cpp
+44-02 files

OPNSense/core 325ec4asrc/etc/inc filter.inc, src/opnsense/mvc/app/models/OPNsense/Firewall/Migrations MFP1_0_9.php MFP1_0_8.php

Firewall: migrate normalization to MVC rules and establish new settings menu (#10826)

Add two automatic migrations for the legacy normalization configuration.
The first converts supported scrub entries into non-quick match rules at
the start of the ruleset, and discards rules that only reference defunct interfaces.
The second copies the global scrub controls into model-owned firewall settings.

Introduce the new tabbed Firewall Settings page with filter scrubbing
options and generate modern reassembly, random ID, and interface MSS
rules from these settings. Remove the legacy normalization pages and
rendering code while retaining their configuration for optional cleanup via ConfigMaintenance.

Move the volatile SNAT mode into the shared settings model without
changing its current GUI. This establishes the settings structure for
additional tabs and allows the remaining legacy advanced firewall
settings to move there eventually.
DeltaFile
+0-673src/www/firewall_scrub_edit.php
+0-433src/www/firewall_scrub.php
+133-0src/opnsense/mvc/app/models/OPNsense/Firewall/Migrations/MFP1_0_8.php
+10-96src/etc/inc/filter.inc
+77-0src/opnsense/mvc/app/views/OPNsense/Firewall/settings.volt
+51-0src/opnsense/mvc/app/models/OPNsense/Firewall/Migrations/MFP1_0_9.php
+271-1,20216 files not shown
+459-1,24922 files

LLVM/project cfdd90dlld/ELF LinkerScript.cpp, lld/test/ELF keep-data-section-prefix.s

[lld][ELF] Introduce an option to keep data section prefix. (#148985)

https://discourse.llvm.org/t/rfc-profile-guided-static-data-partitioning/83744
proposes to partition a static data section (like `.data.rel.ro`) into
two sections, one grouping the cold ones and the other grouping the
rest.

This change implements section grouping for {`.data.rel.ro`, `.data`,
`.rodata`, `.bss`} to group `.hot` input sections to `.<section>.hot` in
the output and to group `.unlikely` input sections to
`.<section>.unlikely`. The grouping functionality is gated under new lld
option `-z,keep-data-section-prefix`. The mapping for hot ones is
illustrated below.

[bar] is a placeholder to represent optional global variable name below
* `.data.rel.ro.hot.[bar]`  => `.data.rel.ro.hot`
* `.data.hot.[bar]` => `.data.hot`
* {`.rodata.hot.[bar]`, `.rodata.str.*.hot.`, `.rodata.cst*.hot.`} =>
.rodata.hot

    [10 lines not shown]
DeltaFile
+140-26lld/test/ELF/keep-data-section-prefix.s
+48-0lld/ELF/LinkerScript.cpp
+188-262 files

HardenedBSD/src 5dd9a9dlib/libcasper/libcasper zygote.c libcasper.c, sys/arm64/arm64 pmap.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+4-4sys/arm64/arm64/pmap.c
+1-1lib/libcasper/libcasper/zygote.c
+1-1lib/libcasper/libcasper/libcasper.c
+1-0sys/dev/ixl/if_ixl.c
+7-64 files

HardenedBSD/src 5ab194dlib/libcasper/libcasper zygote.c libcasper.c, sys/arm64/arm64 pmap.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+4-4sys/arm64/arm64/pmap.c
+1-1lib/libcasper/libcasper/zygote.c
+1-1lib/libcasper/libcasper/libcasper.c
+1-0sys/dev/ixl/if_ixl.c
+7-64 files

HardenedBSD/ports e3a99bcdevel/nimble Makefile, devel/wasmer distinfo

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+159-187textproc/py-tokenizers/distinfo
+78-92textproc/py-tokenizers/Makefile.crates
+79-75devel/wasmer/distinfo
+0-153sysutils/intel-nvmupdate-40g/pkg-plist
+153-0sysutils/intel-nvmupdate-700series/pkg-plist
+115-12devel/nimble/Makefile
+584-519113 files not shown
+1,874-1,216119 files

FreeBSD/src c4df3e3lib/libproc Makefile, share/mk src.libnames.mk

libproc: link against libctf if MK_CTF != no instead of MK_CDDL != no

Logic prior to this change would incorrectly try linking when MK_CDDL != no,
instead of MK_CTF != no, which could result in the library and the tests being
broken if/when MK_CTF == no and MK_CDDL != no (an uncommon, but possible
combination with today's build knobs).

This change updates the conditional to correctly track the value of MK_CTF, which
in turn is properly toggled to no if/when MK_CDDL == no as it's a dependent build
knob.

This [niche] build bug has been present in FreeBSD since 2014.

MFC after:      1 week

(cherry picked from commit f2e6a8b9e50c7552037cb635f17b955ead84a813)
DeltaFile
+1-1share/mk/src.libnames.mk
+1-1lib/libproc/Makefile
+2-22 files

HardenedBSD/src 7d87c1blib/libproc Makefile, share/mk src.libnames.mk

libproc: link against libctf if MK_CTF != no instead of MK_CDDL != no

Logic prior to this change would incorrectly try linking when MK_CDDL != no,
instead of MK_CTF != no, which could result in the library and the tests being
broken if/when MK_CTF == no and MK_CDDL != no (an uncommon, but possible
combination with today's build knobs).

This change updates the conditional to correctly track the value of MK_CTF, which
in turn is properly toggled to no if/when MK_CDDL == no as it's a dependent build
knob.

This [niche] build bug has been present in FreeBSD since 2014.

MFC after:      1 week

(cherry picked from commit f2e6a8b9e50c7552037cb635f17b955ead84a813)
DeltaFile
+1-1share/mk/src.libnames.mk
+1-1lib/libproc/Makefile
+2-22 files

FreeBSD/src 7d87c1blib/libproc Makefile, share/mk src.libnames.mk

libproc: link against libctf if MK_CTF != no instead of MK_CDDL != no

Logic prior to this change would incorrectly try linking when MK_CDDL != no,
instead of MK_CTF != no, which could result in the library and the tests being
broken if/when MK_CTF == no and MK_CDDL != no (an uncommon, but possible
combination with today's build knobs).

This change updates the conditional to correctly track the value of MK_CTF, which
in turn is properly toggled to no if/when MK_CDDL == no as it's a dependent build
knob.

This [niche] build bug has been present in FreeBSD since 2014.

MFC after:      1 week

(cherry picked from commit f2e6a8b9e50c7552037cb635f17b955ead84a813)
DeltaFile
+1-1share/mk/src.libnames.mk
+1-1lib/libproc/Makefile
+2-22 files

HardenedBSD/src 46c155blibexec/rc/rc.d dumpon

rc.d/dumpon: minor hardening/tightening up

- Scope local variables properly to each function.
- Quote variables that should be treated as single words.
- Replace `${cmd}; if [ $? -eq 0 ]` with `if ${cmd}` for simplicity.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57899

(cherry picked from commit fc186c24b1e72fa3eba91c166f7a554a5cea5828)
DeltaFile
+8-5libexec/rc/rc.d/dumpon
+8-51 files

FreeBSD/src 46c155blibexec/rc/rc.d dumpon

rc.d/dumpon: minor hardening/tightening up

- Scope local variables properly to each function.
- Quote variables that should be treated as single words.
- Replace `${cmd}; if [ $? -eq 0 ]` with `if ${cmd}` for simplicity.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57899

(cherry picked from commit fc186c24b1e72fa3eba91c166f7a554a5cea5828)
DeltaFile
+8-5libexec/rc/rc.d/dumpon
+8-51 files

FreeBSD/src b82d506libexec/rc/rc.d dumpon

rc.d/dumpon: minor hardening/tightening up

- Scope local variables properly to each function.
- Quote variables that should be treated as single words.
- Replace `${cmd}; if [ $? -eq 0 ]` with `if ${cmd}` for simplicity.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D57899

(cherry picked from commit fc186c24b1e72fa3eba91c166f7a554a5cea5828)
DeltaFile
+9-5libexec/rc/rc.d/dumpon
+9-51 files

FreeBSD/ports e5d169esysutils/intel-nvmupdate-e830 pkg-message pkg-plist, sysutils/intel-nvmupdate-e830-e835 pkg-message pkg-plist

sysutils/intel-nvmupdate-e830: Move to e830-e835
DeltaFile
+0-44sysutils/intel-nvmupdate-e830/Makefile
+43-0sysutils/intel-nvmupdate-e830-e835/Makefile
+0-39sysutils/intel-nvmupdate-e830/pkg-plist
+39-0sysutils/intel-nvmupdate-e830-e835/pkg-plist
+0-29sysutils/intel-nvmupdate-e830/pkg-message
+29-0sysutils/intel-nvmupdate-e830-e835/pkg-message
+111-1128 files not shown
+124-12414 files

HardenedBSD/ports e5d169esysutils/intel-nvmupdate-e830 pkg-message pkg-plist, sysutils/intel-nvmupdate-e830-e835 pkg-message pkg-plist

sysutils/intel-nvmupdate-e830: Move to e830-e835
DeltaFile
+0-44sysutils/intel-nvmupdate-e830/Makefile
+43-0sysutils/intel-nvmupdate-e830-e835/Makefile
+0-39sysutils/intel-nvmupdate-e830/pkg-plist
+39-0sysutils/intel-nvmupdate-e830-e835/pkg-plist
+0-29sysutils/intel-nvmupdate-e830/pkg-message
+29-0sysutils/intel-nvmupdate-e830-e835/pkg-message
+111-1128 files not shown
+124-12414 files

FreeBSD/src bb0300csys/compat/linuxkpi/common/src linux_firmware.c

linux_firmware: reformat error print-out

This makes it easier to grep for the error message to better understand
the call stack when loading firmware modules fails.

Fix a cosmetic-only style(9) bug while here in the same function related
to another logging message.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D58380

(cherry picked from commit a594783bac906ecc4f6528d7d576215f85a21bda)
DeltaFile
+4-3sys/compat/linuxkpi/common/src/linux_firmware.c
+4-31 files

HardenedBSD/src 49a0bf4sys/compat/linuxkpi/common/src linux_firmware.c

linux_firmware: reformat error print-out

This makes it easier to grep for the error message to better understand
the call stack when loading firmware modules fails.

Fix a cosmetic-only style(9) bug while here in the same function related
to another logging message.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D58380

(cherry picked from commit a594783bac906ecc4f6528d7d576215f85a21bda)
DeltaFile
+4-3sys/compat/linuxkpi/common/src/linux_firmware.c
+4-31 files

FreeBSD/src 49a0bf4sys/compat/linuxkpi/common/src linux_firmware.c

linux_firmware: reformat error print-out

This makes it easier to grep for the error message to better understand
the call stack when loading firmware modules fails.

Fix a cosmetic-only style(9) bug while here in the same function related
to another logging message.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D58380

(cherry picked from commit a594783bac906ecc4f6528d7d576215f85a21bda)
DeltaFile
+4-3sys/compat/linuxkpi/common/src/linux_firmware.c
+4-31 files

HardenedBSD/src 8c0ae18lib/libc/tests/stdlib/libatexit libatexit.cc

[test] libatexit: leverage __{BEGIN,END}_DECLS

This change converts the longhand form of `extern "C" {` and its
corresponding `}` into `__BEGIN_DECLS` and `__END_DECLS`, respectively.

The new form is much easier to grep for and is a best practice to use in
the FreeBSD tree.

This is meant to be a non-functional change.

MFC after:      1 week

(cherry picked from commit bc81728c00b200297ac556974b5373c804077a17)
DeltaFile
+7-4lib/libc/tests/stdlib/libatexit/libatexit.cc
+7-41 files

FreeBSD/src 8c0ae18lib/libc/tests/stdlib/libatexit libatexit.cc

[test] libatexit: leverage __{BEGIN,END}_DECLS

This change converts the longhand form of `extern "C" {` and its
corresponding `}` into `__BEGIN_DECLS` and `__END_DECLS`, respectively.

The new form is much easier to grep for and is a best practice to use in
the FreeBSD tree.

This is meant to be a non-functional change.

MFC after:      1 week

(cherry picked from commit bc81728c00b200297ac556974b5373c804077a17)
DeltaFile
+7-4lib/libc/tests/stdlib/libatexit/libatexit.cc
+7-41 files

FreeBSD/src 10d1f60lib/libc/tests/stdlib/libatexit libatexit.cc

[test] libatexit: leverage __{BEGIN,END}_DECLS

This change converts the longhand form of `extern "C" {` and its
corresponding `}` into `__BEGIN_DECLS` and `__END_DECLS`, respectively.

The new form is much easier to grep for and is a best practice to use in
the FreeBSD tree.

This is meant to be a non-functional change.

MFC after:      1 week

(cherry picked from commit bc81728c00b200297ac556974b5373c804077a17)
DeltaFile
+7-4lib/libc/tests/stdlib/libatexit/libatexit.cc
+7-41 files

HardenedBSD/src 59ee4abshare/man/man9 cpuset.9

cpuset(9): correct markup

- Remove `\(em` from .Nm section as it's not valid mandoc markup.
- Remove the section from the .Nm directive (it's handled under the .Dt
  directive).

MFC after:      1 week
Reported by:    make manlint

(cherry picked from commit 5007a5d682d3737fe9b49c4cd69e04d025d209ec)
DeltaFile
+1-2share/man/man9/cpuset.9
+1-21 files

FreeBSD/src 59ee4abshare/man/man9 cpuset.9

cpuset(9): correct markup

- Remove `\(em` from .Nm section as it's not valid mandoc markup.
- Remove the section from the .Nm directive (it's handled under the .Dt
  directive).

MFC after:      1 week
Reported by:    make manlint

(cherry picked from commit 5007a5d682d3737fe9b49c4cd69e04d025d209ec)
DeltaFile
+1-2share/man/man9/cpuset.9
+1-21 files

FreeBSD/src e892779share/man/man9 cpuset.9

cpuset(9): correct markup

- Remove `\(em` from .Nm section as it's not valid mandoc markup.
- Remove the section from the .Nm directive (it's handled under the .Dt
  directive).

MFC after:      1 week
Reported by:    make manlint

(cherry picked from commit 5007a5d682d3737fe9b49c4cd69e04d025d209ec)
DeltaFile
+1-2share/man/man9/cpuset.9
+1-21 files

FreeBSD/src fb60889share/man/man9 DB_COMMAND.9

DB_COMMAND(9): correct mdoc markup for .Nm entries

Add missing commas after .Nm entries.

MFC after:      1 week
Reported by:    make manlint

(cherry picked from commit b96a063f61001e60ac282eb3500e703c7c3faf9c)
DeltaFile
+2-2share/man/man9/DB_COMMAND.9
+2-21 files

FreeBSD/src afdf887share/man/man9 DB_COMMAND.9

DB_COMMAND(9): correct mdoc markup for .Nm entries

Add missing commas after .Nm entries.

MFC after:      1 week
Reported by:    make manlint

(cherry picked from commit b96a063f61001e60ac282eb3500e703c7c3faf9c)
DeltaFile
+2-2share/man/man9/DB_COMMAND.9
+2-21 files

HardenedBSD/src afdf887share/man/man9 DB_COMMAND.9

DB_COMMAND(9): correct mdoc markup for .Nm entries

Add missing commas after .Nm entries.

MFC after:      1 week
Reported by:    make manlint

(cherry picked from commit b96a063f61001e60ac282eb3500e703c7c3faf9c)
DeltaFile
+2-2share/man/man9/DB_COMMAND.9
+2-21 files

HardenedBSD/ports 1dfdd3dtextproc/xray Makefile.crates Makefile

textproc/xray: Update to 0.5.0
DeltaFile
+5-3textproc/xray/distinfo
+1-1textproc/xray/Makefile
+1-0textproc/xray/Makefile.crates
+7-43 files

FreeBSD/ports 1dfdd3dtextproc/xray Makefile.crates Makefile

textproc/xray: Update to 0.5.0
DeltaFile
+5-3textproc/xray/distinfo
+1-1textproc/xray/Makefile
+1-0textproc/xray/Makefile.crates
+7-43 files

HardenedBSD/ports a7f1fb6textproc/xled Makefile distinfo

textproc/xled: Update to 0.12.2
DeltaFile
+3-3textproc/xled/distinfo
+1-1textproc/xled/Makefile
+4-42 files