From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D12BEC3A59D for ; Thu, 22 Aug 2019 07:16:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A3870214DA for ; Thu, 22 Aug 2019 07:16:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EQ7jLtyo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="EiLc/GcU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A3870214DA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+DPjcz45uC8VCAXqWp1SSB8CcoWG9fAUvIn8USz2TMA=; b=EQ7jLtyo+Zb67A Y1NDHEUAQ9ciHNkfR8V7Y9t4f/6n4gVvAZ89QAiFDEaf6wrqidywIG1+6lN1vcaAKhN2YkXL5orjf UG3Qr+R9KsWGIU9McvI8oUMEO3ex8SZOu9CpMvNQ3+CXzn22nYMW7GJXAFaG5LSgTK0TLE5XSFMfb Ty4S6MXeOBPaclvzR3cYYtGAucsRRqzAX/gDOXTStaippQ6FuMR5a0kX2YojXLvBFVCdVO2DpHrFM l35Ck2xnVvypfPjT3Si9gCByJfa9ZKLsx78N9DeO1oM0ScxxFuA9NobW2fg3DXsYBaATdwtndrE3P lR0jCt58SoANcokjYmEQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i0hKi-0001Mg-Mt; Thu, 22 Aug 2019 07:16:32 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i0hKc-0001Ly-B2 for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2019 07:16:28 +0000 Received: by mail-pf1-x443.google.com with SMTP id i30so3302385pfk.9 for ; Thu, 22 Aug 2019 00:16:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JK3L3Hqr/8Xg50nCZ0FXXSpFdZR5QIulIGOZeZmHggM=; b=EiLc/GcU7XZnILAvYq1syTuw0MukalyQvUnG3R9+KnXPUHbxmvq8l/yoahVRd/i7Fm xjlcu/r8TwyjjjJNu4MGy2E5xIBVCQUtqmzBZFkEjJne0wFk9Cr+NkkQr3zpj4js4Q4E UwECKoGeBLp+bUtI5kXQFVSEFsidPCBiJom0A= 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:mime-version :content-transfer-encoding; bh=JK3L3Hqr/8Xg50nCZ0FXXSpFdZR5QIulIGOZeZmHggM=; b=jXWhlk2jVxG5er62une1YHntv9lAcmo2yIGtUPEXafAFV9WpQHASTbM7DKHpnwwbJj kdGtn2EJkQDLjMU9h4eSYLX7j3ZogcJMriSIKmI5mH88gbWyoAnwfRcMZ26NUGjbJAxb zntnKfJHt9x6M8p4yE+TteN1I99344nli206i6wHA/199oacjI5sejPgMevqHvD056Vu BRSS3YzOtRY0ypULxcoYkg/0JV70WBFx1Z9/b6AucJUjIP4Frfbvd6gBHb/tBqZEl0b7 kH2PbZwMMMl8r/TnppEIrNh5VXZaQHb/gP2Y1Oqiejnavc7lwIUQMYZB7JFvwXEoFQdK nA8g== X-Gm-Message-State: APjAAAUfrWAke6sqH+kHtXgm40JPxP1q0SrUcklG/NH0S99e0gBr+yT2 RrEgWKWQUA5KcYzDaN9HExI8ID/46oJXEA== X-Google-Smtp-Source: APXvYqzgiOjQYo8YhmIX8UhyIea+1X8EJIUFpmdSU2TcnCh1KEfDPRymW8ekcY4pLeiuHvSePR5xsw== X-Received: by 2002:a65:6497:: with SMTP id e23mr31338387pgv.89.1566458185379; Thu, 22 Aug 2019 00:16:25 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:b852:bd51:9305:4261]) by smtp.gmail.com with ESMTPSA id w26sm30233450pfq.100.2019.08.22.00.16.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Aug 2019 00:16:24 -0700 (PDT) From: Hsin-Yi Wang To: linux-arm-kernel@lists.infradead.org, "Theodore Y . Ts'o" Subject: [PATCH v9 0/3] add support for rng-seed Date: Thu, 22 Aug 2019 15:15:20 +0800 Message-Id: <20190822071522.143986-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190822_001626_407359_56330558 X-CRM114-Status: GOOD ( 13.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kate Stewart , Peter Zijlstra , Catalin Marinas , Mukesh Ojha , Grzegorz Halat , "H . Peter Anvin" , Guenter Roeck , Will Deacon , Marek Szyprowski , Rob Herring , Daniel Thompson , Anders Roxell , Yury Norov , Marc Zyngier , Russell King , Aaro Koskinen , Ingo Molnar , Viresh Kumar , Waiman Long , "Paul E . McKenney" , Wei Li , Alexey Dobriyan , Julien Thierry , Len Brown , Kees Cook , Arnd Bergmann , Rik van Riel , Stephen Boyd , Shaokun Zhang , Mike Rapoport , Borislav Petkov , Josh Poimboeuf , Thomas Gleixner , Greg Kroah-Hartman , Marcelo Tosatti , linux-kernel@vger.kernel.org, Armijn Hemel , Jiri Kosina , Mathieu Desnoyers , Andrew Morton , Tim Chen , "David S . Miller" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Introducing a chosen node, rng-seed, which is an entropy that can be passed to kernel called very early to increase initial device randomness. This can be used for adding sufficient initial entropy for stack canary. Especially architectures that lack per-stack canary. Hsin-Yi Wang (3): arm64: map FDT as RW for early_init_dt_scan() fdt: add support for rng-seed arm64: kexec_file: add rng-seed support arch/arm64/include/asm/mmu.h | 2 +- arch/arm64/kernel/kaslr.c | 5 +---- arch/arm64/kernel/machine_kexec_file.c | 18 +++++++++++++++++- arch/arm64/kernel/setup.c | 9 ++++++++- arch/arm64/mm/mmu.c | 15 +-------------- drivers/char/Kconfig | 10 ++++++++++ drivers/char/random.c | 15 +++++++++++++++ drivers/of/fdt.c | 14 ++++++++++++-- include/linux/random.h | 1 + 9 files changed, 66 insertions(+), 23 deletions(-) -- Change from v8: * Add a new interface add_bootloader_randomness -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel