Skip to content
Commit cd9c88da authored by Jordy Zomer's avatar Jordy Zomer Committed by Mike Snitzer
Browse files

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: default avatarJordy Zomer <jordy@pwning.systems>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent a8b9d116
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment