summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJeremy Cline <jcline@redhat.com>2018-08-13 22:23:13 +0000
committerDavid S. Miller <davem@davemloft.net>2018-08-14 10:01:24 -0700
commit66b51b0a0341fd42ce657739bdae0561b0410a85 (patch)
treefd78fd9cb07be5628896380c282ab7d0e841d7d8 /tools
parent1c89a8e3d9a235454169e189ea6c463bfa8749ab (diff)
downloadlinux-66b51b0a0341fd42ce657739bdae0561b0410a85.tar.bz2
net: sock_diag: Fix spectre v1 gadget in __sock_diag_cmd()
req->sdiag_family is a user-controlled value that's used as an array index. Sanitize it after the bounds check to avoid speculative out-of-bounds array access. This also protects the sock_is_registered() call, so this removes the sanitize call there. Fixes: e978de7a6d38 ("net: socket: Fix potential spectre v1 gadget in sock_is_registered") Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: konrad.wilk@oracle.com Cc: jamie.iles@oracle.com Cc: liran.alon@oracle.com Cc: stable@vger.kernel.org Signed-off-by: Jeremy Cline <jcline@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions