aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorChristopher S M Hall <[email protected]>2025-04-01 23:35:34 +0000
committerTony Nguyen <[email protected]>2025-04-11 16:13:28 +0000
commit1a931c4f5e6862e61a4b130cb76b422e1415f644 (patch)
tree22caef628d788fe46b59e34684263e426825b1fb /net/unix/af_unix.c
parentigc: cleanup PTP module if probe fails (diff)
downloadkernel-1a931c4f5e6862e61a4b130cb76b422e1415f644.tar.gz
kernel-1a931c4f5e6862e61a4b130cb76b422e1415f644.zip
igc: add lock preventing multiple simultaneous PTM transactions
Add a mutex around the PTM transaction to prevent multiple transactors Multiple processes try to initiate a PTM transaction, one or all may fail. This can be reproduced by running two instances of the following: $ sudo phc2sys -O 0 -i tsn0 -m PHC2SYS exits with: "ioctl PTP_OFFSET_PRECISE: Connection timed out" when the PTM transaction fails Note: Normally two instance of PHC2SYS will not run, but one process should not break another. Fixes: a90ec8483732 ("igc: Add support for PTP getcrosststamp()") Signed-off-by: Christopher S M Hall <[email protected]> Reviewed-by: Corinna Vinschen <[email protected]> Signed-off-by: Jacob Keller <[email protected]> Tested-by: Mor Bar-Gabay <[email protected]> Acked-by: Vinicius Costa Gomes <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions