Received: by 10.223.176.5 with SMTP id f5csp101250wra; Thu, 1 Feb 2018 16:22:13 -0800 (PST) X-Google-Smtp-Source: AH8x225HXs9TQcuDUUwCwxSOYezwtih0ICgJImL0WfhMHUvVyaH8s0kmhW0MSgc+G+EmVBMN89op X-Received: by 2002:a17:902:6bca:: with SMTP id m10-v6mr32730633plt.351.1517530933032; Thu, 01 Feb 2018 16:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517530933; cv=none; d=google.com; s=arc-20160816; b=MRrYBqPX0N7sUadLid2pMsyy0cO0X9lZ4U4ywbIviJO0hWD+5mvKqKRS9h60pOYWpJ 0trLPtshEG5+GcPMW9bwJ6fOqMFNbucYQFODKWztsSVLBCNjC2NdkzSWuVBf93i9UWEC 1PLPRa5Hy0cwzNC2CXdzsO+efX/f594Rze7zD+HuAyIMP7lVa51BGL7EbcoPE3XbKL7G Ul1pm1K4N9QtP9kJ14LH2MkiTTtD6964dUDB/DSW6h83ojP20btJV2crgleYVLaw5z0u jRKMHh35Qh8a83BKTXUzbmnSDnGR1y6qGQs3k/UmCob6tUqXkT54W30dpZAs7Bgn8n7M 8d9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=Bmaq8t51hWzXGg5MLjytDQc+24Q9Zbwhup7JQzMmT28=; b=VN+djxLgCj6hql0h3SuYmbcA2TrjXCxDydFBVz1rZmpCWh1OXkr8F5zsJW0JI7pggd BFyQoUbscnc7RljN1NJhs6oB2ypKuoxeeGJHZ+FXec7OuUQN9NX7qSr5KzpSSNjuc0Ae lNsPhhONeAxszdzxymIsd2MRVoANjBYl75tV97WGGywt5FZlP9RIw3qAT2Agr1aDmdtH H2zIg29J3xOjqdW76swhp2A2V0ZT5VjlMZLp6oLtfsnLRC1IUy404d2fSPoFJbBj2YUA oycMfYmm9+I5WDTuKy8qN0VQX+OyMbv5pckj4wXwl2O5QD2NEX/NcRpVXLTRp6P2yGlc pekA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=gRnjfzwf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89-v6si631619plb.612.2018.02.01.16.21.47; Thu, 01 Feb 2018 16:22:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=gRnjfzwf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751660AbeBBAUm (ORCPT + 99 others); Thu, 1 Feb 2018 19:20:42 -0500 Received: from ozlabs.org ([103.22.144.67]:54137 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751472AbeBBAUd (ORCPT ); Thu, 1 Feb 2018 19:20:33 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 3zXd1B1X6Rz9sBZ; Fri, 2 Feb 2018 11:20:30 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1517530830; bh=Wm2yxw15sc5k9pLYIm2QgUMoyQxzBUmuIH9crD9MDbI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gRnjfzwfO27/74buasbt2v3bC9swTLzJjp3VuXC1xVs3uvFESCeHURMiweYEkuML6 B9wePD9Ot0xH5ZmU0QJ4ff6g34eb90BY+d2eFDOXZsSDHeuWNqY4o4dEk7oB6tf2qr YO+yj+YRnqwTJZyL64AHVwmHEYBaZtcD4ozw9n2PK0EdwR+WocQQSjv1v0bUNrZF+S nRYaAlBqP3aFQePgQTxJvbO6Ug4C3PLOyAhQpia7oXQGc4mpAdWQjEuur62kAVvBXD qTMADUXpB+AJxRL5Xbo3VtEF0gq+SwPmZFGjhDlh7eEBkXHcCKACRFu8XbM+iRUcSe LFI3Zny3w4XDg== Date: Fri, 2 Feb 2018 11:20:29 +1100 From: Stephen Rothwell To: Radim =?UTF-8?B?S3LEjW3DocWZ?= Cc: Paolo Bonzini , Christoffer Dall , KVM , Linux-Next Mailing List , Linux Kernel Mailing List , Marc Zyngier , Eric Biggers Subject: Re: linux-next: manual merge of the kvm tree with Linus' tree Message-ID: <20180202112029.0f4aa558@canb.auug.org.au> In-Reply-To: <20180201152244.GC31080@flask> References: <20180201125512.7bc96674@canb.auug.org.au> <20180201104707.GA21802@cbox> <20180202002227.36db3356@canb.auug.org.au> <20180201152244.GC31080@flask> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Radim, On Thu, 1 Feb 2018 16:22:44 +0100 Radim Kr=C4=8Dm=C3=A1=C5=99 wrote: > > I wasn't sure if the pti top branch is final, so I pulled hyper-v topic > branch that also also contains v4.15. This and the SEV feature > conflicts should be gone now, That merge would have been a good place to add the following merge resolution fix patch I have been carrying: From: Eric Biggers Subject: KVM: x86: don't forget vcpu_put() in kvm_arch_vcpu_ioctl_set_sregs= () Date: Thu, 21 Dec 2017 01:30:30 +0100 Due to a bad merge resolution between commit f29810335965 ("KVM/x86: Check input paging mode when cs.l is set") and commit b4ef9d4e8cb8 ("KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl_set_sregs"), there is a case in kvm_arch_vcpu_ioctl_set_sregs() where vcpu_put() is not called after vcpu_get(). Fix it. Reported-by: syzbot Signed-off-by: Eric Biggers --- arch/x86/kvm/x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index ea3a98196753..f4e8b5089b28 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -7624,7 +7624,7 @@ int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vc= pu, goto out; =20 if (kvm_valid_sregs(vcpu, sregs)) - return -EINVAL; + goto out; =20 apic_base_msr.data =3D sregs->apic_base; apic_base_msr.host_initiated =3D true; --=20 Cheers, Stephen Rothwell