From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757518AbcFAMJb (ORCPT ); Wed, 1 Jun 2016 08:09:31 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35382 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750716AbcFAMJ3 (ORCPT ); Wed, 1 Jun 2016 08:09:29 -0400 From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: rkrcmar@redhat.com Subject: [PATCH 0/7] KVM: syzkaller fixes Date: Wed, 1 Jun 2016 14:09:17 +0200 Message-Id: <1464782964-10481-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 2.5.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These fix most of the bugs reported by Dmitry Vyukov a while back. I couldn't reproduce one of the bugs (patch 7) but the fix is easy. Probably, more VM ioctls should take kvm->lock, but I have not looked at it yet. I have only marked for stable the two patches that fix an oops. However, all of patches 1-6 could go in 4.7-rc, I think. Thanks, Paolo Paolo Bonzini (7): kvm: x86: avoid warning on repeated KVM_SET_TSS_ADDR KVM: x86: avoid vmalloc(0) in the KVM_SET_CPUID KVM: fail KVM_SET_VCPU_EVENTS with invalid exception number KVM: irqfd: fix NULL pointer dereference in kvm_irq_map_gsi KVM: x86: avoid vmalloc(0) in the KVM_SET_CPUID KVM: x86: fix OOPS after invalid KVM_SET_DEBUGREGS KVM: x86: protect KVM_CREATE_PIT/KVM_CREATE_PIT2 with kvm->lock arch/x86/kvm/cpuid.c | 22 ++++++++++++---------- arch/x86/kvm/i8254.c | 4 +++- arch/x86/kvm/x86.c | 15 ++++++++++++--- virt/kvm/irqchip.c | 2 +- virt/kvm/kvm_main.c | 22 ++++++++++++---------- 5 files changed, 40 insertions(+), 25 deletions(-) -- 1.8.3.1