Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xsk: avoid store-tearing when assigning queues
Use WRITE_ONCE when doing the store of tx, rx, fq, and cq, to avoid potential store-tearing. These members are read outside of the control mutex in the mmap implementation. Acked-by: Jonathan Lemon <[email protected]> Fixes: 37b0769 ("xsk: add missing write- and data-dependency barrier") Signed-off-by: Björn Töpel <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
- Loading branch information