Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp606431ybl; Tue, 7 Jan 2020 11:46:50 -0800 (PST) X-Google-Smtp-Source: APXvYqx0wVCTGe5Xj6r67po7lyoeOQxtwEdEzuu+rXFyAA/m7E2EdffuybFcMSN3w/MyJGpMWE4N X-Received: by 2002:a9d:6c99:: with SMTP id c25mr1422491otr.178.1578426410484; Tue, 07 Jan 2020 11:46:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578426410; cv=none; d=google.com; s=arc-20160816; b=NO0tdoOITjWTCcf4/CsEIehiq9Ce3VhjKfq2WIqP74FN/NuzBvaIQhCzRpZlIzCkua 7eEoe+F1Fy7OfR/G/1cUCnnDmohA5Zes092QLFEZ1bGNVm4G3Gmw/epsnXA0NlYE5V7A FpQ8oY1E5vfx/HWSH0P8B/pjl0IRx6gDjuDqaZNqvEnNM4ZvNbBPe+pJPT+fakfv0zux tD8peESyY6B+dm8kR+OeCNw96bLHGeHFsXx8w06iZsLzjycPdd7ITlgwZWhyD7RWNcp9 TAkYhbeT+RIJp6DgFwOA4tur4NcRonXO59K00k4ltW/M/20POw7DiOYQ4p1UoPshPbm0 laGw== 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=1aRDnoCkrgOmMmN7UXf14u86f7PdcvQK2djuifmWlI4=; b=pGRP7haCUbT6VgKAaqo3weN+RanfJDUmpqRBCav3kVSgz7ykRZl/gAllKRkQYZ1lgo XeUedSoHz9/Je8vWf+0vgxD9y53WOTbOH/zviIrWTtMC60OT/TqTcxJt9yOrZx6DObpd DkpGb/H1gUqmYpFRxxJ91tZeePHWnBRDfBoMBVBon2XSozqyFIHDkrYzMZ0/bvkUBfpS FGHoo3jdtJIx2FFCAjX6dW10358lmQAw+iHCA982jQuxzf5IwavwzOxOQZsqhxnnm8u1 5D8E7fEv6NXaPXiwn7KCKM7JUF2W56k+9pjHfJGFJJ74Lco7CY7vhDbZ+mh6sdo0ZxwV hqWw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u188si566214oia.80.2020.01.07.11.46.38; Tue, 07 Jan 2020 11:46:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728795AbgAGTom (ORCPT + 99 others); Tue, 7 Jan 2020 14:44:42 -0500 Received: from mail-qv1-f53.google.com ([209.85.219.53]:41260 "EHLO mail-qv1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbgAGTol (ORCPT ); Tue, 7 Jan 2020 14:44:41 -0500 Received: by mail-qv1-f53.google.com with SMTP id x1so382706qvr.8 for ; Tue, 07 Jan 2020 11:44:40 -0800 (PST) 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=1aRDnoCkrgOmMmN7UXf14u86f7PdcvQK2djuifmWlI4=; b=HLsoQQumL46OO/FVmMYOJveXw1p8EInUvs2kecwXlmMQCkOIsF6E61M2bYjotYIFSh QRmkQYtiALtlrT+EEHqon3OnHVnV+gOBUNwMj7j2hK0DZFp9qmnTcY5OLcmM8G1feHJK LfZGmc9hp1/grZhRmIC2izZ0u/Bw83AZrnhYBKf9n8pmXRg/7imPgsLI6xi86Om9DJNX 3Z4SiCqamna9usludlhOw+AC/B1nMQN8O+aPOwrE2014+i3iBcqOEfIajVMo+16G8HP5 HTXwsRpqshNJMCNFXp99J/4iJ7eh3rgkv2dnaIZS5oEXYBboO3jztIv5cFEFgmpw+RQr FfEg== X-Gm-Message-State: APjAAAXYxkwqAj3g4ebGeeagxefHzHj+UQsfEIgDRlszEsoKLIF1oxq3 Kna9VZsYVPIYUvsAULCjPWI= X-Received: by 2002:a05:6214:bc6:: with SMTP id ff6mr950441qvb.133.1578426279985; Tue, 07 Jan 2020 11:44:39 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id s20sm280137qkg.131.2020.01.07.11.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 11:44:39 -0800 (PST) From: Arvind Sankar To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] x86/boot/compressed/64: Use 32-bit move for z_output_len Date: Tue, 7 Jan 2020 14:44:36 -0500 Message-Id: <20200107194436.2166846-3-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200107194436.2166846-1-nivedita@alum.mit.edu> References: <20200107194436.2166846-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 z_output_len is a 32-bit quantity, it's enough to use a 32-bit move to load it. Signed-off-by: Arvind Sankar --- arch/x86/boot/compressed/head_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S index edd29340bcfd..17139c130ac9 100644 --- a/arch/x86/boot/compressed/head_64.S +++ b/arch/x86/boot/compressed/head_64.S @@ -531,7 +531,7 @@ SYM_FUNC_START_LOCAL_NOALIGN(.Lrelocated) leaq input_data(%rip), %rdx /* input_data */ movl $z_input_len, %ecx /* input_len */ movq %rbp, %r8 /* output target address */ - movq $z_output_len, %r9 /* decompressed length, end of relocs */ + movl $z_output_len, %r9d /* decompressed length, end of relocs */ call extract_kernel /* returns kernel location in %rax */ popq %rsi -- 2.24.1