• Björn Töpel's avatar
    xsk: fix to reject invalid flags in xsk_bind · f54ba391
    Björn Töpel authored
    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: 965a9909 ("xsk: add support for bind for Rx")
    Signed-off-by: default avatarBjörn Töpel <bjorn.topel@intel.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    f54ba391
xsk.c 17.3 KB