Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp631215imm; Sat, 26 May 2018 07:24:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqAmn44uHSuaS3JaejMQgYmG3WSQC4rKu0bEwrqjjfmY27xIa/lWHtXPNiA9CD5kKphnDnC X-Received: by 2002:a63:77c2:: with SMTP id s185-v6mr4887356pgc.373.1527344667527; Sat, 26 May 2018 07:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527344667; cv=none; d=google.com; s=arc-20160816; b=mG9RHu6+iILOtbSzNGv2KKGFoFG8Q36fcFyjWqk6UaGW3ebGSqnsIdk5ekafPLJ3IO ZWPXZbMJEKFaD/BEgZdzG4kaE13PLhPqED0yGeHRU2U5suAqCAcGRucZrfl6XmlFs60O QJqe4Zx5mP2TwsrhkOAEL022qFPsK7E1SmU4Lo/lzXr16jzhsbEGgrXx7Jbo6tpnjXLL 2K98o/3dGUnD8HvAgZzzSBIF2INF2pMeLQAJ7/Dixstrsoqtl7PoAxpQtFEqXq7KpWTc YvNlXYn+MPDZWxR06ecbyKosxVxXTZaLEdZyb4xbJ/XrZFFBX+OeaBNxWg33CYzfHOzB gUbQ== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=OmUuugFc3XQGeJZwFd3Jh/hFPhIX9CcBmMq1X8dvtgU=; b=Nq56sGcssRmqdrgLilzIKvZkHVdIwefD5CO6rmAR8Hp2cwg9Dxfvs5Ts+/STfteiH8 VcF/7KD/znLW81jiAotDnzO+7O0eIYKlxfX/ISdLOfRk2w4d2hH7FiLAq24aSBU1qsL9 aexppW88LajjIVIMY/03b1CjCWCNddr4Vk8goU0uCdNC3SQ00xLkKf5yIzhweWIYvdmN 62+zfBnZfNEyrDfUYSMKLAQ1PV9ERNmGwdjGzyI2zA2oC4ly8V4Q8I5Y9ikBGcHMF+Hs hGikHhfcQcazxi8jdcziqmOe91NAv6ofMyXazEIaLZSZped+oyIUcb68vyGTfSSmJP9R /9og== 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 n20-v6si9435408plp.298.2018.05.26.07.24.12; Sat, 26 May 2018 07:24:27 -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; 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 S1031790AbeEZOYH (ORCPT + 99 others); Sat, 26 May 2018 10:24:07 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46064 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753924AbeEZOYG (ORCPT ); Sat, 26 May 2018 10:24:06 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 559B84071188; Sat, 26 May 2018 14:24:05 +0000 (UTC) Received: from flask (unknown [10.43.2.80]) by smtp.corp.redhat.com (Postfix) with SMTP id DF455111CB8C; Sat, 26 May 2018 14:24:01 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Sat, 26 May 2018 16:24:01 +0200 Date: Sat, 26 May 2018 16:24:01 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Brijesh Singh Cc: Dan Carpenter , Joerg Roedel , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] KVM: X86: prevent integer overflows in KVM_MEMORY_ENCRYPT_REG_REGION Message-ID: <20180526142400.GD23390@flask> References: <20180519060135.GA4991@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sat, 26 May 2018 14:24:05 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sat, 26 May 2018 14:24:05 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'rkrcmar@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-05-21 10:52-0500, Brijesh Singh: > On 05/19/2018 01:01 AM, Dan Carpenter wrote: > > This is a fix from reviewing the code, but it looks like it might be > > able to lead to an Oops. It affects 32bit systems. > > > > Please note that SEV is not available on 32bit systems. Added this note and queued, thanks.