Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp461741ybl; Wed, 14 Aug 2019 00:28:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBakkDN3CwrSZ8DQZSPFyRP+or24mvxJiTv9+h2R/W09ac+64RqE6UZWKvt6a9fgTk3CPi X-Received: by 2002:a62:4d85:: with SMTP id a127mr45041766pfb.148.1565767728936; Wed, 14 Aug 2019 00:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565767728; cv=none; d=google.com; s=arc-20160816; b=JAZVcUVADbMWppdR40Geita+XFbPXY/OmDa7+j85nLrTfxttPFlatVGJBcoxrWv5BC esq4LaG+DWkSaZT7w8Ysu5ZADudmi3Sfo05qzRZTAjFKxGylarS8Qbf9rSOHBCbP8YG/ TbNyu2AJ4mYF99RKETKwpsyNYIsm/xH729Ow5JUacfDCtkFQyqlkisA6v4AQ+x29Vv2u bg/Xlvpvj3Iv1S/aeQK3U9iKyF1/3l3ox0U0ZwgfpcszhFx0sOpGXhkRA54m5hXjwt9/ ng/ztCHZoqWFng3wlhjTHWC6hcr4p4JkuXEX5AfU/85iA0P9Z8IdYnm+P//k+Km+YA03 8dMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=S0pdHUrMZlxeH9o5UwMMdUNK7RCa7z7enuUZ3T7dyxs=; b=ElZS8Bqf6soTizWbUuEwAfBu6A5l9xOLL8tbv16N9jbq/2fpA4KM9dhcIzUOEaDCTs bRgrNF6iGhH/4c7pfRIeBdt5c6LQSVtuEgmNnBt95qakZCNwtbOlHKPUOjGi7o6enOkz WLE6daPIxolg43YnLCzgW6HFyiLPL2ibaXRz2gas2FVrzUOOztfyWChW2izq3Z0IKqLx mBe8ZhDx4xorHX82ScBCyZ1lwkvV9ZnuDpt9sMgkFJjdq4uqSDhLq4Dk/fGqacYsCsQM p5gmjwaliietMEeonqYmrVnazUvnrwrcmKPRTBgA8WoGwT8zMy2wEPgPozAXklxNIfpz v5DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=a+2XvMTB; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p11si2413997pjr.3.2019.08.14.00.28.33; Wed, 14 Aug 2019 00:28:48 -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=@alien8.de header.s=dkim header.b=a+2XvMTB; 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=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727418AbfHNH14 (ORCPT + 99 others); Wed, 14 Aug 2019 03:27:56 -0400 Received: from mail.skyhub.de ([5.9.137.197]:50366 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726880AbfHNH14 (ORCPT ); Wed, 14 Aug 2019 03:27:56 -0400 Received: from zn.tnic (p200300EC2F0BD0001434546E6F7AC9DD.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:d000:1434:546e:6f7a:c9dd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 0C72D1EC02FE; Wed, 14 Aug 2019 09:27:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1565767675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=S0pdHUrMZlxeH9o5UwMMdUNK7RCa7z7enuUZ3T7dyxs=; b=a+2XvMTBAV+kdnpbaxN0Sigc8m4vhX0OYPSlG8AU1aS+2M9vD6TsMMsb5+OGv0j5RZU0to b8Kwi73ybojH8SC051Zc330H6/dDjhb+Z9FUnhrIOEnoiBi2TOXgFik1iUAftMyEABQZus jfnyKD47r7Ub1s1LnreXItaO0wuVX2g= Date: Wed, 14 Aug 2019 09:28:44 +0200 From: Borislav Petkov To: Matthew Garrett Cc: jmorris@namei.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Josh Boyer , David Howells , Matthew Garrett , Kees Cook , Dave Young , linux-acpi@vger.kernel.org, x86-ml Subject: Re: [PATCH V38 15/29] acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down Message-ID: <20190814072844.GB27836@zn.tnic> References: <20190808000721.124691-1-matthewgarrett@google.com> <20190808000721.124691-16-matthewgarrett@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190808000721.124691-16-matthewgarrett@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 07, 2019 at 05:07:07PM -0700, Matthew Garrett wrote: > 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. This requires some reworking > of the existing RSDP command line logic, since the early boot code also > makes use of a command-line passed RSDP when locating the SRAT table > before the lockdown code has been initialised. This is achieved by > separating the command line RSDP path in the early boot code from the > generic RSDP path, and then copying the command line RSDP into boot > params in the kernel proper if lockdown is not enabled. If lockdown is > enabled and an RSDP is provided on the command line, this will only be > used when parsing SRAT (which shouldn't permit kernel code execution) > and will be ignored in the rest of the kernel. > > (Modified by Matthew Garrett in order to handle the early boot RSDP > environment) > > Signed-off-by: Josh Boyer > Signed-off-by: David Howells > Signed-off-by: Matthew Garrett > Reviewed-by: Kees Cook > cc: Dave Young > cc: linux-acpi@vger.kernel.org > --- > arch/x86/boot/compressed/acpi.c | 19 +++++++++++++------ > arch/x86/include/asm/acpi.h | 9 +++++++++ > arch/x86/include/asm/x86_init.h | 2 ++ > arch/x86/kernel/acpi/boot.c | 5 +++++ > arch/x86/kernel/x86_init.c | 1 + > drivers/acpi/osl.c | 14 +++++++++++++- > include/linux/acpi.h | 6 ++++++ > 7 files changed, 49 insertions(+), 7 deletions(-) Also, why isn't an x86 person CCed here? This clearly needs an x86 maintainer's ACK before it goes in? Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.