From patchwork Fri Mar 24 13:24:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 95933 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp43623qgd; Fri, 24 Mar 2017 06:24:24 -0700 (PDT) X-Received: by 10.99.127.79 with SMTP id p15mr8856879pgn.207.1490361864883; Fri, 24 Mar 2017 06:24:24 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m5si2017493pfc.414.2017.03.24.06.24.24; Fri, 24 Mar 2017 06:24:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756779AbdCXNYX (ORCPT + 2 others); Fri, 24 Mar 2017 09:24:23 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:33937 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935546AbdCXNYV (ORCPT ); Fri, 24 Mar 2017 09:24:21 -0400 Received: by mail-wr0-f177.google.com with SMTP id l43so1671846wre.1 for ; Fri, 24 Mar 2017 06:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=eJnZpY2b70+ZHiI3MnliMIevCyQ9zYNZMC2LfrXl6Qc=; b=M3qXs6JjgFfiMCddeWNu0csJHKG/T54Vvts5kszwoL/vuSpSp7HFdkOYC69Vce+J0T h9whiDhX9ItAu8WCsbIZJZReyfVK8pHfJlcDa1oczGDN7gV6t3EIjVGtNGf6WncdVLU/ Uob7TjFiYc/j2yCoKFIWrCC7ylWBNnsOYYO2w= 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; bh=eJnZpY2b70+ZHiI3MnliMIevCyQ9zYNZMC2LfrXl6Qc=; b=pxMk3ov+B+QbZqbo0DN5zkvcuE824OyJMDy6YDLxnCaX3XAfHxmVxCkYU/wWBxZahh zbgox04fHv8JvMDciAg5Q0+No+qdgduEtkIkDYc+uiIZKsCeX1Vv20JJaGAr4ArjpjwL 7rzGY8r0TkLJpTfJ7nWWGFP6S42i3ViZmpBrivgdPXR2tOchD6cWzaDQj4kw+pfNUxzM cnW5845QOfQ7tRDc8/iJI70/0tDH0KdNkwyPwBVek4BQKvtrEUZl2vMYhd7Ty5hHLqwq Mw5nMr1Lw0M5hnmqDLRp6uo2lht9l752OOPYqFgVGt7k9HFXjWO6VzTN05J/iSGh7tFs +uhA== X-Gm-Message-State: AFeK/H3qk7XKq1EFm1kx4y65pDiVVZ8PmpgfSE4rbuyiyBD6VSY4n6/JKGPjCe/0/fSL+4zS X-Received: by 10.223.162.130 with SMTP id s2mr8381835wra.149.1490361858942; Fri, 24 Mar 2017 06:24:18 -0700 (PDT) Received: from localhost.localdomain ([196.67.95.24]) by smtp.gmail.com with ESMTPSA id 92sm2924626wrh.8.2017.03.24.06.24.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Mar 2017 06:24:18 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, matt@codeblueprint.co.uk, leif.lindholm@linaro.org, rfranz@cavium.com, mingo@kernel.org, bp@alien8.de, mark.rutland@arm.com, kernel-hardening@lists.openwall.com, Ard Biesheuvel Subject: [PATCH 0/4] efi: libstub enhancements for cmdline parsing and kaslr Date: Fri, 24 Mar 2017 13:24:06 +0000 Message-Id: <20170324132410.16628-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org This adds support for the 'quiet' kernel command line parameter, so that meaningless debug prints can be prevented from corrupting the boot splash (#3) Secondly, it enables randomization of the UEFI runtime services region when KASLR is in effect (#4) Patches #1 and #2 are preparatory cleanup patches. Patch #4 trivially depends on #2 which is why they are part of the same series. Ard Biesheuvel (4): efi/libstub: fix harmless command line parsing bug efi/libstub: unify command line param parsing efi/libstub: arm/arm64: disable debug prints on 'quiet' cmdline arg ef/libstub: arm/arm64: randomize the base of the UEFI rt services region drivers/firmware/efi/libstub/arm-stub.c | 68 +++++++++++--------- drivers/firmware/efi/libstub/arm32-stub.c | 2 + drivers/firmware/efi/libstub/arm64-stub.c | 4 +- drivers/firmware/efi/libstub/efi-stub-helper.c | 36 ++++++++--- drivers/firmware/efi/libstub/efistub.h | 9 +++ drivers/firmware/efi/libstub/secureboot.c | 2 + include/linux/efi.h | 5 +- 7 files changed, 79 insertions(+), 47 deletions(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html