Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3663812img; Mon, 25 Mar 2019 15:13:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+jz9RJqZCXkk0W0XuGiQIbvxbOXtBUTnBirxsQcuPPh1tIkP1PLU7asu1wrnF2jdv11BS X-Received: by 2002:a65:420b:: with SMTP id c11mr4305690pgq.24.1553552005936; Mon, 25 Mar 2019 15:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553552005; cv=none; d=google.com; s=arc-20160816; b=W0Krn634dBHfZR63tKK7t8D2vZ761hiteXJjb4L0z8Swq0Tq5RjYxZbUkQZabcdVG6 uWEqJaKwXncdgLH16iNw7od6FfOxOKYtSS9YHdnLBoJU0fFsoiZ059U33Pxy0kvQKDzj dolTCQAcMCa3ztLxXIDWsJ2Sdedwa6AbMo6Gtu9px4fdTDlWFJLOBUq4MhlDJ30rMahZ lLp4fz6kswlfazo/Y1Joj2x590j+nmTdc89n67J59eFNfKCMOAfxo0H7e9ffy5+Ea7m5 u/KIQk8qesP/er8SjCPrYfEcP1Oq70bZpSvx3nzU+2h5LL3bzk+I+vm0zB0pW40zRVIc bxPg== 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=Du3LfKxiyrtDY9MxBnvqQFXXPhu80u18vHOumdetHcI=; b=CkOn1VkhPGiYwx+ehIOMvssdmLt6PB0ArVKrE4lfibgCw3uui/Z68JH3lSiQGsW5cs gkxy1gLFiZ+e+mB+xmdwh4g6xG+/O2Y3SHYKk166hKzUJhAfixfOpAh6FOcijWB0WIgI zYgtrs3MsQB/Pikm7K6ET7bFecsby7WG/c4oB8x903+Qsh7u0Z4X0XcM6eDGcJccFsZo MXCl7qbaYYCsMLBP6ALTmQO5L7VOK2AqhK9PgOWb0YaoQz6PXFssJVqd4sAeCFC6lJ0u 06UPxV7zQxvFSdAXsRmGKx3qbr6dJtuzE9EIj+HCoSQSLOPg5bSjadNK7sqGS9FjO9V+ UbcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VrMauZb+; 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 t16si3260936plr.63.2019.03.25.15.13.11; Mon, 25 Mar 2019 15:13:25 -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=VrMauZb+; 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 S1730697AbfCYWMD (ORCPT + 99 others); Mon, 25 Mar 2019 18:12:03 -0400 Received: from mail-oi1-f201.google.com ([209.85.167.201]:41549 "EHLO mail-oi1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731014AbfCYWKf (ORCPT ); Mon, 25 Mar 2019 18:10:35 -0400 Received: by mail-oi1-f201.google.com with SMTP id p131so4448060oif.8 for ; Mon, 25 Mar 2019 15:10:34 -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=Du3LfKxiyrtDY9MxBnvqQFXXPhu80u18vHOumdetHcI=; b=VrMauZb+eQPOvofd+xivyKVFEkCCOvSF8qKqadOua3cMjf6D5TrZT1WMbTz8H7OVz0 DTdtIpcsVj9NOl3gcpVjzhO4mVKMyvI92hijoEdACD7E9B0Ji7wOX5LjuH7s6YD/i25P Oseo8bd0Gl1AQ3njPd9plNxAfzUIRFQuLezCj97MS32mNFhMUCza34R5bNPVl8F8ku/k 41yAMHG6zWtWCIuprn6o8f+ymsKRLuicHupSUH3sSaBODUhbYI42er5M3Ti7yr9LLFVL z43jrgjDfO9c9rGNDsQh765vnzu8REms7ZS1bs87OebwLENhNYfJV+1Eb8FDrFtWYkch N5Gw== 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=Du3LfKxiyrtDY9MxBnvqQFXXPhu80u18vHOumdetHcI=; b=TZzm0IKSeBrcKmvngCoT5LDlQf1z/XJ8gV498SYBzrNQZIuj+MOl0RhrLKuOp6LRmG f9q0AcmdR+ifvRwD71Z4uC5jc3FE5xVt79z7MAjK1PTIpcFda9inaxxDKtXEXnW1nD62 8YettQXbTfsDKVvUGBDL4hejZtlkjo4Mgw5/blAp/FsQQhAWTQL7j/Pdbgemk/N/whEZ sPQ5TTgh6AKgGCBqFQ+ie+/RXDgXEAjwRJhLZ/v79FNv3LEQoNzYmvNQDJfca2irmoEi LVMt4hFcLd33k4WZVsTkkf6D1Ofdyj8/V8Y1Dm1swppusqScbgwy0IBcPW4PEs0Atjmp yAIw== X-Gm-Message-State: APjAAAVh9jIKBgj/pAV28JM3HXAJuvSS3rNag86dQnhyhlNM/LxMNUGi nSGknDKvOo3KLL/31HrYy3+RyZgBZOaABPg5qH5YWg== X-Received: by 2002:aca:4103:: with SMTP id o3mr13576902oia.71.1553551834252; Mon, 25 Mar 2019 15:10:34 -0700 (PDT) Date: Mon, 25 Mar 2019 15:09:41 -0700 In-Reply-To: <20190325220954.29054-1-matthewgarrett@google.com> Message-Id: <20190325220954.29054-15-matthewgarrett@google.com> Mime-Version: 1.0 References: <20190325220954.29054-1-matthewgarrett@google.com> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog Subject: [PATCH 14/27] 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, Josh Boyer , Dave Young , linux-acpi@vger.kernel.org, Matthew Garrett 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 cc: Dave Young cc: linux-acpi@vger.kernel.org Signed-off-by: Matthew Garrett --- drivers/acpi/osl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index f29e427d0d1d..3e44cef7a0cd 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -194,7 +194,7 @@ 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")) return acpi_rsdp; #endif pa = acpi_arch_get_root_pointer(); -- 2.21.0.392.gf8f6787159e-goog