summaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorJordy Zomer <jordy@jordyzomer.github.io>2022-01-29 17:58:39 +0300
committerMike Snitzer <snitzer@redhat.com>2022-02-22 19:04:41 +0300
commitcd9c88da171a62c4b0f1c70e50c75845969fbc18 (patch)
treee6af6dfa8a8a35becda7882bb15f6439ef7fab36 /net/unix/sysctl_net_unix.c
parenta8b9d116cda047f38ba29ce26df49c57479ffaa2 (diff)
downloadlinux-cd9c88da171a62c4b0f1c70e50c75845969fbc18.tar.xz
dm ioctl: prevent potential spectre v1 gadget
It appears like cmd could be a Spectre v1 gadget as it's supplied by a user and used as an array index. Prevent the contents of kernel memory from being leaked to userspace via speculative execution by using array_index_nospec. Signed-off-by: Jordy Zomer <jordy@pwning.systems> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions