Answers to the three questions:

- How the issue was discovered: manual code inspection.  The handler
was found during a code audit of the idpf virtchnl receive paths;
the bug is visible by reading the function: it resolves the vport
with idpf_vid_to_vport() and then does not use it, indexing
vport_config[] with the raw vport_id instead, unlike every other
call site in the driver.

- Whether the issue was actually triggered: no, it is not proven at
runtime.  The out-of-bounds path requires a control plane that hands
out a vport id not smaller than num_max_vports and then reports a
failing ADD/DEL_MAC_ADDR status for it; no hardware was available to
exercise this, so the issue is theoretical, found by inspection.

- Testing: no real hardware available.  The change is a one-line
substitution of an array index; it was compile-tested with
CONFIG_IDPF=m (x86_64, gcc 12), builds without new warnings.

Thanks.


Reply via email to