diff options
| author | Björn Töpel <[email protected]> | 2020-12-07 09:20:08 +0100 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-12-08 17:11:58 +0100 |
| commit | 3546b9b8eced9799b35ef953f766a0973b17fda2 (patch) | |
| tree | 7e54c3cfa6e6645d09938f6b368cc391597f2710 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | 2f4b03195fe8ed3b1e213f4a6cfe14cfc109d829 (diff) | |
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 <[email protected]>
Signed-off-by: Björn Töpel <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Magnus Karlsson <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions