[Intel-wired-lan] [next-queue v4 03/13] ice: add lock around Tx timestamp tracker flush

G, GurucharanX gurucharanx.g at intel.com
Tue Aug 24 16:23:26 UTC 2021



> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Tony Nguyen
> Sent: Tuesday, August 24, 2021 5:32 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next-queue v4 03/13] ice: add lock around Tx
> timestamp tracker flush
> 
> From: Jacob Keller <jacob.e.keller at intel.com>
> 
> The driver didn't take the lock while flushing the Tx tracker, which could
> cause a race where one thread is trying to read timestamps out while
> another thread is trying to read the tracker to check the timestamps.
> 
> Avoid this by ensuring that flushing is locked against read accesses.
> 
> Fixes: ea9b847cda64 ("ice: enable transmit timestamps for E810 devices")
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_ptp.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 

Tested-by: Gurucharan G <gurucharanx.g at intel.com> (A Contingent worker at Intel)


More information about the Intel-wired-lan mailing list