ice: ptp: don't WARN when controlling PF is unavailable
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ice: ptp: don't WARN when controlling PF is unavailable
In VFIO passthrough setups, it is possible to pass through only a PF which doesn't own the source timer. In that case the PTP controlling PF (adapter->ctrl_pf) is never initialized in the VM, so ice_get_ctrl_ptp() returns NULL and triggers WARN_ON() in ice_ptp_setup_pf().
Since this is an expected behavior in that configuration, replace WARN_ON() with an informational message and return -EOPNOTSUPP.
From the CVE record · Linux
In a VFIO passthrough VM, the Linux kernel’s ice PTP setup can trigger a kernel warning when the passed-through PF does not own the source timer. In that configuration, the controlling PF is unavailable; the input does not describe an attacker or an authentication requirement.
Operators running the Linux kernel with ice devices in VFIO passthrough setups should check their systems; affected versions were not provided.