ice: Isolate VFs after malicious-driver detectionWire the shared code mailbox-overflow detector into the VF lifecycle and
Consume the per-function MDD latches to attribute transmit and receivevirtchnl dispatcher. E830 controllers use their per-VF hardware
events to the offending VFin-flight-message watermark. Treat the global debug registers only asOn older controllers, attribute a
the last-cause diagnostic, add the missing Tx data-protection cause, andcongested mailbox snapshot to its sender and isolate the offending VF so
select the E830 TCLAN register addresses when required.that it cannot continue to fill the shared queue. A physical VFLR, PF
Block every virtchnl request from an offending VF, reset itt, and leaveor IOV recreation releases it.
its queues and interrupt mappings unconfigured. Most MDD classes stop a
queue, but Tx data protection only drops the offending packet; the reset
makes the reported blocked state an actual DMA fence for every class.
Complete VFR without restoring resources so a later physical FLR can
create a new reset edge and recover the function.
Complete VFR before restoring queue and interrupt mappingsProcess at most one initially full mailbox immediately. E810 doesIf producers
not retain mapping writes while VFSWR remains asserted;keep it nonempty, retaining theleave its interrupt masked and let the periodic admin
original hardware order prevents an immediate post-attach VFR fromtimer schedule bounded drain work. This prevents sustained mailbox
leaving queue-map enable cleartraffic from monopolizing the iflib admin task.
E810 also sets a parent PF_MDET latch for an event attributed by aDocument both protection models and add failure-injection points for the
VP_MDET latch to one of its VFs. Do not reinitialize the PF for thoseisolation and scheduling paths.
event classes. This prevents a hostile VF from flapping PF and sibling
traffic while retaining recovery for an unattributed PF queue event.
ProvideOn an opt-in auto-reset policy for operators who preferE810-XXV with two host-attached iavf VFs, injected overflow on VF
availability to persistent isolation0 disabled only that VF while VF 1 completed 60 of 60 pings. Clear reset induced anti-spoofA physical
latches beforeVFLR and a PF reset each releasing a rebuilt VF.ed VF 0; IOV recreation also reset its
This follows the MDD attribution and reset semantics in sectioncumulative count. Forced persistent mailbox-pending state produced 20
9.2.2.2.1 of the Intel E810 Datasheet. The per-VF register coverage andadmin and control-queue passes in five seconds, remained timer-paced,
E830 TCLAN selection match the Intel ICE driver, while the defaultand did not interrupt sibling traffic.
fail-closed policy follows ixl(4).
Validated on E810 with four four-queue FreeBSD iavf VFs. An invalid
tail write blocked only the offender, incremented its Tx MDD counter,
caused no PF reinitialization, and left a sibling at 50/50 successful
pings. Physical FLR restored the offender and a PF reset rebuilt it
without a spurious anti-spoof block. With auto-reset enabled, the
offender resumed after the reset while its sibling completed 60/60
pings; all queue-map enable bits remained set after the second VFR.
MFC after: 2 weeks
Sponsored by: BBOX.io