Received: by 10.223.176.5 with SMTP id f5csp1006773wra; Fri, 2 Feb 2018 09:35:11 -0800 (PST) X-Google-Smtp-Source: AH8x22709lWvkIk+XwP6GrFZuqOxzdO8+ohcz4GIO3aIuiuQI7UIhScFs8zcnteTS3nMa2wbTq/e X-Received: by 10.98.198.2 with SMTP id m2mr40855954pfg.113.1517592911005; Fri, 02 Feb 2018 09:35:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517592910; cv=none; d=google.com; s=arc-20160816; b=u8JuRbCccmANWUv5NMuVOUKcLGh1+IF3CqEfUMn86hE6sHM83KibtjgAdMbQG/h8uM n01E2WwS00F7cU0HGKJ4QoN5zlfhcPWItv7DnHHAzG87JNYyjBGB7ksOYb9B5dWmnTIu qlelB1qdOzpLJOqnUXIx8I0WgDtBspED6eUQlU8dViwQZKPuc+43hWmZI+rg92WKAajQ nULxl71e/28bh1a4OL5b1Uvi6qvLhdMrvpR/h0QYrYohT378FKLPbsWMqx/nyDcGKjSd bfI2/1GX/fGjBKfz7Qyp5ytjICZ51b3B5/nCHGMFPy9M1XLTxrODYBx3BGLX5U/nZMlO aNMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Rw90n5re6VAx1mgBiQZbNPcPGP5UxlTdkzyNVrulGzQ=; b=FuOwKI3oe3TW7f7Oi8ntqNEVrvGDg9mI39mf5W0ubnakbamZzt/0qfa4/nfeJGmf0D BOZOXOGrFNl7WVQmo8x7jmB9f+HSGkIsnva2H+YnQ4+K1Ecvm3WARbzr9/DUq0f694mB MAX7MofixU6CYtJYwXNOr6Dba4mm8XVUhWPtC/qv2H14bPkNTL0EqCqmc617945JlMN3 C0sgy5Laq5bnqMQlSoEyEhpvodQl+EZh6kDHuq1kM9bDDt+4P7bS2iBiDPIysRmEmmQl bR6WQGKjJIFpsQ0qHVlRJXT3kvzyPLL/6oTTp4uTNRDmaMmLUsalWKDFtNRl88xhfURM 7FpA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si2179157pfl.198.2018.02.02.09.34.56; Fri, 02 Feb 2018 09:35:10 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753026AbeBBRdi (ORCPT + 99 others); Fri, 2 Feb 2018 12:33:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36658 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753872AbeBBRWp (ORCPT ); Fri, 2 Feb 2018 12:22:45 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 854C45F; Fri, 2 Feb 2018 17:22:44 +0000 (UTC) Received: from flask (unknown [10.43.2.80]) by smtp.corp.redhat.com (Postfix) with SMTP id A7D5AD1D9; Fri, 2 Feb 2018 17:22:41 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Fri, 02 Feb 2018 18:22:28 +0100 Date: Fri, 2 Feb 2018 18:22:28 +0100 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Stephen Rothwell 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: <20180202172228.GB27896@flask> References: <20180201125512.7bc96674@canb.auug.org.au> <20180201104707.GA21802@cbox> <20180202002227.36db3356@canb.auug.org.au> <20180201152244.GC31080@flask> <20180202112029.0f4aa558@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180202112029.0f4aa558@canb.auug.org.au> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 02 Feb 2018 17:22:44 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-02 11:20+1100, Stephen Rothwell: > Hi Radim, > > On Thu, 1 Feb 2018 16:22:44 +0100 Radim Krčmář 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: Yes, should have been there ... I've slapped the patch on top, thanks for noticing. > 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 *vcpu, > goto out; > > if (kvm_valid_sregs(vcpu, sregs)) > - return -EINVAL; > + goto out; > > apic_base_msr.data = sregs->apic_base; > apic_base_msr.host_initiated = true; > > -- > Cheers, > Stephen Rothwell