Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xsk: fix potential lost completion message in SKB path
The code in xskq_produce_addr erroneously checked if there was up to LAZY_UPDATE_THRESHOLD amount of space in the completion queue. It only needs to check if there is one slot left in the queue. This bug could under some circumstances lead to a WARN_ON_ONCE being triggered and the completion message to user space being lost. Fixes: 35fcde7 ("xsk: support for Tx") Signed-off-by: Magnus Karlsson <[email protected]> Reported-by: Pavel Odintsov <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
- Loading branch information