summaryrefslogtreecommitdiffstats
path: root/net/xdp/xsk.c
diff options
context:
space:
mode:
authorMagnus Karlsson2018-06-29 09:48:17 +0200
committerAlexei Starovoitov2018-07-03 03:37:11 +0200
commit20b52a75166086a40d838397ef3db28a4f2c5998 (patch)
tree5c6f0af2b630f695698e9c08459bad13d8abff26 /net/xdp/xsk.c
parentMerge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md (diff)
downloadkernel-qcow2-linux-20b52a75166086a40d838397ef3db28a4f2c5998.tar.gz
kernel-qcow2-linux-20b52a75166086a40d838397ef3db28a4f2c5998.tar.xz
kernel-qcow2-linux-20b52a75166086a40d838397ef3db28a4f2c5998.zip
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 <magnus.karlsson@intel.com> Reported-by: Pavel Odintsov <pavel@fastnetmon.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/xdp/xsk.c')
0 files changed, 0 insertions, 0 deletions