LLVM/project 3f6b3a3llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer Legality.h

[SandboxVec][Legality] Fix a warning when build with GCC (NFC) (#214907)

Remove `maybe_unused` attribute from ResultReason member, beacuse it
used in `getReason` method. This PR fixes:


llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h:186:33:
error: ‘maybe_unused’ attribute ignored [-Werror=attributes]
  186 |   [[maybe_unused]] ResultReason Reason;
      |                                 ^~~~~~
DeltaFile
+1-1llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Legality.h
+1-11 files

OpenBSD/src CkEyFepetc rc.conf Makefile, etc/rc.d lldpd

   Add daemon control script for lldpd(8)

   We can do that now that other lldpd's script was renamed.

   OK sthen@
VersionDeltaFile
1.1+9-0etc/rc.d/lldpd
1.494+3-2etc/Makefile
1.230+2-1etc/rc.conf
+14-33 files

FreeBSD/src e55338fsys/dev/ixgbe ix_txrx.c

ixgbe: supply PF transmit contexts under SR-IOV

X550-family malicious-driver detection validates the transmit
context selected by a data descriptor with Check Context set.  ixgbe
sets that bit on every transmit data descriptor, but ordinary PF
packets without a VLAN or checksum offload do not create a context
descriptor.  The empty context then reports an invalid MAC-header
length and blocks the PF queue as soon as MDD is enabled.

Create the existing context descriptor for every PF packet while
SR-IOV is active.  This supplies the required MAC-header length and
keeps MDD from mistaking normal PF traffic for a malicious-driver
event.

(cherry picked from commit 0787b1f5b8bdfcaed97eeee7bfbd7f14ac162b0d)
DeltaFile
+1-0sys/dev/ixgbe/ix_txrx.c
+1-01 files

FreeBSD/src 6d30c18sys/dev/ixgbe ix_txrx.c

ixgbe: supply PF transmit contexts under SR-IOV

X550-family malicious-driver detection validates the transmit
context selected by a data descriptor with Check Context set.  ixgbe
sets that bit on every transmit data descriptor, but ordinary PF
packets without a VLAN or checksum offload do not create a context
descriptor.  The empty context then reports an invalid MAC-header
length and blocks the PF queue as soon as MDD is enabled.

Create the existing context descriptor for every PF packet while
SR-IOV is active.  This supplies the required MAC-header length and
keeps MDD from mistaking normal PF traffic for a malicious-driver
event.

(cherry picked from commit 0787b1f5b8bdfcaed97eeee7bfbd7f14ac162b0d)
DeltaFile
+1-0sys/dev/ixgbe/ix_txrx.c
+1-01 files

FreeBSD/src 2f1d9absys/dev/e1000 e1000_82542.c

e1000: Correct 82542 flow-control mode handling

The 82542-specific setup routine unconditionally reads the NVM
default, overwriting a flow-control mode selected by software.  It
also removes transmit PAUSE support from all 82542 revisions even
though the hardware restriction applies only to rev 2.0.

Resolve the NVM default only when requested, scope the transmit
restriction to rev 2.0, and replace integer bit masking of the enum
with explicit valid mode transitions.  This restores the behavior
from before the Intel shared-code split and resolves -Wassign-enum.

Reported by:    glebius
MFC after:      2 weeks
DeltaFile
+32-7sys/dev/e1000/e1000_82542.c
+32-71 files

FreeBSD/src dcdc00asys/dev/ice if_ice_iflib.c

ice: Report initialization failures to iflib

The primary and mirror-VSI ifdi_init callbacks can return early when
reset state or hardware queue and filter setup prevents initialization.
Iflib then marks the interface running and enables interrupts although
the driver did not finish bringing it up.

Report each non-detach failure through iflib_init_failed().  Keep the
existing ice reset and subinterface-reinitialization machinery
responsible for scheduling recovery.

MFC after:      2 weeks
DeltaFile
+13-9sys/dev/ice/if_ice_iflib.c
+13-91 files

FreeBSD/src cb0e8f5sys/dev/bnxt/bnxt_en if_bnxt.c

bnxt: Report initialization failures to iflib

HWRM failures currently return from the void ifdi_init callback.
iflib then marks the interface running and enables interrupts despite an
incomplete ring or VNIC setup.

Move the hardware setup into an error-returning helper.  The ifdi_init
wrapper can report failure through iflib_init_failed(), while firmware
recovery can propagate the same error through bnxt_open().  Also clear
the initialized state after partial setup is torn down.

MFC after:      2 weeks
DeltaFile
+16-4sys/dev/bnxt/bnxt_en/if_bnxt.c
+16-41 files

FreeBSD/src 49f9143sys/dev/ixgbe if_ix.c

ixgbe: Enable PF RSS across queues with SR-IOV

PSRTYPE is indexed by pool in VMDq+RSS mode, and its RQPL
field selects the number of receive queues available within the pool.
The PF occupies the last pool, but the driver programmed pool zero and
left the PF RQPL value at zero.  As a result, all PF receive traffic
was directed to its first queue while SR-IOV was enabled.

Program PSRTYPE for the PF pool and encode its allocated receive queue
count.

MFC after:      2 weeks
DeltaFile
+15-1sys/dev/ixgbe/if_ix.c
+15-11 files

FreeBSD/src 0e56ccbsys/dev/ixgbe ixgbe.h if_ixv.c

ixv: Recover when the PF mailbox is unavailable

A failed VF reset or mailbox API negotiation currently returns from
the void ifdi_init callback. Iflib then marks the interface running
even though ixv left its adapter stopped. Stopped media queries can
continue polling the PF, and no timer remains active to retry when the
PF returns.

Track mailbox readiness and report unsuccessful initialization to
iflib. Stopped admin and media-status passes now publish cached
link-down state without touching 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.

Preserve the requested MAC across reset, then program it once after
mailbox API negotiation. The previous two pre-reset requests each
could wait a full mailbox timeout after an established PF disappeared,
holding the iflib context lock for about two seconds before the reset
handshake.

    [8 lines not shown]
DeltaFile
+226-25sys/dev/ixgbe/if_ixv.c
+6-0sys/dev/ixgbe/ixgbe.h
+232-252 files

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