diff options
author | 2020-12-07 09:20:08 +0100 | |
---|---|---|
committer | 2020-12-08 17:11:58 +0100 | |
commit | 3546b9b8eced9799b35ef953f766a0973b17fda2 (patch) | |
tree | 7e54c3cfa6e6645d09938f6b368cc391597f2710 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Propagate __user annotations properly (diff) | |
download | wireguard-linux-3546b9b8eced9799b35ef953f766a0973b17fda2.tar.xz wireguard-linux-3546b9b8eced9799b35ef953f766a0973b17fda2.zip |
xsk: Validate socket state in xsk_recvmsg, prior touching socket members
In AF_XDP the socket state needs to be checked, prior touching the
members of the socket. This was not the case for the recvmsg
implementation. Fix that by moving the xsk_is_bound() call.
Fixes: 45a86681844e ("xsk: Add support for recvmsg()")
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20201207082008.132263-1-bjorn.topel@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions