Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1799848pxa; Thu, 6 Aug 2020 16:42:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYYx6utY579N/8n3UxZraD8NaXx8ISbR6Y6BYUYBDoW82Wm+4asFw9VX6MngRlrKeURlic X-Received: by 2002:a05:6402:2038:: with SMTP id ay24mr6468069edb.200.1596757354922; Thu, 06 Aug 2020 16:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596757354; cv=none; d=google.com; s=arc-20160816; b=QcmH+cKIfrNhPDd/OUIlE+gHM82S5tEZ8oKkrLd9HEKHY9xH8ihxvs4RFwPzfkg+51 Q7pc//eBaxDK6IS6kcngSJhLvlDlhxsRnbqr4kLnFDLt00Pgt9eQQrPu+pocW2jX+Z0c oliC9396gtzXrszID5Yc6fzE/6RaQ7kzrKkciLTVxEKb0lzRrKSGJQb0qJTEAgFC0GiP XWPcZagCyFzaTELtt1EbcUkHnuJmkehOlz+SQACouN26u9FjBHugxHNOKGa+1/0l0IAB 68fRFSFkj2Nv/juFXy87mLxN+eGQeB2ZhzFSZB+KoCDTubAzp+SLi0Xk3BenN16XX3Y2 EQ3Q== 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=965pAqaMzTYAjEnNgooelFyKKV0yVuFCat0tV7lH4Y4=; b=TtkpQ7xvoovxZB7zlKQFZwgM7nPCpUz+kx980ZITlb/MY32l8TjCHHV7rF2pb6evJc 4K0vDXrE/UMMC0d7XPk8JSbvttjoJ1ysdwO8v+qb1XHVSur2+C48u5b+g95Rhx4lg8pj 5Q1os2KJd6hNOFVxDxsMQmkAMTocLSYh7QXR4xcm9PCjg842M5TCT8ltkKF00Z0g50Ur ZY5pggTiwVk9DN4xRTWHDj1rtn7eKfx3LCsRSgcHXN1cw8Q3fkmxMAsbE5aGgsKUxWc0 xCdd4uWIk7cIF59ZwkOMjc0zyhqrWH/Bg++EhV7WHZTNSq+kRSH0gdgrVOtL4bo9rzvC shOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=WUO1ltbd; 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 j6si4378147edn.543.2020.08.06.16.42.12; Thu, 06 Aug 2020 16:42:34 -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=WUO1ltbd; 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 S1726935AbgHFXjc (ORCPT + 99 others); Thu, 6 Aug 2020 19:39:32 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:60966 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726718AbgHFXjE (ORCPT ); Thu, 6 Aug 2020 19:39:04 -0400 Date: Thu, 06 Aug 2020 23:39:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596757142; 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=965pAqaMzTYAjEnNgooelFyKKV0yVuFCat0tV7lH4Y4=; b=WUO1ltbdFI5+BHWlBEZVNAwWhK/L1K8LI/uddn6T3L49hu3uoVPAlQDacqyjQj8aYlPr6D nNcr6k7+vEdoBKrKiYOrnBdwbJU0TL1wPxX2RADaCgXf/HVwOpJzteESvphF0VFpHm0Slm AjvACtHcnp1esXVIqrPwB33Z4BLbxPB6oeP52oYrnnbC5wK8FYQrFt5ll/Lf4C2NOkLh+B mO+yFcGEqGHxQzpF9ByBztAFwfsm3fUSD0cxSNkmG1IHz2cgkn5IJlA50AIDW6K0ssw5UG VqUiV41LG79+/V2svNqqvfoSOL4OjnAICAkZ7Go7t6ky6UuZ9gPleY4IjYptEQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596757142; 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=965pAqaMzTYAjEnNgooelFyKKV0yVuFCat0tV7lH4Y4=; b=27kD3CyMqToLhGWd7PPeiJBCWj5/6QO4M8+VLufrk6AdvR4X006T08upP1wLAiYTkOLVvh PxqF8c7hz+k2raDA== 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 , Kees Cook , 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: <159675714219.3192.7212574474867061776.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: 08705365560a352d3f5b4f1f52270b4d4ff7911e Gitweb: https://git.kernel.org/tip/08705365560a352d3f5b4f1f52270b4d4ff7911e Author: Arvind Sankar AuthorDate: Mon, 27 Jul 2020 19:07:56 -04:00 Committer: Ingo Molnar CommitterDate: Fri, 31 Jul 2020 11:08:12 +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 Reviewed-by: Kees Cook 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 c31f3a5..1ab67a8 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -742,8 +742,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)