Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp668369ybg; Tue, 28 Jul 2020 16:01:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLSdk7+Lzj1tOzEQySaCxc1iCKDLoakGqWUEDZx+yL2XmH3E1I6g25FMO9JDMdNTtbEFen X-Received: by 2002:a17:906:160f:: with SMTP id m15mr28890829ejd.423.1595977311233; Tue, 28 Jul 2020 16:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595977311; cv=none; d=google.com; s=arc-20160816; b=syzUn77RWCWXEP08LPyW3z+PlSanK+Mbqpz7neCveb2Y0KVEzB6EVzRrRLRbs9yh5e fdgC0Rs6mDBTls6k9ta4eDVL4NKLIZcRey3n8H65ZZiXOdW4DCkIPN7Q6fn+Z9sRmgvj dot8NPQghPametBU7HRfD13FMrA2D/6kDTPBJlaZHbqKoCI6AzW6mkj1lwpaym1mkzvh A//1tlwPJyhcXgvEsLOfNHjeo4ClrhdmicxBbBpwgUxlSp66HEe4Wl2ZXPTs4y/MEm3D uQN4SrlfLoLpKnGmwg7ZwkfSMTYrcy2P37yrGthVM0VdlFh36ySVGOjpTtXylDRZP19C WeUg== 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:date:subject:cc:to:from; bh=O1hWqNrLHKFZNuDvjce4/jLBMOMAYAvW4jfBzbGx2O8=; b=rD8SvmjiTlhnGtsyz1MhDTo7414eI44paVc53L1hDeehy8yYoqLb3/Kmcbpa3Ckw+x u13lCeL1PKB9TK3nXiYmcaUZmgB5G1Fa4KsDgNtCmb/8QTHP7BDiooNMvRvFL8oiCKU4 momtcApNSWrKAbRnUtN7GqLCWs+VG2OEPL3EkmFvc5CxzcOaDt6Txtazt+C0ul9hB/Pz re/bwDPG9AP/mHUyRGskKy2lsvlycQzY8ca5/uvmebr2BEad6knbTk8QwXXYlbnX4vrW RYH1N4byGGQc1cYmUxdGjI7oOwwmnW9tuTrSML1pOF8zm4fNsSjdewLGk7g1ooMiXGmv R3qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si8819611ejr.345.2020.07.28.16.01.28; Tue, 28 Jul 2020 16:01:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730283AbgG1W6U (ORCPT + 99 others); Tue, 28 Jul 2020 18:58:20 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:37110 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730048AbgG1W5j (ORCPT ); Tue, 28 Jul 2020 18:57:39 -0400 Received: by mail-qk1-f196.google.com with SMTP id b14so18749954qkn.4 for ; Tue, 28 Jul 2020 15:57:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O1hWqNrLHKFZNuDvjce4/jLBMOMAYAvW4jfBzbGx2O8=; b=jo2i2e3nRbsIX3s4gjgCzhrdlJc5SHJKTveVPFvcwFuKsrXPu70g7toarRUvIUir4D P2FaJoYD/3jCDMwBvXw2vYIgieeW0eKnGXVNCQyDsK6bB0nQi0XAfmZiHWXPm48tgMfT 8fkRrzNnsLrb+/0ytG+sTKIPi0uUqneH1ujrznxwU6zSoPQF8/1u4GNItvjE7q8ZxRIG cFJdDF1fqlyKflM+aL+jkC7M7TldXprufvUEWHgVrgnoU+JEu1yxTDKeYgDB9LjD70hx RcNg1qB98nEfy705VZMtKcdamWR5EthC6nJOXYJlA44fTslDDmyUJjE8tKY/8t3jGF29 U1OQ== X-Gm-Message-State: AOAM531+I+o2yCg2Z5qQRtseeHpQDa99xjwFVOIL1clmbQaf4wMo+mk9 oQFVNHslui6Q/D8EjnUnkIA= X-Received: by 2002:a05:620a:676:: with SMTP id a22mr10632438qkh.8.1595977058169; Tue, 28 Jul 2020 15:57:38 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id o187sm88118qkd.112.2020.07.28.15.57.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 15:57:37 -0700 (PDT) From: Arvind Sankar To: Kees Cook , x86@kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH v3 18/21] x86/kaslr: Make minimum/image_size unsigned long Date: Tue, 28 Jul 2020 18:57:19 -0400 Message-Id: <20200728225722.67457-19-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200727230801.3468620-1-nivedita@alum.mit.edu> References: <20200727230801.3468620-1-nivedita@alum.mit.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change type of minimum/image_size arguments in process_mem_region to unsigned long. These actually can never be above 4G (even on x86_64), and they're unsigned long in every other function except this one. Signed-off-by: Arvind Sankar --- arch/x86/boot/compressed/kaslr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index 0e103d4d452e..b6ef77b644bd 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -648,8 +648,8 @@ static void __process_mem_region(struct mem_vector *entry, } static bool process_mem_region(struct mem_vector *region, - unsigned long long minimum, - unsigned long long image_size) + unsigned long minimum, + unsigned long image_size) { int i; /* -- 2.26.2