HardenedBSD/src c770519sys/dev/aq aq2_fw.c aq_main.c, sys/dev/e1000 if_em.c if_igbv.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+159-14sys/dev/e1000/if_igbv.c
+114-9sys/dev/aq/aq_irq.c
+83-14sys/dev/aq/aq_main.c
+45-22sys/dev/e1000/if_em.c
+66-0sys/dev/aq/aq2_fw.c
+43-6sys/net/iflib.c
+510-6524 files not shown
+677-10330 files

HardenedBSD/src 8999ddbsys/dev/aq aq2_fw.c aq_main.c, sys/dev/e1000 if_em.c if_igbv.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+159-14sys/dev/e1000/if_igbv.c
+114-9sys/dev/aq/aq_irq.c
+83-14sys/dev/aq/aq_main.c
+45-22sys/dev/e1000/if_em.c
+66-0sys/dev/aq/aq2_fw.c
+43-6sys/net/iflib.c
+510-6523 files not shown
+675-10329 files

HardenedBSD/src 3aec8e8share/man/man7 d.7

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+9-1share/man/man7/d.7
+9-11 files

HardenedBSD/ports 1bcea7baudio/sdl3_mixer pkg-plist Makefile, graphics/oxipng Makefile.crates distinfo

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+31-33graphics/oxipng/distinfo
+55-0security/py-passlib/files/patch-bcrypt.py
+36-0audio/sdl3_mixer/Makefile
+14-15graphics/oxipng/Makefile.crates
+22-0audio/sdl3_mixer/pkg-plist
+3-3net/rustconn/distinfo
+161-5119 files not shown
+201-8225 files

LLVM/project f7edf57llvm/include/llvm/ExecutionEngine/Orc EPCGenericMemoryAccess.h, llvm/lib/ExecutionEngine/Orc SimpleRemoteEPC.cpp InProcessEPC.cpp

