aboutsummaryrefslogtreecommitdiffstats
path: root/virt/Makefile
diff options
context:
space:
mode:
authorTomas Bortoli <tomasbortoli@gmail.com>2019-01-02 18:29:37 +0100
committerRadim Krčmář <rkrcmar@redhat.com>2019-01-11 18:38:07 +0100
commit98938aa8edd66dc95024d7c936a4bc315f6615ff (patch)
treebd375434926fae25fdef397e84d24d39bf891eeb /virt/Makefile
parentKVM: x86: Fix bit shifting in update_intel_pt_cfg (diff)
downloadlinux-dev-98938aa8edd66dc95024d7c936a4bc315f6615ff.tar.xz
linux-dev-98938aa8edd66dc95024d7c936a4bc315f6615ff.zip
KVM: validate userspace input in kvm_clear_dirty_log_protect()
The function at issue does not fully validate the content of the structure pointed by the log parameter, though its content has just been copied from userspace and lacks validation. Fix that. Moreover, change the type of n to unsigned long as that is the type returned by kvm_dirty_bitmap_bytes(). Signed-off-by: Tomas Bortoli <tomasbortoli@gmail.com> Reported-by: syzbot+028366e52c9ace67deb3@syzkaller.appspotmail.com [Squashed the fix from Paolo. - Radim.] Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'virt/Makefile')
0 files changed, 0 insertions, 0 deletions