Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4528837imb; Wed, 6 Mar 2019 16:03:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyVwepURJtLyvA5oh/LZywB01rRHv+kMgKNPdxf8dH/ePr5jsLNLmfjhgNwiLFvLtV0rMNz X-Received: by 2002:a63:1616:: with SMTP id w22mr8685799pgl.200.1551917016711; Wed, 06 Mar 2019 16:03:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551917016; cv=none; d=google.com; s=arc-20160816; b=GqwUE4ifPhZEDbIC+xLoDEiEwv/TCHEUG4QyBwWTSbu2zIsveeicOAYdKeuXyWsAJf fcGEh+O+0+vPo/8az4OIGz4KuhKv1IKQq+xnfHWoUilgXRFH6rmZbdts0V7xuOrTuvRp THum8zgNFmiQpl1dbdMaS3bF9Wc/TIn9yyLJ5K43JDJ9teFVW9OK0fd5YiLFsfcIEU84 5cEqAtGOh5Kdvha57IN853d/p7VowEreW1yp4hHmeP7y4z6nQpnb0/4NeOfb0+fqcHtu rhtnIZHvKWx+ES4mIIzUDwuOVi14Wn/z0Xr4itiNQLF2f7c72IEpnTtvt+x1Cybid20Q PQ/w== 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=UFGeS7+xruZP4sn4Tn07AerSriOPiGRkhy6cYT13zbQ=; b=OOOIoM1jGKm6NHhxLUn1XQRhrHmiUDUWygy00toyDa3/0i0HU2sQXvZlXdEYDyPVeO ETDmZvPCHLeoa+D3Hea3S6AICrXquZBZve7PdFHl2vO07qNPI4Yb634PHRfeAysJBcQP lhmZSOxk5sUw3XYpAYmXabkX1ezwrQMycu8ER7sInMP7syfzmbc1EEAFppJPI/UcLU6c SybDv6ru/pSgA4smVndXsE80z9Et9k7eJKCf/Er/DFiees0ZvgSDMizLhSLEt+N4Gxbf 6P79+N1Ps+dAn1Fg8XGtr8AONgwJDpplJTDk3MjBhFITPEZKUdABRdnhplB/t2PYyMsl I1BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=nf5PyV7J; 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 r24si2543354pgv.333.2019.03.06.16.03.21; Wed, 06 Mar 2019 16:03:36 -0800 (PST) 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=nf5PyV7J; 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 S1726313AbfCGABP (ORCPT + 99 others); Wed, 6 Mar 2019 19:01:15 -0500 Received: from mail-pg1-f202.google.com ([209.85.215.202]:53034 "EHLO mail-pg1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbfCGAAF (ORCPT ); Wed, 6 Mar 2019 19:00:05 -0500 Received: by mail-pg1-f202.google.com with SMTP id w4so889101pgl.19 for ; Wed, 06 Mar 2019 16:00:05 -0800 (PST) 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=UFGeS7+xruZP4sn4Tn07AerSriOPiGRkhy6cYT13zbQ=; b=nf5PyV7J5TjGLSrz1snkW5lN8yaR5isc/9tBuhM/tahXRhF2gThjaVYqfeVruaHQFt qW2UjDI7At2H/XB0rystIOSTqsowEIFewHXGRkGJFDqOA4quy6fmdJ6jQ7R/OPLBZ7vr DSFGpDml+Z24jD2zVecZEVOYDF7uu5ghdhlqYY7rNnKB09Eq+OE+pC6I+0bh7kobCWae caVhYDOn2j82QZ4tdjD4+2zg+ciNvfq9HHni+bbj67pSHQTr5lS9kSrmT/Xi9BIxZU3B t5tbNCqRUBF5R77M+twcWSg8IXhZXAmXAlATd8+4aiHncxDJIq1XwR0N4gNFFQI8kjdI m4Uw== 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=UFGeS7+xruZP4sn4Tn07AerSriOPiGRkhy6cYT13zbQ=; b=fUE3/DWyZFuOsLIFGqDp+wxW5dWQePv5o2yC76mOtduNGL9KWo2ep6qQBAzf85MB+e O5pNWS4LococAgM+rwDFAiOVZjBCpFvp1FYuJ+P3YCiWkOSbn/3TSl3GQBNQdXbxKLio 4SjLAxHvZv1n6o/lMWlzXseG+MdcIyWuaKrINrdCnTEiOikIC5F2AoeX67dtP/C1X9YB 7zhlrP4UJk83M70njm/PnhWdWfkVleGAwsB7CptSaZx8kRGYTTFwg2r/jd4Ia4sNSHic /ydsMFtNshxVbCzff4xA3TzaASBpkp+PjLawivC9xszFpmRVaaQykKbHLUbYDaFcAuc0 7FsA== X-Gm-Message-State: APjAAAXCvoMFhuG03qGm9s/h1lQY5V6WykSARSYJuxZeLWCYHKcF4yCW MDoRvm3gk84I7nqzS27tMI+sNVEQCir4jbNkHYHGfA== X-Received: by 2002:a62:e706:: with SMTP id s6mr3820429pfh.87.1551916805075; Wed, 06 Mar 2019 16:00:05 -0800 (PST) Date: Wed, 6 Mar 2019 15:59:01 -0800 In-Reply-To: <20190306235913.6631-1-matthewgarrett@google.com> Message-Id: <20190306235913.6631-16-matthewgarrett@google.com> Mime-Version: 1.0 References: <20190306235913.6631-1-matthewgarrett@google.com> X-Mailer: git-send-email 2.21.0.352.gf09ad66450-goog Subject: [PATCH 15/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 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 Reviewed-by: "Lee, Chun-Yi" 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.352.gf09ad66450-goog