[ORC] Construct EPCGenericMemoryAccess from ExecutionSession. (#215097)

Construct EPCGenericMemoryAccess objects from ExecutionSessions, rather
than ExecutorProcessControl objects. This is a step towards migrating
EPCGenericMemoryAccess off of raw callSPSWrapper* calls and on to the
new Proxy objects (d99bd3ed157).
DeltaFile
+16-19llvm/include/llvm/ExecutionEngine/Orc/EPCGenericMemoryAccess.h
+5-4llvm/unittests/ExecutionEngine/Orc/EPCGenericMemoryAccessTest.cpp
+1-1llvm/lib/ExecutionEngine/Orc/SimpleRemoteEPC.cpp
+1-1llvm/lib/ExecutionEngine/Orc/InProcessEPC.cpp
+23-254 files

FreeBSD/src 612f87csys/dev/e1000 if_em.h e1000_vf.c

igbv: Recover when the PF mailbox is unavailable

A VF reset can sanitize its retained queue registers even when the PF
does not complete the cooperative mailbox handshake.  Keep those two
states separate.  Do not program or enable the rings until both queue
sanitation and mailbox initialization have succeeded.

Report either initialization failure to iflib so the interface remains
stopped.  Stopped admin and media-status passes now publish cached
link-down state without polling the mailbox.  While the VF remains
administratively up, retry complete initialization after 250 ms, one
second, four seconds, and then at a capped eight-second interval.
Conditional iflib reset requests ensure an intervening administrative
down cancels a queued retry.

Avoid a redundant mailbox reset in the stop half of an immediate iflib
reinitialization; the following init performs the required reset.
Preserve the reset on an ordinary administrative stop and keep the
existing bounded queue-sanitation retry policy independent from
mailbox liveness recovery.
DeltaFile
+159-14sys/dev/e1000/if_igbv.c
+45-22sys/dev/e1000/if_em.c
+17-15sys/dev/e1000/e1000_vf.c
+11-0sys/dev/e1000/if_em.h
+232-514 files

HardenedBSD/src 612f87csys/dev/e1000 if_em.h e1000_vf.c

igbv: Recover when the PF mailbox is unavailable

A VF reset can sanitize its retained queue registers even when the PF
does not complete the cooperative mailbox handshake.  Keep those two
states separate.  Do not program or enable the rings until both queue
sanitation and mailbox initialization have succeeded.

Report either initialization failure to iflib so the interface remains
stopped.  Stopped admin and media-status passes now publish cached
link-down state without polling the mailbox.  While the VF remains
administratively up, retry complete initialization after 250 ms, one
second, four seconds, and then at a capped eight-second interval.
Conditional iflib reset requests ensure an intervening administrative
down cancels a queued retry.

Avoid a redundant mailbox reset in the stop half of an immediate iflib
reinitialization; the following init performs the required reset.
Preserve the reset on an ordinary administrative stop and keep the
existing bounded queue-sanitation retry policy independent from
mailbox liveness recovery.
DeltaFile
+159-14sys/dev/e1000/if_igbv.c
+45-22sys/dev/e1000/if_em.c
+17-15sys/dev/e1000/e1000_vf.c
+11-0sys/dev/e1000/if_em.h
+232-514 files

HardenedBSD/src 9328a7eshare/man/man9 Makefile iflibdd.9, sys/net iflib.h iflib.c

iflib: Support recoverable initialization failure

The ifdi_init method cannot report an error, so iflib always marks an
interface running and enables its interrupts after the callback returns.
Drivers whose hardware initialization depends on an unavailable peer can
only return early and leave a falsely running interface.

Add iflib_init_failed() so a callback can leave the interface stopped.
Also add a conditional reset request for asynchronous recovery: it is
discarded if the interface is administratively down when the admin task
runs, preventing a queued retry from resurrecting a stopped interface.

Do not restore saved driver flags after an MTU or capability change when
initialization failed.  Restoring the pre-init flags would overwrite the
stopped result with stale RUNNING state.

Document that reset requests require the caller to schedule the admin
task, that output remains blocked during recovery, and that iflib rather
than the driver owns the driver flags.

    [2 lines not shown]
DeltaFile
+43-6sys/net/iflib.c
+35-0share/man/man9/iflibdi.9
+7-4share/man/man9/iflibdd.9
+5-0sys/net/iflib.h
+3-0share/man/man9/Makefile
+93-105 files

FreeBSD/src 9328a7eshare/man/man9 Makefile iflibdd.9, sys/net iflib.h iflib.c

iflib: Support recoverable initialization failure

The ifdi_init method cannot report an error, so iflib always marks an
interface running and enables its interrupts after the callback returns.
Drivers whose hardware initialization depends on an unavailable peer can
only return early and leave a falsely running interface.

Add iflib_init_failed() so a callback can leave the interface stopped.
Also add a conditional reset request for asynchronous recovery: it is
discarded if the interface is administratively down when the admin task
runs, preventing a queued retry from resurrecting a stopped interface.

Do not restore saved driver flags after an MTU or capability change when
initialization failed.  Restoring the pre-init flags would overwrite the
stopped result with stale RUNNING state.

Document that reset requests require the caller to schedule the admin
task, that output remains blocked during recovery, and that iflib rather
than the driver owns the driver flags.

    [2 lines not shown]
DeltaFile
+43-6sys/net/iflib.c
+35-0share/man/man9/iflibdi.9
+7-4share/man/man9/iflibdd.9
+5-0sys/net/iflib.h
+3-0share/man/man9/Makefile
+93-105 files

OpenBSD/src LJ6NkmBshare/misc inter.phone

   fix spelling and update some outdated country/city names
VersionDeltaFile
1.47+6-7share/misc/inter.phone
+6-71 files

HardenedBSD/src 9fd963bshare/man/man9 acl.9

acl(9): fix typo (ACL_ACL -> ACL)

MFC after:      1 week
DeltaFile
+1-1share/man/man9/acl.9
+1-11 files

FreeBSD/src 9fd963bshare/man/man9 acl.9

acl(9): fix typo (ACL_ACL -> ACL)

MFC after:      1 week
DeltaFile
+1-1share/man/man9/acl.9
+1-11 files

HardenedBSD/src 8eced03share/man/man9 atomic.9

atomic(9): add missing .Nm entries

MFC after:      1 week
Reported by:    make manlint
DeltaFile
+3-0share/man/man9/atomic.9
+3-01 files

FreeBSD/src 8eced03share/man/man9 atomic.9

atomic(9): add missing .Nm entries

MFC after:      1 week
Reported by:    make manlint
DeltaFile
+3-0share/man/man9/atomic.9
+3-01 files

FreeBSD/src 4fa245eshare/man/man9 alq.9

alq(9): add missing .Nm entry for ALQ(9)

MFC after:      1 week
Reported by:    make manlint
DeltaFile
+1-0share/man/man9/alq.9
+1-01 files

HardenedBSD/src 4fa245eshare/man/man9 alq.9

alq(9): add missing .Nm entry for ALQ(9)

MFC after:      1 week
Reported by:    make manlint
DeltaFile
+1-0share/man/man9/alq.9
+1-01 files

HardenedBSD/src b96a063share/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
DeltaFile
+2-2share/man/man9/DB_COMMAND.9
+2-21 files

FreeBSD/src b96a063share/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
DeltaFile
+2-2share/man/man9/DB_COMMAND.9
+2-21 files

FreeBSD/src 5007a5dshare/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
DeltaFile
+1-2share/man/man9/cpuset.9
+1-21 files

HardenedBSD/src 5007a5dshare/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
DeltaFile
+1-2share/man/man9/cpuset.9
+1-21 files

FreeBSD/src 503f161usr.sbin/pmc view.cc display.cc

pmc(8): add missing headers to not rely on header pollution

This mutes a number of complains from g++ about needing specific headers
for functionality related to C strings and other function prototypes.

Reported by:    g++ 14
DeltaFile
+2-0usr.sbin/pmc/view.hh
+1-0usr.sbin/pmc/view.cc
+1-0usr.sbin/pmc/display.cc
+1-0usr.sbin/pmc/cmd_pmc_summary.cc
+5-04 files

HardenedBSD/src 503f161usr.sbin/pmc view.cc display.cc

pmc(8): add missing headers to not rely on header pollution

This mutes a number of complains from g++ about needing specific headers
for functionality related to C strings and other function prototypes.

Reported by:    g++ 14
DeltaFile
+2-0usr.sbin/pmc/view.hh
+1-0usr.sbin/pmc/view.cc
+1-0usr.sbin/pmc/display.cc
+1-0usr.sbin/pmc/cmd_pmc_summary.cc
+5-04 files

LLVM/project 941a04ellvm/lib/Target/AMDGPU GCNHazardRecognizer.h AMDGPU.td, llvm/test/CodeGen/AMDGPU fence-barrier-latency.ll llvm.amdgcn.tensor.load.store.ll

[AMDGPU] Keep TDM counter low (#214885)

Fixes: LCOMPILER-2572
DeltaFile
+153-0llvm/test/CodeGen/AMDGPU/hazards-gfx1250.mir
+27-0llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+8-0llvm/lib/Target/AMDGPU/AMDGPU.td
+3-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.tensor.load.store.ll
+1-0llvm/test/CodeGen/AMDGPU/fence-barrier-latency.ll
+1-0llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h
+193-06 files

FreeBSD/src fd80914usr.sbin/pmc view.hh

pmc(8): resolve -Wshadow issues

- Prefix all structs with the struct keyword to avoid collisions between
  the types and variables with the same "name".
- Use `_` suffixed variables in initializers to distinguish input
  parameters from public members [1].

Resolve some trailing whitespace issues while here.

NOTE: this doesn't resolve the -pedantic issue reported by g++ with
`pmchdr_cpuidinfo::cpuid` about the field being a flexible array in an
otherwise empty struct.

1. I generally do this the other way around, i.e., suffix private/protected
   members with `_`, but these are public members in structs and I don't want
   to introduce a lot of churn in calling code.

Reported by:    g++14 with FreeBSD CI (powerpc64 tinderbox)
Fixes:  ce6ab51f ("pmc: enable the new pmc commands")
DeltaFile
+8-8usr.sbin/pmc/view.hh
+8-81 files

HardenedBSD/src fd80914usr.sbin/pmc view.hh

pmc(8): resolve -Wshadow issues

- Prefix all structs with the struct keyword to avoid collisions between
  the types and variables with the same "name".
- Use `_` suffixed variables in initializers to distinguish input
  parameters from public members [1].

Resolve some trailing whitespace issues while here.

NOTE: this doesn't resolve the -pedantic issue reported by g++ with
`pmchdr_cpuidinfo::cpuid` about the field being a flexible array in an
otherwise empty struct.

1. I generally do this the other way around, i.e., suffix private/protected
   members with `_`, but these are public members in structs and I don't want
   to introduce a lot of churn in calling code.

Reported by:    g++14 with FreeBSD CI (powerpc64 tinderbox)
Fixes:  ce6ab51f ("pmc: enable the new pmc commands")
DeltaFile
+8-8usr.sbin/pmc/view.hh
+8-81 files

HardenedBSD/src 7f0932csys/modules/video Makefile

HBSD: Enable -ftrivial-var-auto-init=zero for video(4)

FreeBSD introduced a new driver: video(4). Let's build it with that
mentioned in the subject line.

Signed-off-by:  Shawn Webb <shawn.webb at hardenedbsd.org>
DeltaFile
+2-0sys/modules/video/Makefile
+2-01 files

LLVM/project 8f69580llvm/lib/MC MCXCOFFStreamer.cpp, llvm/test/MC/PowerPC aix-weak-definition.s

[PowerPC][AIX] Reject .weak_definition like ELF (#156072)

weak_definition is a Mach-O-specific directive and is not supported on
XCOFF. Previously it crashed the XCOFF streamer via report_fatal_error
in emitSymbolAttribute. Return false for MCSA_WeakDefinition like
MCELFStreamer does, so the parser rejects it with the same diagnostic as
ELF.
DeltaFile
+13-0llvm/test/MC/PowerPC/aix-weak-definition.s
+4-0llvm/lib/MC/MCXCOFFStreamer.cpp
+17-02 files

LLVM/project efe96c5libc/config/linux/aarch64 entrypoints.txt, libc/config/linux/riscv entrypoints.txt

Revert "[libc] Add realpath to linux entrypoints" (#215156)

Reverts llvm/llvm-project#212925, the tests assume that `/tmp` is a
real, valid directory on the system, which is not true for all
buildbots. `libc-riscv32-qemu-yocto-fullbuild-dbg` in particular seems
to have a symlink or similar from `/tmp` to `/var/volatile/tmp`. See
https://github.com/llvm/llvm-project/pull/212925#issuecomment-5234167255.
DeltaFile
+4-1libc/config/linux/x86_64/entrypoints.txt
+4-1libc/config/linux/riscv/entrypoints.txt
+0-1libc/config/linux/aarch64/entrypoints.txt
+8-33 files

LLVM/project 7941265clang/lib/StaticAnalyzer/Checkers DanglingPtrDeref.cpp

[analyzer] Add aggregate lifetime source binding to DanglingPtrDeref
DeltaFile
+8-0clang/lib/StaticAnalyzer/Checkers/DanglingPtrDeref.cpp
+8-01 files

LLVM/project fbda2f3clang/lib/StaticAnalyzer/Checkers LifetimeModeling.cpp, clang/test/Analysis lifetime-bound.cpp

Handle by-value struct cases and remove test case comment.
DeltaFile
+9-15clang/test/Analysis/lifetime-bound.cpp
+9-3clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.cpp
+18-182 files