aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2023-11-09 17:48:59 +0000
committerJakub Kicinski <[email protected]>2023-11-14 04:51:37 +0000
commit73bde5a3294853947252cd9092a3517c7cb0cd2d (patch)
treeb10fc69b8c99caf44ac193dc0cf9bb8e92e3633d /net/unix/af_unix.c
parentRevert "ptp: Fixes a null pointer dereference in ptp_ioctl" (diff)
downloadkernel-73bde5a3294853947252cd9092a3517c7cb0cd2d.tar.gz
kernel-73bde5a3294853947252cd9092a3517c7cb0cd2d.zip
ptp: annotate data-race around q->head and q->tail
As I was working on a syzbot report, I found that KCSAN would probably complain that reading q->head or q->tail without barriers could lead to invalid results. Add corresponding READ_ONCE() and WRITE_ONCE() to avoid load-store tearing. Fixes: d94ba80ebbea ("ptp: Added a brand new class driver for ptp clocks.") Signed-off-by: Eric Dumazet <[email protected]> Acked-by: Richard Cochran <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions