diff options
| author | Magnus Karlsson <[email protected]> | 2018-06-29 09:48:17 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2018-07-02 18:37:11 -0700 |
| commit | 20b52a75166086a40d838397ef3db28a4f2c5998 (patch) | |
| tree | 5c6f0af2b630f695698e9c08459bad13d8abff26 /tools/perf/scripts/python/intel-pt-events.py | |
| parent | d0fbad0aec1df29717fab736eb24c8a49cf2c70b (diff) | |
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: 35fcde7f8deb ("xsk: support for Tx")
Signed-off-by: Magnus Karlsson <[email protected]>
Reported-by: Pavel Odintsov <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions