Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1612959yba; Thu, 4 Apr 2019 14:27:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcY4KFc4ghViBLePlO8jmCy2E3jDZ9POje7SysUUo/N/AOI2GVh3B3gXPNP4g4Ziow/loN X-Received: by 2002:aa7:8282:: with SMTP id s2mr8354802pfm.7.1554413265621; Thu, 04 Apr 2019 14:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554413265; cv=none; d=google.com; s=arc-20160816; b=oQ33oImjFVwpn1V/sQJtg4wwdVzN5fqnIILtD90pfeHKE9CiOl3X1Alm6PR2JQHpFv Zf3yb6x+sUWOs0vbxHrbqiDweuSy5Gf8UjgIT0JdUFLfJLMVCXG2hc0KwuHPsU/Hyv3x FuUD/QumSyryAqfpLRP0bwMjNsvNUw2dpR2lM7V9sszZtzGEgVIiy6TX31yeHgcsNeXI THqI8CZ9GzWZLynyhyKVZyAOlHMF4+m3g0ErnSO2W5zfvnRIMXgIT8YUYdk/7/ka7lZS LkepCqLZFUIA3Wvr5R3fDRNzl0svAvwuDqmWS0i2/hqJXhMZfrdXiGUiGDIvZkqfzQrb m+7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=uY/dwrxLiNqO1JfhVdCU2k0lsjFUdcV+FSJRLP9wexw=; b=nOBmZ1x6VLTzl1uakm40CFATnVuHNbU1tpuJpV1ReRuXgTlBPtnqTefuwH5u+npBl+ PLk/q9xiuyH9KjynReJfP+xjlBtN5+BMYQyPrBenVyAak8Mq/PpfpvNYZVv8CmLHDLHU XFWcr4mVjdwZH5E8fV7rLY9IJeOGhAwMlSlAxEqCT0J7wloy8SBS9DGvo8XKvWfDuGBO P9yY6KE4Ex1X2yPo1X9LPsNWSkmSFD/ZmkQEKW+YpRo4jdPJXr5EL32COCNYp5In75AF NwHhofeBA7K3gNs3E/xSRUoja14JlbOahOXwf4JLa3oMVRFqtDxeEdOZqtt1TjXeu7Xy yvwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pTxNJy1G; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si16950488pgi.233.2019.04.04.14.27.30; Thu, 04 Apr 2019 14:27:45 -0700 (PDT) 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=@google.com header.s=20161025 header.b=pTxNJy1G; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731319AbfDDUzQ (ORCPT + 99 others); Thu, 4 Apr 2019 16:55:16 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37874 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729793AbfDDUzQ (ORCPT ); Thu, 4 Apr 2019 16:55:16 -0400 Received: by mail-pg1-f195.google.com with SMTP id e6so1822711pgc.4 for ; Thu, 04 Apr 2019 13:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=uY/dwrxLiNqO1JfhVdCU2k0lsjFUdcV+FSJRLP9wexw=; b=pTxNJy1GF7cg4lweaxl8B+Ig2Bur4s5IAUvUT7uqziuIIpv8YfW7iiHXRDMKDhnj0D Ydq3+Bc0HcVediTeWaxh/gpRp078SUMr8NpRpZXtiLENj32+rqvZjbJJ6i5ATgtX5z4S kP8WIZdOE0tL+za16bKdk4BV1qrJnEgXnpr53wpUAfssLGatH2gAdIvi0n1xH3J/46Js 6ajlMY/J2HvMS2RbxXVUb/bRGVoVy90SOUrd2X63QTXAxKG316cUgTRNmKbTxH1SjKoe h+cIwRrKTq69LVp5pZTgbzxvXLFR6TWgy5BTiDMa60qrll7GCBW9YgwmD1Ivq272j7bZ 5hqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=uY/dwrxLiNqO1JfhVdCU2k0lsjFUdcV+FSJRLP9wexw=; b=IvjT55V1ohAd+z8wd4feU8JFbSLFUGOkR1orA8qY7n0REbOyL1qqXDiBDqm9h4LqVE lTnOdrm7aNwVlAUrB8KqrkgXCJuBFh01wcUD/Zr7vnRvZq+SExQUKCzlYJRpWiGrsXEs uDN08f8GjQxMMAL3UiIWvlYxUu/l7T26tpiCBzRvAWpEq+jVoXj+9d5i6cQtun5LxdcK F5NjfExY1JLeqQcRw/weECEpNsUtu4gQW6/ZC5qK3TgL8ZpDWEOoa2wMOTRZUGnZARSu G/FXVTipwdgx8ID0RNTeHNH9Zdb7C4+lZz2nzQyQpLkqgtY9uuHYzOQbcG4FVyDBIf4q 7s6Q== X-Gm-Message-State: APjAAAVxjIJYQwpubRJPEYUvcs/XmXfX2m1ZiNUpAShLVFEHJTOgEa3K xBLVXb2/H+n6/078LHgJxv6k+Q== X-Received: by 2002:a63:2747:: with SMTP id n68mr8000096pgn.317.1554411315008; Thu, 04 Apr 2019 13:55:15 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id i2sm29188444pfo.9.2019.04.04.13.55.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 13:55:14 -0700 (PDT) Date: Thu, 4 Apr 2019 13:55:13 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: "Singh, Brijesh" , Paolo Bonzini , =?UTF-8?Q?Radim_Kr=C4=8Dm=C3=A1=C5=99?= cc: Joerg Roedel , Cfir Cohen , "Lendacky, Thomas" , "x86@kernel.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [patch] kvm: svm: fix potential get_num_contig_pages overflow In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Mar 2019, Singh, Brijesh wrote: > > get_num_contig_pages() could potentially overflow int so make its type > > consistent with its usage. > > > > Reported-by: Cfir Cohen > > Signed-off-by: David Rientjes > > --- > > arch/x86/kvm/svm.c | 10 +++++----- > > 1 file changed, 5 insertions(+), 5 deletions(-) > > > > Reviewed-by: Brijesh Singh > Paolo, Radim, I don't see this in kvm.git, is it ready to be staged?