aboutsummaryrefslogtreecommitdiffstats
path: root/net/xdp/xsk_queue.h
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2019-03-08 08:57:26 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2019-03-08 21:17:06 +0100
commitf54ba391d88f5a5d032175b4c308c176e34b80b7 (patch)
tree57ae0051fe35b78e80d592ac033bc292e863a65c /net/xdp/xsk_queue.h
parentbpf, libbpf: fixing leak when kernel does not support btf (diff)
downloadlinux-dev-f54ba391d88f5a5d032175b4c308c176e34b80b7.tar.xz
linux-dev-f54ba391d88f5a5d032175b4c308c176e34b80b7.zip
xsk: fix to reject invalid flags in xsk_bind
Passing a non-existing flag in the sxdp_flags member of struct sockaddr_xdp was, incorrectly, silently ignored. This patch addresses that behavior, and rejects any non-existing flags. We have examined existing user space code, and to our best knowledge, no one is relying on the current incorrect behavior. AF_XDP is still in its infancy, so from our perspective, the risk of breakage is very low, and addressing this problem now is important. Fixes: 965a99098443 ("xsk: add support for bind for Rx") Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions