From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F755C2BCA1 for ; Fri, 7 Jun 2019 15:01:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D06520840 for ; Fri, 7 Jun 2019 15:01:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729210AbfFGPBk (ORCPT ); Fri, 7 Jun 2019 11:01:40 -0400 Received: from mga07.intel.com ([134.134.136.100]:62528 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728682AbfFGPBk (ORCPT ); Fri, 7 Jun 2019 11:01:40 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jun 2019 08:01:39 -0700 X-ExtLoop1: 1 Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.36]) by orsmga003.jf.intel.com with ESMTP; 07 Jun 2019 08:01:39 -0700 Date: Fri, 7 Jun 2019 08:01:39 -0700 From: Sean Christopherson To: Eugene Korenevsky , kvm@vger.kernel.org, Paolo Bonzini Subject: Re: [PATCH v5 2/3] kvm: vmx: segment limit check: use access length Message-ID: <20190607150139.GC9083@linux.intel.com> References: <20190607060321.GA29109@dnote> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190607060321.GA29109@dnote> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Fri, Jun 07, 2019 at 09:03:21AM +0300, Eugene Korenevsky wrote: > There is an imperfection in get_vmx_mem_address(): access length is > ignored when checking the limit. To fix this, pass access length as a > function argument. The value of access length is obvious since it is > used by callers after get_vmx_mem_address() call. > > Signed-off-by: Eugene Korenevsky Reviewed-by: Sean Christopherson