Description
In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Use only loaded devices for PTP clock operations The PTP periodic worker and PTP operations access PCI registers through the function backing the PTP clock. The PTP clock remains registered when a PCI function is suspended, so these paths can still access the function after it has been unloaded. To fix that, serialize clock hardware access with the clock mutex for all clocks and fail callbacks with -EAGAIN when there is no loaded function to service the clock. Additionally, tie the worker's lifetime to load/unload and use the devcom lock to synchronize with peer loads/unloads. Since the periodic worker is stopped during unload, the free running counter may wrap without being sampled. Reinitialize the timecounter on load using the hardware real time clock in real time mode, or the saved PHC time plus elapsed CLOCK_BOOTTIME in free running mode. This provides best effort PHC continuity across unload/load. In free running mode, elapsed time while unloaded is estimated using CLOCK_BOOTTIME rather than the PHC's adjusted frequency.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
8fc3e29be9248048f449793502c15af329f35c6e to < 64060642d78f239b6231c3d5be85059d6c1695cfaffected8fc3e29be9248048f449793502c15af329f35c6e to < 6f92d58bd65564a83c87721eb2873234eb49ad17affected8fc3e29be9248048f449793502c15af329f35c6e to < 908561cc4b4db4510465f02f5323e98f2dc00fadaffectedfb915f061e9eae214d9bae4d0d7f6d254ab79728affected01212948daab4616e409d2e70fc961340cc9378eaffected5.4.46 to < 5.5affected5.6.18 to < 5.7affected
Linux Linux
Default version status: affected
5.7affected0 to < 5.7unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected