Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4545496img; Tue, 26 Mar 2019 11:31:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4XEapYvmeT1XImLeL1Oeih/O+ySzFcViW43u1u4W7qTc/3gEVt8rWEMWxfpz+R4LZzrYU X-Received: by 2002:a63:3190:: with SMTP id x138mr23373116pgx.273.1553625062127; Tue, 26 Mar 2019 11:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553625062; cv=none; d=google.com; s=arc-20160816; b=YT3yXRxQwobzdiI37UdBRHDDBgr88FMWUazm62XIxYo4dNVFEPGITDydQm6NkXnI4O IwXZ7+q3LhLqB5Y2Js8IdE8H58mCX4xZp1F9ZBToNm63pCn9kcy1mhHKvEtoEIEzYJ6p Fr9TxAEM2tXBgdqewTjoOIThA/tvrJF4q3UtiiKwqS/CZYoCh6CV+ViX31BaBwAvBZot HF0+erXD1m18qEgkYreZ+u48QsES/FxGFitQWhddSRtvpfXOtyNGWbb2vgn8kkWM01Fs DDXMOsuD69REbEdBhM8yMTfoUwThNyjEsBppYsus6DlA99r/ERPIauxSowX8XykUz97i hUjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=B6VKNJoBZyOp9UQCoOkYqDvTMA68uU6nV4VivW8ayKY=; b=RGpOjF50Do4xmOeFXCeos/fYn7td5WTN/jY0SOgnDRbBmfyqkx9VdXmfM7vwbRl+8Z bZc5CUV3NInFxATTC+/waAXxXNAdG1WUVajBE+zvDGRC6ieJ5XGZ4R8onhc4YFcIXF8s VWEy9hJc8Trg0s5a6wNMj2EoHzHCpmC2uhSbIwHQqxATy2Za8+SLXaKQDzG85Ef5zQiD WmzDUh907hMwcvkLTLNWEYaA7cAzncKkBnSKGAgzWMWcwd5iCFOgnWtnw0I/qEu6Z++K wnwxwrjG/NjlresyQTEQ0tMLSvHlv9GO8xS+sXo0Gs/TWKVRcNzNXi2FPgJyzoMNAZfI 6dJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=h4V4spb5; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si16089584pgs.85.2019.03.26.11.30.46; Tue, 26 Mar 2019 11:31:02 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=h4V4spb5; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732770AbfCZS2d (ORCPT + 99 others); Tue, 26 Mar 2019 14:28:33 -0400 Received: from mail-ot1-f73.google.com ([209.85.210.73]:55892 "EHLO mail-ot1-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732749AbfCZS2a (ORCPT ); Tue, 26 Mar 2019 14:28:30 -0400 Received: by mail-ot1-f73.google.com with SMTP id d38so8835316otb.22 for ; Tue, 26 Mar 2019 11:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=B6VKNJoBZyOp9UQCoOkYqDvTMA68uU6nV4VivW8ayKY=; b=h4V4spb546fgqSWgS1MCnVIdB5xf8zwauormzGFZ9wdZZR11ercKvrV9vGQBG2eaHy U5yAE9dWDJ8cLyFUTI6F6itG/zRVsHLE7RipWoTzwm3Euye6oips8veg3p0JE412stCi NA7uUXxXILc7TDlsvqcna7OqX/NcA45fCDGPS/y4ARKGku0QdHk5dnOgh3o+dQEsVIa4 70hb3FA8v3id5jV97bWtqjs/I7rVHqEdOkqe/GO66TDQ+GugNPfTcMdJKuvBVptU8XAN pXCcH/lTNqrDznbqQwAn+vWVf2zZb+yYoZ6C8xcYDV/S4TC8M3X2z2kIVCyt6ShkjatS 1KOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=B6VKNJoBZyOp9UQCoOkYqDvTMA68uU6nV4VivW8ayKY=; b=dvTCFmi41Vs2Ksfq0BZf1KWeJsZ30EKL+SwRuWIXtStSlZq+RkMqfjXixnVc/ORE1W oEHF+Vgjj9Slnht5K+DuFem1Gsy2uVIbydh7dAB9F0JBEmUAFdhaqNy9jGfBOdFvcmJA Fdt3EzPl+mX1X9z0JyfQT3ONa5I4k9uNpBu0d+szW05XcqY+10hNGN2HYSkcP8XQfxbF sDjl359IlA9EcLBmrEPdlDvLSuwVbtqFVriYgoVP/aPFFRPmBYmNpqG+Tt+NvXUwzUSD 33vMlFgr1XU/mlNHlgRxeAxrH0WLUcQVe/TFN64RoeO/CMsknS3p1Dn33tuk2qKEW/mA 5LvA== X-Gm-Message-State: APjAAAX8AqHp4yMX5PfiSz8wYmsGFm9zC/0CfSXUU7WlBSagc3OV8Wgh WLQyxk0edG/dyDstz1SGFTQaDwM8In2sIsC/drhmSw== X-Received: by 2002:aca:54d2:: with SMTP id i201mr8572038oib.29.1553624910134; Tue, 26 Mar 2019 11:28:30 -0700 (PDT) Date: Tue, 26 Mar 2019 11:27:30 -0700 In-Reply-To: <20190326182742.16950-1-matthewgarrett@google.com> Message-Id: <20190326182742.16950-15-matthewgarrett@google.com> Mime-Version: 1.0 References: <20190326182742.16950-1-matthewgarrett@google.com> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog Subject: [PATCH V31 14/25] acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down From: Matthew Garrett To: jmorris@namei.org Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, dhowells@redhat.com, linux-api@vger.kernel.org, luto@kernel.org, Josh Boyer , Matthew Garrett , Dave Young , linux-acpi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Josh Boyer This option allows userspace to pass the RSDP address to the kernel, which makes it possible for a user to modify the workings of hardware . Reject the option when the kernel is locked down. Signed-off-by: Josh Boyer Signed-off-by: David Howells Signed-off-by: Matthew Garrett cc: Dave Young cc: linux-acpi@vger.kernel.org --- drivers/acpi/osl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index f29e427d0d1d..cd5bba7b8eb3 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -194,7 +194,8 @@ acpi_physical_address __init acpi_os_get_root_pointer(void) acpi_physical_address pa; #ifdef CONFIG_KEXEC - if (acpi_rsdp) + if (acpi_rsdp && !kernel_is_locked_down("ACPI RSDP specification", + LOCKDOWN_INTEGRITY)) return acpi_rsdp; #endif pa = acpi_arch_get_root_pointer(); -- 2.21.0.392.gf8f6787159e-goog