Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp261474ybg; Tue, 28 Jul 2020 05:31:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6bP9uGsOONj/xByH5GfasU8yiyOkc6s22Cpurs9Ys7tKEuq/ZyPMR/NeF8TXb1335p6O0 X-Received: by 2002:a17:906:fc26:: with SMTP id ov38mr15094357ejb.99.1595939480440; Tue, 28 Jul 2020 05:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595939480; cv=none; d=google.com; s=arc-20160816; b=r2X9YxNCXbBoTrLSTPJLaZarAIqT+jv2kgJh/P9XCikOXMzSYZaQN1KspeU7P1HPW/ bpOUbaOEYXE8iOdoSspRAqVZKIGxF40aK1WHtp99yP8HuLWwPidPmQVE52KOdwO0DHdk HUxx/WZ0Jv+U0QzEQBa+cTlBixTNvP1tK5T6VFi1pgYu8FTxWFECRCSqr0iR8a5yA9Ui GPtsRgCcKYt3BPa8ixyIohqoQpw006gQ7pK9DFpgZhEy8B6ZWK6p+/HVWkm5lCc4IDqE 76jCRvIMqL2LCyFpoq7P/UKNDlvOagVUGN1qU9GjhpzAqrkejLtjguHXV1N5ZPSC+kfY GlSA== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=iiX8FF++DrdJ7/RxhyDj5URL8ZYx7pcohzaiY9bEL+0=; b=qdw2l8HTBxhkRSf7axsgMG9Rpc9hErwrg4+MLW6tVUn4zKg4zk0uA1z+8gyMPdIpbv Z2nu52ZaKrD1XvCGiuupu5VgM1Ybea/0J8UA7usxOOuavJ57V3nyXy1zDMJ+/98JiT1H 77qhD6ngll9goabGsX5y8KSn6A7Z4AQYo5TMOgbVlxS8IFu6oSdybDeQe85KfSr5GwHH bc3CjhCeFO6awAXL6RuqhC+/mTnoKQgwFxKoyvsbRI4St3avi8eYkmz/M+bWhfi6ycR9 wHA+SISTP1wjrrVSyuxcZWgmnN9kFd5mDFR7xcyxKfaaytVnvFbO1Mh1uAmP2YjSz3Kg Zeqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=YaG1BR6O; dkim=neutral (no key) header.i=@vger.kernel.org; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si7244875edr.589.2020.07.28.05.30.57; Tue, 28 Jul 2020 05:31:20 -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; dkim=fail header.i=@linutronix.de header.s=2020 header.b=YaG1BR6O; dkim=neutral (no key) header.i=@vger.kernel.org; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729649AbgG1M31 (ORCPT + 99 others); Tue, 28 Jul 2020 08:29:27 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:34340 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729267AbgG1M3Q (ORCPT ); Tue, 28 Jul 2020 08:29:16 -0400 Date: Tue, 28 Jul 2020 12:29:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1595939355; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iiX8FF++DrdJ7/RxhyDj5URL8ZYx7pcohzaiY9bEL+0=; b=YaG1BR6OB4OXNZdWlemxVz7vxd9Sq+Fv1lOWaNReCL+FYpl3o/In9aNi8GdzqPY+v71Xob guD2NH7LVYqhjQIyV2VhXeWC0375TP/EdmWnRIS+FzK7vwSKjp6buB/7MZEdU/4wGWifAC fwtVHbXnUNlG1x16xm/CXNgvNJLw9Y3l+Yryp21oNi4GAoo+vSvK7TR2EU7dRBujkafauF KgXXEjZMnFFmTQGRScbSsWSVjOHo5B0hy3jkwW2OMcaa+YpxbMWSnSv20/ayXHtlVzBuZA HJpTNti9ZvslkiHLBAcnBOEyHtCYi3CQi8z0tVJ0cMO47XNiaI1XvAhtPcMW6g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1595939355; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iiX8FF++DrdJ7/RxhyDj5URL8ZYx7pcohzaiY9bEL+0=; b=aei4F2kDtuo26bNBAq2cV/ptf9eHJZwT6xS7TmxUKwqDsFRKczO0eMDz5Kmr7VPk2V/mNe zS7vCwWo9aGnicBg== From: "tip-bot2 for Arvind Sankar" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/kaslr] x86/kaslr: Fix process_efi_entries comment Cc: Arvind Sankar , Ingo Molnar , x86 , LKML In-Reply-To: <20200727230801.3468620-4-nivedita@alum.mit.edu> References: <20200727230801.3468620-4-nivedita@alum.mit.edu> MIME-Version: 1.0 Message-ID: <159593935441.4006.4834681494121268317.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/kaslr branch of tip: Commit-ID: a68bcea591a040cce5e08615c829a316beb3e4b4 Gitweb: https://git.kernel.org/tip/a68bcea591a040cce5e08615c829a316beb3e4b4 Author: Arvind Sankar AuthorDate: Mon, 27 Jul 2020 19:07:56 -04:00 Committer: Ingo Molnar CommitterDate: Tue, 28 Jul 2020 12:54:43 +02:00 x86/kaslr: Fix process_efi_entries comment Since commit: 0982adc74673 ("x86/boot/KASLR: Work around firmware bugs by excluding EFI_BOOT_SERVICES_* and EFI_LOADER_* from KASLR's choice") process_efi_entries() will return true if we have an EFI memmap, not just if it contained EFI_MEMORY_MORE_RELIABLE regions. Signed-off-by: Arvind Sankar Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20200727230801.3468620-4-nivedita@alum.mit.edu --- 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 21cd9e0..207fcb7 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -741,8 +741,8 @@ static bool process_mem_region(struct mem_vector *region, #ifdef CONFIG_EFI /* - * Returns true if mirror region found (and must have been processed - * for slots adding) + * Returns true if we processed the EFI memmap, which we prefer over the E820 + * table if it is available. */ static bool process_efi_entries(unsigned long minimum, unsigned long image_size)