[PATCH net 0/2] sfc: fix PTP synchronization races
From: Alex Austin
Date: Fri Oct 09 2026 - 15:19:14 EST
This series fixes PTP synchronization races found by code inspection.
efx_ptp_pps_worker() and the SIOCSHWTSTAMP path through
efx_ptp_change_mode() both call efx_ptp_synchronize(). Concurrent calls
can interfere with the shared DMA handshake and synchronization state.
PHC adjustments can also change the clock during a capture. Patch 1
serializes synchronization transactions and PHC operations. Patch 2
returns the PPS timestamp in caller-owned storage to prevent concurrent
synchronization from overwriting it while the PPS worker reads it.
Alex Austin (2):
sfc: ptp: serialize host and MC synchronization transactions
sfc: ptp: avoid racing PPS timestamp updates
drivers/net/ethernet/sfc/ptp.c | 136 ++++++++++++++++++++++-----------
1 file changed, 90 insertions(+), 46 deletions(-)
--
2.34.1