summaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2018-02-23 21:36:50 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2018-02-24 04:24:12 +0300
commit3e233385ef4a217a2812115ed84d4be36eb16817 (patch)
tree68739747947735b581d92137b65d148227dec70a /net/unix/sysctl_net_unix.c
parent45d0be876308bf2f858559e84455219eadd9ddc7 (diff)
downloadlinux-3e233385ef4a217a2812115ed84d4be36eb16817.tar.xz
KVM: SVM: no need to call access_ok() in LAUNCH_MEASURE command
Using the access_ok() to validate the input before issuing the SEV command does not buy us anything in this case. If userland is giving us a garbage pointer then copy_to_user() will catch it when we try to return the measurement. Suggested-by: Al Viro <viro@ZenIV.linux.org.uk> Fixes: 0d0736f76347 (KVM: SVM: Add support for KVM_SEV_LAUNCH_MEASURE ...) Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim Krčmář <rkrcmar@redhat.com> Cc: Borislav Petkov <bp@suse.de> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: linux-kernel@vger.kernel.org Cc: Joerg Roedel <joro@8bytes.org> Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions