aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/fpga/ice40-spi.c
diff options
context:
space:
mode:
authorJordy Zomer <jordy@jordyzomer.github.io>2022-01-29 15:58:39 +0100
committerMike Snitzer <snitzer@redhat.com>2022-02-22 11:04:41 -0500
commitcd9c88da171a62c4b0f1c70e50c75845969fbc18 (patch)
treee6af6dfa8a8a35becda7882bb15f6439ef7fab36 /drivers/fpga/ice40-spi.c
parentdm: cleanup double word in comment (diff)
downloadwireguard-linux-cd9c88da171a62c4b0f1c70e50c75845969fbc18.tar.xz
wireguard-linux-cd9c88da171a62c4b0f1c70e50c75845969fbc18.zip
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 'drivers/fpga/ice40-spi.c')
0 files changed, 0 insertions, 0 deletions