Received: by 10.192.165.156 with SMTP id m28csp935187imm; Wed, 11 Apr 2018 09:30:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx48dbbdHze7UOmh7iJnKxaCjZnJkunsolIHqfoMLyYqclpqxzSsfgYvA5fr2SWXHRsBxo2Jj X-Received: by 2002:a17:902:6590:: with SMTP id c16-v6mr5707434plk.292.1523464254354; Wed, 11 Apr 2018 09:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523464254; cv=none; d=google.com; s=arc-20160816; b=TX5rtkUTE2HTtUiGB9wbYkLLR7+58hI9uAOLURmJFwMMXt8Wg7dOiaeCKK2+XAosnY d4alDDol4vGKuAUZXrRP1K/+4DTCyLRUXCaZH+RU+K7C+VOqfZyvFqv7r7DHrjUphAiZ UV/NBWvLSD10u54h4Wq2pGX2p/p1WQgKCOqquNHujExxKvC2tSDn1856qDZ/K+UDAll6 SjpTDM7/F1dloGjdzC6Iw0AsfV1FBqAy9+s/d8J3MD9bpR9HGIU3mlhwSpVqtnZiELEm lGj0gA8zO0pFuPkhqKDzStfDLgJkIJTVQ5d4SwQmwDL2e0ZyDigJI+maE4xt4IKrVlik iNpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization:arc-authentication-results; bh=eRgyqnbdFT+XRBKjR8blZUXo1xMQPbvwkHzP+767KJQ=; b=zYS1y3CB2GsRBSwf7vHhs9nnsXG//H6asfj3HYIQ7jPghQ8uDOdy/107/Fju5JkYHi piZzBn2jqwlve9fPVS5j4/jNmGREyYFKK9/4IZ8zHYdIplIoRiSZgKQ39euHvtNym/Gt /6X+Tz+CRn58JUyb08hnt6Hr0vGUHULFRIzQOAAfAgZ0PhN+PU1ChBYJ/7kBhEuNqKHz AeyOKihXBtPnbnqFZOIXyNco6AXT40OsTAl+Yk+zx2/SN0JU41L3bOQVdxxoppAIA9o9 xZRnR4cW0SizOpcg50dwv4Bqu4rGSMUfLe4sWyx0vcDA7Lb1NvKBtPQFRbkcOc7BJcYA It1A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si1097998pfl.229.2018.04.11.09.30.15; Wed, 11 Apr 2018 09:30:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754190AbeDKQ0J (ORCPT + 99 others); Wed, 11 Apr 2018 12:26:09 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50260 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753424AbeDKQ0G (ORCPT ); Wed, 11 Apr 2018 12:26:06 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 682784268A53; Wed, 11 Apr 2018 16:26:05 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-8.rdu2.redhat.com [10.10.120.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 903F32026E03; Wed, 11 Apr 2018 16:26:04 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 13/24] acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down From: David Howells To: torvalds@linux-foundation.org Cc: linux-man@vger.kernel.org, linux-api@vger.kernel.org, jmorris@namei.org, linux-kernel@vger.kernel.org, dhowells@redhat.com, linux-security-module@vger.kernel.org Date: Wed, 11 Apr 2018 17:26:04 +0100 Message-ID: <152346396411.4030.4824200967123540129.stgit@warthog.procyon.org.uk> In-Reply-To: <152346387861.4030.4408662483445703127.stgit@warthog.procyon.org.uk> References: <152346387861.4030.4408662483445703127.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 11 Apr 2018 16:26:05 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Wed, 11 Apr 2018 16:26:05 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' 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 --- 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 7ca41bf023c9..34e4ce7939f4 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -192,7 +192,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();