diff options
| author | Jens Axboe <[email protected]> | 2025-04-30 13:17:17 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-04-30 13:17:17 +0000 |
| commit | f024d3a8ded0d8d2129ae123d7a5305c29ca44ce (patch) | |
| tree | 1732015ec2c6dc37f9619d2b219af2725876e2e5 /rust/helpers/mutex.c | |
| parent | io_uring: fix 'sync' handling of io_fallback_tw() (diff) | |
| download | kernel-f024d3a8ded0d8d2129ae123d7a5305c29ca44ce.tar.gz kernel-f024d3a8ded0d8d2129ae123d7a5305c29ca44ce.zip | |
io_uring/fdinfo: annotate racy sq/cq head/tail reads
syzbot complains about the cached sq head read, and it's totally right.
But we don't need to care, it's just reading fdinfo, and reading the
CQ or SQ tail/head entries are known racy in that they are just a view
into that very instant and may of course be outdated by the time they
are reported.
Annotate both the SQ head and CQ tail read with data_race() to avoid
this syzbot complaint.
Link: https://lore.kernel.org/io-uring/[email protected]/
Reported-by: [email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
