diff options
author | Sean Christopherson <[email protected]> | 2021-05-06 10:58:25 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-07-15 10:19:42 -0400 |
commit | b4a693924aab93f3747465b2261add46c82c3220 (patch) | |
tree | 7760d6f83a04d8a47c12cbe4220fc614db9b8e74 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4b639a9f82fcf15497d1613a29aa1df798a24029 (diff) |
KVM: SVM: Return -EFAULT if copy_to_user() for SEV mig packet header fails
Return -EFAULT if copy_to_user() fails; if accessing user memory faults,
copy_to_user() returns the number of bytes remaining, not an error code.
Reported-by: Dan Carpenter <[email protected]>
Cc: Steve Rutherford <[email protected]>
Cc: Brijesh Singh <[email protected]>
Cc: Ashish Kalra <[email protected]>
Fixes: d3d1af85e2c7 ("KVM: SVM: Add KVM_SEND_UPDATE_DATA command")
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions