linux/net/xdp
Magnus Karlsson 20b52a7516 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: 35fcde7f8d ("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>
2018-07-02 18:37:11 -07:00
..
Kconfig
Makefile xsk: remove newline at end of file 2018-05-18 16:07:02 +02:00
xdp_umem.c xsk: silence warning on memory allocation failure 2018-06-11 23:49:07 +02:00
xdp_umem.h xsk: wire upp Tx zero-copy functions 2018-06-05 15:48:34 +02:00
xdp_umem_props.h xsk: new descriptor addressing scheme 2018-06-04 17:21:02 +02:00
xsk.c Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL 2018-06-28 10:40:47 -07:00
xsk_queue.c xsk: new descriptor addressing scheme 2018-06-04 17:21:02 +02:00
xsk_queue.h xsk: fix potential lost completion message in SKB path 2018-07-02 18:37:11 -07:00