LLVM/project 9851e53 — lldb/source/Plugins/SymbolFile/DWARF SymbolFileDWARFDebugMap.h SymbolFileDWARFDebugMap.cpp, lldb/test/Shell/SymbolFile/DWARF missing-oso.cpp

[lldb] Report missing debug map object files once per module (#237285)

eb5f248268fb reports an error for each debug map object file that does
not exist. A binary that keeps its N_OSO entries but not its object
files, like one built elsewhere and left unstripped, gets one error per
object file.

Report the count once per module instead. A module missing a single
object file still gets the message naming that file, and the per-file
errors remain available through "image dump separate-debug-info".

rdar://189926934
DeltaFile
+36-5lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
+22-4lldb/test/Shell/SymbolFile/DWARF/missing-oso.cpp
+5-0lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.h
+63-93 files

FreeBSD/src d2cb520 — sys/dev/e1000 if_em.c

e1000: clear VFTA when last VLAN is removed

The conventional VLAN filter update skipped zero shadow words. Removing
the final VLAN represented by a VFTA word therefore left the hardware
bit programmed even though the software shadow was clear.

Pass the changed word to em_if_vlan_filter_write() and write it even
when its new value is zero. Retained nonzero words continue to be
replayed as before.

(cherry picked from commit a9305a6f50be89f22c7a469aeee4c3bea2086ace)
DeltaFile
+10-5sys/dev/e1000/if_em.c
+10-51 files

HardenedBSD/src 1b83b9b — lib/libpfctl libpfctl.c, share/man/man3 pthread_query_np.3

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+303-397sys/netpfil/pf/pf_ioctl.c
+24-262sys/net/pfvar.h
+254-0share/man/man3/pthread_query_np.3
+225-3lib/libpfctl/libpfctl.c
+103-121sys/netpfil/pf/if_pfsync.c
+23-157sys/netpfil/pf/pf.c
+932-94047 files not shown
+2,154-1,15953 files

HardenedBSD/src 6396120 — lib/libpfctl libpfctl.c, share/man/man3 pthread_query_np.3

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+303-397sys/netpfil/pf/pf_ioctl.c
+24-262sys/net/pfvar.h
+254-0share/man/man3/pthread_query_np.3
+225-3lib/libpfctl/libpfctl.c
+103-121sys/netpfil/pf/if_pfsync.c
+23-157sys/netpfil/pf/pf.c
+932-94047 files not shown
+2,154-1,15953 files

HardenedBSD/src ae106fa — sys/dev/re if_re.c, sys/dev/usb/net if_ure.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+145-0tests/sys/netpfil/pf/unmapped_mbuf.sh
+102-42sys/netinet/libalias/alias_db.c
+136-4sys/dev/re/if_re.c
+66-3sys/dev/usb/net/if_ure.c
+36-27sys/modules/hwpmc/Makefile
+61-0tests/sys/netinet/carp.sh
+546-7636 files not shown
+767-12542 files

LLVM/project 2230317 — lldb/include/lldb/DataFormatters FormatClasses.h FormatManager.h, lldb/source/DataFormatters ValueObjectPrinter.cpp DataVisualization.cpp

[lldb] Remove ConstString from DataFormatters interfaces (#237013)

We're now at the point where almost all remaining ConstStrings can be
removed from the DataFormatters library. There are 2 left, both of which
are still required because of calls into ValueObject.
DeltaFile
+36-34lldb/source/DataFormatters/FormatManager.cpp
+13-15lldb/source/DataFormatters/DataVisualization.cpp
+9-11lldb/source/DataFormatters/ValueObjectPrinter.cpp
+9-11lldb/include/lldb/DataFormatters/DataVisualization.h
+9-9lldb/include/lldb/DataFormatters/FormatManager.h
+6-6lldb/include/lldb/DataFormatters/FormatClasses.h
+82-869 files not shown
+102-10815 files

HardenedBSD/src 6b4a887 — sys/netlink netlink_message_parser.h

netlink: fix unsigned overflow on a truncated message

PR:                     295106
Submitted by:           Robert Morris <rtm at lcs.mit.edu>
Reviewed by:            pouria, melifaro
Differential Revision:  https://reviews.freebsd.org/D56916

(cherry picked from commit e924a2c80b9e1ace68d8ca0ffdacec65feec90a3)
DeltaFile
+6-0sys/netlink/netlink_message_parser.h
+6-01 files

FreeBSD/src 6b4a887 — sys/netlink netlink_message_parser.h

netlink: fix unsigned overflow on a truncated message

PR:                     295106
Submitted by:           Robert Morris <rtm at lcs.mit.edu>
Reviewed by:            pouria, melifaro
Differential Revision:  https://reviews.freebsd.org/D56916

(cherry picked from commit e924a2c80b9e1ace68d8ca0ffdacec65feec90a3)
DeltaFile
+6-0sys/netlink/netlink_message_parser.h
+6-01 files

HardenedBSD/src c804f6e — sys/netgraph ng_ksocket.c

netgraph/ng_ksocket: Enter epoch on NG_SEND_DATA_ONLY

The work queued by ng_send_fn() is intentionally processed
outside of the epoch in ngthread().
It is ng_ksocket's responsibility to enter epoch if it decides
to send data from such work.

Reviewed by:    glebius
Fixes:  104827151e2a ("ng_iface: don't recursively enter epoch ...")
Differential Revision:  https://reviews.freebsd.org/D60589

(cherry picked from commit 67be955f6bd5d5b51fdee407969d1a7cde156f65)
DeltaFile
+8-1sys/netgraph/ng_ksocket.c
+8-11 files

FreeBSD/src c804f6e — sys/netgraph ng_ksocket.c

netgraph/ng_ksocket: Enter epoch on NG_SEND_DATA_ONLY

The work queued by ng_send_fn() is intentionally processed
outside of the epoch in ngthread().
It is ng_ksocket's responsibility to enter epoch if it decides
to send data from such work.

Reviewed by:    glebius
Fixes:  104827151e2a ("ng_iface: don't recursively enter epoch ...")
Differential Revision:  https://reviews.freebsd.org/D60589

(cherry picked from commit 67be955f6bd5d5b51fdee407969d1a7cde156f65)
DeltaFile
+8-1sys/netgraph/ng_ksocket.c
+8-11 files

FreeBSD/src 9bf31b6 — sys/netgraph ng_iface.c

ng_iface: don't recursively enter epoch in the rcvdata method

Reviewed by:            p.mousavizadeh_protonmail.com, zlei
Differential Revision:  https://reviews.freebsd.org/D54241

(cherry picked from commit 104827151e2abc7fe6fb9bf59a12b443657d1506)
DeltaFile
+0-3sys/netgraph/ng_iface.c
+0-31 files

HardenedBSD/src 9bf31b6 — sys/netgraph ng_iface.c

ng_iface: don't recursively enter epoch in the rcvdata method

Reviewed by:            p.mousavizadeh_protonmail.com, zlei
Differential Revision:  https://reviews.freebsd.org/D54241

(cherry picked from commit 104827151e2abc7fe6fb9bf59a12b443657d1506)
DeltaFile
+0-3sys/netgraph/ng_iface.c
+0-31 files

LLVM/project 169923b — lldb/source/Plugins/ObjectContainer/BSD-Archive ObjectContainerBSDArchive.cpp, lldb/source/Plugins/ObjectContainer/Big-Archive ObjectContainerBigArchive.h

[lldb] Remove ConstString from ObjectContainer (#237025)
DeltaFile
+2-2lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
+1-2lldb/source/Plugins/ObjectContainer/Big-Archive/ObjectContainerBigArchive.h
+3-42 files

FreeBSD/ports ea992f4 — devel/forgejo-cli Makefile

devel/forgejo-cli: Remove leftover comments
DeltaFile
+0-4devel/forgejo-cli/Makefile
+0-41 files

HardenedBSD/ports ea992f4 — devel/forgejo-cli Makefile

devel/forgejo-cli: Remove leftover comments
DeltaFile
+0-4devel/forgejo-cli/Makefile
+0-41 files

HardenedBSD/src d26372f — sys/netgraph ng_socket.c

ng_socket: plug node reference leak

There is no need to reference node in its constructor, the framework
already granted us a reference.  This extraneous reference was later given
back on socket detach.  However, if node is destroyed before the socket,
the node was leaked.  This leak was harmless until VIMAGE, where
vnet_netgraph_uninit() would cycle through all nodes and shut them down
expecting them to not exist after the shutdown.

Fixes: 19284374970533e1aa04020d4f840e8877ed6266
(cherry picked from commit 4d3cbeb7b407e127a5364f86039745068fbfc61f)
DeltaFile
+0-2sys/netgraph/ng_socket.c
+0-21 files

FreeBSD/src d26372f — sys/netgraph ng_socket.c

ng_socket: plug node reference leak

There is no need to reference node in its constructor, the framework
already granted us a reference.  This extraneous reference was later given
back on socket detach.  However, if node is destroyed before the socket,
the node was leaked.  This leak was harmless until VIMAGE, where
vnet_netgraph_uninit() would cycle through all nodes and shut them down
expecting them to not exist after the shutdown.

Fixes: 19284374970533e1aa04020d4f840e8877ed6266
(cherry picked from commit 4d3cbeb7b407e127a5364f86039745068fbfc61f)
DeltaFile
+0-2sys/netgraph/ng_socket.c
+0-21 files

FreeBSD/src 221d978 — sys/netpfil/ipfw/nat64 nat64stl.c nat64clat.c

ipfw/nat64: Fix type confusion panic when using wrong NAT64 instance type

Add etlv type validation to ipfw_nat64clat() and ipfw_nat64stl() to
verify that the retrieved instance is actually a nat64clat instance
before use.

All NAT64 instance types share the same srvstate[] array but have
different struct layouts.
Without type validation, using the wrong instance type with
a handler causes type confusion and kernel panic.

Signed-off-by:  Teddy Engel <engel.teddy at gmail.com>
PR:             292023
Reviewed by:    pouria
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2259

(cherry picked from commit 2e6b22abf44d99b84abf17fe25ca2e8f89716c04)
DeltaFile
+2-1sys/netpfil/ipfw/nat64/nat64stl.c
+2-1sys/netpfil/ipfw/nat64/nat64clat.c
+4-22 files

HardenedBSD/src 221d978 — sys/netpfil/ipfw/nat64 nat64stl.c nat64clat.c

ipfw/nat64: Fix type confusion panic when using wrong NAT64 instance type

Add etlv type validation to ipfw_nat64clat() and ipfw_nat64stl() to
verify that the retrieved instance is actually a nat64clat instance
before use.

All NAT64 instance types share the same srvstate[] array but have
different struct layouts.
Without type validation, using the wrong instance type with
a handler causes type confusion and kernel panic.

Signed-off-by:  Teddy Engel <engel.teddy at gmail.com>
PR:             292023
Reviewed by:    pouria
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2259

(cherry picked from commit 2e6b22abf44d99b84abf17fe25ca2e8f89716c04)
DeltaFile
+2-1sys/netpfil/ipfw/nat64/nat64stl.c
+2-1sys/netpfil/ipfw/nat64/nat64clat.c
+4-22 files

HardenedBSD/src df8a63f — sys/netpfil/ipfw/nat64 nat64lsn.c

nat64lsn: Fix type confusion panic when using wrong NAT64 instance type

When an ipfw rule references a NAT64 instance by name using
'nat64lsn', the kernel looks up the instance in the shared
srvstate[] array without verifying the instance type.
If the named instance is actually a nat64clat or nat64stl
instance (created with 'nat64clat' or 'nat64stl'), the code
incorrectly casts the instance to nat64lsn_instance and
dereferences the ->cfg pointer, which causes a kernel panic.

The root cause is that all NAT64 instance types share the same
srvstate[] array but have different struct layouts.
For nat64lsn_instance, the field after 'no' is a pointer to nat64lsn_cfg.
For nat64clat_cfg, the same offset contains an embedded nat64_config struct.

Fix by adding a type check after NAT64_LOOKUP() to verify that the
instance's etlv matches IPFW_TLV_NAT64LSN_NAME before proceeding.
If the type doesn't match, return IP_FW_DENY to reject the packet
safely rather than crashing.

    [8 lines not shown]
DeltaFile
+2-1sys/netpfil/ipfw/nat64/nat64lsn.c
+2-11 files

FreeBSD/src df8a63f — sys/netpfil/ipfw/nat64 nat64lsn.c

nat64lsn: Fix type confusion panic when using wrong NAT64 instance type

When an ipfw rule references a NAT64 instance by name using
'nat64lsn', the kernel looks up the instance in the shared
srvstate[] array without verifying the instance type.
If the named instance is actually a nat64clat or nat64stl
instance (created with 'nat64clat' or 'nat64stl'), the code
incorrectly casts the instance to nat64lsn_instance and
dereferences the ->cfg pointer, which causes a kernel panic.

The root cause is that all NAT64 instance types share the same
srvstate[] array but have different struct layouts.
For nat64lsn_instance, the field after 'no' is a pointer to nat64lsn_cfg.
For nat64clat_cfg, the same offset contains an embedded nat64_config struct.

Fix by adding a type check after NAT64_LOOKUP() to verify that the
instance's etlv matches IPFW_TLV_NAT64LSN_NAME before proceeding.
If the type doesn't match, return IP_FW_DENY to reject the packet
safely rather than crashing.

    [8 lines not shown]
DeltaFile
+2-1sys/netpfil/ipfw/nat64/nat64lsn.c
+2-11 files

LLVM/project 75f7ed0 — llvm/include/llvm/Target/GlobalISel Combine.td, llvm/test/CodeGen/AArch64/GlobalISel combine-max-min.mir combine-max-min.ll

Revert "[Gisel] smin/umin optimization rewrites" (#237315)

Reverts llvm/llvm-project#203939 due to test failures (see PR comments)
DeltaFile
+0-171llvm/test/CodeGen/AArch64/GlobalISel/combine-max-min.ll
+1-157llvm/test/CodeGen/AArch64/GlobalISel/combine-max-min.mir
+1-25llvm/include/llvm/Target/GlobalISel/Combine.td
+2-3533 files

FreeBSD/src b021a59 — sys/netinet ip_carp.c, tests/sys/netinet carp.sh

carp: fix global demotion counter to VRRP advertisements

When net.inet.carp.preempt=1 and a physical interface goes down, the global
V_carp_demotion counter is incremented. For CARP this was already reflected in
outgoing advertisements via DEMOTE_ADVSKEW(), but VRRP sent the raw
sc_vrrp_prio unchanged, so demotion had no effect.

Add DEMOTE_VRRP_PRIO(), a macro analogous to DEMOTE_ADVSKEW():
It subtracts V_carp_demotion from the configured priority and clamps the result
to [0, 254]. Priority 0 is VRRPv3's "resign" signal and causes backups to
preempt immediately. Priority 255 (IP address owner) is never demoted.

Reviewed by:    kp
Approved by:    kp
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D55558

(cherry picked from commit 9f71153aec0cb455cd49af6d4ca7e4c16fd45d7a)
DeltaFile
+61-0tests/sys/netinet/carp.sh
+14-3sys/netinet/ip_carp.c
+75-32 files

HardenedBSD/src b021a59 — sys/netinet ip_carp.c, tests/sys/netinet carp.sh

carp: fix global demotion counter to VRRP advertisements

When net.inet.carp.preempt=1 and a physical interface goes down, the global
V_carp_demotion counter is incremented. For CARP this was already reflected in
outgoing advertisements via DEMOTE_ADVSKEW(), but VRRP sent the raw
sc_vrrp_prio unchanged, so demotion had no effect.

Add DEMOTE_VRRP_PRIO(), a macro analogous to DEMOTE_ADVSKEW():
It subtracts V_carp_demotion from the configured priority and clamps the result
to [0, 254]. Priority 0 is VRRPv3's "resign" signal and causes backups to
preempt immediately. Priority 255 (IP address owner) is never demoted.

Reviewed by:    kp
Approved by:    kp
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D55558

(cherry picked from commit 9f71153aec0cb455cd49af6d4ca7e4c16fd45d7a)
DeltaFile
+61-0tests/sys/netinet/carp.sh
+14-3sys/netinet/ip_carp.c
+75-32 files

NetBSD/pkgsrc-wip ce532f7 — vscode/patches patch-remote_node__modules_kerberos_binding.gyp patch-node__modules_kerberos_binding.gyp

vscode: use heimdal on NetBSD
DeltaFile
+110-2vscode/patches/patch-remote_node__modules_kerberos_src_unix_kerberos__gss.cc
+110-2vscode/patches/patch-node__modules_kerberos_src_unix_kerberos__gss.cc
+40-0vscode/patches/patch-remote_node__modules_kerberos_src_unix_kerberos__gss.h
+40-0vscode/patches/patch-node__modules_kerberos_src_unix_kerberos__gss.h
+17-5vscode/patches/patch-remote_node__modules_kerberos_binding.gyp
+17-5vscode/patches/patch-node__modules_kerberos_binding.gyp
+334-142 files not shown
+340-208 files

FreeBSD/src 401be0a — sys/net pfil.c

pfil: Avoid potential mbuf tag leak

In '398254f9999e mbuf: simplify m_free' we removed tag processing
on m_free() of M_NOFREE mbufs. It is possible that a packet filter
could attach a tag to this stack mbuf and call m_free()
on it, meaning that 398254f9999e may have introduced a tag leak.

However,if a tag is attached without anyone calling m_free(), then
this leak was pre-existing.

Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D60686
Fixes: 398254f9999e
Sponsored by: Netflix

(cherry picked from commit f4ff995e361fa72cea240c4dbac2d0931965c80f)
DeltaFile
+2-0sys/net/pfil.c
+2-01 files

HardenedBSD/src 401be0a — sys/net pfil.c

pfil: Avoid potential mbuf tag leak

In '398254f9999e mbuf: simplify m_free' we removed tag processing
on m_free() of M_NOFREE mbufs. It is possible that a packet filter
could attach a tag to this stack mbuf and call m_free()
on it, meaning that 398254f9999e may have introduced a tag leak.

However,if a tag is attached without anyone calling m_free(), then
this leak was pre-existing.

Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D60686
Fixes: 398254f9999e
Sponsored by: Netflix

(cherry picked from commit f4ff995e361fa72cea240c4dbac2d0931965c80f)
DeltaFile
+2-0sys/net/pfil.c
+2-01 files

HardenedBSD/src 5a0c302 — sys/sys mbuf.h

mbuf: simplify m_free

The check for  (M_PKTHDR|M_NOFREE) was added by np@ in
"91d1b03d3617 Merge r254736 from user/np/cxl_tuning."
in order to support a clever rx mode optimization used
by cxgbe at the time.  That optimization was removed in
46e1e307edb6 several years ago.  This check is otherwise
unneeded and adds an extraneous test to every mbuf free,
so let's remove it.

Reviewed by: glebius, np
Differential Revision: https://reviews.freebsd.org/D60686
Sponsored by: Netflix

(cherry picked from commit 398254f9999eb1af5f0842570111d584aaf8d01a)
DeltaFile
+0-2sys/sys/mbuf.h
+0-21 files

FreeBSD/src 5a0c302 — sys/sys mbuf.h

mbuf: simplify m_free

The check for  (M_PKTHDR|M_NOFREE) was added by np@ in
"91d1b03d3617 Merge r254736 from user/np/cxl_tuning."
in order to support a clever rx mode optimization used
by cxgbe at the time.  That optimization was removed in
46e1e307edb6 several years ago.  This check is otherwise
unneeded and adds an extraneous test to every mbuf free,
so let's remove it.

Reviewed by: glebius, np
Differential Revision: https://reviews.freebsd.org/D60686
Sponsored by: Netflix

(cherry picked from commit 398254f9999eb1af5f0842570111d584aaf8d01a)
DeltaFile
+0-2sys/sys/mbuf.h
+0-21 files

LLVM/project 433c127 — libc/src/math/generic CMakeLists.txt, libc/src/pthread CMakeLists.txt

[libc] Clean up redundant libc_errno includes and dependencies. (#237273)

- Replace `src/__support/libc_errno.h` with `hdr/errno_macros.h` in
pthread, spawn, stdio, threads, time, and test files that only use errno
constants.
- Remove unused `libc_errno.h` includes and
`libc.src.__support.libc_errno` dependencies from err, stdio,
syscall_wrappers, and tests.
- Remove redundant `libc.src.errno.errno` / `:errno` dependencies from
math, unistd, mman, test, and fuzzer targets in CMake and Bazel.

Assisted-by: Gemini
DeltaFile
+18-22libc/src/pthread/CMakeLists.txt
+0-34libc/src/math/generic/CMakeLists.txt
+0-33libc/test/src/unistd/CMakeLists.txt
+0-26utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+0-24libc/test/src/math/smoke/CMakeLists.txt
+0-17libc/test/src/math/CMakeLists.txt
+18-15693 files not shown
+54-38699 files