xsk: lock the control mutex in sock_diag interface
authorBjörn Töpel <bjorn.topel@intel.com>
Wed, 4 Sep 2019 11:49:13 +0000 (13:49 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 5 Sep 2019 12:11:52 +0000 (14:11 +0200)
commit25dc18ff9b583a76fff00c7d9d14a40524653c45
tree44b3cf7745546d08d882b8e09403bbe14d6fcf04
parent42fddcc7c64b723a867c7b2f5f7505e244212f13
xsk: lock the control mutex in sock_diag interface

When accessing the members of an XDP socket, the control mutex should
be held. This commit fixes that.

Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Fixes: a36b38aa2af6 ("xsk: add sock_diag interface for AF_XDP")
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
net/xdp/xsk_diag.c