From patchwork Fri Aug 23 06:24:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 11110635 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B196B13A4 for ; Fri, 23 Aug 2019 06:27:24 +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 8F67D2070B for ; Fri, 23 Aug 2019 06:27:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VSjuzCwV"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="dh+RaFUC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F67D2070B 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+patchwork-linux-arm=patchwork.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=d8UljWRN/fIk1gl1hQqze4S60eQe8i9pPkhycx3qJVQ=; b=VSjuzCwVS4WNRL +/kcmrwJfZvTl23Wlm8paNKyAjmcs8rgzAxCmyA4C6HV1JWrFJOamVsv6Rz3mLGHSaqn+NNT41/KN s/ctFw6kLPDXtD1By9jPLoEsVd0REiOe+mxptf4qeLXVPN7N7tOEjn4LVpCRnWJTEFKlZj3AWFiGm /ZLFp3Y6KRipO36enzWBo+16iPNhyBnlG0Pjm4gEa2752nEGfk6zmcQytbQGHWNGNN5qJelgMbQnc V0RVD698A/ijGwpnt7ck81370AJYjMUk0g6R7hFuyDrUFx69e3YX/2MjrUR4v2pt72y+HHHlIIWyN Gwd5XuL/0duhlTIl7h4g==; 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 1i132g-0002Bv-Ve; Fri, 23 Aug 2019 06:27:23 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i132c-0002BJ-Ky for linux-arm-kernel@lists.infradead.org; Fri, 23 Aug 2019 06:27:20 +0000 Received: by mail-pl1-x642.google.com with SMTP id f19so4988418plr.3 for ; Thu, 22 Aug 2019 23:27:17 -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=GhjRfjhMwINY908SCrXL1aDBLnxIvIs4Y71zc0rRgRU=; b=dh+RaFUCw0uw79iT30CYn2FWwnL24m0shKCCYpFZVygUMcYvPN83NN7ROJNqa3sh3P 4CvH9sJoWVNk5/JHKRogK6iczeRLwh2qeDj1pX8wfj5lYpWuQcsVx1/PB6hyw20ySi1r QeuQixRWgAV0BmcQMikTTokcwuFWkKCO2HDRM= 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=GhjRfjhMwINY908SCrXL1aDBLnxIvIs4Y71zc0rRgRU=; b=rYGa0jmJYmNCN+UsCro0tRr9MCXYJnqyEroCIqkK2ktJ8OGdvOzEObJwVxPS196pWt BXPkoetwUPtJvcXPtR6lZ7aD8kV7XBnhMj/EnQuUE0Kv/0VffDx2rvY6fEoi3qTS16n+ bTc7p2+UOGbZ62TYsBf6RUr0H2mkkHATeK8+gECPfBsZc3xLH4P4f3mQPBwa/NpgeLWC UKXuKJU3uivmqELOJg0si37SBuAGDSr05Usj3EWmw78/4QklWE4yS4nx3/5tIYpT8KXJ e8NHZdjRuxGqYFM/M/tRjTNNsHcMPKtSVEWv50pt6SWmFJVOwWMnikj7gq7/pT8E232v TgjA== X-Gm-Message-State: APjAAAU/nN0w3r40JLkPHInhWSUBKsqo8APshCjvJtUJgNV3KnmByrvz zrRYQfzE1IctDbV7xwSPnDltDwIAEOs= X-Google-Smtp-Source: APXvYqxsGxrRqSSIoxb1SULucqZZIslLOBDGEU9/wOXaFvOn3E0EpM+vtjgQYhxackVeD+CPnWS7YQ== X-Received: by 2002:a17:902:9b8f:: with SMTP id y15mr3055556plp.194.1566541636820; Thu, 22 Aug 2019 23:27:16 -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 q13sm2139671pfl.124.2019.08.22.23.27.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Aug 2019 23:27:15 -0700 (PDT) From: Hsin-Yi Wang To: linux-arm-kernel@lists.infradead.org, "Theodore Y . Ts'o" Subject: [PATCH v10 0/3] add support for rng-seed Date: Fri, 23 Aug 2019 14:24:49 +0800 Message-Id: <20190823062452.127528-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_232719_028283_2C11E03C X-CRM114-Status: GOOD ( 13.28 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:642 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender 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" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.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 | 9 +++++++++ drivers/char/random.c | 14 ++++++++++++++ drivers/of/fdt.c | 14 ++++++++++++-- include/linux/random.h | 1 + 9 files changed, 64 insertions(+), 23 deletions(-)