From patchwork Mon Mar 27 17:16:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 96086 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp1324824qgd; Mon, 27 Mar 2017 10:17:23 -0700 (PDT) X-Received: by 10.98.18.66 with SMTP id a63mr26366206pfj.188.1490635043366; Mon, 27 Mar 2017 10:17:23 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si1243793ple.336.2017.03.27.10.17.23; Mon, 27 Mar 2017 10:17:23 -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 S1751765AbdC0RRX (ORCPT + 2 others); Mon, 27 Mar 2017 13:17:23 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:34302 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751600AbdC0RRV (ORCPT ); Mon, 27 Mar 2017 13:17:21 -0400 Received: by mail-wr0-f171.google.com with SMTP id l43so66526238wre.1 for ; Mon, 27 Mar 2017 10:17:14 -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=DdhrGwb+bfw87snKX4WX3CubHIf9sTkzPF+8IboyGv4=; b=Fh6iAt/8UgHphRAH1Nv9eYitii51AIMOEJqk1eAdfAealV4K47IJ6zpKlFMtB1jVcD hyMHLa7VgbwaQIumuUNXqWa0pwaBzfO+L2medMPq7Dexs9Gs1QLYfZSKGKgECs0gAoJU SDmf/WcCJEl34MsUXIfz3ppCpsZ/6Ty1QFI4w= 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=DdhrGwb+bfw87snKX4WX3CubHIf9sTkzPF+8IboyGv4=; b=Pg2x7X8mp6xUUn1vxpXe+XVjd12Tl49N5CkX2Q6PLyqNsZzbA4N9hkp2R6rDVsQRAy Eja9be8s/fra3fUTy8uuhUikOjTiMb5qRbikVsmi3dCSBabfOy6MPsr243+pQFk2z979 S/nMAVUU+T8iOk9NLt1X8m8fi8vH1p4FgT3gddvAR1OKW1MQlbitQFve8fRCRxPHLVym 4fQdEWl5vPaY29DIst1LfRmUtnEn22py1zITXqNU/05it88QjbIUG4LSSXur6VDf39VC 7TkIdGeTzVTPy8yWeonXSfjopNvV91I7u8ZytpKoixHzobenlv89AvCQJdFW51K9Kac9 ERLw== X-Gm-Message-State: AFeK/H2So9AJuZZ+mJk1HBILZbRU3SHBZ06YoW4kOZKvgU1/2QUV+HJhXBp+vnhqCSYOoLji X-Received: by 10.223.152.16 with SMTP id v16mr22707527wrb.8.1490635033095; Mon, 27 Mar 2017 10:17:13 -0700 (PDT) Received: from localhost.localdomain ([196.81.160.3]) by smtp.gmail.com with ESMTPSA id o31sm1488961wrc.27.2017.03.27.10.17.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Mar 2017 10:17:12 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, matt@codeblueprint.co.uk Cc: Ard Biesheuvel Subject: [PATCH v2 0/4] efi: libstub enhancements for cmdline parsing and kaslr Date: Mon, 27 Mar 2017 18:16:59 +0100 Message-Id: <20170327171703.15489-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. v2: - Fix x86 breakage caused by the fact that CONFIG_CMDLINE is not guaranteed to be defined on that architecture. So instead, preserve the original x86 behavior, and move th handling of CONFIG_CMDLINE_FORCE back to the ARM code. - Add Mark's ack. 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 | 72 ++++++++++++-------- drivers/firmware/efi/libstub/arm32-stub.c | 2 + drivers/firmware/efi/libstub/arm64-stub.c | 4 +- drivers/firmware/efi/libstub/efi-stub-helper.c | 32 ++++++--- 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