Received: by 10.223.185.111 with SMTP id b44csp78450wrg; Fri, 9 Mar 2018 01:16:09 -0800 (PST) X-Google-Smtp-Source: AG47ELuGSJMyARWxXOy+Q4rbXN63vONKUqsS3TQgNFtba6vJfFHvXdu7Gyptl0c7LDnutCaTKGKd X-Received: by 2002:a17:902:8f97:: with SMTP id z23-v6mr27053460plo.162.1520586969442; Fri, 09 Mar 2018 01:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520586969; cv=none; d=google.com; s=arc-20160816; b=VO7rzMyihjEIwsNdR/9p+f9s6N9cbsuz3robuCYfCDLcU9SAs/MF7G3WzCjv6iMQ2V 0EkyuzhIyNQ33bKHxaYBwowarPF3T7RNbwgaQtlxQSzt/hOUyFgFbXxI05dLG7U8lKKx OTXc4D+xFMOxNWPCmXUmqTjj4l6/GHz9MmzfdZScqsbh46/TltNYntqKpSAm0S7FBkkN 98x2FuO7fQaI7hxGYJV5xikk/ee42u4DfetxJvR/jneGOh1ydQYpTQCGPLJpvPiUpTTj IzwhU5R0JQysIFWRBs/o8vCXIR1mJeIjIRn6eQTlrL5U68Mbi2MIeOYt8kRfRdAbsWtS mQrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=ibBIMvVx7ZQcat53BtkUOBNtxJe1T86ugqW9QOkvyXo=; b=gYpFy4JX4T4ZS4YYUAmDr9sQ0H7CccvPzXDs3TkAK318DPzk/ICI4qHhR6z0gcgFZ1 SrLqKe0nuD8DWMg/yysuhiSb5iFvSVHu9Cks5r31PYvJpT2fzXjY02+qbhJ01WUjnp1+ 7HRDMsCNci20Ec5IDCzxPBM1eAwMWUJT84NjacJOdjAMz6sbDve11DWo8yGxEhfHxlD8 G4rvs1WokoOUgnOu09XJQ5L3sRgtdlUq48y7SbqzHV+Ok3iHf3ERv8xMWIp6XzhKrwva 4XdqGthHm3zPzQi4yunZMthPIxWavRfb+NuXY4zDUTn41b4ZoYdqs108C/pM2FHI7kQw lnDw== 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 o30si458468pgc.325.2018.03.09.01.15.54; Fri, 09 Mar 2018 01:16:09 -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 S1751871AbeCIJOS (ORCPT + 99 others); Fri, 9 Mar 2018 04:14:18 -0500 Received: from terminus.zytor.com ([198.137.202.136]:48119 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751483AbeCIJOK (ORCPT ); Fri, 9 Mar 2018 04:14:10 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w299Dnia000314; Fri, 9 Mar 2018 01:13:49 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w299Dneu000311; Fri, 9 Mar 2018 01:13:49 -0800 Date: Fri, 9 Mar 2018 01:13:49 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Ard Biesheuvel Message-ID: Cc: torvalds@linux-foundation.org, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, peterz@infradead.org, ard.biesheuvel@linaro.org, linux-kernel@vger.kernel.org, matt@codeblueprint.co.uk Reply-To: peterz@infradead.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, ard.biesheuvel@linaro.org, matt@codeblueprint.co.uk, hpa@zytor.com, torvalds@linux-foundation.org, mingo@kernel.org In-Reply-To: <20180308080020.22828-11-ard.biesheuvel@linaro.org> References: <20180308080020.22828-11-ard.biesheuvel@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:efi/core] efi: Reorder pr_notice() with add_device_randomness() call Git-Commit-ID: 5b4e4c3aa220d07d166d3f21f158bc9c69e3c044 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 5b4e4c3aa220d07d166d3f21f158bc9c69e3c044 Gitweb: https://git.kernel.org/tip/5b4e4c3aa220d07d166d3f21f158bc9c69e3c044 Author: Ard Biesheuvel AuthorDate: Thu, 8 Mar 2018 08:00:18 +0000 Committer: Ingo Molnar CommitDate: Fri, 9 Mar 2018 08:58:23 +0100 efi: Reorder pr_notice() with add_device_randomness() call Currently, when we receive a random seed from the EFI stub, we call add_device_randomness() to incorporate it into the entropy pool, and issue a pr_notice() saying we are about to do that, e.g., [ 0.000000] efi: RNG=0x87ff92cf18 [ 0.000000] random: fast init done [ 0.000000] efi: seeding entropy pool Let's reorder those calls to make the output look less confusing: [ 0.000000] efi: seeding entropy pool [ 0.000000] efi: RNG=0x87ff92cf18 [ 0.000000] random: fast init done Signed-off-by: Ard Biesheuvel Cc: Linus Torvalds Cc: Matt Fleming Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/20180308080020.22828-11-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar --- drivers/firmware/efi/efi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index cd42f66a7c85..92b9e79e5da9 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -542,9 +542,9 @@ int __init efi_config_parse_tables(void *config_tables, int count, int sz, seed = early_memremap(efi.rng_seed, sizeof(*seed) + size); if (seed != NULL) { + pr_notice("seeding entropy pool\n"); add_device_randomness(seed->bits, seed->size); early_memunmap(seed, sizeof(*seed) + size); - pr_notice("seeding entropy pool\n"); } else { pr_err("Could not map UEFI random seed!\n"); }