diff options
author | Siddharth Chandrasekaran <[email protected]> | 2021-05-03 14:21:11 +0200 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-05-07 06:06:14 -0400 |
commit | aca352886ebdd675b5131ed4c83bf5477eee5d72 (patch) | |
tree | 8745e7e5fb654f4918ae5db0f335e92b7fdf29c9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5f443e424efab56baa8021da04878f88eb0815d4 (diff) |
KVM: x86: Hoist input checks in kvm_add_msr_filter()
In ioctl KVM_X86_SET_MSR_FILTER, input from user space is validated
after a memdup_user(). For invalid inputs we'd memdup and then call
kfree unnecessarily. Hoist input validation to avoid kfree altogether.
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Sean Christopherson <[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