Repository navigation
Commit 9707bc9
Annotate lockless reads in homa_qdisc_deferred_offset
homa_qdisc_deferred_offset reads the length of an RPC's deferred packet
queue and its tx_left without holding qdev->defer_lock, while the pacer
modifies both under that lock. The race is intentional, but the reads
were plain loads, which KCSAN reports as a data race. Use
skb_queue_len_lockless and READ_ONCE/WRITE_ONCE.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 4bd0275 commit 9707bc9
2 files changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
| 756 | + | |
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
953 | | - | |
| 953 | + | |
954 | 954 | | |
955 | 955 | | |
956 | 956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
| 487 | + | |
| 488 | + | |
488 | 489 | | |
489 | | - | |
490 | | - | |
| 490 | + | |
| 491 | + | |
491 | 492 | | |
492 | 493 | | |
493 | 494 | | |
| |||
0 commit comments